Warning, /webapps/ocs-webserver/httpdocs/theme/react/assets/less/elements.less is written in an unsupported language. File is not indexed.
0001 /*---------------------------------------------------
0002 LESS Elements 0.9
0003 ---------------------------------------------------
0004 A set of useful LESS mixins
0005 More info at: http://lesselements.com
0006 ---------------------------------------------------*/
0007
0008 /* MIXINS */
0009
0010 .gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
0011 background: @color;
0012 background: -webkit-gradient(linear,
0013 left bottom,
0014 left top,
0015 color-stop(0, @start),
0016 color-stop(1, @stop));
0017 background: -ms-linear-gradient(bottom,
0018 @start,
0019 @stop);
0020 background: -moz-linear-gradient(center bottom,
0021 @start 0%,
0022 @stop 100%);
0023 background: -o-linear-gradient(@stop,
0024 @start);
0025 filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start));
0026 }
0027 .bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) {
0028 background: @color;
0029 background: -webkit-gradient(linear,
0030 left bottom,
0031 left top,
0032 color-stop(0, rgb(@start,@start,@start)),
0033 color-stop(1, rgb(@stop,@stop,@stop)));
0034 background: -ms-linear-gradient(bottom,
0035 rgb(@start,@start,@start) 0%,
0036 rgb(@stop,@stop,@stop) 100%);
0037 background: -moz-linear-gradient(center bottom,
0038 rgb(@start,@start,@start) 0%,
0039 rgb(@stop,@stop,@stop) 100%);
0040 background: -o-linear-gradient(rgb(@stop,@stop,@stop),
0041 rgb(@start,@start,@start));
0042 filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",rgb(@stop,@stop,@stop),rgb(@start,@start,@start)));
0043 }
0044 .bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) {
0045 border-top: solid 1px @top-color;
0046 border-left: solid 1px @left-color;
0047 border-right: solid 1px @right-color;
0048 border-bottom: solid 1px @bottom-color;
0049 }
0050 .drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) {
0051 -webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
0052 -moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
0053 box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha);
0054 }
0055 .rounded(@radius: 2px) {
0056 -webkit-border-radius: @radius;
0057 -moz-border-radius: @radius;
0058 border-radius: @radius;
0059 }
0060 .border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) {
0061 -webkit-border-top-right-radius: @topright;
0062 -webkit-border-bottom-right-radius: @bottomright;
0063 -webkit-border-bottom-left-radius: @bottomleft;
0064 -webkit-border-top-left-radius: @topleft;
0065 -moz-border-radius-topright: @topright;
0066 -moz-border-radius-bottomright: @bottomright;
0067 -moz-border-radius-bottomleft: @bottomleft;
0068 -moz-border-radius-topleft: @topleft;
0069 border-top-right-radius: @topright;
0070 border-bottom-right-radius: @bottomright;
0071 border-bottom-left-radius: @bottomleft;
0072 border-top-left-radius: @topleft;
0073 .background-clip(padding-box);
0074 }
0075 .opacity(@opacity: 0.5) {
0076 -moz-opacity: @opacity;
0077 -khtml-opacity: @opacity;
0078 -webkit-opacity: @opacity;
0079 opacity: @opacity;
0080 @opperc: @opacity * 100;
0081 -ms-filter: ~"progid:DXImageTransform.Microsoft.Alpha(opacity=@{opperc})";
0082 filter: ~"alpha(opacity=@{opperc})";
0083 }
0084 .transition-duration(@duration: 0.2s) {
0085 -moz-transition-duration: @duration;
0086 -webkit-transition-duration: @duration;
0087 -o-transition-duration: @duration;
0088 transition-duration: @duration;
0089 }
0090 .transform(...) {
0091 -webkit-transform: @arguments;
0092 -moz-transform: @arguments;
0093 -o-transform: @arguments;
0094 -ms-transform: @arguments;
0095 transform: @arguments;
0096 }
0097 .rotation(@deg:5deg){
0098 .transform(rotate(@deg));
0099 }
0100 .scale(@ratio:1.5){
0101 .transform(scale(@ratio));
0102 }
0103 .transition(@duration:0.2s, @ease:ease-out) {
0104 -webkit-transition: all @duration @ease;
0105 -moz-transition: all @duration @ease;
0106 -o-transition: all @duration @ease;
0107 transition: all @duration @ease;
0108 }
0109 .inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) {
0110 -webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
0111 -moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
0112 box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha);
0113 }
0114 .box-shadow(@arguments) {
0115 -webkit-box-shadow: @arguments;
0116 -moz-box-shadow: @arguments;
0117 box-shadow: @arguments;
0118 }
0119 .box-sizing(@sizing: border-box) {
0120 -ms-box-sizing: @sizing;
0121 -moz-box-sizing: @sizing;
0122 -webkit-box-sizing: @sizing;
0123 box-sizing: @sizing;
0124 }
0125 .user-select(@argument: none) {
0126 -webkit-user-select: @argument;
0127 -moz-user-select: @argument;
0128 -ms-user-select: @argument;
0129 user-select: @argument;
0130 }
0131
0132 .grayscale(@argument: 100%) {
0133 -webkit-filter: grayscale(@argument);
0134 -moz-filter: grayscale(@argument);
0135 -ms-filter: grayscale(@argument);
0136 -o-filter: grayscale(@argument);
0137 filter: grayscale(@argument);
0138 }
0139
0140 .columns(@colwidth: 250px, @colcount: 0, @colgap: 50px, @columnRuleColor: #EEE, @columnRuleStyle: solid, @columnRuleWidth: 1px) {
0141 -moz-column-width: @colwidth;
0142 -moz-column-count: @colcount;
0143 -moz-column-gap: @colgap;
0144 -moz-column-rule-color: @columnRuleColor;
0145 -moz-column-rule-style: @columnRuleStyle;
0146 -moz-column-rule-width: @columnRuleWidth;
0147 -webkit-column-width: @colwidth;
0148 -webkit-column-count: @colcount;
0149 -webkit-column-gap: @colgap;
0150 -webkit-column-rule-color: @columnRuleColor;
0151 -webkit-column-rule-style: @columnRuleStyle;
0152 -webkit-column-rule-width: @columnRuleWidth;
0153 column-width: @colwidth;
0154 column-count: @colcount;
0155 column-gap: @colgap;
0156 column-rule-color: @columnRuleColor;
0157 column-rule-style: @columnRuleStyle;
0158 column-rule-width: @columnRuleWidth;
0159 }
0160 .translate(@x:0, @y:0) {
0161 .transform(translate(@x, @y));
0162 }
0163 .background-clip(@argument: padding-box) {
0164 -moz-background-clip: @argument;
0165 -webkit-background-clip: @argument;
0166 background-clip: @argument;
0167 }
0168
0169 /* /MIXINS */
0170
0171 /* COLORS */
0172
0173
0174 /* /COLORS */