Projet

Général

Profil

0001-univ-nantes-int-gration-graphique-initiale-68998.patch

A. Berriot, 20 septembre 2022 11:00

Télécharger (6,25 ko)

Voir les différences:

Subject: [PATCH] =?UTF-8?q?univ-nantes:=20int=C3=A9gration=20graphique=20i?=
 =?UTF-8?q?nitiale=20(#68998)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 static/univ-nantes/_custom.scss | 117 ++++++++++++++++++++++++++++++++
 static/univ-nantes/_vars.scss   |  82 ++++++++++++++++++++++
 static/univ-nantes/config.json  |  13 ++++
 static/univ-nantes/style.scss   |   6 ++
 4 files changed, 218 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-secondary: #666666;
7
$gray-light-1: rgba(0, 0, 0, 0.87);
8
// $gray-light-2: #f0f0f0;
9
// $gray-light-3: #d8d8d8;
10
// $gray-secondary: #656565;
11

  
12
$primary-color: $blue;
13

  
14
$space-xsmall: 0.25em;
15
$space-small: 0.5em;
16
$space-medium: 1em;
17
$space-large: 2em;
18
$space-xlarge: 3em;
19

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

  
34
$width: 890px;
35
$link-color: $blue;
36
$link-decoration: underline;
37
$link-hover-decoration: none;
38

  
39
$responsive-menu: left-to-right;
40
$nav-button-background: $white;
41
$nav-button-color: $black;
42

  
43
$nav-mobile-menu-background: $white;
44
$nav-item-selected-background: $blue;
45
$nav-item-selected-color: $white;
46

  
47
$nav-item-hover-background: $white;
48
$nav-item-hover-color: $blue;
49

  
50
$nav-submenu-background: $blue;
51
$nav-submenu-color: $white;
52

  
53
$toplinks-border-radius: 0;
54
$toplinks-box-shadow: none;
55
$toplinks-padding: $space-medium;
56
$toplinks-border: none;
57

  
58

  
59
$title-color: $black;
60
$title-font-size: $fz-2;
61
$title-weight: 700;
62

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

  
73
$form-sidebar-width: 30%;
74

  
75
$widget-background: $white;
76
$widget-focus-border: 1px solid transparent;
77
$widget-border-radius: 4px;
78
$widget-focus-outline: 2px solid $blue;
79

  
80
$footer-background: $black;
81
$footer-color: $white;
82
$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
-