Blame view

apps/statics/scss/common.scss 10.4 KB
陈峰 authored
1 2 3 4 5 6 7 8 9 10 11 12
@charset "utf-8";

/* stylelint-disable */

/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
 */

html {
陈峰 authored
13 14
  touch-action: manipulation;
  font-family: sans-serif;
陈峰 authored
15
陈峰 authored
16 17 18 19 20 21 22 23 24
  /* 1 */
  -ms-text-size-adjust: 100%;

  /* 2 */
  -webkit-text-size-adjust: 100%;

  /* 2 */
  user-select: none;
  font-size: initial;
陈峰 authored
25 26 27 28 29 30 31
}

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
陈峰 authored
32
  margin: 0;
陈峰 authored
33 34 35 36
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
陈峰 authored
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 * 2. Add the correct display in IE.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
陈峰 authored
60 61
  /* 1 */
  display: block;
陈峰 authored
62 63 64 65 66 67 68 69 70 71
}

/**
 * Add the correct display in IE 9-.
 */

audio,
canvas,
progress,
video {
陈峰 authored
72
  display: inline-block;
陈峰 authored
73 74 75 76 77 78 79
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
陈峰 authored
80 81
  display: none;
  height: 0;
陈峰 authored
82 83 84 85 86 87 88
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
陈峰 authored
89
  vertical-align: baseline;
陈峰 authored
90 91 92 93 94 95 96 97 98
}

/**
 * Add the correct display in IE 10-.
 * 1. Add the correct display in IE.
 */

template,
[hidden] {
陈峰 authored
99
  display: none;
陈峰 authored
100 101 102 103 104 105 106 107 108 109 110
}

/* Links
   ========================================================================== */

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
陈峰 authored
111 112 113
  outline: none;
  color: #000;
  text-decoration: none;
陈峰 authored
114
  background-color: transparent;
陈峰 authored
115
陈峰 authored
116
  /* 1 */
陈峰 authored
117
陈峰 authored
118
  -webkit-text-decoration-skip: objects;
陈峰 authored
119
陈峰 authored
120
  /* 2 */
陈峰 authored
121 122 123 124 125 126 127 128 129
}

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */

a:active,
a:hover {
陈峰 authored
130
  outline-width: 0;
陈峰 authored
131 132 133 134 135 136 137 138 139 140 141
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
陈峰 authored
142
  border-bottom: none;
陈峰 authored
143
陈峰 authored
144
  /* 1 */
陈峰 authored
145
陈峰 authored
146
  text-decoration: underline;
陈峰 authored
147
陈峰 authored
148
  /* 2 */
陈峰 authored
149
陈峰 authored
150
  text-decoration: underline dotted;
陈峰 authored
151
陈峰 authored
152
  /* 2 */
陈峰 authored
153 154 155 156 157 158 159 160
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

b,
strong {
陈峰 authored
161
  font-weight: inherit;
陈峰 authored
162 163 164 165 166 167 168 169
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
陈峰 authored
170
  font-weight: bolder;
陈峰 authored
171 172 173 174 175 176 177
}

/**
 * Add the correct font style in Android 4.3-.
 */

dfn {
陈峰 authored
178
  font-style: italic;
陈峰 authored
179 180 181 182 183 184 185 186
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
陈峰 authored
187 188
  font-size: 2em;
  margin: 0.67em 0;
陈峰 authored
189 190 191 192 193 194 195
}

/**
 * Add the correct background and color in IE 9-.
 */

mark {
陈峰 authored
196 197
  background-color: #ff0;
  color: #000;
陈峰 authored
198 199 200 201 202 203 204
}

/**
 * Add the correct font size in all browsers.
 */

small {
陈峰 authored
205
  font-size: 80%;
陈峰 authored
206 207 208 209 210 211 212 213 214
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
陈峰 authored
215 216 217 218
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
陈峰 authored
219 220 221
}

sub {
陈峰 authored
222
  bottom: -0.25em;
陈峰 authored
223 224 225
}

sup {
陈峰 authored
226
  top: -0.5em;
陈峰 authored
227 228 229 230 231 232 233 234 235 236
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10-.
 */

img {
陈峰 authored
237
  border-style: none;
陈峰 authored
238 239 240 241 242 243 244
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
陈峰 authored
245
  overflow: hidden;
陈峰 authored
246 247 248 249 250 251 252 253 254 255 256 257 258 259
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
pre,
samp {
陈峰 authored
260
  font-family: monospace, monospace;
陈峰 authored
261
陈峰 authored
262
  /* 1 */
陈峰 authored
263
陈峰 authored
264
  font-size: 1em;
陈峰 authored
265
陈峰 authored
266
  /* 2 */
陈峰 authored
267 268 269 270 271 272 273
}

/**
 * Add the correct margin in IE 8.
 */

figure {
陈峰 authored
274
  margin: 1em 1rem;
陈峰 authored
275 276 277 278 279 280 281 282
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
陈峰 authored
283
  box-sizing: content-box;
陈峰 authored
284
陈峰 authored
285
  /* 1 */
陈峰 authored
286
陈峰 authored
287
  height: 0;
陈峰 authored
288
陈峰 authored
289
  /* 1 */
陈峰 authored
290
陈峰 authored
291
  overflow: visible;
陈峰 authored
292
陈峰 authored
293
  /* 2 */
陈峰 authored
294 295 296 297 298 299 300 301 302 303 304 305 306 307
}

/* Forms
   ========================================================================== */

/**
 * 1. Change font properties to `inherit` in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
select,
textarea {
陈峰 authored
308
  font: inherit;
陈峰 authored
309
陈峰 authored
310
  /* 1 */
陈峰 authored
311
陈峰 authored
312
  margin: 0;
陈峰 authored
313
陈峰 authored
314
  /* 2 */
陈峰 authored
315 316 317 318 319 320 321
}

/**
 * Restore the font weight unset by the previous rule.
 */

optgroup {
陈峰 authored
322
  font-weight: bold;
陈峰 authored
323 324 325 326 327 328 329 330 331
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
陈峰 authored
332
  /* 1 */
陈峰 authored
333
陈峰 authored
334
  overflow: visible;
陈峰 authored
335 336 337 338 339 340 341 342 343
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
陈峰 authored
344
  /* 1 */
陈峰 authored
345
陈峰 authored
346
  text-transform: none;
陈峰 authored
347 348 349 350 351 352 353 354 355 356 357 358
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

button,
html [type="button"],
[type="reset"],
[type="submit"] {
陈峰 authored
359
  -webkit-appearance: button;
陈峰 authored
360
陈峰 authored
361
  /* 2 */
陈峰 authored
362 363 364 365 366 367 368 369 370 371
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
陈峰 authored
372 373
  border-style: none;
  padding: 0;
陈峰 authored
374 375 376 377 378 379 380 381 382 383
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
陈峰 authored
384
  outline: 1px dotted ButtonText;
陈峰 authored
385 386 387 388 389 390 391
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */

fieldset {
陈峰 authored
392 393 394
  border: 1px solid #c0c0c0;
  margin: 0 0.05rem;
  padding: 0.35em 0.625em 0.75em;
陈峰 authored
395 396 397 398 399 400 401 402 403 404
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
陈峰 authored
405
  box-sizing: border-box;
陈峰 authored
406
陈峰 authored
407
  /* 1 */
陈峰 authored
408
陈峰 authored
409
  color: inherit;
陈峰 authored
410
陈峰 authored
411
  /* 2 */
陈峰 authored
412
陈峰 authored
413
  display: table;
陈峰 authored
414
陈峰 authored
415
  /* 1 */
陈峰 authored
416
陈峰 authored
417
  max-width: 100%;
陈峰 authored
418
陈峰 authored
419
  /* 1 */
陈峰 authored
420
陈峰 authored
421
  padding: 0;
陈峰 authored
422
陈峰 authored
423
  /* 3 */
陈峰 authored
424
陈峰 authored
425
  white-space: normal;
陈峰 authored
426
陈峰 authored
427
  /* 1 */
陈峰 authored
428 429 430 431 432 433 434
}

/**
 * Remove the default vertical scrollbar in IE.
 */

textarea {
陈峰 authored
435
  overflow: auto;
陈峰 authored
436 437 438 439 440 441 442 443 444
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
陈峰 authored
445
  box-sizing: border-box;
陈峰 authored
446
陈峰 authored
447
  /* 1 */
陈峰 authored
448
陈峰 authored
449
  padding: 0;
陈峰 authored
450
陈峰 authored
451
  /* 2 */
陈峰 authored
452 453 454 455 456 457 458 459
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
陈峰 authored
460
  height: auto;
陈峰 authored
461 462 463 464 465 466 467 468
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
陈峰 authored
469
  -webkit-appearance: textfield;
陈峰 authored
470
陈峰 authored
471
  /* 1 */
陈峰 authored
472
陈峰 authored
473
  outline-offset: -0.05rem;
陈峰 authored
474
陈峰 authored
475
  /* 2 */
陈峰 authored
476 477 478 479 480 481 482 483
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
 */

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
陈峰 authored
484
  -webkit-appearance: none;
陈峰 authored
485 486 487 488 489 490 491
}

/**
 * Correct the text style of placeholders in Chrome, Edge, and Safari.
 */

::-webkit-input-placeholder {
陈峰 authored
492 493
  color: inherit;
  opacity: 0.54;
陈峰 authored
494 495 496 497 498 499 500 501
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
陈峰 authored
502
  -webkit-appearance: button;
陈峰 authored
503
陈峰 authored
504
  /* 1 */
陈峰 authored
505
陈峰 authored
506
  font: inherit;
陈峰 authored
507
陈峰 authored
508
  /* 2 */
陈峰 authored
509 510 511 512 513
}

/* stylelint-enable */

.clearfix:after {
陈峰 authored
514 515 516
  content: "";
  display: block;
  clear: both;
陈峰 authored
517 518 519 520 521
}

*,
*:before,
*:after {
陈峰 authored
522 523 524 525
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
陈峰 authored
526 527 528
}

.font {
陈峰 authored
529
  font-family: "PingFang SC", "HiraginoSansGB-W3", "SanFranciscoText-Regular", Helvetica, Roboto, "Heiti SC", "黑体", Arial, sans-serif;
陈峰 authored
530 531 532 533
}

html,
body {
陈峰 authored
534
  font-size: 24px;
陈峰 authored
535
  font-family: "PingFang SC", "HiraginoSansGB-W3", "SanFranciscoText-Regular", Helvetica, Roboto, "Heiti SC", "黑体", Arial, sans-serif;
陈峰 authored
536 537 538 539 540 541 542 543 544 545
  line-height: 1.4;
  scroll-behavior: smooth;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  color: #222;
陈峰 authored
546 547 548 549 550
}

/* stylelint-disable */

::-webkit-scrollbar {
陈峰 authored
551
  display: none;
陈峰 authored
552 553 554 555 556
}

/* stylelint-enable */

input {
陈峰 authored
557
  border: 0;
陈峰 authored
558 559 560 561
}

ol,
ul {
陈峰 authored
562
  list-style: none;
陈峰 authored
563 564 565
}

*:focus {
陈峰 authored
566
  outline: none;
陈峰 authored
567 568 569
}

.main-wrap {
陈峰 authored
570 571 572 573 574
  position: relative;
  margin-right: auto;
  margin-left: auto;
  max-width: 18.75rem;
  width: 100%;
陈峰 authored
575 576 577
}

.text-center {
陈峰 authored
578
  text-align: center;
陈峰 authored
579 580 581
}

.hide {
陈峰 authored
582
  display: none;
陈峰 authored
583 584 585
}

.overflow-hidden {
陈峰 authored
586 587
  overflow: hidden;
  height: 100%;
陈峰 authored
588 589 590
}

.right {
陈峰 authored
591
  float: right;
陈峰 authored
592 593 594
}

.left {
陈峰 authored
595
  float: right;
陈峰 authored
596 597 598
}

.mr50 {
陈峰 authored
599
  margin-right: 1.25rem;
陈峰 authored
600 601 602
}

.ellipsis {
陈峰 authored
603 604 605
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
陈峰 authored
606 607
}
yyq authored
608
img.lazy-img {
陈峰 authored
609
  opacity: 0;
yyq authored
610 611
}
陈峰 authored
612
img[lazy=loading] {
陈峰 authored
613
  opacity: 0.2;
陈峰 authored
614 615 616
}

img[lazy=error] {
陈峰 authored
617
  opacity: 0;
陈峰 authored
618 619 620
}

img[lazy=loaded] {
陈峰 authored
621
  opacity: 1;
陈峰 authored
622 623 624 625
}

.line-clamp-1 {
陈峰 authored
626
  /* stylelint-disable-line */
陈峰 authored
627
陈峰 authored
628 629 630 631 632
  display: -webkit-box;
  overflow: hidden;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
陈峰 authored
633 634 635 636
}

.line-clamp-2 {
陈峰 authored
637
  /* stylelint-disable-line */
陈峰 authored
638
陈峰 authored
639 640 641 642 643
  display: -webkit-box;
  overflow: hidden;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
陈峰 authored
644 645 646 647
}

.line-clamp-3 {
陈峰 authored
648
  /* stylelint-disable-line */
陈峰 authored
649
陈峰 authored
650 651 652 653 654
  display: -webkit-box;
  overflow: hidden;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
陈峰 authored
655 656
}
陈峰 authored
657 658
.line-clamp-4 {
陈峰 authored
659
  /* stylelint-disable-line */
陈峰 authored
660
陈峰 authored
661 662 663 664 665
  display: -webkit-box;
  overflow: hidden;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
陈峰 authored
666 667
}
陈峰 authored
668
.icon {
陈峰 authored
669 670 671 672 673
  speak: none;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
陈峰 authored
674 675 676
}

.pointer-events {
陈峰 authored
677
  pointer-events: none;
陈峰 authored
678 679 680
}

.cube-toast-icon {
陈峰 authored
681 682
  display: flex;
  align-items: center;
陈峰 authored
683
}
陈峰 authored
684 685

.hover-opacity {
陈峰 authored
686 687 688
  &:active {
    opacity: 0.8;
  }
陈峰 authored
689
陈峰 authored
690 691 692
  &.loading {
    opacity: 0.8;
  }
陈峰 authored
693 694 695
}

button {
陈峰 authored
696
  border: none;
陈峰 authored
697 698 699
}

.invisible {
陈峰 authored
700
  visibility: hidden;
yyq authored
701 702 703
}

.immerse-body .layout-header-wrap {
陈峰 authored
704
  padding-top: 22PX;
yyq authored
705 706 707
}

.immerse-body-high .layout-header-wrap {
陈峰 authored
708
  padding-top: 44PX;
yyq authored
709
}
yyq authored
710 711 712 713

.immerse-body-high .layout-footer-wrap {
  padding-bottom: 32PX;
}
ityuany authored
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732

.yoho-tip {
  position: fixed;
  display: none;
  text-align: center;
  width: 50%;
  padding: 15PX;
  top: 50%;
  left: 50%;
  margin-left: -25%;
  margin-top: -45PX;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 24px;
  border: none;
  z-index: 1000;
  box-sizing: border-box;
  border-radius: 10PX;
}