Projet

Général

Profil

0001-angouleme-create-theme-65079.patch

Corentin Séchet, 24 mai 2022 15:49

Télécharger (6,25 ko)

Voir les différences:

Subject: [PATCH] angouleme: create theme (#65079)

 static/angouleme/_custom.scss | 158 ++++++++++++++++++++++++++++++++++
 static/angouleme/_vars.scss   |  77 +++++++++++++++++
 static/angouleme/config.json  |  18 ++++
 static/angouleme/style.scss   |   6 ++
 4 files changed, 259 insertions(+)
 create mode 100644 static/angouleme/_custom.scss
 create mode 100644 static/angouleme/_vars.scss
 create mode 100644 static/angouleme/config.json
 create mode 100644 static/angouleme/style.scss
static/angouleme/_custom.scss
1
ul {
2
	margin: 0;
3
}
4

  
5
div#header {
6
	display: flex;
7
	justify-content: center;
8
	div#top {
9
		display: flex;
10
		flex-direction: column;
11
		justify-content: center;
12
		height: $header-height;
13
	}
14

  
15
	div#toplinks a {
16
		@extend %button;
17
		border-radius: 20px 10px 10px 0;
18
		margin-top: 0.5rem;
19
		padding: 0.3rem 0.4rem;
20
		margin-right: 0.5rem;
21

  
22
		@media ($min-desktop-viewport) {
23
			margin-top: 1rem;
24
			padding: 0.5rem 0.8rem;
25
			&::before {
26
				font-family: FontAwesome;
27
				margin-right: 0.5rem;
28
			}
29

  
30
			&.login-link::before, &.account-link::before {
31
				content: '\f007';
32
			}
33

  
34
			&.registration::before {
35
				content: '\f234';
36
			}
37

  
38
			&.logout::before {
39
				content: '\f08b';
40
			}
41
		}
42
	}
43
}
44

  
45
div.gru-nav ul li a {
46
	font-size: $nav-font-size;
47
	text-transform: uppercase;
48
	font-weight: normal;
49
}
50

  
51
@media ($min-desktop-viewport) {
52
	.site-nav {
53
		position: sticky;
54
		top: $nav-height;
55
		margin-bottom: -$nav-height;
56
		z-index: 200;
57

  
58
		.gru-nav-wrapper {
59
			position: relative;
60
			top: -$nav-height;
61
			
62
			.gru-nav > ul {
63
				display: flex;
64

  
65
				> li a {
66
					display: flex;
67
					border-right: 1px solid white;
68
					height: $nav-height;
69
					padding: 0 20px;
70
					> span {
71
						margin: auto;
72
					}
73
				}
74
			}
75
		}
76
	}
77
}
78

  
79
div#main-content-wrapper {
80
	margin-top: 2rem;
81
}
82

  
83
div#footer{
84
	display:flex;
85
	flex-direction: row;
86
	a {
87
		text-decoration: underline;
88
	}
89
	@media ($min-desktop-viewport) {
90
		&::before {
91
			margin: 1rem 2rem;
92
			content: url(/assets/footer:logo);
93
		}
94
	}
95
}
96

  
97
%cell-links-list {
98
	li > a {
99
		border-left: 0 solid $primary-color;
100
		transition: border-width 200ms;
101
		&:hover {
102
			border-left-width: 5px;
103
		}
104
	}
105
	ul li a {
106
		text-decoration: underline;
107
	}
108
}
109

  
110
%button {
111
   box-shadow: none; 
112
   transition: none;
113
   &:hover {
114
		box-shadow: none;
115
   }
116
}
117

  
118
%cancel-button {
119
	background: $orange;
120
}
121

  
122
%title {
123
	a {
124
		color: white;
125
	}
126
}
127

  
128
.form-content--title {
129
	background: transparent;
130
	border-bottom: 2px solid $primary-color;
131
	color: $gray;
132
	font-size: $fz-1;
133
}
134

  
135
div.cell.has-asset-picture {
136
	position: relative;
137
	z-index: 0;
138
	h2:first-child {
139
		padding-left: 4rem;
140
	}
141
	picture {
142
		width: 4rem;
143
		height: 4rem;
144
		position: absolute;
145
		top: 0;
146
	}
147
}
148

  
149
@media ($max-mobile-viewport) {
150
	body.has-header-background .site-header {
151
		background-image: none;
152
	}
153

  
154
	div#header div#top {
155
		height:auto;
156
		padding-top: 50px;
157
	}
158
}
static/angouleme/_vars.scss
1
$blue: #009CDC;
2
$dark-blue: #2382C1;
3
$light-gray: #F6F6F6;
4
$gray: #64777E;
5
$orange: #E34107;
6

  
7
$header-height: 230px;
8
$header-full-width-background: true;
9
$header-logo-size: 400px 120px;
10

  
11
$base-font: 16;
12
$fz-1: 30em / $base-font;
13
$fz-2: 24em / $base-font;
14
$fz-3: 21em / $base-font;
15
$fz-4: 18em / $base-font;
16
$fz-small: 14em / $base-font;
17
$fz-xsmall: 12em / $base-font;
18

  
19
$ss-serif: 'Muli', sans-serif;
20

  
21
$primary-color: $blue;
22
$width: 1160px;
23
$link-color: $primary-color;
24
$error-color: $orange;
25

  
26
$font-size: 100%;
27
$font-family: $ss-serif;
28

  
29
$toplinks-style: none;
30

  
31
$nav-after-image: false;
32
$nav-background: $gray;
33
$nav-color: white;
34
$nav-font-size: $fz-xsmall;
35
$nav-full-width-background: false;
36
$nav-height: 50px;
37
$nav-submenu-background: $blue;
38
$nav-item-hover-background: $dark-blue;
39
$nav-mobile-item-color: black;
40
$nav-mobile-item-hover-background: $dark-blue;
41
$nav-mobile-item-hover-color: white;
42
$nav-mobile-menu-background: white;
43
$nav-button-background: white;
44
$nav-button-color: $blue;
45
$responsive-menu: left-to-right;
46

  
47
$title-color: white;
48
$title-background: $primary-color;
49
$title-border-radius: 0;
50
$title-font-size: $fz-2;
51

  
52
$cell-border-radius: 0;
53
$cell-border: none;
54
$cell-background: transparent;
55
$cell-entry-border: 1px solid $primary-color;
56
$cell-entry-color: $gray;
57
$cell-entry-hover-color: $primary-color;
58
$cell-entry-hover-background: transparent;
59

  
60
$widget-border: 1px solid $gray;
61
$widget-background: none;
62
$widget-color: $gray;
63
$widget-focus-border: 1px solid $blue;
64
$widget-focus-outline: 1px solid $blue;
65

  
66
$button-background: $blue;
67
$button-border-radius: 10px;
68
$button-border: transparent;
69
$button-color: white;
70
$button-hover-background: $dark-blue;
71
$button-hover-color: white;
72
$buttons-order: previous, cancel (grow), submit;
73

  
74
$wcs-step-color: $gray;
75

  
76
$footer-background: $gray;
77
$footer-link-color: white;
static/angouleme/config.json
1
{
2
  "label": "Angoulême",
3
  "variables": {
4
    "theme_color": "#009CDC",
5
    "email_header_asset": "emails:logo",
6
    "pwa_display": "standalone"
7
  },
8
  "settings": {
9
    "combo": {
10
      "COMBO_ASSET_SLOTS.update": {
11
        "header:background": { "label": "Têtière : fond" },
12
        "header:logo": { "label": "Têtière : logo" },
13
        "emails:logo": {"label": "Emails : logo"},
14
        "footer:logo": { "label": "Pied de Page : logo" }
15
      }
16
    }
17
  }
18
}
static/angouleme/style.scss
1
@charset "UTF-8";
2
@import '../includes/fonts/muli';
3

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