Projet

Général

Profil

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

Nicolas Roche, 31 mai 2021 18:50

Télécharger (20,3 ko)

Voir les différences:

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

 static/eurelien-cd28/_custom.scss    |  82 +++++++++++++++++++++++++++
 static/eurelien-cd28/_vars.scss      |  36 ++++++++++++
 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: $nav-background;
31
	div.gru-nav {
32
		ul {
33
			> li {
34
				@media (min-width: $nav-mobile-limit + 1) {
35
					border-left: 2px solid white;
36
					border-right: 2px solid white;
37
				}
38
				> a {
39
					font-size: 19px;
40
					font-weight: 400;
41
					padding-top: 0.33em;
42
					padding-bottom: 0.33em;
43
					@media (min-width: $nav-mobile-limit + 1) {
44
						line-height: 36px;
45
						padding: 0 15px;
46
					}
47
				}
48
			}
49
		}
50
	}
51
}
52

  
53
div.gru-nav .gru-nav-button {
54
	background-color: $secondary-color;
55
	.icon-bar {
56
		border-width: 2px;
57
	}
58
}
59

  
60
.gru-content div.cell h2:first-child {
61
	font-size: 30px;
62
	margin: 0px;
63
}
64

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

  
69
.required {
70
	color: #c00;
71
}
72

  
73
div.buttons {
74
	font-size: $title-font-size;
75
	.cancel-button button, .previous-button button{
76
		background: $nav-background;
77
	}
78
}
79

  
80
.pk-information {
81
	@include notification-message($notification_info_color, "\f164");
82
}
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-full-width-background: true;
17
$nav-background: $secondary-color;
18
$nav-color: #363636;
19
$nav-submenu-color: $nav-color;
20
$nav-active-color: $primary-color;
21
$nav-item-selected-color: $nav-color;
22
$nav-border-color: transprent;
23
$nav-menu-side: 40px;
24
$nav-mobile-mode: hamburger;
25
$nav-item-selected-background: $primary-color;
26
$nav-item-background: #b7b7b7;
27

  
28
$cell-border: 1px dotted $secondary-color;
29

  
30
$widget-background: #f3f3f3;
31

  
32
$button-background: $primary-color;
33
$button-color: $nav-color;
34

  
35
$footer-background: $secondary-color;
36
$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
-