2 * Common definition for theme
3 * 'config.less' in each theme must include this file.
6 @font_size_default: 36px; // Default unit font size. DO NOT USE THIS VALUE IN WIDGET CSS!
7 @rem_base: (1rem/@font_size_default);
9 @em_base: 1em/@font_size_default; // WARNING: Don't use em unit! This value is to be removed.
12 @unit_base: @rem_base;
14 @font_family: Helvetica, Arial, sans-serif;
16 /******************************
17 z-index order collection
18 ******************************/
19 @z_base_maximum: 2147483647;
21 @z_base_header_footer: 1000;
22 @z_base_smallpopup: @z_base_header_footer + 100;
23 @z_base_popup: @z_base_smallpopup + 100;
24 @z_base_tickernoti: @z_base_maximum - 100;
27 /******************************
28 Global LESS mixin collection
29 ******************************/
31 // Mixin : background ************************
32 .LESSbackground-img-with-gradient(@from: top, @startcolor: #3c3c3c, @endcolor: #111) {
33 background-image: -webkit-gradient(linear, left top, left bottom, from(@startcolor), to(@endcolor)); /* Saf4+, Chrome */
34 background-image: -webkit-linear-gradient(@from, @startcolor, @endcolor);
35 background-image: -moz-linear-gradient(@from, @startcolor, @endcolor);
36 background-image: -ms-linear-gradient(@from, @startcolor, @endcolor);
37 background-image: -o-linear-gradient(@from, @startcolor, @endcolor);
38 background-image: linear-gradient(@from, @startcolor, @endcolor);
41 .LESSbackground-with-gradient(@from: top, @startcolor: #3c3c3c, @endcolor: #5c5c5c) {
42 background: @startcolor;
43 background: -webkit-linear-gradient(@from, @startcolor 0%, @endcolor 100%);
44 background: -moz-linear-gradient(@from, @startcolor 0%, @endcolor 100%);
45 background: -ms-linear-gradient(@from, @startcolor 0%, @endcolor 100%);
46 background: -o-linear-gradient(@from, @startcolor 0%, @endcolor 100%);
47 background: linear-gradient(@from, @startcolor 0%, @endcolor 100%);
50 .LESSbackground-size(@width, @height) {
51 -ms-background-size: @width @height;
52 -moz-background-size: @width @height;
53 -o-background-size: @width @height;
54 -webkit-background-size: @width @height;
55 background-size: @width @height;
58 // Mixin : border ***************************
59 .LESSborder-image(@url:url, @width:width, @height:height, @repeat:repeat) {
60 -moz-border-image: url(@url) @width @height @repeat;
61 -webkit-border-image: url(@url) @width @height @repeat;
62 -o-border-image: url(@url) @width @height @repeat;
63 -ms-border-image: url(@url) @width @height @repeat;
64 border-image: url(@url) @width @height @repeat;
66 .LESSborder-radius-topleft(@radius) {
67 -moz-border-radius-topleft: @radius;
68 -webkit-border-top-left-radius: @radius;
69 border-top-left-radius: @radius;
71 .LESSborder-radius-topright(@radius) {
72 -moz-border-radius-topright: @radius;
73 -webkit-border-top-right-radius: @radius;
74 border-top-right-radius: @radius;
76 .LESSborder-radius-bottomleft(@radius) {
77 -moz-border-radius-bottomleft: @radius;
78 -webkit-border-bottom-left-radius: @radius;
79 border-bottom-left-radius: @radius;
81 .LESSborder-radius-bottomright(@radius) {
82 -moz-border-radius-bottomright: @radius;
83 -webkit-border-bottom-right-radius: @radius;
84 border-bottom-right-radius: @radius;
86 .LESSborder-radius-all(@radius) {
87 -o-border-radius: @radius;
88 -ms-border-radius: @radius;
89 -moz-border-radius: @radius;
90 -webkit-border-radius: @radius;
91 border-radius: @radius;
94 // Mixin : box ***************************
95 .LESSbox-shadow(@hshadow, @vshadow, @blur, @color) {
96 -o-box-shadow: @hshadow @vshadow @blur @color;
97 -ms-box-shadow: @hshadow @vshadow @blur @color;
98 -moz-box-shadow: @hshadow @vshadow @blur @color;
99 -webkit-box-shadow: @hshadow @vshadow @blur @color;
100 box-shadow: @hshadow @vshadow @blur @color;
107 //position: vertical, horizental
108 .LESSbox-orient(@position) {
109 -ms-box-orient: @position;
110 -moz-box-orient: @position;
111 -o-box-orient: @position;
112 -webkit-box-orient: @position;
113 box-orient: @position;
116 //position: start, center, end
117 .LESSbox-pack(@position) {
118 -ms-box-pack: @position;
119 -moz-box-pack: @position;
120 -o-box-pack: @position;
121 -webkit-box-pack: @position;
125 //position: start, center, end
126 .LESSbox-align(@position) {
127 -ms-box-align: @position;
128 -moz-box-align: @position;
129 -o-box-align: @position;
130 -webkit-box-align: @position;
131 box-align: @position;
134 // Mixin : Utility ************************************
135 //CAUTION!!! - you MUST call this function inside of your winset structure.
136 //DO NOT CALL GLOBALLY!!
137 .LESSclear-btn-basic-setting() {
139 .LESSborder-radius-all(0);
146 background: transparent;
151 background: transparent;
156 background: transparent;
162 .LESStransform(@method) {
164 -ms-transform: @method;
165 -moz-transform: @method;
166 -webkit-transform: @method;
167 -o-transform: @method;
170 // Mixin : text ellipsis
171 .LESStext-ellipsis() {
173 text-overflow: ellipsis;
174 -o-text-overflow: ellipsis;
175 overflow: hidden !important;
178 .LESStext-no-ellipsis() {
180 overflow: visible !important;