94 lines
3.4 KiB
Plaintext
94 lines
3.4 KiB
Plaintext
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
|
|
background: @color;
|
|
background: -webkit-gradient(linear,
|
|
left bottom,
|
|
left top,
|
|
color-stop(0, @start),
|
|
color-stop(1, @stop));
|
|
background: -ms-linear-gradient(bottom,
|
|
@start,
|
|
@stop);
|
|
background: -moz-linear-gradient(center bottom,
|
|
@start 0%,
|
|
@stop 100%);
|
|
background: -o-linear-gradient(@stop,
|
|
@start);
|
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start));
|
|
}
|
|
.bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) {
|
|
background: @color;
|
|
background: -webkit-gradient(linear,
|
|
left bottom,
|
|
left top,
|
|
color-stop(0, rgb(@start,@start,@start)),
|
|
color-stop(1, rgb(@stop,@stop,@stop)));
|
|
background: -ms-linear-gradient(bottom,
|
|
rgb(@start,@start,@start) 0%,
|
|
rgb(@stop,@stop,@stop) 100%);
|
|
background: -moz-linear-gradient(center bottom,
|
|
rgb(@start,@start,@start) 0%,
|
|
rgb(@stop,@stop,@stop) 100%);
|
|
background: -o-linear-gradient(rgb(@stop,@stop,@stop),
|
|
rgb(@start,@start,@start));
|
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",rgb(@stop,@stop,@stop),rgb(@start,@start,@start)));
|
|
}
|
|
.bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) {
|
|
border-top: solid var(--1px) @top-color;
|
|
border-left: solid var(--1px) @left-color;
|
|
border-right: solid var(--1px) @right-color;
|
|
border-bottom: solid var(--1px) @bottom-color;
|
|
}
|
|
.drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) {
|
|
box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
|
|
}
|
|
.rounded(@radius: 2px) {
|
|
border-radius: @radius;
|
|
}
|
|
.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
|
|
border-top-right-radius: @topright;
|
|
border-bottom-right-radius: @bottomright;
|
|
border-bottom-left-radius: @bottomleft;
|
|
border-top-left-radius: @topleft;
|
|
.background-clip(padding-box);
|
|
}
|
|
.opacity(@opacity: 0.5) {
|
|
opacity: @opacity;
|
|
@opperc: @opacity * 100;
|
|
filter: ~"alpha(opacity=@{opperc})";
|
|
}
|
|
.transition-duration(@duration: 0.2s) {
|
|
transition-duration: @duration;
|
|
}
|
|
.transform(...) {
|
|
transform: @arguments;
|
|
}
|
|
.rotation(@deg:5deg){
|
|
.transform(rotate(@deg));
|
|
}
|
|
.scale(@ratio:1.5){
|
|
.transform(scale(@ratio));
|
|
}
|
|
.transition(@duration:0.2s, @ease:ease-out) {
|
|
transition: all @duration @ease;
|
|
}
|
|
.box-sizing(@sizing: border-box) {
|
|
box-sizing: @sizing;
|
|
}
|
|
.user-select(@argument: none) {
|
|
user-select: @argument;
|
|
}
|
|
.columns(@colwidth: var(--256px), @colcount: 0, @colgap: var(--50px), @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: var(--1px)) {
|
|
column-width: @colwidth;
|
|
column-count: @colcount;
|
|
column-gap: @colgap;
|
|
column-rule-color: @columnRuleColor;
|
|
column-rule-style: @columnRuleStyle;
|
|
column-rule-width: @columnRuleWidth;
|
|
}
|
|
.translate(@x:0, @y:0) {
|
|
.transform(translate(@x, @y));
|
|
}
|
|
.background-clip(@argument: padding-box) {
|
|
background-clip: @argument;
|
|
}
|