Projet

Général

Profil

0001-add-cantal-theme-60441.patch

Paul Marillonnet, 19 janvier 2022 15:05

Télécharger (6,92 ko)

Voir les différences:

Subject: [PATCH] add cantal theme (#60441)

 static/cantal/_custom.scss    |  62 ++++++++++++++++++++++++++++++++++
 static/cantal/_vars.scss      |  59 ++++++++++++++++++++++++++++++++
 static/cantal/config.json     |  14 ++++++++
 static/cantal/img/favicon.png | Bin 0 -> 1511 bytes
 static/cantal/style.scss      |   6 ++++
 5 files changed, 141 insertions(+)
 create mode 100644 static/cantal/_custom.scss
 create mode 100644 static/cantal/_vars.scss
 create mode 100644 static/cantal/config.json
 create mode 100644 static/cantal/img/favicon.png
 create mode 100644 static/cantal/style.scss
static/cantal/_custom.scss
1
@media screen and (min-width: $nav-mobile-limit + 1) {
2
	div#toplinks {
3
		right: 8em;
4
	}
5

  
6
	div#header h1#logo.has-logo a {
7
			min-height: 70px;
8
	}
9
}
10

  
11
div#nav {
12
	@media screen and (max-width: $nav-mobile-limit) {
13
		padding-top: 20px;
14
	}
15
	@media screen and (min-width: $nav-mobile-limit + 1) {
16
		margin-top: 10px;
17
		margin-bottom: 10px;
18
		display: grid;
19
		justify-content: center;
20
		ul {
21
			li a {
22
				line-height: 300%;
23
				text-transform: uppercase;
24
			}
25
			margin-top: 0px;
26
			margin-bottom: 0px;
27
		}
28
	 a:hover {
29
			text-decoration: underline;
30
			text-decoration-color: black;
31
			text-decoration-thickness: 2px;
32
			text-underline-position: under;
33
		}
34
	}
35
}
36

  
37
div#main-content-wrapper {
38
	max-width: 1260px;
39
}
40

  
41
.gru-content div.link-list-cell,
42
.gru-content div.link-list-cell.has-asset-picture > div picture img,
43
.gru-content div.wcsformsofcategorycell,
44
.gru-content div.wcsformsofcategorycell.has-asset-picture > div picture img,
45
.gru-content div.wcsformsofcategorycell.has-asset-picture > div > h2:first-child {
46
	border-radius: 20px;
47
	@media screen and (max-width: $nav-mobile-limit) {
48
		width: 100%;
49
	}
50
}
51

  
52
div#footer-wrapper {
53
	color: white;
54
	h1, h2, h3, h4, h5, h6 {
55
		color: black;
56
		background: $primary-color;
57
	}
58
	a:hover {
59
		color: $primary-color-focus;
60
		background: white;
61
	}
62
}
static/cantal/_vars.scss
1
$primary-color: #DD3333;
2
$primary-color-focus: #B12929;
3

  
4
$font-color: #676767;
5
$font-family: "Raleway", "Open Sans", sans-serif;
6
$link-color: $primary-color-focus;
7
$border-radius: 0;
8
$mobile-limit: 900px;
9
$width: 100%;
10

  
11
$nav-background: $primary-color;
12
$nav-submenu-background: $primary-color-focus;
13
$nav-submenu-color: white;
14
$nav-color: white;
15
$nav-active-color: $primary-color-focus;
16
$nav-item-selected-color: white;
17
$nav-item-selected-background: $primary-color-focus;
18
$nav-item-hover-color: $primary-color-focus;
19
$nav-item-hover-background: white;
20

  
21
$button-background: $primary-color;
22
$button-border-radius: 0px;
23
$button-hover-background: $primary-color-focus;
24

  
25
$notification_warning_color: #F3E8A9;
26
$notification_success_color: #abc600;
27
$notification_info_color: #e4e4de;
28
$notification_error_color: #cc3333;
29

  
30
$sidebar-position: left;
31
$sidebar-width: 275px;
32

  
33
$title-weight: bold;
34
$title-transform: uppercase;
35
$title-font-size: 30px;
36
$title-color: $primary-color-focus;
37
$title-border-radius: 20px;
38

  
39
$cell-title-cover-border: false;
40
$cell-entry-color: $font-color;
41
$cell-entry-hover-color: #444444;
42
$cell-entry-hover-background: #f8f8f8;
43
$cell-border-bottom: 1px solid #dd3333;
44
$cell-border-radius: 2px;
45
$cell-image-position: top;
46
$cell-image-padding: none;
47

  
48
$widget-border: 1px solid #cccccc;
49
$widget-border-radius: 2px;
50

  
51
$footer-background: $primary-color;
52
$footer-color: #000000;
53
$footer-link-color: #CCCCCC;
54
$footer-menucell-separator: none;
55

  
56
$wcs-step-current-background: #f8f8f8;
57
$wcs-step-current-border: 1px solid #dd3333;
58
$wcs-step_color: grey;
59
$wcs-step-border-bottom: 1px solid grey;
static/cantal/config.json
1
{
2
  "label": "Cantal (CD15)",
3
  "variables": {
4
    "favicon": "cantal/img/favicon.png",
5
    "theme_color": "#dd3333"
6
  },
7
  "settings": {
8
    "combo": {
9
      "COMBO_ASSET_SLOTS.update": {
10
        "header:logo": { "label": "Têtière : logo" }
11
      }
12
    }
13
  }
14
}
static/cantal/style.scss
1
@charset "UTF-8";
2

  
3
@import '../includes/fonts/raleway';
4
@import 'vars';
5
@import '../includes/publik';
6
@import 'custom';
0
-