Projet

Général

Profil

0001-scss-use-negative-margins-for-cell-title-cover-borde.patch

Thomas Jund, 01 octobre 2019 15:43

Télécharger (1,31 ko)

Voir les différences:

Subject: [PATCH] scss: use negative margins for $cell-title-cover-border
 (#36582)

 static/includes/_cells.scss | 6 +-----
 static/includes/_utils.scss | 6 ++++++
 2 files changed, 7 insertions(+), 5 deletions(-)
static/includes/_cells.scss
115 115
	@extend %title;
116 116
	position: relative;
117 117
	@if $cell-title-cover-border == true {
118
		top: -1px;
119
		left: -1px;
120
		width: calc(100% + 2px);
121
	} else {
122
		width: 100%;
118
		margin: #{extract-width($cell-border) * -1};
123 119
	}
124 120
	border-bottom-left-radius: 0;
125 121
	border-bottom-right-radius: 0;
static/includes/_utils.scss
27 27
	@each $part in $border { @if type-of($part) == color { @return $part; } }
28 28
	@return null;
29 29
}
30

  
31
@function extract-width($border){
32
	@each $part in $border { 
33
		@if type-of($part) == number { @return $part; } }
34
	@return 0;
35
}
30
-