demo.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. .app-page {
  52. padding: 15px;
  53. font-size: 14px;
  54. line-height: 1.5;
  55. }
  56. // 强提示
  57. .text-strong {
  58. font-weight: 600;
  59. font-size: 1.2em;
  60. color: #f50;
  61. }
  62. // 按钮
  63. .demo-btn {
  64. $activeColor: mix(#000, $color, 20%);
  65. display: inline-block;
  66. margin: 0 1em .5em 0;
  67. padding: 3px 8px;
  68. font-size: 14px;
  69. color: #333;
  70. text-decoration: none;
  71. cursor: pointer;
  72. border-radius: 3px;
  73. border: 1px solid #ccc;
  74. transition: all .3s ease;
  75. &:hover {
  76. color: $color;
  77. border-color: $color;
  78. }
  79. &:active {
  80. color: $activeColor;
  81. border-color: $activeColor;
  82. }
  83. &.primary {
  84. color: #fff;
  85. background: $color;
  86. border-color: $color;
  87. &:hover {
  88. border-color: $activeColor;
  89. }
  90. &:active {
  91. background: $activeColor;
  92. }
  93. }
  94. }
  95. // 表格
  96. .demo-table {
  97. min-width: 300px;
  98. border-collapse: collapse;
  99. th, td {
  100. padding: 5px 8px;
  101. border: 1px solid #ddd;
  102. }
  103. th {
  104. text-align: left;
  105. font-weight: 400;
  106. background-color: #f7f7f7;
  107. }
  108. }