Projet

Général

Profil

0001-css-nav-left-to-right-use-transform-instead-of-width.patch

Thomas Jund, 28 mai 2020 14:38

Télécharger (1,07 ko)

Voir les différences:

Subject: [PATCH] css: nav left-to-right: use transform instead of width for
 transition (#43419)

 static/includes/_nav.scss | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
static/includes/_nav.scss
277 277
				border-top: 2px solid $nav-border-color;
278 278
				margin-top: 0;
279 279
			} @else if $responsive-menu == left-to-right {
280
				transition: width 0.25s ease;
280
				transition: transform 0.25s ease;
281 281
				height: 100%;
282
				width: 0px;
282
				width: 15em;
283
				transform: translateX(-100%);
283 284
				position: fixed;
284 285
				top: 0px;
285 286
				left: 0;
......
337 338
			@if $responsive-menu == top-to-bottom {
338 339
				height: auto;
339 340
			} @else if $responsive-menu == left-to-right {
340
				width: 15em;
341
				transform: translateX(0);
341 342
			}
342 343
		}
343 344
	}
344
-