Projet

Général

Profil

0001-essonne-cd91-add-theme-43332.patch

Valentin Deniaud, 27 mai 2020 17:41

Télécharger (17,6 ko)

Voir les différences:

Subject: [PATCH] essonne-cd91: add theme (#43332)

 static/essonne-cd91/_custom.scss    |  81 ++++++++++++++++++++++++++++
 static/essonne-cd91/_vars.scss      |  34 ++++++++++++
 static/essonne-cd91/config.json     |   8 +++
 static/essonne-cd91/img/favicon.png | Bin 0 -> 2405 bytes
 static/essonne-cd91/img/logo.png    | Bin 0 -> 7971 bytes
 static/essonne-cd91/style.scss      |   5 ++
 6 files changed, 128 insertions(+)
 create mode 100644 static/essonne-cd91/_custom.scss
 create mode 100644 static/essonne-cd91/_vars.scss
 create mode 100644 static/essonne-cd91/config.json
 create mode 100644 static/essonne-cd91/img/favicon.png
 create mode 100644 static/essonne-cd91/img/logo.png
 create mode 100644 static/essonne-cd91/style.scss
static/essonne-cd91/_custom.scss
1
// Page shadow
2
#page {
3
    &::before {
4
        $page-margin: 20px;
5
        content: "";
6
        width: $width + ($page-margin * 2);
7
        height: 100vh;
8
        margin: auto;
9
        position: fixed;
10
        top: 0;
11
        left: calc(50% - (#{$width} / 2) - #{$page-margin});
12
        z-index: -1;
13
        box-shadow: 0px 0px 10px 0px #656565;
14
    }
15
}
16

  
17
div#header-wrapper {
18
    div#header h1 {
19
        padding-top: 15px;
20
        a {
21
            display:inline-block;
22
            background: url(img/logo.png) top center no-repeat;
23
            height: 115px;
24
            width: 100%;
25
			text-indent: -1000px;
26
			overflow: hidden;
27
            @media screen and ($max-mobile-viewport) {
28
                background-size: 120px;
29
                height: 144px;
30
            }
31
        }
32
    }
33
}
34

  
35
div#nav {
36
    font-size: 13px;
37
    font-weight: 700;
38
	text-align: center;
39
	padding-top: 1px;
40
    border-bottom: 4px solid #dbdbdb;
41
	text-transform: uppercase;
42

  
43
    // nav desktop only
44
    @media (min-width: $nav-mobile-limit + 1) {
45
        > ul {
46
            margin-bottom: 5px;
47
            // Item separator
48
            > li::before, > li:last-child::after {
49
                content: '';
50
                width: 1px;
51
                height: 24px;
52
                background: #e4e4e4;
53
                display: inline-block;
54
                vertical-align: middle;
55
                margin: 1px;
56
            }
57
            > li > a {
58
                border-top: 2px solid $nav-active-color;
59
            }
60
        }
61
    }
62
    // nav mobile only
63
	@media screen and (max-width: $nav-mobile-limit) {
64
		text-align: left;
65
	}
66
}
67

  
68

  
69
div#footer-wrapper {
70
    margin-top: 0;
71
    font-size: 13px;
72
    a {
73
        text-decoration: underline;
74
        color: white;
75
    }
76
}
77

  
78

  
79
div.submit-button button, div.submit-button button:hover {
80
    background: $primary-color-clearer;
81
}
static/essonne-cd91/_vars.scss
1
$primary-color: #0098b8;
2
$primary-color-clearer: #00BFE8;
3
$primary-color-darker: #00748C;
4

  
5
$border-radius: 0;
6
$width: 1130px;
7
$link-color: $primary-color-darker;
8

  
9
$font-size: 15px;
10
$font-family: Roboto, sans-serif;
11

  
12
$nav-background: white;
13
$nav-color: #63636c;
14
$nav-active-color: $primary-color;
15

  
16
$button-background: $nav-background;
17
$nav-button-background: white;
18
$nav-button-color: #686971;
19

  
20
$responsive-menu: left-to-right;
21

  
22
$title-color: $primary-color-darker;
23
$title-font-size: 36px;
24
$title-weight: 400;
25

  
26
$button-color: white;
27
$button-background: $primary-color;
28
$buttons-order: previous (grow),cancel (grow),submit;
29

  
30
$cell-border: none;
31
$cell-entry-hover-effect: left-to-right;
32

  
33
$footer-background: $primary-color;
34
$footer-color: white;
static/essonne-cd91/config.json
1
{
2
  "label": "Essonne (CD91)",
3
  "variables": {
4
    "favicon": "essonne/img/favicon.png",
5
    "theme_color": "#0098b8",
6
    "logo_link_url": "http://www.essonne.fr/"
7
  }
8
}
static/essonne-cd91/style.scss
1
@charset "UTF-8";
2

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