Projet

Général

Profil

0001-scss-introduce-header-background-color-full-width-ba.patch

Voir les différences:

Subject: [PATCH] scss: introduce header background-color &
 full-width-background vars (#54666)

 static/includes/_header.scss | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
static/includes/_header.scss
1
body.has-header-background {
2
	.site-header {
1
$header-full-width-background: true !default;
2
$header-background-color: null !default;
3

  
4
@mixin header-background {
5
	body.has-header-background & {
3 6
		background: url(/assets/header:background) top center no-repeat;
4 7
		background-size: cover;
5 8
	}
9
	background-color: $header-background-color;
10
}
11

  
12
@if ($header-full-width-background) {
13
	.site-header {
14
		@include header-background();
15
	}
16
} @else {
17
	#header {
18
		@include header-background();
19
	}
6 20
}
7 21

  
8 22
h1#logo.has-logo {
9
-