scaffolding.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // variable
  2. $theme-color: #70b94c !default;
  3. // type
  4. body {
  5. line-height: 1.5em;
  6. font-family: "microsoft yahei";
  7. font-size: 14px;
  8. color: #202020;
  9. }
  10. ul {
  11. margin: 0;
  12. padding: 0;
  13. list-style: none;
  14. }
  15. em, i{
  16. font-style: normal;
  17. }
  18. a {
  19. text-decoration: none;
  20. }
  21. h1, h2, h3, h4, h5, h6, p {
  22. margin: 0;
  23. font-weight: normal;
  24. }
  25. input[type=text],
  26. input[type=password],
  27. button{
  28. -webkit-appearance: none;
  29. }
  30. button{
  31. border: 0;
  32. }
  33. // Function
  34. @for $i from 1 through 5 {
  35. $odd: 5 !default;
  36. $space: $i * 10px;
  37. .mt#{$i}0 {
  38. margin-top: $space;
  39. }
  40. .mt#{$i}5 {
  41. margin-top: $space + $odd;
  42. }
  43. .mr#{$i}0 {
  44. margin-right: $space;
  45. }
  46. .mr#{$i}5 {
  47. margin-right: $space + $odd;
  48. }
  49. .mb#{$i}0 {
  50. margin-bottom: $space;
  51. }
  52. .mb#{$i}5 {
  53. margin-bottom: $space + $odd;
  54. }
  55. .ml#{$i}0 {
  56. margin-left: $space;
  57. }
  58. .ml#{$i}5 {
  59. margin-left: $space + $odd;
  60. }
  61. }
  62. // icon
  63. [class^="icon-"],
  64. [class*=" icon-"] {
  65. display: inline-block;
  66. background-repeat: no-repeat;
  67. background-size: 100%;
  68. overflow: hidden;
  69. }
  70. // shortcut
  71. .l {
  72. float: left;
  73. }
  74. .r {
  75. float: right;
  76. }
  77. .text-center {
  78. text-align: center;
  79. }