source: resources/less/variables.less

Last change on this file was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 22 months ago
  • Initial commit;
  • Property mode set to 100644
File size: 8.6 KB
Line 
1@mainBgColor: #f8f8ff;
2@defaultBlueColor: #065eec;
3
4
5@topPaddingGradientLinks: 200px;
6@paragraphFontSize: 18px;
7@paddingBoxLeft: 40px;
8@basePaddingLR: 80px;
9@basePaddingLR-xs: 25px;
10@paddingLR-xs: 25px;
11@paddingLR-sm: 40px;
12
13/*COLORS*/
14/*Yellow*/
15@colorYellow: #FFCD1A;
16@colorYellowLight: #FFF1C0;
17
18/*Pink*/
19@colorPink: #FF7A95;
20@colorPinkLight: #F0C6FF;
21@colorPinkLighter: #FDA0B3;
22@colorPinkLightest: #FFE1E7;
23
24/*Blue*/
25@colorBlueDark: #13072B;
26@colorBlue: #0d6efd;
27@colorBlueLightest: #DEDEFF;
28
29/*Green*/
30@colorGreen: #17AD6E;
31@colorGreenLighter: #5ACF9E;
32@colorGreenLightest: #A8DCC6;
33
34/*Purple*/
35@colorPurpleDark: #6400A2;
36@colorPurple: #9607ED;
37@colorPurpleLighter: #CA8DE8;
38@colorPurpleLightest: #ECCCFF;
39
40/*CUSTOM NAVBAR*/
41.navWhite () {
42 /*nav {
43 &.navbar {
44 .nav-logo {
45 filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
46 }
47
48 .nav-link {
49 color: #FFF;
50 }
51
52 .navigation-right {
53 .dropdown {
54 .btn {
55 filter: none !important;
56 }
57 }
58 }
59 }
60 }*/
61}
62
63.navFullWhite () {
64 /*nav {
65 &.navbar {
66 .nav-logo {
67 filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
68 }
69
70 .nav-link {
71 color: #FFF;
72 }
73
74 .navigation-right {
75 .dropdown {
76 .btn {
77 filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
78 }
79 }
80 }
81 }
82 }*/
83}
84
85/*END OF CUSTOM NAVBAR*/
86
87
88/*#region main variables*/
89.transition (@prop: all, @time: 0.5s, @ease: cubic-bezier(0.77, 0, 0.175, 1)) {
90 -webkit-transition: @prop @time @ease;
91 -khtml-transition: @prop @time @ease;
92 -moz-transition: @prop @time @ease;
93 -ie-transition: @prop @time @ease;
94 -o-transition: @prop @time @ease;
95 -ms-transition: @prop @time @ease;
96 transition: @prop @time @ease;
97}
98
99.shadow (@shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.65)) {
100 -webkit-box-shadow: @shadow;
101 -khtml-box-shadow: @shadow;
102 -moz-box-shadow: @shadow;
103 -ie-box-shadow: @shadow;
104 -o-box-shadow: @shadow;
105 -ms-box-shadow: @shadow;
106 box-shadow: @shadow;
107}
108
109.user-select (@select: none) {
110 -webkit-user-select: @select;
111 -moz-user-select: @select;
112 -ms-user-select: @select;
113 user-select: @select;
114}
115
116.radius (@radius: 0) {
117 -webkit-border-radius: (@radius);
118 -khtml-border-radius: (@radius);
119 -moz-border-radius: (@radius);
120 -ie-border-radius: (@radius);
121 -o-border-radius: (@radius);
122 -ms-border-radius: (@radius);
123 border-radius: (@radius);
124}
125
126.border-top-radius(@radius) {
127 border-top-right-radius: @radius;
128 border-top-left-radius: @radius;
129}
130
131.border-right-radius(@radius) {
132 border-bottom-right-radius: @radius;
133 border-top-right-radius: @radius;
134}
135
136.border-bottom-radius(@radius) {
137 border-bottom-right-radius: @radius;
138 border-bottom-left-radius: @radius;
139}
140
141.border-left-radius(@radius) {
142 border-bottom-left-radius: @radius;
143 border-top-left-radius: @radius;
144}
145
146.rotate(@degrees) {
147 -webkit-transform: rotate(@degrees);
148 -ms-transform: rotate(@degrees);
149 transform: rotate(@degrees);
150}
151
152.scale(@ratio, @ratio-y) {
153 -webkit-transform: scale(@ratio, @ratio-y);
154 -ms-transform: scale(@ratio, @ratio-y);
155 transform: scale(@ratio, @ratio-y);
156}
157
158.translate(@x, @y) {
159 -webkit-transform: translate(@x, @y);
160 -ms-transform: translate(@x, @y);
161 transform: translate(@x, @y);
162}
163
164.skew(@x, @y) {
165 -webkit-transform: skew(@x, @y);
166 -ms-transform: skewX(@x) skewY(@y);
167 transform: skew(@x, @y);
168}
169
170.translate3d(@x, @y, @z) {
171 -webkit-transform: translate3d(@x, @y, @z);
172 transform: translate3d(@x, @y, @z);
173}
174
175.rotateX(@degrees) {
176 -webkit-transform: rotateX(@degrees);
177 -ms-transform: rotateX(@degrees);
178 transform: rotateX(@degrees);
179}
180
181.rotateY(@degrees) {
182 -webkit-transform: rotateY(@degrees);
183 -ms-transform: rotateY(@degrees);
184 transform: rotateY(@degrees);
185}
186
187.rotateZ(@degrees) {
188 -webkit-transform: rotateZ(@degrees);
189 -ms-transform: rotateZ(@degrees);
190 transform: rotateZ(@degrees);
191}
192
193
194.perspective(@perspective) {
195 -webkit-perspective: @perspective;
196 -moz-perspective: @perspective;
197 perspective: @perspective;
198}
199
200.perspective-origin(@perspective) {
201 -webkit-perspective-origin: @perspective;
202 -moz-perspective-origin: @perspective;
203 perspective-origin: @perspective;
204}
205
206.transform-origin(@origin) {
207 -webkit-transform-origin: @origin;
208 -moz-transform-origin: @origin;
209 -ms-transform-origin: @origin;
210 transform-origin: @origin;
211}
212
213.animation(@animation) {
214 -webkit-animation: @animation;
215 animation: @animation;
216}
217
218.animation-name(@name) {
219 -webkit-animation-name: @name;
220 animation-name: @name;
221}
222
223.animation-duration(@duration) {
224 -webkit-animation-duration: @duration;
225 animation-duration: @duration;
226}
227
228.animation-timing-function(@timing-function) {
229 -webkit-animation-timing-function: @timing-function;
230 animation-timing-function: @timing-function;
231}
232
233.animation-delay(@delay) {
234 -webkit-animation-delay: @delay;
235 animation-delay: @delay;
236}
237
238.animation-iteration-count(@iteration-count) {
239 -webkit-animation-iteration-count: @iteration-count;
240 animation-iteration-count: @iteration-count;
241}
242
243.animation-direction(@direction) {
244 -webkit-animation-direction: @direction;
245 animation-direction: @direction;
246}
247
248.opacity(@opacity) {
249 opacity: @opacity;
250 @opacity-ie: (@opacity * 100);
251 filter:~"alpha(opacity=@{opacity-ie})";
252}
253
254.gradient (@angle: 45deg, @color: #e5e5e5, @color2: #e5e5e5) {
255 background: @color;
256 /* Old browsers */
257 background: -moz-linear-gradient(@angle, @color 20%, @color2 100%);
258 background: -webkit-linear-gradient(@angle, @color 20%, @color2 100%);
259 background: linear-gradient(@angle, @color 20%, @color2 100%);
260}
261
262
263.clear {
264 clear: both;
265 content: '';
266 display: table;
267}
268
269
270/*#endregion main variables*/
271
272/*#region div templates*/
273
274.divBox (@bg: red, @padding: 20px, @textColor: black, @fsize: 12px, @align: left) {
275 background: @bg;
276 padding: @padding;
277 text-align: @align;
278
279 h1 {
280 color: (darken(@textColor, 20%));
281 font-size: ceil((@fsize * 2.6));
282 }
283
284 h2 {
285 color: (darken(@textColor, 10%));
286 font-size: ceil((@fsize * 1.7));
287 }
288
289 p {
290 color: @textColor;
291 font-size: @fsize;
292 text-align: @align;
293 }
294
295 &:hover {
296 background-color: (darken(@bg, 10%));
297 }
298}
299
300.divBoxLight (@bg, @padding, @textColor, @fsize, @align) {
301 background: @bg;
302 padding: @padding;
303 text-align: @align;
304
305 h1 {
306 color: (lighten(@textColor, 20%));
307 font-size: floor((@fsize * 2.6));
308 }
309
310 h2 {
311 color: (lighten(@textColor, 10%));
312 font-size: floor((@fsize * 1.7));
313 }
314
315 p {
316 color: @textColor;
317 font-size: @fsize;
318 text-align: @align;
319 }
320
321 &:hover {
322 background-color: (lighten(@bg, 10%));
323 }
324}
325
326
327
328
329/*#endregion div templates*/
330
331/*#region bootstrap-select*/
332@color-red-error: rgb(185, 74, 72);
333@color-grey-arrow: rgba(204, 204, 204, 0.2);
334
335@width-default: 220px; // 3 960px-grid columns
336
337@zindex-select-dropdown: 1060; // must be higher than a modal background (1050)
338/*#endregon bootstrap-select*/
339
340
341/*#region statusbar*/
342.fixedElement(@top, @right, @bottom, @left, @zindex) {
343 position: fixed;
344 top: @top;
345 right: @right;
346 bottom: @bottom;
347 left: @left;
348 z-index: @zindex;
349}
350
351.backgroundCover(@position, @size: cover) {
352 background-size: @size;
353 background-repeat: no-repeat;
354 background-position: @position;
355}
356
357.outline-btn(@color) {
358 border: 1px solid @color;
359 color: @color;
360 background-color: transparent;
361 .transition(all, 0.25s, linear);
362
363 a {
364 color: white;
365 }
366
367 &:hover {
368 background-color: @color;
369 color: white;
370 .transition(all, 0.25s, linear);
371 }
372}
373
374.linesNumber(@num) {
375 display: -webkit-box;
376 -webkit-line-clamp: @num;
377 -webkit-box-orient: vertical;
378}
379
380.download-links-color(@colorR, @colorG, @colorB) {
381
382 &:first-of-type {
383 background-color: rgba(@colorR, @colorG, @colorB, 0.95);
384
385 &:hover {
386 .transition;
387 background-color: rgba(@colorR, @colorG, @colorB, 0.65);
388 }
389 }
390
391 &:last-of-type {
392 background-color: rgba(@colorR, @colorG, @colorB, 0.6);
393
394 &:hover {
395 background-color: rgba(@colorR, @colorG, @colorB, 0.4);
396 }
397 }
398}
Note: See TracBrowser for help on using the repository browser.