index.scss 5.72 KB
Newer Older
baiguangyao committed
1
// 公有样式引入variable的目的是为了方便修改页面统一的样式
baiguangyao committed
2
@import "./variable.scss";
3 4

// 颜色设置
.  
baiguangyao committed
5 6
$border-color: #e9e9e9; // 边框颜色
$body-color: #333; // 设置通用的字体颜色
.  
baiguangyao committed
7
$body-bg: #fff; // 设置通用的 body 背景色
.  
baiguangyao committed
8 9 10
$link-color: #333; // 设置通用的链接颜色
$link-visited: #333; // 设置链接访问后的颜色
$main-color: #09f; // 主体颜色
11 12

// 字体
zhanghaozhe committed
13 14
$font-family-zh: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "微软雅黑", Arial, sans-serif;
15 16 17 18 19 20 21 22 23
$font-family-en: Arial, sans-serif !default;

// 盒子模型
$box-model: border-box !default;

// 全局设置
// --------------------------------------------------

//
zhanghaozhe committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
77 78 79 80 81 82 83 84 85 86 87
  border: 0 none;
  font-size: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  vertical-align: baseline;

  /* 在X5新内核Blink中,在排版页面的时候,会主动对字体进行放大,会检测页面中的主字体,当某一块字体在我们的判定规则中,认为字号较小,并且是页面中的主要字体,就会采取主动放大的操作。然而这不是我们想要的,可以采取给最大高度解决 */
  max-height: 100000px;
}

zhanghaozhe committed
88 89 90 91 92 93
h1,
h2,
h3,
h4,
h5,
h6 {
94 95 96
  font-weight: normal;
}

zhanghaozhe committed
97 98
em,
strong {
99 100 101
  font-style: normal;
}

zhanghaozhe committed
102 103 104
ul,
ol,
li {
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
  list-style: none;
}

// 全局盒子模型设置
* {
  box-sizing: $box-model;
}

*:before,
*:after {
  box-sizing: $box-model;
}

// -webkit-tap-highlight-color 是一个 不规范的属性,它没有出现在 CSS 规范草案中。
// 当用户点击iOS的Safari浏览器中的链接或JavaScript的可点击的元素时,覆盖显示的高亮颜色。
html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: $font-family-zh;
  line-height: 1.5;
  color: $body-color;
  background-color: $body-bg;
zhanghaozhe committed
129 130
  //font-size: 0.24rem;
  font-size: 12px;
xuzhenghua committed
131
  padding-bottom: constant(safe-area-inset-bottom);
132 133
}

zhanghaozhe committed
134 135 136 137
img{
  max-width: 100%;
}

138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
// 这里主要应付 antd-mobile 的组件carousel 不能等比缩放的蛋疼问题
.home-swipe {
  height: 40.625vw;
  max-height: 406.25px;
}

// 字符溢出隐藏
.text-overflow-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 字符超出一行溢出隐藏
.text-overflow-one {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
xuzhenghua committed
157
  /* autoprefixer: ignore next */
158 159 160 161 162 163 164 165 166
  -webkit-box-orient: vertical;
}

// 字符超出两行溢出隐藏
.text-overflow-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
xuzhenghua committed
167
  /* autoprefixer: ignore next */
168 169 170 171 172 173 174 175 176
  -webkit-box-orient: vertical;
}

// 字符超出三行溢出隐藏
.text-overflow-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
xuzhenghua committed
177
  /* autoprefixer: ignore next */
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
  -webkit-box-orient: vertical;
}

// radio 样式重写
input[type="radio"] {
  position: relative;
  vertical-align: middle;
  width: 0.36rem;
  height: 0.36rem;
  -webkit-appearance: none !important;
  -moz-appearance: none;
  border: none;
  background: none;
  outline: none;
}
xuzhenghua committed
193

194 195
input[type="radio"]:before {
  position: absolute;
zhanghaozhe committed
196
  content: "";
197 198 199 200 201 202 203 204 205 206 207
  display: block;
  width: 0.36rem;
  height: 0.36rem;
  border: 2px solid #999;
  background: #fff;
  left: 0;
  top: 0;
  z-index: 100;
  border-radius: 50%;
  outline: 0;
}
xuzhenghua committed
208

209 210 211
input[type="radio"]:checked:after {
  position: absolute;
  z-index: 50;
zhanghaozhe committed
212
  content: "";
213 214 215 216 217 218 219 220 221 222
  display: block;
  width: 0.36rem;
  height: 0.36rem;
  border: 2px solid #999;
  background: #fff;
  left: 0;
  top: 0;
  border-radius: 50%;
  outline: 0;
}
xuzhenghua committed
223

224 225 226
input[type="radio"]:checked:before {
  position: absolute;
  z-index: 100;
zhanghaozhe committed
227
  content: "";
228 229 230 231 232 233 234 235
  display: block;
  width: 0.18rem;
  height: 0.18rem;
  left: 0.09rem;
  top: 0.09rem;
  background: #1abc9c;
  border-radius: 50%;
  border: none;
236 237 238 239 240 241 242 243
}

.directions-p {
  font-size: 14px;
  line-height: 21px;
  color: #555555;
  font-weight: 300;
}
244

245 246 247 248 249
.directions-div {
  font-size: 13px;
  line-height: 24px;
  color: #333333;
  font-weight: 600;
zhanghaozhe committed
250 251
}

252
.am-modal-button-group-h {
zhanghaozhe committed
253 254 255 256 257
  .am-modal-button {
    font-size: 15px;
  }
}

zhanghaozhe committed
258 259
.am-modal-alert-content,
.am-modal-propmt-content {
zhanghaozhe committed
260 261
  color: #333;
  font-size: 15px;
xuzhenghua committed
262
}
FE committed
263 264 265 266 267 268

.year19-index {
  display: block;
  position: fixed;
  top: 50%;
  right: 0;
zhanghaozhe committed
269
  width: 100px;
FE committed
270
  margin-top: -35px;
271 272
  z-index: 99;
  font-size: 12px;
273

FE committed
274 275 276 277
  img {
    width: 100%;
    height: 100%;
  }
278 279 280 281 282 283 284 285 286

  .iconfont {
    $size: 26px;
    position: absolute;
    top: -($size + 8px);
    right: 0;
    font-size: $size;
    color: #5a5a5a;
  }
zhanghaozhe committed
287 288
}

zhanghaozhe committed
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
.modal-cover {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;

  .modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -65%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 300px;
    height: 130px;
    text-align: center;
    padding: 20px 20px;
    background: #fff;
    border-radius: 5px;
    font-size: 16px;
    color: #525c65;

    & > div {
      margin-bottom: 10px;
    }

    ._nc {
      height: 48px;
    }

    .stage {
      height: 48px;

      .slider {
        height: 48px;
        box-shadow: 0 0 3px #9a9a9a;

        .label, .track, .button {
          height: 48px;
        }

      }
    }

  }

  .close {
    position: absolute;
    bottom: -80px;
    left: 50%;
    margin-left: -18px;
    font-size: 36px;
    color: #fff;
  }

  #global-captcha {
    width: 100%;
    height: 48px;
    margin-bottom: 50px;
  }
}