Projet

Général

Profil

0001-ville-tours-add-initial-theme-29721.patch

Serghei Mihai (congés, retour 15/05), 16 janvier 2019 18:15

Télécharger (9,14 ko)

Voir les différences:

Subject: [PATCH] ville-tours: add initial theme (#29721)

 static/ville-tours/_custom.scss | 101 ++++++++++++++++++++++++++++++++
 static/ville-tours/_vars.scss   |  40 +++++++++++++
 static/ville-tours/config.json  |   6 ++
 static/ville-tours/img/logo.png | Bin 0 -> 4015 bytes
 static/ville-tours/style.scss   |   6 ++
 5 files changed, 153 insertions(+)
 create mode 100644 static/ville-tours/_custom.scss
 create mode 100644 static/ville-tours/_vars.scss
 create mode 100644 static/ville-tours/config.json
 create mode 100644 static/ville-tours/img/logo.png
 create mode 100644 static/ville-tours/style.scss
static/ville-tours/_custom.scss
1
div#header-wrapper {
2
	border-top: 32px solid #efe6dd;
3
}
4

  
5
div#header {
6
	h1#logo {
7
		a {
8
			background: url('img/logo.png') no-repeat;
9
			background-size: contain;
10
			display: block;
11
			height: 93px;
12
			text-indent: -9999px;
13
			margin: 15px 0;
14
		}
15
	}
16
	#toplinks {
17
		position: absolute;
18
		top: -47px;
19
	}
20
}
21

  
22
.gru-content {
23
	div.searchcell {
24
		border: 0;
25
		form {
26
			input {
27
				border: 1px solid #cdac89;
28
				background: #efe6dd;
29
				padding: 3px;
30
				width: 90%;
31
				font-size: 1.12em;
32
			}
33
			button {
34
				padding: 0.5ex 0.4em;
35
			}
36
		}
37
		div.combo-search-results {
38
			background: #efe6dd;
39
			p.search-service-label {
40
				padding: 0.5ex 0.5em;
41
			}
42
			a {
43
				color: #7aa63e;
44
			}
45
		}
46
	}
47
	#columns > div.wcsformsofcategorycell {
48
		h2:first-child {
49
			font-family: 'SourceSansPro-Bold', sans-serif;
50
			color: #000000;
51
			font-size: 150%;
52
			border-bottom: 0;
53
			text-align: center;
54
			padding-bottom: 0;
55
		}
56
		border: 0;
57
		@media screen and (min-width: $mobile-limit) {
58
			width: 23%;
59
			float: left;
60
			margin-bottom: 2ex;
61
			margin-left: 0.5em;
62
			margin-right: 0.5em;
63
		}
64
	}
65
}
66

  
67
div#nav a {
68
	font-size: 1.25em;
69
	&:hover {
70
		color: $primary-color;
71
	}
72
}
73

  
74
div#rub_service {
75
	h2 {
76
		text-align: left;
77
	}
78
	form > div.buttons {
79
		div.submit-button {
80
			float: right;
81
		}
82
	}
83
}
84

  
85
div#footer {
86
	h2 {
87
		color: $title-color;
88
		margin: 0.5ex auto;
89
	}
90
	a {
91
		color: #ffffff;
92
	}
93
	ul {
94
		margin: 0;
95
		padding: 0;
96
		li {
97
			list-style-type: none;
98
			font-size: 95%;
99
		}
100
	}
101
}
static/ville-tours/_vars.scss
1
$primary-color: #6699cc;
2
$width: 1100px;
3

  
4
$background-color: #ffffff;
5

  
6
$font-color: black;
7
$font-family: 'SourceSansPro-Regular', sans-serif;
8
$font-size: 16px;
9

  
10
$nav-color: #000000;
11
$nav-submenu-color: #000000;
12
$nav-active-color: $primary-color;
13
$nav-item-selected-border: 5px solid $nav-active-color;
14
$nav-item-hover-color: $primary-color;
15
$nav-item-hover-mode: bottom-border;
16
$nav-item-selected-mode: bottom-border;
17
$nav-item-hover-color: $primary-color;
18
$nav-after-image-height: 260px;
19

  
20
$link-color: $primary-color;
21

  
22
$cell-border: 1px solid $primary-color;
23

  
24
$border-radius: 0px;
25

  
26
$widget-background: #efe6dd;
27
$widget-unique-checkbox-position: left;
28

  
29
$button-color: white;
30
$button-background: #7aa63e;
31
$button-hover-background: $primary-color;
32

  
33
$title-border-bottom: 2px solid $primary-color;
34
$title-weight: normal;
35
$title-color: $primary-color;
36
$title-font-size: 1.5em;
37
$title-weight: 600;
38

  
39
$footer-background: #000000;
40
$footer-color: white;
static/ville-tours/config.json
1
{
2
  "label": "Ville de Tours",
3
  "variables": {
4
    "theme_color": "#efe6dd"
5
  }
6
}
static/ville-tours/style.scss
1
@charset "UTF-8";
2

  
3
@import 'vars';
4
@import '../includes/publik';
5
@import '../includes/font-source-sans-pro';
6
@import 'custom';
0
-