0001-new-theme-braine-l-alleud-53844.patch
static/braine-l-alleud/_custom.scss | ||
---|---|---|
1 |
#header #top #logo a { |
|
2 |
height: 100px; |
|
3 |
line-height: 100px; |
|
4 |
color: $primary-color; |
|
5 |
text-transform: uppercase; |
|
6 |
font-weight: normal; |
|
7 |
} |
|
8 | ||
9 |
#nav-wrapper { |
|
10 |
background: $nav-background; |
|
11 |
border-top: 1px solid #EAEAEA; |
|
12 |
border-bottom: 1px solid #EAEAEA; |
|
13 |
margin-bottom: 10px; |
|
14 |
div#nav > ul > li > a { |
|
15 |
border-radius: $border-radius; |
|
16 |
} |
|
17 |
} |
|
18 | ||
19 |
@media screen and ($max-mobile-viewport) { |
|
20 |
#header #top #logo a { |
|
21 |
display: block; |
|
22 |
height: 75px; |
|
23 |
overflow: hidden; |
|
24 |
} |
|
25 |
} |
|
26 | ||
27 |
.dashboard-cell-icons .remove-from-dashboard { |
|
28 |
display: inline-block; |
|
29 |
height: 20px; |
|
30 |
width: 20px; |
|
31 |
background: blue; |
|
32 |
} |
|
33 | ||
34 |
.dashboard-cell-icons .add-to-dashboard { |
|
35 |
display: inline-block; |
|
36 |
height: 20px; |
|
37 |
width: 20px; |
|
38 |
background: green; |
|
39 |
} |
static/braine-l-alleud/_vars.scss | ||
---|---|---|
1 |
$primary-color: #018B9D; |
|
2 | ||
3 |
$width: 1160px; |
|
4 |
$font-color: #666; |
|
5 |
$font-size: 0.938em; |
|
6 |
$nav-background: #fafafa; |
|
7 |
$nav-submenu-background: #eee; |
|
8 |
$nav-submenu-color: #333; |
|
9 |
$nav-color: $font-color; |
|
10 |
$nav-active-color: $primary-color; |
|
11 |
$nav-item-selected-color: white; |
|
12 |
$nav-item-hover-color: white; |
|
13 |
$border-radius: 4px; |
|
14 |
$button-background: $primary-color; |
|
15 |
$title-background: $primary-color; |
|
16 |
$title-color: white; |
|
17 |
$nav-mobile-mode: bottom-bar; |
|
18 | ||
19 |
$cell-image-position: top; |
|
20 |
$cell-image-padding: none; |
static/braine-l-alleud/config.json | ||
---|---|---|
1 |
{ |
|
2 |
"label": "Braine l'Alleud", |
|
3 |
"variables": { |
|
4 |
"theme_color": "#018B9D" |
|
5 |
}, |
|
6 |
"settings": { |
|
7 |
"combo": { |
|
8 |
"COMBO_ASSET_SLOTS.update": { |
|
9 |
"header:background": { "label": "Têtière : fond" }, |
|
10 |
"header:logo": { "label": "Têtière : logo" } |
|
11 |
}, |
|
12 |
"JSON_CELL_TYPES.update": { |
|
13 |
"activite-favorite": { |
|
14 |
"url": "https://perso.entrouvert.org/~nroche/contenu.json", |
|
15 |
"name": "Activité favorite", |
|
16 |
"cache_duration": 0, |
|
17 |
"force_async": true, |
|
18 |
"form": [{"varname": "activite", "type": "string", "label": "Activité"}] |
|
19 |
} |
|
20 |
} |
|
21 |
} |
|
22 |
} |
|
23 |
} |
|
24 |
static/braine-l-alleud/style.scss | ||
---|---|---|
1 |
@charset "UTF-8"; |
|
2 | ||
3 |
@import 'vars'; |
|
4 |
@import '../includes/publik'; |
|
5 |
@import 'custom'; |
templates/variants/braine-l-alleud/combo/json/activite-favorite.html | ||
---|---|---|
1 |
{% include "combo/dashboard_cell_icons.html" %} |
|
2 |
{% load dashboard %} |
|
3 | ||
4 |
<h2> |
|
5 |
Activité {{ activite }} |
|
6 |
</h2 |
|
7 |
{% if not in_dashboard %}> |
|
8 |
{% with tile=cell|as_dashboard_cell:request.user %} |
|
9 |
{% if tile %} |
|
10 |
(suivie) |
|
11 |
{% else %} |
|
12 |
(non suivie) |
|
13 |
{% endif %} |
|
14 |
{% endwith %} |
|
15 |
{% else %} |
|
16 |
<div> |
|
17 |
<ul> |
|
18 |
{% for content in json.data %} |
|
19 |
<li> |
|
20 |
<a href="{{ content.url }}"> |
|
21 |
{{ content.title }} |
|
22 |
</a> |
|
23 |
</li> |
|
24 |
{% endfor %} |
|
25 |
</ul> |
|
26 |
</div> |
|
27 |
{% endif %} |
|
0 |
- |