0001-cap-atlantique-new-theme-56126.patch
static/cap-atlantique/_custom.scss | ||
---|---|---|
1 |
// |
|
2 |
// Typo |
|
3 |
// |
|
4 |
h1 { |
|
5 |
color: $blue-dark; |
|
6 |
font-size: 2.5em; |
|
7 |
background-color: transparent; |
|
8 | ||
9 |
} |
|
10 |
h2 { |
|
11 |
color: $blue; |
|
12 |
font-size: 1.5em; |
|
13 |
} |
|
14 | ||
15 |
// |
|
16 |
// header |
|
17 |
// |
|
18 |
div#header { |
|
19 |
padding-top: $columns-gutter; |
|
20 |
padding-bottom: $columns-gutter / 2; |
|
21 |
@media ($max-mobile-viewport) { |
|
22 |
padding-top: $columns-gutter / 2; |
|
23 |
padding-bottom: $columns-gutter / 4; |
|
24 |
} |
|
25 |
} |
|
26 |
h1#logo { |
|
27 |
@media ($max-mobile-viewport) { |
|
28 |
padding-left: 0; |
|
29 |
} |
|
30 |
&.has-logo a { |
|
31 |
width: 260px; |
|
32 |
height: 80px; |
|
33 |
@media ($min-desktop-viewport) { |
|
34 |
width: 400px; |
|
35 |
height: 90px; |
|
36 |
} |
|
37 |
} |
|
38 |
} |
|
39 | ||
40 |
// |
|
41 |
// NAV |
|
42 |
// user-infos block is child of #nav-wrapper |
|
43 |
// |
|
44 |
#nav-wrapper { |
|
45 |
position: relative; |
|
46 |
display: flex; |
|
47 |
margin-top: 0; |
|
48 |
} |
|
49 | ||
50 |
div#nav { |
|
51 |
margin-left: 0; |
|
52 |
flex-grow: 1; |
|
53 |
@media ($min-desktop-viewport) { |
|
54 |
margin-right: $columns-gutter; |
|
55 |
} |
|
56 |
@media (min-width: $width) { |
|
57 |
margin-left: calc(50vw - #{$width / 2}); |
|
58 |
} |
|
59 |
> ul { |
|
60 |
margin: 0; |
|
61 |
border-top: none; |
|
62 | ||
63 |
@media (max-width: $mobile-limit) { |
|
64 |
position: absolute; |
|
65 |
z-index: 1; |
|
66 |
width: 100vw; |
|
67 |
} |
|
68 |
} |
|
69 |
} |
|
70 | ||
71 |
#toplinks { |
|
72 |
// reset |
|
73 |
background: none; |
|
74 |
box-shadow: none; |
|
75 |
border: none; |
|
76 |
border-radius: 0; |
|
77 |
position: static; |
|
78 |
padding: 0; |
|
79 | ||
80 |
> span::before { |
|
81 |
content: "\f007"; |
|
82 |
font-family: fontawesome, sans-serif; |
|
83 |
align-self: center; |
|
84 |
color: $blue; |
|
85 |
padding-left: .66em; |
|
86 |
} |
|
87 | ||
88 |
&, & > span { |
|
89 |
display: flex; |
|
90 |
align-items: center; |
|
91 |
} |
|
92 |
& > span { |
|
93 |
flex-wrap: wrap; |
|
94 |
} |
|
95 |
a { |
|
96 |
align-items: center; |
|
97 |
padding: .75em .66em; |
|
98 |
color: white; |
|
99 |
font-weight: bold; |
|
100 | ||
101 |
&.logout { |
|
102 |
font-weight: normal; |
|
103 |
} |
|
104 |
} |
|
105 |
.sep { |
|
106 |
color: $blue; |
|
107 |
} |
|
108 |
} |
|
109 | ||
110 |
// |
|
111 |
// MAIN |
|
112 |
// |
|
113 |
#content { |
|
114 |
margin-top: $columns-gutter; |
|
115 |
} |
|
116 | ||
117 |
.page-header { |
|
118 |
margin: 0 0.7rem; |
|
119 |
text-align: center; |
|
120 |
} |
|
121 | ||
122 | ||
123 |
// |
|
124 |
// CELLS |
|
125 |
// |
|
126 |
.list-of-forms-cell { |
|
127 |
.gru-content &.cell { |
|
128 |
margin-bottom: $columns-gutter; |
|
129 |
border: none; |
|
130 |
h2:first-child { |
|
131 |
background-color: transparent; |
|
132 |
text-align: center; |
|
133 |
padding-right: 3rem; |
|
134 |
text-transform: uppercase; |
|
135 |
&::after { |
|
136 |
line-height: 0.6em; |
|
137 |
font-size: 2em; |
|
138 |
color: $blue; |
|
139 |
right: 1rem; |
|
140 |
} |
|
141 |
} |
|
142 |
&.has-asset-picture picture { |
|
143 |
display: block; |
|
144 |
text-align: center; |
|
145 |
border-bottom: 1px solid $cell-entry-border-color; |
|
146 |
img { |
|
147 |
display: inline-block; |
|
148 |
} |
|
149 |
} |
|
150 |
} |
|
151 |
} |
|
152 | ||
153 |
.wcs-forms-of-category-cell { |
|
154 |
@extend .list-of-forms-cell; |
|
155 |
} |
|
156 | ||
157 |
// |
|
158 |
// WCS / FORMS |
|
159 |
// |
|
160 | ||
161 |
.orange-btn { |
|
162 |
&, &:hover { |
|
163 |
@extend %button; |
|
164 |
background-color: $orange; |
|
165 |
} |
|
166 |
} |
|
167 | ||
168 |
div#rub_service { |
|
169 |
h2 { |
|
170 |
@extend h1; |
|
171 |
padding-left: 0.5rem; |
|
172 |
padding-top: 0; |
|
173 |
} |
|
174 | ||
175 |
h3 { |
|
176 |
@extend h2; |
|
177 |
padding-left: 0; |
|
178 | ||
179 |
} |
|
180 |
.submit-button button { |
|
181 |
@extend .orange-btn; |
|
182 |
} |
|
183 |
} |
|
184 | ||
185 |
// |
|
186 |
// NEUTRAL TPL |
|
187 |
// |
|
188 |
.page-template-neutral { |
|
189 |
#top, |
|
190 |
#nav > * { |
|
191 |
display: none; |
|
192 |
} |
|
193 |
h1, h2 { |
|
194 |
color: $gray-dark; |
|
195 |
} |
|
196 |
div.gru-nav-wrapper, |
|
197 |
#footer-wrapper { |
|
198 |
background: $gray-dark !important; |
|
199 |
} |
|
200 |
div.gru-content button { |
|
201 |
background-color: $gray-dark; |
|
202 |
color: white; |
|
203 |
&:hover { |
|
204 |
background-color: black; |
|
205 |
} |
|
206 |
} |
|
207 |
#toplinks { |
|
208 |
> span::before, |
|
209 |
.sep { |
|
210 |
color: $gray-light; |
|
211 |
} |
|
212 |
} |
|
213 |
// cell titles |
|
214 |
div#rub_service div.category h3, |
|
215 |
.gru-content div.a2-block h2, |
|
216 |
.gru-content .block h2, |
|
217 |
div.links-list h2, |
|
218 |
div#services > ul > li > strong > a, |
|
219 |
.gru-content div.textcell h2:first-child, |
|
220 |
.gru-content div.cell h2:first-child { |
|
221 |
background-color: $gray-dark; |
|
222 |
color: white; |
|
223 |
} |
|
224 |
} |
static/cap-atlantique/_vars.scss | ||
---|---|---|
1 |
// colors |
|
2 |
$blue: #00b6d8; |
|
3 |
$blue-dark: #006889; |
|
4 |
$orange: #fa8e2f; |
|
5 |
$brown: #b6600a; |
|
6 |
$gray-light: #f0f0f0; |
|
7 |
$gray-dark: #555; |
|
8 | ||
9 |
// Core vars$ |
|
10 |
$font-family: ubuntu, sans-serif; |
|
11 |
$font-color: #222; |
|
12 |
$primary-color: $blue; |
|
13 |
$link-color: $blue-dark; |
|
14 | ||
15 |
$width: 1280px; |
|
16 |
$mobile-limit: 1024px; |
|
17 |
$very-small-limit: 560px; |
|
18 |
$columns-gutter: 40px; |
|
19 |
$sidebar-columns-gutter: 60px; |
|
20 | ||
21 |
$nav-full-width-background: true; |
|
22 |
$nav-background: $blue-dark !important; |
|
23 |
$nav-color: white; |
|
24 |
$nav-active-color: $blue; |
|
25 |
$nav-button-background: transparent; |
|
26 |
$nav-mobile-menu-background: $nav-background; |
|
27 |
$nav-mobile-menu-item-color: $nav-color; |
|
28 | ||
29 |
$title-background: $blue; |
|
30 |
$title-weight: bold; |
|
31 | ||
32 |
$button-background: $blue; |
|
33 |
$button-color: black; |
|
34 | ||
35 |
$widget-background: $gray-light; |
|
36 |
$widget-border: 1px solid transparent; |
|
37 |
$widget-focus-border: 1px solid $font-color; |
|
38 |
$widget-unique-checkbox-position: left; |
|
39 | ||
40 |
$wcs-step-current-color: $brown; |
|
41 | ||
42 |
$footer-background: #005f83; |
|
43 |
$footer-link-color: $orange; |
static/cap-atlantique/config.json | ||
---|---|---|
1 |
{ |
|
2 |
"label": "Cap Atlantique", |
|
3 |
"variables": { |
|
4 |
"pwa_display": "standalone", |
|
5 |
"theme_color": "#00b6d8", |
|
6 |
"email_header_asset": "emails:logo" |
|
7 |
}, |
|
8 |
"settings": { |
|
9 |
"combo": { |
|
10 |
"COMBO_ASSET_SLOTS.update": { |
|
11 |
"header:logo": { "label": "Têtière : logo" }, |
|
12 |
"emails:logo": {"label": "Emails : logo"} |
|
13 |
}, |
|
14 |
"COMBO_PUBLIC_TEMPLATES.update": { |
|
15 |
"neutral": { |
|
16 |
"name": "Une colonne - Neutre", |
|
17 |
"template": "combo/page_template_neutral.html" |
|
18 |
} |
|
19 |
} |
|
20 |
} |
|
21 |
} |
|
22 |
} |
static/cap-atlantique/style.scss | ||
---|---|---|
1 |
@charset "UTF-8"; |
|
2 |
@import '../includes/fonts/ubuntu'; |
|
3 | ||
4 |
@import 'vars'; |
|
5 |
@import '../includes/publik'; |
|
6 |
@import 'custom'; |
templates/variants/cap-atlantique/combo/page_template.html | ||
---|---|---|
1 |
{% extends "combo/page_template.html" %} |
|
2 | ||
3 |
{# move user infos block #} |
|
4 |
{% block top-links %} |
|
5 |
{% endblock %} |
|
6 |
{% block nav-post %} |
|
7 |
{% include 'includes/user-info.html' %} |
|
8 |
{% endblock %} |
|
9 | ||
10 |
{# add page header placeholder #} |
|
11 |
{% block content-pre %} |
|
12 |
<div class="page-header"> |
|
13 |
{% placeholder "page-header" name="Entête de la page" %} |
|
14 |
</div> |
|
15 |
{% endblock %} |
templates/variants/cap-atlantique/combo/page_template_neutral.html | ||
---|---|---|
1 |
{% extends "combo/page_template.html" %} |
|
2 | ||
0 |
- |