| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- // variable
- $theme-color: #70b94c !default;
- // type
- body {
- line-height: 1.5em;
- font-family: "microsoft yahei";
- font-size: 14px;
- color: #202020;
- }
- ul {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- em, i{
- font-style: normal;
- }
- a {
- text-decoration: none;
- }
- h1, h2, h3, h4, h5, h6, p {
- margin: 0;
- font-weight: normal;
- }
- input[type=text],
- input[type=password],
- button{
- -webkit-appearance: none;
- }
- button{
- border: 0;
- }
- // Function
- @for $i from 1 through 5 {
- $odd: 5 !default;
- $space: $i * 10px;
- .mt#{$i}0 {
- margin-top: $space;
- }
- .mt#{$i}5 {
- margin-top: $space + $odd;
- }
- .mr#{$i}0 {
- margin-right: $space;
- }
- .mr#{$i}5 {
- margin-right: $space + $odd;
- }
- .mb#{$i}0 {
- margin-bottom: $space;
- }
- .mb#{$i}5 {
- margin-bottom: $space + $odd;
- }
- .ml#{$i}0 {
- margin-left: $space;
- }
- .ml#{$i}5 {
- margin-left: $space + $odd;
- }
- }
- // icon
- [class^="icon-"],
- [class*=" icon-"] {
- display: inline-block;
- background-repeat: no-repeat;
- background-size: 100%;
- overflow: hidden;
- }
- // shortcut
- .l {
- float: left;
- }
- .r {
- float: right;
- }
- .text-center {
- text-align: center;
- }
|