Last active
April 6, 2019 18:41
-
-
Save eto4detak/74cd1fcdd7a36be3a910134cdfdb0542 to your computer and use it in GitHub Desktop.
less цветовые функции
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@color: #3d82d1;.left_box { | |
background: spin(@color, 25%); | |
} | |
.middle_box { | |
background: @color; | |
} | |
.right_box { | |
background: spin(@color, -25%); | |
} | |
@color: #faa51a; | |
.button { | |
background: -webkit-gradient(linear, left top, left bottom, from(@color + #151515), to(@color - #151515)); | |
background: -moz-linear-gradient(top, @color + #151515, @color - #151515); | |
} | |
//примеси | |
.radius(@radius:6px) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
border-radius: @radius; | |
} | |
.button(@radius:3px, @background: #e7ba64, @padding: 4px) { | |
.radius(@radius); | |
background:@background; | |
border: 1px solid @background - #222; | |
padding: @padding; | |
} | |
.read_more { | |
.button(0px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment