0001-nimes-create-theme-67991.patch
static/nimes/_custom.scss | ||
---|---|---|
1 |
// Header |
|
2 |
#toplinks a { |
|
3 |
@extend %inverted-button; |
|
4 |
border-color: white; |
|
5 |
padding: 0.2rem 0.5rem; |
|
6 |
margin-right: 0.5rem; |
|
7 | ||
8 |
&:hover { |
|
9 |
box-shadow: none; |
|
10 |
} |
|
11 |
} |
|
12 | ||
13 |
div#nav { |
|
14 |
margin-bottom: 10px; |
|
15 | ||
16 |
> ul { |
|
17 |
margin: 0; |
|
18 |
> li { |
|
19 |
a { |
|
20 |
font-weight: normal; |
|
21 |
} |
|
22 | ||
23 |
> a { |
|
24 |
padding: 1.2em 20px; |
|
25 |
} |
|
26 | ||
27 |
> ul { |
|
28 |
box-shadow: 0px 4px 12px 0px $gray-dark; |
|
29 |
border-radius: $nav-border-radius; |
|
30 | ||
31 |
> li { |
|
32 |
> a { |
|
33 |
display: flex; |
|
34 |
font-size: $fz-small; |
|
35 |
padding: 0.2em 20px; |
|
36 | ||
37 |
&:hover { |
|
38 |
font-weight: 700; |
|
39 |
} |
|
40 | ||
41 |
&::before { |
|
42 |
content: '>'; |
|
43 |
font-size: $fz-xsmall; |
|
44 |
margin-right: 0.5rem; |
|
45 |
} |
|
46 |
} |
|
47 | ||
48 |
&:first-child > a { |
|
49 |
border-radius: $nav-border-radius $nav-border-radius 0 0; |
|
50 |
} |
|
51 |
} |
|
52 |
} |
|
53 |
} |
|
54 |
} |
|
55 |
} |
|
56 | ||
57 |
@media ($max-mobile-viewport) { |
|
58 |
#logo.has-logo { |
|
59 |
padding-left: 0; |
|
60 |
a { |
|
61 |
margin-top: 50px; |
|
62 |
margin-bottom: 20px; |
|
63 |
} |
|
64 |
} |
|
65 | ||
66 |
div#nav { |
|
67 |
.gru-nav-button { |
|
68 |
top: -75px; |
|
69 |
} |
|
70 | ||
71 |
> ul > li > ul { |
|
72 |
box-shadow: none; |
|
73 |
} |
|
74 |
} |
|
75 |
} |
|
76 | ||
77 |
// |
|
78 |
// CONTENT |
|
79 |
// |
|
80 |
%cell { |
|
81 |
box-shadow: $box-shadow; |
|
82 |
} |
|
83 | ||
84 |
// red corner on some cells |
|
85 |
.gru-content #columns { |
|
86 |
div.cell > div > h2:first-child, |
|
87 |
.form-content--title, |
|
88 |
.a2-block, |
|
89 |
.block h2 { |
|
90 |
position: relative; |
|
91 |
overflow: hidden; |
|
92 |
&::before { |
|
93 |
content: ""; |
|
94 |
position:absolute; |
|
95 |
width:50px; |
|
96 |
height:50px; |
|
97 |
transform:rotate(45deg); |
|
98 |
background-color: $red; |
|
99 |
top: -25px; |
|
100 |
left: -25px; |
|
101 |
} |
|
102 |
} |
|
103 |
} |
|
104 | ||
105 |
.form-content--body, .form-content--title { |
|
106 |
border: 1px solid $red; |
|
107 |
} |
|
108 | ||
109 |
.gru-content #sidebar div.cell, |
|
110 |
div#gauche |
|
111 |
{ |
|
112 |
background: $gray-xlight; |
|
113 |
} |
|
114 | ||
115 |
div.cell.foldable > div > h2:first-child::after { |
|
116 |
color: $red; |
|
117 |
font-size: $fz-3; |
|
118 |
right: 10px; |
|
119 |
top: 10px; |
|
120 |
} |
|
121 | ||
122 | ||
123 |
%button { |
|
124 |
box-shadow: none; |
|
125 |
&:hover { |
|
126 |
box-shadow: $box-shadow; |
|
127 |
} |
|
128 |
} |
|
129 | ||
130 |
%cancel-button { |
|
131 |
background-color: $red; |
|
132 |
color: white; |
|
133 | ||
134 |
&:hover { |
|
135 |
background-color: $red; |
|
136 |
color: white; |
|
137 |
} |
|
138 |
} |
|
139 | ||
140 |
// |
|
141 |
// FOOTER |
|
142 |
// |
|
143 |
div#footer { |
|
144 |
div.links-list ul > li > a:hover { |
|
145 |
text-decoration: underline; |
|
146 |
background: transparent; |
|
147 |
} |
|
148 | ||
149 |
div.link-cell { |
|
150 |
&.pk-button, |
|
151 |
&.pk-big-button { |
|
152 |
ul > li > a { |
|
153 |
background: transparent; |
|
154 |
border-color: white; |
|
155 |
&:hover { |
|
156 |
box-shadow: none; |
|
157 |
} |
|
158 |
} |
|
159 |
} |
|
160 |
} |
|
161 |
} |
|
162 | ||
163 |
// |
|
164 |
// FIXES |
|
165 |
// |
|
166 | ||
167 |
// Hard-coded color on links description |
|
168 |
%cell-links-list { |
|
169 |
li div.description { |
|
170 |
color: $font-color; |
|
171 |
} |
|
172 |
} |
|
173 | ||
174 |
// h1 and h2 have no padding in text cells |
|
175 |
div.text-cell { |
|
176 |
h1, h2 { |
|
177 |
margin: 0.7rem 1rem; |
|
178 |
} |
|
179 |
} |
|
180 | ||
181 |
// picture of foldable cell still visible when folded |
|
182 |
div.cell.folded > div > picture { |
|
183 |
display: none; |
|
184 |
} |
|
185 | ||
186 |
// no padding in wcsformcell |
|
187 |
div.wcs-form-cell { |
|
188 |
padding: 1rem; |
|
189 |
} |
|
190 | ||
191 |
// double border on pk-button cells |
|
192 |
div.linkcell{ |
|
193 |
&.pk-button, |
|
194 |
&.pk-big-button { |
|
195 |
border: none; |
|
196 |
} |
|
197 |
} |
static/nimes/_vars.scss | ||
---|---|---|
1 |
$red: #c51012; |
|
2 |
$red-dark: #890b0c; |
|
3 |
$gray-xdark: #323232; |
|
4 |
$gray-dark: #656565; |
|
5 |
$gray: #dddddd; |
|
6 |
$gray-light: #e7e7e7; |
|
7 |
$gray-xlight: #eeeeee; |
|
8 | ||
9 |
$primary-color: $red; |
|
10 |
$box-shadow: 3px 3px 6px 0px $gray; |
|
11 | ||
12 |
// typo |
|
13 |
$base-font: 16; |
|
14 |
$font-color: #333; |
|
15 | ||
16 |
$fz-1: 30em / $base-font; |
|
17 |
$fz-2: 24em / $base-font; |
|
18 |
$fz-3: 21em / $base-font; |
|
19 |
$fz-4: 18em / $base-font; |
|
20 |
$fz-small: 14em / $base-font; |
|
21 |
$fz-xsmall: 11em / $base-font; |
|
22 | ||
23 |
$link-color: $primary-color; |
|
24 |
$link-decoration: underline; |
|
25 |
$font-family: 'Liberation Sans', sans-serif; |
|
26 | ||
27 |
$header-background-color: $primary-color; |
|
28 |
$header-logo-size: 260px 73px; |
|
29 |
$toplinks-background: $primary-color; |
|
30 |
$toplinks-box-shadow: none; |
|
31 |
$toplinks-padding: 20px 0 0 0; |
|
32 |
$toplinks-border: none; |
|
33 | ||
34 |
$nav-active-background: $gray-light; |
|
35 |
$nav-border-radius: 0; |
|
36 |
$nav-color: $font-color; |
|
37 |
$nav-item-hover-background: $gray-light; |
|
38 |
$nav-item-hover-color: $font-color; |
|
39 |
$nav-item-selected-background: $gray-light; |
|
40 |
$nav-item-selected-color: $font-color; |
|
41 |
$nav-submenu-background: $gray; |
|
42 |
$nav-submenu-color: $font-color; |
|
43 |
$nav-button-background: $red; |
|
44 |
$nav-border-color: transparent; |
|
45 | ||
46 |
$cell-border: 1px solid $red; |
|
47 |
$cell-border-radius: 0; |
|
48 |
$cell-color: inherit !default; |
|
49 |
$cell-entry-border: 1px solid $gray; |
|
50 |
$cell-entry-hover-background: $red-dark; |
|
51 |
$cell-entry-hover-color: white; |
|
52 |
$cell-open-foldable-icon: "\f13A"; |
|
53 |
$cell-close-foldable-icon: "\f139"; |
|
54 |
$cell-image-padding: 0rem 0.1rem; |
|
55 | ||
56 |
$title-background: transparent; |
|
57 |
$title-transform: uppercase; |
|
58 |
$title-font-size: $fz-4; |
|
59 |
$title-weight: 600; |
|
60 |
$title-padding: .7rem 1rem .7rem 35px; |
|
61 | ||
62 |
$button-color: $red; |
|
63 |
$button-background: white; |
|
64 |
$button-border: 1px solid $red !default; |
|
65 |
$buttons-order: previous, cancel (grow), submit; |
|
66 | ||
67 |
$widget-background: white; |
|
68 |
$widget-border: 1px solid $gray-dark; |
|
69 |
$widget-border-radius: 0.5rem; |
|
70 |
$widget-focus-border: 1px solid $gray-dark; |
|
71 |
$widget-focus-outline: none; |
|
72 |
$widget-box-shadow: none; |
|
73 |
$widget-focus-box-shadow: $box-shadow; |
|
74 | ||
75 |
$wcs-step-color: $font-color; |
|
76 | ||
77 |
$carrousel-item-mask-color: transparent; |
|
78 | ||
79 |
$footer-background: $gray-xdark; |
|
80 |
$footer-link-color: white; |
static/nimes/config.json | ||
---|---|---|
1 |
{ |
|
2 |
"label": "Nîmes", |
|
3 |
"variables": { |
|
4 |
"theme_color": "#c51012" |
|
5 |
}, |
|
6 |
"settings": { |
|
7 |
"combo": { |
|
8 |
"COMBO_ASSET_SLOTS.update": { |
|
9 |
"header:logo": { "label": "Têtière : logo" }, |
|
10 |
"emails:logo": { "label": "Courriels : logo" } |
|
11 |
} |
|
12 |
} |
|
13 |
} |
|
14 |
} |
static/nimes/style.scss | ||
---|---|---|
1 |
@charset "UTF-8"; |
|
2 | ||
3 |
@import 'vars'; |
|
4 |
@import '../includes/publik'; |
|
5 |
@import 'custom'; |
|
0 |
- |