1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | @theme: @@element;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | @import "@{themesFolder}/default/globals/site.variables";
|
17 |
|
18 |
|
19 | @import (optional) "@{themesFolder}/@{site}/globals/site.variables";
|
20 |
|
21 |
|
22 | & when not (@theme = 'default') {
|
23 | @import (optional) "@{themesFolder}/@{theme}/globals/site.variables";
|
24 | }
|
25 |
|
26 |
|
27 | @import (optional) "@{siteFolder}/globals/site.variables";
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | @import "@{themesFolder}/default/@{type}s/@{element}.variables";
|
36 |
|
37 |
|
38 | @import (optional) "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
|
39 |
|
40 |
|
41 | @import (optional) "@{siteFolder}/@{type}s/@{element}.variables";
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | @import "@{themesFolder}/default/globals/colors.less";
|
50 |
|
51 |
|
52 | @import (optional) "@{themesFolder}/@{site}/globals/colors.less";
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | .loadFonts() when (@importGoogleFonts) {
|
64 | @import (css) url('@{googleProtocol}fonts.googleapis.com/css2?family=@{googleFontRequest}');
|
65 | }
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | .loadUIOverrides() {
|
72 | & when not (@theme = 'default') {
|
73 | @import (optional) "@{themesFolder}/default/@{type}s/@{element}.overrides";
|
74 | }
|
75 | @import (optional) "@{themesFolder}/@{theme}/@{type}s/@{element}.overrides";
|
76 | @import (optional) "@{siteFolder}/@{type}s/@{element}.overrides";
|
77 | }
|