Projet

Général

Profil

0001-eurelien-cd28-add-theme-54143.patch

Nicolas Roche, 31 mai 2021 18:09

Télécharger (20,3 ko)

Voir les différences:

Subject: [PATCH] eurelien-cd28: add theme (#54143)

 static/eurelien-cd28/_custom.scss    |  85 +++++++++++++++++++++++++++
 static/eurelien-cd28/_vars.scss      |  33 +++++++++++
 static/eurelien-cd28/config.json     |  15 +++++
 static/eurelien-cd28/img/favicon.ico | Bin 0 -> 105382 bytes
 static/eurelien-cd28/style.scss      |   5 ++
 5 files changed, 138 insertions(+)
 create mode 100644 static/eurelien-cd28/_custom.scss
 create mode 100644 static/eurelien-cd28/_vars.scss
 create mode 100644 static/eurelien-cd28/config.json
 create mode 100644 static/eurelien-cd28/img/favicon.ico
 create mode 100644 static/eurelien-cd28/style.scss
static/eurelien-cd28/_custom.scss
1
@import '../includes/fonts/titillium';
2
@import '../includes/fonts/krub';
3

  
4
#header #top #logo {
5
	@media screen and ($min-desktop-viewport) {
6
		a {
7
			margin-top: 50px;
8
			line-height: 80px;
9
			font-size: 16px;
10
			font-family: $title-font-family;
11
			color: black;
12
			text-indent: 500px;
13
			text-decoration: none;
14
		}
15
	}
16
	@media screen and ($max-mobile-viewport) {
17
		padding-top: 30px;
18
		a {
19
			display: block;
20
			height: 60px;
21
		}
22
	}
23
}
24

  
25
div.gru-nav-wrapper {
26
	margin: auto;
27
	max-width: 1316px;
28
	margin-top: 25px;
29
	margin-bottom: 45px;
30
	background-color: $secondary-color;
31
	@media (min-width: $nav-mobile-limit + 1) {
32
		div.gru-nav {
33
			background-color: $secondary-color;
34
			ul {
35
				> li {
36
					border-left: 2px solid white;
37
					border-right: 2px solid white;
38
					&.selected {
39
						background-color: $primary-color;
40
					}
41
					&:not(.selected) {
42
						background-color: $nav-background;
43
					}
44
					> a {
45
						font-size: 19px;
46
						font-weight: 400;
47
						line-height: 36px;
48
						padding: 0 15px;
49
					}
50
				}
51
			}
52
		}
53
	}
54
}
55

  
56
div.gru-nav .gru-nav-button {
57
	background-color: $secondary-color;
58
	.icon-bar {
59
		border: 2px solid $nav-button-color;
60
	}
61
}
62

  
63
.gru-content div.cell h2:first-child {
64
	font-size: 30px;
65
	margin: 0px;
66
}
67

  
68
input, input[type="search"], textarea, select, div.file-upload-widget div.file-button {
69
	box-shadow: inset 1px 2px 3px 0 #c5c5c5;
70
}
71

  
72
.required {
73
	color: #c00;
74
}
75

  
76
div.buttons {
77
	font-size: $title-font-size;
78
	.cancel-button button, .previous-button button{
79
		background: $nav-background;
80
	}
81
}
82

  
83
.pk-information {
84
	@include notification-message($notification_info_color, "\f164");
85
}
static/eurelien-cd28/_vars.scss
1
$primary-color: #ffcd00;
2
$secondary-color: #e5e5e5;
3

  
4
$width: 946px;
5
$sidebar-position: right;
6
$link-color: #087C81;
7

  
8
$font-size: 1em;
9
$font-family: Krub;
10
$font-color: #313131;
11

  
12
$title-color: #777;
13
$title-font-size: 19px;
14
$title-font-family: "Titillium";
15

  
16
$nav-background: #b7b7b7;
17
$nav-color: #363636;
18
$nav-submenu-color: $nav-color;
19
$nav-active-color: $primary-color;
20
$nav-item-selected-color: $nav-color;
21
$nav-border-color: transprent;
22
$nav-menu-side: 40px;
23
$nav-mobile-mode: hamburger;
24

  
25
$cell-border: 1px dotted $secondary-color;
26

  
27
$widget-background: #f3f3f3;
28

  
29
$button-background: $primary-color;
30
$button-color: $nav-color;
31

  
32
$footer-background: $secondary-color;
33
$footer-color: $font-color;
static/eurelien-cd28/config.json
1
{
2
  "label": "Eurelien (CD28)",
3
  "variables": {
4
    "theme_color": "#ffcd00",
5
    "favicon": "eurelien-cd28/img/favicon.ico"
6
  },
7
  "settings": {
8
    "combo": {
9
      "COMBO_ASSET_SLOTS.update": {
10
        "header:background": { "label": "Têtière : fond" },
11
        "header:logo": { "label": "Têtière : logo" }
12
      }
13
    }
14
  }
15
}
static/eurelien-cd28/style.scss
1
@charset "UTF-8";
2

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