Projet

Général

Profil

0001-angouleme-create-theme-65079.patch

Corentin Séchet, 17 mai 2022 17:08

Télécharger (7,36 ko)

Voir les différences:

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

 static/angouleme/_custom.scss | 174 ++++++++++++++++++++++++++++++++++
 static/angouleme/_vars.scss   |  77 +++++++++++++++
 static/angouleme/config.json  |  15 +++
 static/angouleme/style.scss   |   6 ++
 4 files changed, 272 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
        h1#logo.has-logo a {
15
            min-width: 400px;
16
            min-height: 120px;
17
        }
18
    }
19

  
20
    div#toplinks a {
21
        @extend %button;
22
        border-radius: 20px 10px 10px 0;
23
        margin-top: 0.5rem;
24
        padding: 0.3rem 0.4rem;
25
        margin-right: 0.5rem;
26

  
27
        @media ($min-desktop-viewport) {
28
            margin-top: 1rem;
29
            padding: 0.5rem 0.8rem;
30

  
31
            &.login-link::before, &.account-link::before {
32
                content: '\f007';
33
                font-family: FontAwesome;
34
                margin-right: 0.5rem;
35
            }
36

  
37
            &.registration::before {
38
                content: '\f234';
39
                font-family: FontAwesome;
40
                margin-right: 0.5rem;
41
            }
42

  
43
            &.logout::before {
44
                content: '\f08b';
45
                font-family: FontAwesome;
46
                margin-right: 0.5rem;
47
            }
48
        }
49
    }
50
}
51

  
52
div.gru-nav ul li a {
53
    font-size: $nav-font-size;
54
    text-transform: uppercase;
55
    font-weight: normal;
56
}
57

  
58
@media ($min-desktop-viewport) {
59
    .site-nav {
60
        position: sticky;
61
        top: $nav-height;
62
        margin-bottom: -$nav-height;
63
        z-index: 200;
64

  
65
        .gru-nav-wrapper {
66
            position: relative;
67
            top: -$nav-height;
68
            
69
            .gru-nav > ul {
70
                display: flex;
71

  
72
                > li {
73
                    display: flex;
74
                    border-right: 1px solid white;
75
                    height: 100%;
76
                    > a {
77
                        display: flex;
78
                        justify-content: center;
79
                        flex-direction: column;
80
                        padding: 0 20px;
81
                        font-size: $nav-font-size;
82
                        text-transform: uppercase;
83
                        font-weight: normal;
84
                    }
85

  
86
                    > ul {
87
                        top: $nav-height;
88
                        font-weight: normal;
89
                    }
90
                }
91
            }
92
        }
93
    }
94
}
95

  
96
div#main-content-wrapper {
97
    margin-top: 2rem;
98
}
99

  
100
div#footer{
101
    display:flex;
102
    flex-direction: row;
103
    a {
104
        text-decoration: underline;
105
    }
106
    @media ($min-desktop-viewport) {
107
        &::before {
108
            margin: 1rem 2rem;
109
            content: url(/assets/footer:logo);
110
        }
111
    }
112
}
113

  
114
%cell-links-list {
115
    li > a {
116
        border-left: 5px solid transparent;
117
        &:hover {
118
            border-left: 5px solid $primary-color;
119
        }
120
    }
121
    ul li a {
122
        text-decoration: underline;
123
    }
124
}
125

  
126
%button {
127
   box-shadow: none; 
128
   transition: none;
129
   &:hover {
130
       box-shadow: none;
131
   }
132
}
133

  
134
%cancel-button {
135
    background: $orange;
136
}
137

  
138
%title {
139
    a {
140
        color: white;
141
    }
142
}
143

  
144
.form-content--title {
145
    background: transparent;
146
    border-bottom: 2px solid $primary-color;
147
    color: $gray;
148
    font-size: $fz-1;
149
}
150

  
151
div.cell.has-asset-picture {
152
    position: relative;
153
    z-index: 0;
154
    h2:first-child {
155
        padding-left: 4rem;
156
    }
157
    picture {
158
        width: 4rem;
159
        height: 4rem;
160
        position: absolute;
161
        top: 0;
162
    }
163
}
164

  
165
@media ($max-mobile-viewport) {
166
    body.has-header-background .site-header {
167
        background-image: none;
168
    }
169

  
170
    div#header div#top {
171
        height:auto;
172
        padding-top: 50px;
173
    }
174
}
static/angouleme/_vars.scss
1
$blue: #009CDC;
2
$dark-blue: #2382C1;
3
$light-gray: #F6F6F6;
4
$white: white;
5
$gray: #64777E;
6
$orange: #E34107;
7

  
8
$header-height: 230px;
9
$header-full-width-background: true;
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
  },
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
        "footer:logo": { "label": "Pied de Page : logo" }
12
      }
13
    }
14
  }
15
}
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
-