1
0
Fork 0
mirror of https://github.com/Oreolek/elements.git synced 2024-07-01 05:54:59 +03:00

Merge pull request #1 from philtr/master

Whitespace fixes
This commit is contained in:
Dmitry Fadeyev 2011-09-14 13:19:02 -07:00
commit 6180134441

View file

@ -1,87 +1,87 @@
/*--------------------------------------------------- /*---------------------------------------------------
LESS Elements 0.5 LESS Elements 0.5
--------------------------------------------------- ---------------------------------------------------
A set of useful LESS mixins by Dmitry Fadeyev A set of useful LESS mixins by Dmitry Fadeyev
Special thanks for mixin suggestions to: Special thanks for mixin suggestions to:
Kris Van Herzeele, Kris Van Herzeele,
Benoit Adam, Benoit Adam,
Portenart Emile-Victor Portenart Emile-Victor
More info at: http://lesselements.com More info at: http://lesselements.com
-----------------------------------------------------*/ -----------------------------------------------------*/
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) { .gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
background: @color; background: @color;
background: -webkit-gradient(linear, background: -webkit-gradient(linear,
left bottom, left bottom,
left top, left top,
@start, @start,
@stop); @stop);
background: -moz-linear-gradient(center bottom, background: -moz-linear-gradient(center bottom,
@start 0%, @start 0%,
@stop 100%); @stop 100%);
} }
.bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) { .bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) {
background: @color; background: @color;
background: -webkit-gradient(linear, background: -webkit-gradient(linear,
left bottom, left bottom,
left top, left top,
color-stop(0, rgb(@start,@start,@start)), color-stop(0, rgb(@start,@start,@start)),
color-stop(1, rgb(@stop,@stop,@stop))); color-stop(1, rgb(@stop,@stop,@stop)));
background: -moz-linear-gradient(center bottom, background: -moz-linear-gradient(center bottom,
rgb(@start,@start,@start) 0%, rgb(@start,@start,@start) 0%,
rgb(@stop,@stop,@stop) 100%); rgb(@stop,@stop,@stop) 100%);
} }
.bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) { .bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) {
border-top: solid 1px @top-color; border-top: solid 1px @top-color;
border-left: solid 1px @left-color; border-left: solid 1px @left-color;
border-right: solid 1px @right-color; border-right: solid 1px @right-color;
border-bottom: solid 1px @bottom-color; border-bottom: solid 1px @bottom-color;
} }
.drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) { .drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) {
-webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); -webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
-moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); -moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
} }
.rounded(@radius: 2px) { .rounded(@radius: 2px) {
-webkit-border-radius: @radius; -webkit-border-radius: @radius;
-moz-border-radius: @radius; -moz-border-radius: @radius;
border-radius: @radius; border-radius: @radius;
} }
.border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) { .border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
-webkit-border-top-right-radius: @topright; -webkit-border-top-right-radius: @topright;
-webkit-border-bottom-right-radius: @bottomright; -webkit-border-bottom-right-radius: @bottomright;
-webkit-border-bottom-left-radius: @bottomleft; -webkit-border-bottom-left-radius: @bottomleft;
-webkit-border-top-left-radius: @topleft; -webkit-border-top-left-radius: @topleft;
-moz-border-radius-topright: @topright; -moz-border-radius-topright: @topright;
-moz-border-radius-bottomright: @bottomright; -moz-border-radius-bottomright: @bottomright;
-moz-border-radius-bottomleft: @bottomleft; -moz-border-radius-bottomleft: @bottomleft;
-moz-border-radius-topleft: @topleft; -moz-border-radius-topleft: @topleft;
border-top-right-radius: @topright; border-top-right-radius: @topright;
border-bottom-right-radius: @bottomright; border-bottom-right-radius: @bottomright;
border-bottom-left-radius: @bottomleft; border-bottom-left-radius: @bottomleft;
border-top-left-radius: @topleft; border-top-left-radius: @topleft;
} }
.opacity(@opacity: 0.5) { .opacity(@opacity: 0.5) {
-moz-opacity: @opacity; -moz-opacity: @opacity;
-khtml-opacity: @opacity; -khtml-opacity: @opacity;
-webkit-opacity: @opacity; -webkit-opacity: @opacity;
opacity: @opacity; opacity: @opacity;
} }
.transition-duration(@duration: 0.2s) { .transition-duration(@duration: 0.2s) {
-moz-transition-duration: @duration; -moz-transition-duration: @duration;
-webkit-transition-duration: @duration; -webkit-transition-duration: @duration;
transition-duration: @duration; transition-duration: @duration;
} }
.rotation(@deg:5deg){ .rotation(@deg:5deg){
-webkit-transform: rotate(@deg); -webkit-transform: rotate(@deg);
-moz-transform: rotate(@deg); -moz-transform: rotate(@deg);
transform: rotate(@deg); transform: rotate(@deg);
} }
.scale(@ratio:1.5){ .scale(@ratio:1.5){
-webkit-transform:scale(@ratio); -webkit-transform:scale(@ratio);
-moz-transform:scale(@ratio); -moz-transform:scale(@ratio);
transform:scale(@ratio); transform:scale(@ratio);
} }
.transition(@duration:0.2s, @ease:ease-out) { .transition(@duration:0.2s, @ease:ease-out) {
-webkit-transition: all @duration @ease; -webkit-transition: all @duration @ease;
@ -91,30 +91,30 @@
.inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) { .inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) {
-webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); -webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
-moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); -moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
} }
.box-shadow(@arguments) { .box-shadow(@arguments) {
-webkit-box-shadow: @arguments; -webkit-box-shadow: @arguments;
-moz-box-shadow: @arguments; -moz-box-shadow: @arguments;
box-shadow: @arguments; box-shadow: @arguments;
} }
.columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px) { .columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px) {
-moz-column-width: @colwidth; -moz-column-width: @colwidth;
-moz-column-count: @colcount; -moz-column-count: @colcount;
-moz-column-gap: @colgap; -moz-column-gap: @colgap;
-moz-column-rule-color: @columnRuleColor; -moz-column-rule-color: @columnRuleColor;
-moz-column-rule-style: @columnRuleStyle; -moz-column-rule-style: @columnRuleStyle;
-moz-column-rule-width: @columnRuleWidth; -moz-column-rule-width: @columnRuleWidth;
-webkit-column-width: @colwidth; -webkit-column-width: @colwidth;
-webkit-column-count: @colcount; -webkit-column-count: @colcount;
-webkit-column-gap: @colgap; -webkit-column-gap: @colgap;
-webkit-column-rule-color: @columnRuleColor; -webkit-column-rule-color: @columnRuleColor;
-webkit-column-rule-style: @columnRuleStyle; -webkit-column-rule-style: @columnRuleStyle;
-webkit-column-rule-width: @columnRuleWidth; -webkit-column-rule-width: @columnRuleWidth;
column-width: @colwidth; column-width: @colwidth;
column-count: @colcount; column-count: @colcount;
column-gap: @colgap; column-gap: @colgap;
column-rule-color: @columnRuleColor; column-rule-color: @columnRuleColor;
column-rule-style: @columnRuleStyle; column-rule-style: @columnRuleStyle;
column-rule-width: @columnRuleWidth; column-rule-width: @columnRuleWidth;
} }