demo.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. html, body {
  2. width: 100%;
  3. height: 100%;
  4. overflow: hidden;
  5. }
  6. body {
  7. margin: 0;
  8. font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
  9. -webkit-font-smoothing: antialiased;
  10. -moz-osx-font-smoothing: grayscale;
  11. font-size: 16px;
  12. color: $text;
  13. }
  14. /*滚动条*/
  15. ::-webkit-scrollbar {
  16. $w: 6px;
  17. $mw: 3px;
  18. width: $w;
  19. height: $w;
  20. @include screen-mob {
  21. width: $mw;
  22. height: $mw;
  23. }
  24. &-thumb {
  25. background: rgba(0, 0, 0, .1);
  26. border-radius: 20px;
  27. &:hover {
  28. background: rgba($color, .5);
  29. }
  30. &:active {
  31. background: rgba($color, .8);
  32. }
  33. }
  34. &-corner {
  35. display: none;
  36. }
  37. }
  38. // 图标
  39. [class^="rt-icon-"],
  40. [class*=" rt-icon-"] {
  41. font-family: "rtfont" !important;
  42. font-size: 16px;
  43. font-style: normal;
  44. -webkit-font-smoothing: antialiased;
  45. -moz-osx-font-smoothing: grayscale;
  46. }
  47. a:link {
  48. transition: color .3s ease-in-out;
  49. }
  50. // 强提示
  51. .text-strong {
  52. font-weight: 600;
  53. font-size: 1.2em;
  54. color: #f50;
  55. }
  56. // 按钮
  57. .demo-btn {
  58. $activeColor: mix(#000, $color, 20%);
  59. display: inline-block;
  60. margin: 0 1em .5em 0;
  61. padding: 3px 8px;
  62. font-size: 14px;
  63. color: #333;
  64. text-decoration: none;
  65. cursor: pointer;
  66. border-radius: 3px;
  67. border: 1px solid #ccc;
  68. transition: all .3s ease;
  69. &:hover {
  70. color: $color;
  71. border-color: $color;
  72. }
  73. &:active {
  74. color: $activeColor;
  75. border-color: $activeColor;
  76. }
  77. &.primary {
  78. color: #fff;
  79. background: $color;
  80. border-color: $color;
  81. &:hover {
  82. border-color: $activeColor;
  83. }
  84. &:active {
  85. background: $activeColor;
  86. }
  87. }
  88. }
  89. // 表格
  90. .demo-table {
  91. min-width: 300px;
  92. border-collapse: collapse;
  93. th, td {
  94. padding: 5px 8px;
  95. border: 1px solid #ddd;
  96. }
  97. th {
  98. text-align: left;
  99. font-weight: 400;
  100. background-color: #f7f7f7;
  101. }
  102. }