|
@@ -15,31 +15,42 @@
|
15
|
15
|
<link rel="stylesheet" type="text/css" href="/asset/bootstrap/bootstrap-4.0.0-beta.css">
|
16
|
16
|
|
17
|
17
|
<style>
|
18
|
|
- /* code bellow will be generated by backend */
|
19
|
|
- .primaryColorFont { color: #7d4e24; }
|
20
|
|
- .primaryColorFontDarken { color: #572800; }
|
21
|
|
- .primaryColorFontLighten { color: #a3744a; }
|
|
18
|
+ <%
|
|
19
|
+ html_class = '.primaryColorFont{state}'
|
|
20
|
+ param = 'color'
|
|
21
|
+ color_change_value = 15
|
|
22
|
+ %>
|
|
23
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
24
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
25
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
|
26
|
+ <% html_class = '.primaryColorFont{state}Hover.hover' %>
|
|
27
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
28
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
29
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
22
|
30
|
|
23
|
|
- .primaryColorFontHover:hover { color: #7d4e24; }
|
24
|
|
- .primaryColorFontDarkenHover:hover { color: #572800; }
|
25
|
|
- .primaryColorFontLightenHover:hover { color: #a3744a; }
|
26
|
|
-
|
27
|
|
- .primaryColorBg { background-color: #7d4e24; }
|
28
|
|
- .primaryColorBgDarken { background-color: #572800; }
|
29
|
|
- .primaryColorBgLighten { background-color: #a3744a; }
|
30
|
|
-
|
31
|
|
- .primaryColorBgHover:hover { background-color: #7d4e24; }
|
32
|
|
- .primaryColorBgDarkenHover:hover { background-color: #572800; }
|
33
|
|
- .primaryColorBgLightenHover:hover { background-color: #a3744a; }
|
34
|
|
-
|
35
|
|
- .primaryColorBorder { border-color: #7d4e24; }
|
36
|
|
- .primaryColorBorderDarken { border-color: #572800; }
|
37
|
|
- .primaryColorBorderLighten { border-color: #a3744a; }
|
38
|
|
-
|
39
|
|
- .primaryColorBorderHover:hover { border-color: #7d4e24; }
|
40
|
|
- .primaryColorBorderDarkenHover:hover { border-color: #572800; }
|
41
|
|
- .primaryColorBorderLightenHover:hover { border-color: #a3744a; }
|
|
31
|
+ <%
|
|
32
|
+ html_class = '.primaryColorBg{state}'
|
|
33
|
+ param = 'background-color'
|
|
34
|
+ %>
|
|
35
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
36
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
37
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
|
38
|
+ <% html_class = '.primaryColorBg{state}Hover.hover'%>
|
|
39
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
40
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
41
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
42
|
42
|
|
|
43
|
+ <%
|
|
44
|
+ param = 'border-color'
|
|
45
|
+ html_class = '.primaryColorBorder{state}'
|
|
46
|
+ %>
|
|
47
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
48
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
49
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
|
50
|
+ <% html_class = '.primaryColorBorder{state}Hover.hover' %>
|
|
51
|
+ ${html_class.replace('{state}', '')} { ${param}: ${primary.hexcode}; }
|
|
52
|
+ ${html_class.replace('{state}', 'Darken')} { ${param}: ${primary.darken(color_change_value).hexcode}; }
|
|
53
|
+ ${html_class.replace('{state}', 'Lighten')} { ${param}: ${primary.brighten(color_change_value).hexcode}; }
|
43
|
54
|
</style>
|
44
|
55
|
</head>
|
45
|
56
|
|