Projet

Général

Profil

0001-univ-nantes-new-theme-68998.patch

A. Berriot, 04 octobre 2022 14:41

Télécharger (5,98 ko)

Voir les différences:

Subject: [PATCH] univ-nantes: new theme (#68998)

 static/univ-nantes/_custom.scss | 117 ++++++++++++++++++++++++++++++++
 static/univ-nantes/_vars.scss   |  78 +++++++++++++++++++++
 static/univ-nantes/config.json  |  13 ++++
 static/univ-nantes/style.scss   |   6 ++
 4 files changed, 214 insertions(+)
 create mode 100644 static/univ-nantes/_custom.scss
 create mode 100644 static/univ-nantes/_vars.scss
 create mode 100644 static/univ-nantes/config.json
 create mode 100644 static/univ-nantes/style.scss
static/univ-nantes/_custom.scss
1

  
2
%button {
3
    box-shadow: none;
4
    text-transform: uppercase;
5
    font-weight: 700;
6
    &:hover {
7
        box-shadow: none;
8
    }
9
}
10

  
11
%inverted-button {
12
    box-shadow: none;
13
    &:hover {
14
        box-shadow: none;
15
    }
16
}
17
h1, h2, h3, h4, h5, h6 {
18
    padding-left : 0.7em;
19
    padding-right : 0.7em;
20
}
21
%cell {
22
    border: none;
23
    &:not(.transparent) {
24
        box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.15);
25
        border-top: 5px solid $blue;
26
    }
27
    &.transparent {
28
        padding: 0;
29
    }
30
    & > div {
31
        & > h1::after {
32
            content: " ";
33
            display: block;
34
            position: relative;
35
            bottom: -$space-xsmall;
36
            width: 1.5em;
37
            border-bottom: 5px solid $blue;
38
        }
39
        & > h2:first-child, .wcs-tracking-code-input > h2 {
40
            border-bottom: 1px solid rgba(206, 206, 206, 0.75);
41
        }
42

  
43
    }
44
}
45
.site-header {
46
    padding: $space-small;
47
}
48
#nav-wrapper {
49
    box-shadow: 0 0.225em 0.325em rgba(0, 0, 0, 0.1);
50
}
51

  
52
#logo {
53
    @media screen and ($max-mobile-viewport) {
54
        padding-left: unset;
55
    }
56
}
57

  
58
div#nav {
59
    max-width: 100%;
60
    padding: 0 $space-large 0 $space-small;
61

  
62
}
63
div.gru-nav {
64
    @media screen and ($min-desktop-viewport) {
65
        text-align: center;
66
    }
67
    @media screen and ($max-mobile-viewport) {
68
        .gru-nav-button {
69
            right: $space-medium;
70
            left: unset;
71
            & + ul::before {
72
                display: none;
73
            }
74
        }
75
    }
76
}
77
#toplinks {
78
    font-size: $fz-small;
79
    font-weight: 700;
80
    right: $space-xlarge;
81
    @media screen and ($max-mobile-viewport) {
82
        margin-right: $nav-menu-side;
83
        background: transparent;
84
    }
85
    a {
86
        color: $black;
87
        @media screen and ($max-mobile-viewport) {
88
            padding: $space-xsmall 0;
89
            margin-left: $space-large;
90
        }
91
        @media screen and ($min-desktop-viewport) {
92
            padding: $space-xsmall;
93
            &:not(:first-child) {
94
                padding-left: $space-medium;
95
            }
96
        }
97
    }
98
}
99

  
100
main {
101
    margin-top: $space-large;
102
}
103
div.gru-nav {
104
    li > a {
105
        border: 2px solid transparent;
106
    }
107
    li:focus-within > a,
108
    li:hover > a {
109
        border: 2px solid $blue;
110
    }
111
}
112

  
113
%cell-links-list {
114
    > li:hover {
115
        border-left: 5px solid blue;
116
    }
117
}
static/univ-nantes/_vars.scss
1
$blue: #3452ff;
2
$white: #ffffff;
3
$black: black;
4
$epicea: #5d7b84;
5

  
6
$gray-light-1: rgba(0, 0, 0, 0.87);
7

  
8
$primary-color: $blue;
9

  
10
$space-xsmall: 0.25em;
11
$space-small: 0.5em;
12
$space-medium: 1em;
13
$space-large: 2em;
14
$space-xlarge: 3em;
15

  
16
// // typo
17
$font-color: $black;
18
$font-family: "Source Sans Pro", sans-serif;
19
$font-size: 18px;
20
$font-line-height: 27px;
21
$base-font: 16;
22
$fz-1: 30em / $base-font;
23
$fz-2: 24em / $base-font;
24
$fz-3: 21em / $base-font;
25
$fz-4: 18em / $base-font;
26
$fz-small: 14em / $base-font;
27
$fz-xsmall: 12em / $base-font;;
28
$fz-xxsmall: 11em / $base-font;;
29

  
30
$width: 890px;
31
$link-color: $blue;
32
$link-decoration: underline;
33
$link-hover-decoration: none;
34

  
35
$responsive-menu: left-to-right;
36
$nav-button-background: $white;
37
$nav-button-color: $black;
38

  
39
$nav-mobile-menu-background: $white;
40
$nav-item-selected-background: $blue;
41
$nav-item-selected-color: $white;
42

  
43
$nav-item-hover-background: $white;
44
$nav-item-hover-color: $blue;
45

  
46
$nav-submenu-background: $blue;
47
$nav-submenu-color: $white;
48

  
49
$toplinks-border-radius: 0;
50
$toplinks-box-shadow: none;
51
$toplinks-padding: $space-medium;
52
$toplinks-border: none;
53

  
54

  
55
$title-color: $black;
56
$title-font-size: $fz-2;
57
$title-weight: 700;
58

  
59
$button-background: $blue;
60
$button-color: $white;
61
$button-border: 2px solid $blue;
62
$button-hover-background: $white;
63
$button-hover-color: $blue;
64
$button-focus-outline: 2px solid $blue;
65
$button-focus-outline-offset: 2px;
66
$cancel-button-style: '%inverted-button';
67
$buttons-order: previous, cancel (grow), submit;
68

  
69
$form-sidebar-width: 30%;
70

  
71
$widget-background: $white;
72
$widget-focus-border: 1px solid transparent;
73
$widget-border-radius: 4px;
74
$widget-focus-outline: 2px solid $blue;
75

  
76
$footer-background: $black;
77
$footer-color: $white;
78
$footer-link-color: $white;
static/univ-nantes/config.json
1
{
2
  "label": "Nantes Université",
3
  "variables": {
4
    "theme_color": "#3452ff"
5
  },
6
  "settings": {
7
    "combo": {
8
      "COMBO_ASSET_SLOTS.update": {
9
        "header:logo": { "label": "Têtière : logo" }
10
      }
11
    }
12
  }
13
}
static/univ-nantes/style.scss
1
@charset "UTF-8";
2
@import '../includes/fonts/source-sans-pro';
3

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