0001-saumur-new-theme-69791.patch
static/saumur/_custom.scss | ||
---|---|---|
1 |
$logo-height: 140px; |
|
2 |
$banner-height: 300px; |
|
3 | ||
4 |
%button { |
|
5 |
box-shadow: none; |
|
6 |
text-transform: uppercase; |
|
7 |
&:hover { |
|
8 |
box-shadow: none; |
|
9 |
} |
|
10 |
} |
|
11 | ||
12 |
%title { |
|
13 |
text-transform: uppercase; |
|
14 |
} |
|
15 | ||
16 |
// golbal layout |
|
17 | ||
18 |
main { |
|
19 |
background: $gray-light-2; |
|
20 |
padding: $space-large 0; |
|
21 |
} |
|
22 | ||
23 | ||
24 |
// header and navigation |
|
25 | ||
26 |
#logo { |
|
27 |
@media screen and ($max-mobile-viewport) { |
|
28 |
padding: 0 $space-xsmall; |
|
29 |
|
|
30 |
} |
|
31 |
} |
|
32 | ||
33 |
#logo.has-logo a { |
|
34 |
z-index: 2; |
|
35 |
height: $logo-height / 2; |
|
36 |
min-width: $logo-height; |
|
37 |
@media screen and ($min-desktop-viewport) { |
|
38 |
height: $logo-height; |
|
39 |
min-width: $logo-height * 2; |
|
40 |
} |
|
41 |
} |
|
42 | ||
43 |
.site-nav { |
|
44 |
z-index: 101; |
|
45 |
} |
|
46 |
.gru-nav-wrapper { |
|
47 |
margin-top: -$logo-height * 0.85; |
|
48 |
} |
|
49 |
div#nav { |
|
50 |
text-transform: uppercase; |
|
51 |
} |
|
52 |
div.gru-nav { |
|
53 |
background: transparent; |
|
54 |
@media screen and ($min-desktop-viewport) { |
|
55 |
> ul { |
|
56 |
text-align: right; |
|
57 |
float: right; |
|
58 |
} |
|
59 |
} |
|
60 |
& > ul > li:first-child > a { |
|
61 |
border-radius: $border-radius-1; |
|
62 |
} |
|
63 |
& > ul > li a { |
|
64 |
font-weight: 500; |
|
65 |
} |
|
66 |
.menu--link { |
|
67 |
border-radius: $border-radius-1; |
|
68 |
|
|
69 |
} |
|
70 |
@media screen and ($max-mobile-viewport) { |
|
71 |
.gru-nav-button { |
|
72 |
top: $space-small; |
|
73 |
right: $space-small; |
|
74 |
left: unset; |
|
75 |
& + ul::before { |
|
76 |
display: none; |
|
77 |
} |
|
78 |
} |
|
79 |
&.togglable .menu { |
|
80 |
box-shadow: 0 9px 9px 0 rgba(0, 0, 0, 0.1); |
|
81 |
& > li { |
|
82 |
border-bottom: 1px solid $gray-light-3; |
|
83 |
} |
|
84 |
} |
|
85 |
} |
|
86 |
} |
|
87 | ||
88 |
#toplinks { |
|
89 |
@media screen and ($max-mobile-viewport) { |
|
90 |
margin-top: $space-small; |
|
91 |
margin-right: $nav-menu-side; |
|
92 |
background: transparent; |
|
93 |
} |
|
94 |
} |
|
95 | ||
96 |
// banner |
|
97 | ||
98 |
.banner { |
|
99 |
background-image: url(/assets/banner:background); |
|
100 |
background-size: cover; |
|
101 |
background-position: center; |
|
102 |
background-repeat: no-repeat; |
|
103 |
height: $banner-height / 1.5; |
|
104 |
@media screen and ($min-desktop-viewport) { |
|
105 |
height: $banner-height; |
|
106 |
} |
|
107 |
} |
|
108 |
// content and cells |
|
109 | ||
110 |
h1, h2, h3, h4, h5, h6 { |
|
111 |
@extend %title; |
|
112 |
} |
|
113 |
h1 { |
|
114 |
font-size: $fz-1; |
|
115 |
} |
|
116 |
h2 { |
|
117 |
font-size: $fz-2; |
|
118 |
} |
|
119 |
h3 { |
|
120 |
font-size: $fz-3; |
|
121 |
} |
|
122 | ||
123 |
.search-cell.transparent { |
|
124 |
border: none; |
|
125 |
background: transparent; |
|
126 |
form { |
|
127 |
padding: 0; |
|
128 |
} |
|
129 |
} |
|
130 | ||
131 | ||
132 |
#sidebar { |
|
133 |
div#rub_service div.category h3, |
|
134 |
div.a2-block h2, |
|
135 |
.block h2, |
|
136 |
div.links-list h2, |
|
137 |
div#services > ul > li > strong > a, |
|
138 |
div.textcell h2:first-child, |
|
139 |
div.cell h2:first-child { |
|
140 |
background-color: $gray-dark-1; |
|
141 |
color: $white; |
|
142 |
font-weight: 600; |
|
143 |
&::before { |
|
144 |
content: '\f054'; |
|
145 |
font-family: FontAwesome; |
|
146 |
margin-right: 0.6em; |
|
147 |
font-size: 0.6em; |
|
148 |
display: inline-block; |
|
149 |
vertical-align: middle; |
|
150 |
} |
|
151 |
} |
|
152 |
} |
|
153 | ||
154 |
%orange-border { |
|
155 |
content: " "; |
|
156 |
display: block; |
|
157 |
margin: $space-small auto; |
|
158 |
border-bottom: 3px solid $orange; |
|
159 |
} |
|
160 | ||
161 |
#columns-wrapper { |
|
162 |
div#rub_service div.category h3, |
|
163 |
div.a2-block h2, |
|
164 |
.block h2, |
|
165 |
div.links-list h2, |
|
166 |
div#services > ul > li > strong > a, |
|
167 |
div.textcell h2:first-child, |
|
168 |
div.cell:not(.has-asset-picture) h2:first-child { |
|
169 |
&::after { |
|
170 |
@extend %orange-border |
|
171 |
} |
|
172 |
} |
|
173 |
} |
|
174 | ||
175 |
.gru-content div.cell.has-asset-picture { |
|
176 |
& > div { |
|
177 |
position: relative; |
|
178 |
} |
|
179 |
h2:first-child { |
|
180 |
padding-left: $space-large * 1.75; |
|
181 |
width: 100%; |
|
182 |
} |
|
183 |
img { |
|
184 |
position: absolute; |
|
185 |
width: $space-large * 1.5; |
|
186 |
max-height: $space-large * 1.5; |
|
187 |
top: $space-xsmall; |
|
188 |
left: $space-small; |
|
189 |
} |
|
190 |
&.foldable:not(.folded) picture::after { |
|
191 |
@extend %orange-border; |
|
192 |
margin: 0 1rem; |
|
193 |
} |
|
194 |
&:not(.foldable) picture::after { |
|
195 |
@extend %orange-border; |
|
196 |
margin: 0 1rem; |
|
197 |
} |
|
198 |
} |
|
199 | ||
200 |
// forms |
|
201 |
.form-content, .form-content--sidebox, .form-content--body { |
|
202 |
@extend %cell; |
|
203 |
} |
|
204 | ||
205 |
.form-previous { |
|
206 |
&::before { |
|
207 |
content: '\f100'; |
|
208 |
font-family: FontAwesome; |
|
209 |
margin-right: 0.6em; |
|
210 |
font-size: 0.6em; |
|
211 |
display: inline-block; |
|
212 |
vertical-align: middle; |
|
213 |
} |
|
214 |
} |
|
215 |
.form-next { |
|
216 |
&::after { |
|
217 |
content: '\f101'; |
|
218 |
font-family: FontAwesome; |
|
219 |
margin-left: 0.6em; |
|
220 |
font-size: 0.6em; |
|
221 |
display: inline-block; |
|
222 |
vertical-align: middle; |
|
223 |
} |
|
224 |
} |
|
225 | ||
226 |
// footer |
|
227 |
#footer-wrapper { |
|
228 |
margin-top: 0; |
|
229 |
} |
|
230 |
footer { |
|
231 |
text-align: center; |
|
232 |
} |
static/saumur/_vars.scss | ||
---|---|---|
1 |
$orange: #EA5625; |
|
2 |
$pink: #F4A7A8; |
|
3 |
$light-green: #C5DED1; |
|
4 |
$black: black; |
|
5 |
$white: white; |
|
6 | ||
7 | ||
8 |
// $carbon: #222222; |
|
9 |
// $white: #ffffff; |
|
10 |
// $epicea: #5d7b84; |
|
11 | ||
12 |
// $gray-secondary: #666666; |
|
13 |
$gray-light-1: #EEEEEE; |
|
14 |
$gray-light-2: #EAECE8; |
|
15 |
$gray-light-3: #A9A9A9; |
|
16 |
$gray-dark-1: #596E80; |
|
17 | ||
18 |
$primary-color: $orange; |
|
19 | ||
20 |
$space-xsmall: 0.25em; |
|
21 |
$space-small: 0.5em; |
|
22 |
$space-medium: 1em; |
|
23 |
$space-large: 2em; |
|
24 |
$space-xlarge: 3em; |
|
25 | ||
26 |
$border-radius-1: 15px; |
|
27 | ||
28 |
// // typo |
|
29 |
$font-color: $black; |
|
30 |
$font-family: Manrope, sans-serif; |
|
31 |
$font-size: 18px; |
|
32 |
$font-line-height: 1.4; |
|
33 |
$base-font: 16; |
|
34 |
$fz-1: 30em / $base-font; |
|
35 |
$fz-2: 24em / $base-font; |
|
36 |
$fz-3: 21em / $base-font; |
|
37 |
$fz-4: 18em / $base-font; |
|
38 |
$fz-small: 14em / $base-font; |
|
39 |
$fz-xsmall: 12em / $base-font;; |
|
40 |
$fz-xxsmall: 11em / $base-font;; |
|
41 | ||
42 |
$width: 1200px; |
|
43 |
$link-color: inherit; |
|
44 |
$link-decoration: underline; |
|
45 |
$link-hover-decoration: none; |
|
46 | ||
47 |
$responsive-menu: left-to-right; |
|
48 |
$nav-button-background: $white; |
|
49 |
$nav-button-color: $black; |
|
50 | ||
51 |
$nav-mobile-menu-background: $white; |
|
52 | ||
53 |
$nav-item-selected-background: $orange; |
|
54 |
$nav-item-selected-color: $white; |
|
55 | ||
56 |
$nav-item-hover-background: $white; |
|
57 |
$nav-item-hover-color: $orange; |
|
58 |
$nav-item-hover-border: 1px solid $orange; |
|
59 | ||
60 |
$nav-submenu-background: $orange; |
|
61 |
$nav-submenu-color: $white; |
|
62 | ||
63 |
$toplinks-border-radius: 0; |
|
64 |
$toplinks-background: transparent; |
|
65 |
$toplinks-box-shadow: none; |
|
66 |
$toplinks-padding: $space-medium; |
|
67 |
$toplinks-border: none; |
|
68 | ||
69 |
$cell-border: 1px solid $gray-dark-1; |
|
70 |
$cell-entry-border: 2px dotted $gray-dark-1; |
|
71 |
$cell-title-cover-border: false; |
|
72 |
$title-color: $gray-dark-1; |
|
73 |
$title-transform: uppercase; |
|
74 | ||
75 |
$button-background: $light-green; |
|
76 |
$button-color: $gray-dark-1; |
|
77 |
$button-border-radius: $border-radius-1; |
|
78 |
$button-box-shadow: none; |
|
79 |
$button-hover-background: $orange; |
|
80 |
$button-hover-color: $white; |
|
81 |
$button-focus-outline: 2px solid $orange; |
|
82 |
$button-focus-outline-offset: 2px; |
|
83 |
$buttons-order: previous, cancel (grow), submit; |
|
84 | ||
85 |
$widget-background: $gray-light-1; |
|
86 |
$widget-border: 1px solid $gray-dark-1; |
|
87 |
$widget-focus-border: 1px solid $orange; |
|
88 |
$widget-focus-background: $white; |
|
89 | ||
90 |
$footer-background: $orange; |
|
91 |
$footer-color: $white; |
|
92 |
$footer-link-color: $white; |
static/saumur/config.json | ||
---|---|---|
1 |
{ |
|
2 |
"label": "Saumur Agglomération", |
|
3 |
"variables": { |
|
4 |
"theme_color": "#EA5625" |
|
5 |
}, |
|
6 |
"settings": { |
|
7 |
"combo": { |
|
8 |
"COMBO_ASSET_SLOTS.update": { |
|
9 |
"header:logo": { "label": "Têtière : logo" }, |
|
10 |
"banner:background": {"label": "Bannière : image de fond"} |
|
11 |
} |
|
12 |
} |
|
13 |
} |
|
14 |
} |
static/saumur/style.scss | ||
---|---|---|
1 |
@charset "UTF-8"; |
|
2 |
@import '../includes/fonts/manrope'; |
|
3 | ||
4 |
@import 'vars'; |
|
5 |
@import '../includes/publik'; |
|
6 |
@import 'custom'; |
templates/variants/saumur/combo/page_template.html | ||
---|---|---|
1 |
{% extends 'combo/page_template.html' %} |
|
2 |
{% load assets combo i18n %} |
|
3 | ||
4 |
{% block before-main-content %} |
|
5 |
{{ block.super }} |
|
6 |
{% get_asset "banner:background" as banner_background %} |
|
7 |
{% if banner_background %} |
|
8 |
<div class="banner"></div> |
|
9 |
{% endif %} |
|
10 |
{% endblock %} |
|
0 |
- |