Projet

Général

Profil

0001-scss-links-list-use-li-border-bottom-as-item-separat.patch

Thomas Jund, 03 février 2020 17:31

Télécharger (4,84 ko)

Voir les différences:

Subject: [PATCH] scss: links-list: use li border-bottom as item separator
 (#38821)

 static/arles/_custom.scss                   |   2 +-
 static/fontenay-sous-bois-2018/_custom.scss |   8 +-
 static/includes/_cells.scss                 | 111 ++++++++++----------
 3 files changed, 63 insertions(+), 58 deletions(-)
static/arles/_custom.scss
275 275
.combo-search-results {
276 276
	width: 60%;
277 277
	margin: 0 auto;
278
	div.links-list ul > li > a {
278
	div.links-list ul > li {
279 279
		border: 0;
280 280
	}
281 281
	li div p {
static/fontenay-sous-bois-2018/_custom.scss
304 304
			color: #888;
305 305
			padding: 0.5rem 0.5rem;
306 306
		}
307
		li:hover a,
308
		li.selected a {
309
			color: $primary-color;
307
		li:hover,
308
		li.selected {
310 309
			border-bottom: 1px solid $primary-color;
310
			a {
311
				color: $primary-color;
312
			}
311 313
		}
312 314
	}
313 315
}
static/includes/_cells.scss
145 145
	position: relative;
146 146
	z-index: 0;
147 147

  
148
	& > li > a {
149
		display: -ms-flexbox;
150
		display: flex;
151
		-ms-align-items: baseline;
152
		align-items: baseline;
153

  
154
		-ms-flex-wrap: wrap;
155
		flex-wrap: wrap;
156
		padding: 1rem;
157
		color: $cell-entry-color;
148
	& > li {
158 149
		border-bottom: 1px solid $cell-entry-border-color;
159
		position: relative;
160 150

  
161
		&:hover {
162
			color: $cell-entry-hover-color;
163
			@if $cell-entry-hover-effect != none {
164
				&:after {
165
					width: 100%;
166
					height: 100%;
151
		> a {
152
			display: -ms-flexbox;
153
			display: flex;
154
			-ms-align-items: baseline;
155
			align-items: baseline;
156

  
157
			-ms-flex-wrap: wrap;
158
			flex-wrap: wrap;
159
			padding: 1rem;
160
			color: $cell-entry-color;
161
			position: relative;
162

  
163
			&:hover {
164
				color: $cell-entry-hover-color;
165
				@if $cell-entry-hover-effect != none {
166
					&:after {
167
						width: 100%;
168
						height: 100%;
169
					}
170
				} @else {
171
					background-color: $cell-entry-hover-background;
167 172
				}
168
			} @else {
169
				background-color: $cell-entry-hover-background;
170
			}
171
		}
172
		&:after {
173
			@if $cell-entry-hover-effect != none {
174
				background-color: $cell-entry-hover-background;
175
				content: "";
176
				position: absolute;
177
				z-index: -1;
178
				transition: all 0.3s ease;
179
				box-sizing: border-box;
180
				width: 0;
181
			}
182
			@if $cell-entry-hover-effect == left-to-right {
183
				width: 0%; height: 100%; top: 0; left: 0;
184 173
			}
185
			@if $cell-entry-hover-effect == right-to-left {
186
				width: 0%; height: 100%; top: 0; right: 0;
187
			}
188
			@if $cell-entry-hover-effect == top-to-bottom {
189
				width: 100%; height: 0%; top: 0; left: 0;
190
			}
191
			@if $cell-entry-hover-effect == bottom-to-top {
192
				width: 100%; height: 0%; bottom: 0; left: 0;
193
			}
194
			@if $cell-entry-hover-effect == middle-to-edges {
195
				top: 50%;
196
				left: 50%;
197
				transition: translateY(-50%) translateX(-50%);
174
			&:after {
175
				@if $cell-entry-hover-effect != none {
176
					background-color: $cell-entry-hover-background;
177
					content: "";
178
					position: absolute;
179
					z-index: -1;
180
					transition: all 0.3s ease;
181
					box-sizing: border-box;
182
					width: 0;
183
				}
184
				@if $cell-entry-hover-effect == left-to-right {
185
					width: 0%; height: 100%; top: 0; left: 0;
186
				}
187
				@if $cell-entry-hover-effect == right-to-left {
188
					width: 0%; height: 100%; top: 0; right: 0;
189
				}
190
				@if $cell-entry-hover-effect == top-to-bottom {
191
					width: 100%; height: 0%; top: 0; left: 0;
192
				}
193
				@if $cell-entry-hover-effect == bottom-to-top {
194
					width: 100%; height: 0%; bottom: 0; left: 0;
195
				}
196
				@if $cell-entry-hover-effect == middle-to-edges {
197
					top: 50%;
198
					left: 50%;
199
					transition: translateY(-50%) translateX(-50%);
200
				}
198 201
			}
199 202
		}
200 203
	}
......
207 210
	}
208 211

  
209 212
	li div.description {
210
		position: relative;
211
		top: -1px;
212
		border-top: 1px solid $cell-background;
213 213
		padding: 0 1rem;
214 214
		font-size: 90%;
215 215
		color: #666;
......
217 217
			margin-top: 0;
218 218
			margin-bottom: 0.7em;
219 219
		}
220
		border-bottom: 1px solid $cell-entry-border-color;
221 220
	}
222 221
}
223 222

  
......
335 334
	}
336 335
}
337 336

  
338
div.menucell ul ul a {
339
	padding-left: 3em;
340
	font-size: 90%;
341
}
337
div.menucell li li {
338
	border-bottom: none;
339
	border-top: 1px solid $cell-entry-border-color;
340
	a {
341
		padding-left: 3em;
342
		font-size: 90%;
343
	}
344
} 
342 345

  
343 346
div.wcs-tracking-code-input form {
344 347
	margin: 1em;
345
-