style.sass 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // ===主题色(蓝)
  2. $theme_color: #236AFA
  3. // ===辅色(蓝)
  4. $theme_color_fu: #0D5CFA
  5. $theme_fu_red: #9F1130
  6. // ===辅色(蓝色)
  7. $theme_fu_bule: #535F72
  8. // ===辅色(深灰1)
  9. $theme_gray333: #333
  10. // ===辅色(深灰2)
  11. $theme_gray666: #666
  12. // ===辅色(灰1)
  13. $theme_gray999: #999
  14. // ===辅色(展位提示)
  15. $theme_graybbb: #bbb
  16. // ===辅色(边框)
  17. $theme_grayddd: #ddd
  18. // ===辅色(用于背景色)
  19. $theme_grayf0: #f0f0f0
  20. // ===底部背景(用于背景色)
  21. $theme_footer: #171D31
  22. //定位上下左右居中
  23. @mixin center
  24. position: absolute
  25. top: 50%
  26. left: 50%
  27. transform: translate(-50%, -50%)
  28. // 背景图片地址和大小
  29. @mixin bis($url)
  30. background-image: url($url)
  31. background-repeat: no-repeat
  32. background-size: 100% 100%
  33. //定位全屏
  34. @mixin allcover
  35. position:absolute
  36. top: 0
  37. right: 0
  38. //宽高
  39. @mixin wh($width, $height)
  40. width: $width
  41. height: $height
  42. //字体大小,颜色
  43. @mixin sc($size, $color)
  44. font-size: $size
  45. color: $color
  46. //字体大小、行高、字体
  47. @mixin font($size, $line-height, $family: 'Microsoft YaHei')
  48. font: $size/$line-height $family
  49. //定位上下居中
  50. @mixin ct
  51. position: absolute
  52. top: 50%
  53. transform: translateY(-50%)
  54. //定位左右居中
  55. @mixin cl
  56. position: absolute
  57. left: 50%
  58. transform: translateX(-50%)