Projet

Général

Profil

0001-scss-remove-obsolete-top-logo-width-sass-var-38419.patch

Thomas Jund (congés, retour le 29/04), 29 janvier 2020 14:56

Télécharger (3,24 ko)

Voir les différences:

Subject: [PATCH] scss: remove obsolete $top-logo-width sass var (#38419)

 help/fr/misc-scss.page              |  5 -----
 static/hautes-alpes-2018/_vars.scss |  1 -
 static/includes/_layout.scss        |  7 +------
 static/montreuil/_custom.scss       | 14 ++++++++++----
 static/montreuil/_vars.scss         |  2 --
 5 files changed, 11 insertions(+), 18 deletions(-)
help/fr/misc-scss.page
57 57
  <td><p>Couleur du texte du pied de page</p></td>
58 58
  <td><p><var>white</var></p></td>
59 59
 </tr>
60
 <tr>
61
  <td><p><code>$top-logo-width</code></p></td>
62
  <td><p>Largeur du logo</p></td>
63
  <td><p><var>0</var></p></td>
64
 </tr>
65 60
 <tr>
66 61
  <td><p><code>$border-radius</code></p></td>
67 62
  <td><p>Taille de l'arrondi à appliquer à différents éléments</p></td>
static/hautes-alpes-2018/_vars.scss
9 9
$font-size: 62.5%;
10 10
$footer-color: #FFFFFF;
11 11
$footer-background: #2B2B2B;
12
$top-logo-width: 21,428571428571%;
13 12
$border-radius: 0px;
14 13
$link-color: #202020;
15 14

  
static/includes/_layout.scss
3 3
$very-small-limit: 480px !default;
4 4
$footer-background: #666666 !default;
5 5
$footer-color: white !default;
6
$top-logo-width: 0 !default;
7 6
$sidebar-width: 300px !default;
8 7
$sidebar-max-width: $sidebar-width !default;
9 8
$sidebar-min-width: 0 !default;
......
60 59
	}
61 60
	@media screen and ($max-mobile-viewport) {
62 61
		& h1 {
63
			padding-left: $top-logo-width+70px;
62
			padding-left: 70px;
64 63
			background-position: 70px;
65 64
		}
66 65
	}
......
177 176
	}
178 177
}
179 178

  
180
h1#logo {
181
	padding-left: $top-logo-width;
182
}
183

  
184 179
@media screen and ($max-mobile-viewport) {
185 180
	.desktop-only {
186 181
		display: none;
static/montreuil/_custom.scss
25 25
			left: 50px;
26 26
		}
27 27
	}
28
	h1#logo a {
29
		display: block;
30
		text-indent: -9999px;
31
		height: 50px;
28
	h1#logo {
29
		a {
30
			display: block;
31
			text-indent: -9999px;
32
			height: 50px;
33
		}
34

  
35
		@media ($max-mobile-viewport) {
36
			padding-left: 30px;
37
		}
32 38
	}
33 39
}
34 40

  
static/montreuil/_vars.scss
31 31
$title-background: $primary-color;
32 32
$title-color: $white;
33 33

  
34
$top-logo-width: -40px;
35

  
36 34
$widget-focus-border: 1px solid $secondary-color;
37 35

  
38 36
$cell-border: 1px solid $secondary-color;
39
-