index.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. * {
  2. box-sizing: border-box;
  3. background-clip: padding-box;
  4. -webkit-appearance: none;
  5. -webkit-tap-highlight-color: transparent;
  6. }
  7. body,
  8. html,
  9. ul,
  10. li,
  11. p,
  12. h1,
  13. h2,
  14. h3,
  15. h4,
  16. h5,
  17. input,
  18. button {
  19. margin: 0;
  20. padding: 0;
  21. border: 0;
  22. }
  23. body {
  24. width: 100%;
  25. height: 100%;
  26. -moz-osx-font-smoothing: grayscale;
  27. -webkit-font-smoothing: antialiased;
  28. text-rendering: optimizeLegibility;
  29. }
  30. input,
  31. button,
  32. textarea,
  33. img {
  34. border: none;
  35. outline: none;
  36. }
  37. li {
  38. list-style: none;
  39. }
  40. a:focus,
  41. a:active {
  42. outline: none;
  43. }
  44. a,
  45. a:focus,
  46. a:hover {
  47. cursor: pointer;
  48. color: inherit;
  49. text-decoration: none;
  50. }
  51. label {
  52. font-weight: 700;
  53. }
  54. div:focus {
  55. outline: none;
  56. }
  57. .clearfix {
  58. *zoom: 1; //ie6清除浮动的方式 *号只有IE6-IE7执行,其他浏览器不执行
  59. &:after {
  60. content: " ";
  61. display: block;
  62. height: 0;
  63. clear: both;
  64. visibility: hidden;
  65. }
  66. }
  67. /*谷歌、safari、qq浏览器、360浏览器滚动条样式*/
  68. /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
  69. ::-webkit-scrollbar {
  70. width: 5px;
  71. height: 5px;
  72. background: #f5f5f5;
  73. }
  74. /*定义滚动条轨道 内阴影+圆角*/
  75. ::-webkit-scrollbar-track {
  76. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  77. border-radius: 10px;
  78. background: #f5f5f5;
  79. }
  80. /*定义滑块 内阴影+圆角*/
  81. ::-webkit-scrollbar-thumb {
  82. border-radius: 10px;
  83. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  84. background: #dddddd;
  85. }
  86. /*滑块效果*/
  87. ::-webkit-scrollbar-thumb:hover {
  88. border-radius: 5px;
  89. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  90. background: rgba(0, 0, 0, 0.4);
  91. }
  92. /*IE滚动条颜色*/
  93. html {
  94. scrollbar-face-color: #dddddd;
  95. /*滚动条颜色*/
  96. scrollbar-highlight-color: #000000;
  97. scrollbar-3dlight-color: #000000;
  98. scrollbar-darkshadow-color: #000000;
  99. scrollbar-shadow-color: #bbbbbb;
  100. /*滑块边色*/
  101. scrollbar-arrow-color: rgba(0, 0, 0, 0.4);
  102. /*箭头颜色*/
  103. scrollbar-track-color: #eeeeee;
  104. /*背景颜色*/
  105. }