0001-gers-cd32-simplify-as-a-native-theme-47562.patch
static/gers-cd32/_custom.scss | ||
---|---|---|
1 | 1 |
@import '../includes/fonts/montserrat'; |
2 | 2 | |
3 |
@mixin form-icon($content) { |
|
4 |
content: $content; |
|
5 |
font-family: FontAwesome; |
|
6 |
} |
|
3 |
$header-height: 400px; |
|
4 |
$mobile-header-height: 230px; |
|
7 | 5 | |
8 |
div#header-pre { |
|
9 |
display: flex; |
|
10 |
flex-direction: row-reverse; |
|
11 |
@media screen and (max-width: $my-tablet-limit) { |
|
12 |
flex-direction: column; |
|
6 |
$header-border-height: 80px; |
|
7 |
$mobile-header-border-height: $nav-menu-side; |
|
8 | ||
9 |
body.has-header-background { |
|
10 |
.site-header { |
|
11 |
background: none; |
|
13 | 12 |
} |
14 | 13 |
} |
15 | 14 | |
16 |
div#bandeau { |
|
17 |
width: calc(100% - 610px); |
|
18 |
@media screen and (max-width: $my-tablet-limit) { |
|
19 |
width: 100%; |
|
15 |
#header-wrapper { |
|
16 |
background: url(/assets/header:background) center no-repeat; |
|
17 |
@media screen and ($min-desktop-viewport) { |
|
18 |
height: $header-height; |
|
19 |
border-top: $header-border-height solid $primary-color; |
|
20 | 20 |
} |
21 |
> img { |
|
22 |
display: block; |
|
23 |
height: auto; |
|
24 |
max-width: 100%; |
|
25 |
width: 100%; |
|
21 |
@media screen and ($max-mobile-viewport) { |
|
22 |
height: $mobile-header-height; |
|
23 |
border-top: $mobile-header-border-height solid $primary-color; |
|
24 |
background-size: cover; |
|
26 | 25 |
} |
27 | 26 |
} |
28 | 27 | |
29 |
div#contenu { |
|
30 |
box-sizing: content-box; |
|
31 |
display: flex; |
|
32 |
flex-direction: column; |
|
33 |
justify-content: space-between; |
|
34 |
width: 550px; |
|
35 |
max-width: 550px; |
|
36 |
padding: 60px 0 0 60px; |
|
37 |
div#logo-ville img { |
|
38 |
width: 294; |
|
39 |
height: 83; |
|
40 |
} |
|
41 |
@media screen and (max-width: $my-tablet-limit) { |
|
42 |
width: unset; |
|
43 |
max-width: unset; |
|
44 |
padding: 14px 0 0 20px; |
|
45 |
div#logo-ville { |
|
46 |
flex-grow: 1; |
|
47 |
img { |
|
48 |
width: 200px; |
|
49 |
height: 56.45px; |
|
50 |
} |
|
51 |
} |
|
28 |
#header #top #logo { |
|
29 |
position: absolute; |
|
30 |
line-height: 1em; |
|
31 |
margin-top: 10px; |
|
32 |
padding-left: 0; |
|
33 |
@media screen and ($min-desktop-viewport) { |
|
34 |
top: -$header-border-height; |
|
52 | 35 |
} |
53 |
@media screen and (max-width: $my-mobile-limit) { |
|
54 |
padding-top: 17px; |
|
55 |
div#logo-ville img { |
|
56 |
width: 130px; |
|
57 |
height: 36.7px; |
|
58 |
} |
|
36 |
@media screen and ($max-mobile-viewport) { |
|
37 |
top: -$mobile-header-border-height; |
|
59 | 38 |
} |
60 |
div#contenu-top { |
|
61 |
display: flex; |
|
62 |
flex-direction: column; |
|
63 |
justify-content: space-between; |
|
64 |
height: 195px; |
|
65 |
@media screen and (max-width: $my-tablet-limit) { |
|
66 |
flex-direction: row; |
|
67 |
flex-grow: 1; |
|
68 |
height: 60px; |
|
69 |
} |
|
70 |
@media screen and (max-width: $my-mobile-limit) { |
|
71 |
flex-grow: 0; |
|
72 |
} |
|
73 |
div#demarches { |
|
74 |
display: flex; |
|
75 |
flex-direction: row; |
|
76 |
justify-content: space-between; |
|
77 |
color: white; |
|
78 |
width: auto; |
|
79 |
padding: 23px 35px 23px 35px; |
|
80 |
background-color: $primary-color; |
|
81 |
span.gru-icon::after { |
|
82 |
@include form-icon("\f046"); |
|
83 |
font-size: 1rem; |
|
84 |
font-weight: 400; |
|
85 |
} |
|
86 |
@media screen and (max-width: $my-tablet-limit) { |
|
87 |
flex-grow: 2; |
|
88 |
padding-top: 0.8em; |
|
89 |
margin-bottom: 10px; |
|
90 |
} |
|
91 |
@media screen and (max-width: $my-mobile-limit) { |
|
92 |
flex-grow: 0; |
|
93 |
width: 0px; |
|
94 |
padding-left: 20px; |
|
95 |
margin-right: $nav-place-holder-width; |
|
96 |
span:first-child { |
|
97 |
display: none; |
|
98 |
} |
|
99 |
} |
|
39 |
a { |
|
40 |
color: $secondary-color; |
|
41 |
@media screen and ($min-desktop-viewport) { |
|
42 |
text-indent: 150px; |
|
100 | 43 |
} |
101 |
div#nav-place-holder { |
|
102 |
display: none; |
|
103 |
width: $nav-place-holder-width; |
|
104 |
@media screen and (max-width: $my-tablet-limit) { |
|
105 |
flex-grow: 1; |
|
106 |
display: inherit; |
|
107 |
} |
|
108 |
@media screen and (max-width: $my-mobile-limit) { |
|
109 |
flex-grow: 0; |
|
110 |
display: none; |
|
111 |
} |
|
112 |
} |
|
113 |
} |
|
114 |
.logged-in, .login { |
|
115 |
display: flex; |
|
116 |
flex-direction: row; |
|
117 |
justify-content: flex-end; |
|
118 |
font-size: 0.8rem; |
|
119 |
font-weight: 300; |
|
120 |
padding-top: 2em; |
|
121 |
padding-bottom: 74px; |
|
122 |
padding-right: 50px; |
|
123 |
@media screen and (max-width: $my-tablet-limit) { |
|
124 |
padding: 0.8em 8px 0.8em; |
|
44 |
@media screen and ($max-mobile-viewport) { |
|
45 |
text-indent: -10000px; |
|
125 | 46 |
} |
126 | 47 |
} |
127 | 48 |
} |
128 | 49 | |
129 |
span.connected-user { |
|
130 |
text-transform: uppercase; |
|
131 |
font-weight: bold; |
|
132 |
padding: 0 12px 0 4px; |
|
133 |
font-weight: 600; |
|
134 |
} |
|
135 |
a.account::after { |
|
136 |
@include form-icon("\f013"); |
|
137 |
font-size: 0.95rem; |
|
138 |
color: black; |
|
139 |
border-style: solid; |
|
140 |
border-width: 0 0 0 1px; |
|
141 |
padding: 0 7px 0 7px; |
|
142 |
border-color: black |
|
143 |
} |
|
144 |
a.logout::after { |
|
145 |
@include form-icon("\f011"); |
|
146 |
font-size: 0.95rem; |
|
147 |
border-style: solid; |
|
148 |
border-width: 0 0 0 1px; |
|
149 |
padding: 0 7px 0 7px; |
|
150 |
border-color: black |
|
50 |
#toplinks { |
|
51 |
top: -$header-border-height; |
|
52 |
background: transparent; |
|
53 |
@media screen and ($max-mobile-viewport) { |
|
54 |
top: -$header-border-height; |
|
55 |
display: none; |
|
56 |
} |
|
57 |
a { |
|
58 |
color: white; |
|
59 |
} |
|
151 | 60 |
} |
152 | 61 | |
153 |
h1#logo { |
|
154 |
display: none; |
|
155 |
} |
|
156 |
body.has-picture nav::after { |
|
157 |
display: none; |
|
158 |
} |
|
159 |
div#nav-wrapper { |
|
160 |
position: absolute; |
|
161 |
top: 135px; |
|
162 |
right: 15px; |
|
62 |
#nav-wrapper { |
|
63 |
@media screen and ($max-mobile-viewport) { |
|
64 |
margin: 0; |
|
65 |
position: absolute; |
|
66 |
right: 0; |
|
67 |
top: $header-border-height; |
|
68 |
z-index: 1; |
|
69 |
} |
|
163 | 70 |
button { |
164 | 71 |
position: absolute; |
165 |
right: 4rem; |
|
166 |
font-size: 0.7rem; |
|
167 |
font-weight: 400; |
|
168 |
padding-left: 50px; |
|
169 |
color: $tertiary-color; |
|
170 |
background: white; |
|
171 |
@media screen and (max-width: $my-tablet-limit) { |
|
172 |
top: -70px; |
|
173 |
right: 40px; |
|
174 |
} |
|
175 |
@media screen and (max-width: $my-mobile-limit) { |
|
176 |
right: 0; |
|
177 |
} |
|
178 |
span.icon-bar { |
|
179 |
border: 2px solid $nav-button-color; |
|
180 |
} |
|
72 |
top: -$header-border-height; |
|
73 |
right: 0; |
|
181 | 74 |
} |
182 |
button::after { |
|
183 |
content: "Menu"; |
|
184 |
display: block; |
|
185 |
@media screen and (max-width: $my-mobile-limit) {
|
|
186 |
display: none;
|
|
187 |
}
|
|
75 |
} |
|
76 | ||
77 |
div#nav { |
|
78 |
margin-top: -15px;
|
|
79 |
ul {
|
|
80 |
margin-top: 0;
|
|
188 | 81 |
} |
189 |
#nav > ul { |
|
190 |
border-top: none; |
|
191 |
position: relative; |
|
192 |
top: $nav-menu-side; |
|
193 |
a { |
|
194 |
color: white; |
|
195 |
} |
|
82 |
ul ul > li a:not(:hover) { |
|
83 |
color: $tertiary-color; |
|
84 |
} |
|
85 |
} |
|
86 | ||
87 |
#nav-wrapper ul { |
|
88 |
border: none; |
|
89 |
li:last-child { |
|
90 |
border: none |
|
196 | 91 |
} |
197 | 92 |
} |
198 | 93 | |
199 |
div#header-post { |
|
200 |
font-weight: 900; |
|
201 |
font-size: 2.25rem; |
|
202 |
line-height: 1; |
|
203 |
text-align: center; |
|
204 |
background-color: $secondary-color; |
|
205 |
padding: 64px 0 70px 0; |
|
206 |
margin-bottom: 45px; |
|
94 |
div.cell.foldable.folded > div > h2:first-child + picture { |
|
95 |
display: block; |
|
96 |
} |
|
97 | ||
98 |
#sidebar { |
|
99 |
box-shadow: 3px 3px 20px 0px #dedede; |
|
100 |
margin-right: 2.5em; |
|
101 |
} |
|
102 | ||
103 |
@mixin form-icon($content) { |
|
104 |
content: $content; |
|
105 |
font-family: FontAwesome; |
|
207 | 106 |
} |
208 | 107 | |
209 | 108 |
div#footer-wrapper { |
210 | 109 |
padding: 66px 0 73px; |
211 | 110 |
} |
212 | 111 |
div#footer { |
213 | 112 |
border-color: #fff; |
214 | 113 |
max-width: 1320px; |
static/gers-cd32/_vars.scss | ||
---|---|---|
2 | 2 |
$secondary-color: #f4f4f4; |
3 | 3 |
$tertiary-color: #0f183b; |
4 | 4 | |
5 | 5 |
$border-radius: 3px; |
6 | 6 |
$font-size: 1.25em; |
7 | 7 |
$font-family: Montserrat, sans-serif; |
8 | 8 |
$link-color: $primary-color; |
9 | 9 | |
10 |
$my-tablet-limit: 1279px; |
|
11 | 10 |
$my-mobile-limit: 796px; |
12 |
$nav-place-holder-width: 80px; |
|
13 | 11 | |
14 |
$nav-mobile-limit: 50000px; |
|
15 |
$nav-button-color: $tertiary-color; |
|
16 |
$nav-button-background: $tertiary-color; |
|
17 |
$nav-mobile-menu-background: $tertiary-color; |
|
12 |
$nav-background: $secondary-color; |
|
13 |
$nav-color: $tertiary-color; |
|
14 |
$nav-full-width-background: true; |
|
15 |
$nav-button-background: $primary-color; |
|
16 |
$nav-item-selected-background: $primary-color; |
|
17 |
//$nav-mobile-menu-color: white; |
|
18 | 18 |
$nav-item-hover-background: $primary-color; |
19 |
$nav-border-color: transparent; |
|
20 |
$nav-menu-side: 36px; |
|
19 |
$nav-menu-side: 60px; |
|
21 | 20 | |
22 | 21 |
$cell-border: none; |
23 | 22 |
$cell-entry-hover-background: transparent; |
24 | 23 | |
25 | 24 |
$title-transform: uppercase; |
26 | 25 |
$title-font-size: 1.4rem; |
27 | 26 |
$title-weight: bold; |
28 | 27 |
$title-padding: 0.7rem 0rem; |
static/gers-cd32/config.json | ||
---|---|---|
1 | 1 |
{ |
2 | 2 |
"label": "Gers (CD32)", |
3 | 3 |
"variables": { |
4 |
"include_top_links": false,
|
|
4 |
"logo_link_url": "/",
|
|
5 | 5 |
"theme_color": "#ae2217" |
6 |
}, |
|
7 |
"settings": { |
|
8 |
"combo": { |
|
9 |
"COMBO_ASSET_SLOTS.update": { |
|
10 |
"header:background": { "label": "Têtière : fond" }, |
|
11 |
"header:logo": { "label": "Têtière : logo" } |
|
12 |
} |
|
13 |
} |
|
6 | 14 |
} |
7 | 15 |
} |
templates/variants/gers-cd32/combo/page_template.html | ||
---|---|---|
1 |
{% extends "combo/page_template.html" %} |
|
2 |
{% load combo %} |
|
3 | ||
4 |
{% block user-info %} |
|
5 |
{% skeleton_extra_placeholder user-info %} |
|
6 |
{% if user.is_authenticated %} |
|
7 | ||
8 |
<span class="logged-in"> |
|
9 |
Bonjour |
|
10 |
<span class="connected-user">{{user.first_name}} {{user.last_name}}</span> |
|
11 |
{% if idp_account_url %} |
|
12 |
<a class="account" href="{{idp_account_url}}" title="Accéder à mon compte"></a> |
|
13 |
{% endif %} |
|
14 |
<a class="logout" href="{% url 'auth_logout' %}" title="Se déconnecter"></a> |
|
15 |
</span> |
|
16 | ||
17 |
{% else %} |
|
18 | ||
19 |
{% if idp_registration_url %} |
|
20 |
<span class="login"> |
|
21 |
<a accesskey="2" href="{% url 'auth_login' %}">Connexion</a> |
|
22 |
<span class="sep">/</span> |
|
23 |
<a class="registration" href="{{idp_registration_url}}">Inscription</a> |
|
24 |
</span> |
|
25 |
{% else %} |
|
26 |
<span class="login"><a accesskey="2" href="{% url 'auth_login' %}">Connexion <span class="sep">/</span> Inscription</a></span> |
|
27 |
{% endif %} |
|
28 | ||
29 |
{% endif %} |
|
30 |
{% end_skeleton_extra_placeholder %} |
|
31 |
{% endblock %} |
templates/variants/gers-cd32/theme.html | ||
---|---|---|
1 |
{% extends "theme.html" %} |
|
2 |
{% load static %} |
|
3 | ||
4 |
{% block header-pre %} |
|
5 |
<div id="header-pre"> |
|
6 |
<div id="contenu"> |
|
7 |
<div id="contenu-top"> |
|
8 |
<div id="logo-ville"> |
|
9 |
<a href="{{website_url}}"> |
|
10 |
<img src="{{ site_base }}{% static 'gers-cd32/img/logo.png' %}"/> |
|
11 |
</a> |
|
12 |
</div> |
|
13 |
<div id="demarches"><span>Mes Démarches</span><span class="gru-icon"/></div> |
|
14 |
<div id="nav-place-holder"></div> |
|
15 |
</div> |
|
16 |
{% block user-info %} |
|
17 |
{% endblock %} |
|
18 |
</div> <!-- contenu --> |
|
19 |
<div id="bandeau"> |
|
20 |
{% if page.picture %} |
|
21 |
<img src="{{site_base}}{{page.picture.url}}"/> |
|
22 |
{% else %} |
|
23 |
<img src="{{site_base}}{% static 'gers-cd32/img/csm_defaultImage.png' %}"/> |
|
24 |
{% endif %} |
|
25 |
</div> |
|
26 |
</div> |
|
27 |
{% endblock %} |
|
28 | ||
29 |
{% block header-post %} |
|
30 |
{% if page.title %} |
|
31 |
<div id="header-post"> |
|
32 |
{{page.title}} |
|
33 |
</div> |
|
34 |
{% endif %} |
|
35 |
{% endblock %} |
|
36 |
- |