Projet

Général

Profil

0001-scss-cells-improve-cells-with-cell-border-radius-391.patch

Thomas Jund, 21 janvier 2020 17:42

Télécharger (1,32 ko)

Voir les différences:

Subject: [PATCH] scss: cells: improve cells with $cell-border-radius (#39158)

 static/includes/_cells.scss | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)
static/includes/_cells.scss
72 72
	background: $cell-background;
73 73
	color: $cell-color;
74 74
	box-sizing: border-box;
75
	border-radius: $border-radius;
76 75
	border: $cell-border;
76
	@if ($cell-border-radius != 0) {
77
		border-radius: $cell-border-radius;
78
		overflow: hidden;
79
	}
77 80
}
78 81

  
79 82
div#services > ul > li,
......
203 206
		text-align: center;
204 207
	}
205 208

  
206
	// make sure first/last children don't overflow the cell radius
207
	> li:first-child a {
208
		border-top-left-radius: $cell-border-radius;
209
		border-top-right-radius: $cell-border-radius;
210
	}
211
	> li:last-child a {
212
		border-bottom-left-radius: $cell-border-radius;
213
		border-bottom-right-radius: $cell-border-radius;
214
	}
215
	ul > li:first-child a, ul > li:last-child a {
216
		border-radius: 0;
217
	}
218

  
219 209
	li div.description {
220 210
		position: relative;
221 211
		top: -1px;
222
-