Projet

Général

Profil

0001-style-make-header-responsive-for-even-smaller-widths.patch

Frédéric Péters, 05 décembre 2018 17:32

Télécharger (1,41 ko)

Voir les différences:

Subject: [PATCH] style: make header responsive for even smaller widths
 (#28648)

 gadjo/static/css/gadjo.scss | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
gadjo/static/css/gadjo.scss
199 199
	overflow: hidden;
200 200
	text-overflow: ellipsis;
201 201
	@include vendor-prefix('transition', 'all ease 200ms');
202

  
202
	@media screen and (max-width: $mobile-limit) {
203
		width: 100%;
204
		max-width: calc(100% - #{$sidepage-icon-width} - 21px);
205
	}
203 206
	a {
204 207
		opacity: 0.8;
205 208
		color: inherit;
......
241 244
			border: 1px solid white;
242 245
			border-width: 2px 2px 0 0;
243 246
		}
247
		@media screen and (max-width: $mobile-limit) {
248
			a {
249
				display: none;
250
			}
251
			a:first-child {
252
				display: inline-block;
253
			}
254
		}
244 255
	}
245 256
}
246 257

  
......
251 262
	h1 {
252 263
		// + picture width
253 264
		padding-left: $sidepage-width + $sidepage-left-space + 70px;
265
		@media screen and (max-width: $mobile-limit) {
266
			max-width: calc(100% - 60px);
267
		}
268
		@media screen and (max-width: 380px) {
269
			display: none;
270
		}
254 271
	}
255 272
}
256 273

  
257
-