Skip to content

Instantly share code, notes, and snippets.

@eto4detak
Last active April 6, 2019 18:41
Show Gist options
  • Save eto4detak/74cd1fcdd7a36be3a910134cdfdb0542 to your computer and use it in GitHub Desktop.
Save eto4detak/74cd1fcdd7a36be3a910134cdfdb0542 to your computer and use it in GitHub Desktop.
less цветовые функции
@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