Projet

Général

Profil

0001-scss-replace-all-ex-units-33386.patch

Frédéric Péters, 28 mai 2019 11:45

Télécharger (18 ko)

Voir les différences:

Subject: [PATCH] scss: replace all ex units (#33386)

 static/includes/_apa.scss        | 10 ++++----
 static/includes/_carrousel.scss  |  4 +--
 static/includes/_categories.scss |  2 +-
 static/includes/_cells.scss      | 28 ++++++++++-----------
 static/includes/_dashboard.scss  |  6 ++---
 static/includes/_forms.scss      | 28 ++++++++++-----------
 static/includes/_jqueryui.scss   | 10 ++++----
 static/includes/_layout.scss     |  8 +++---
 static/includes/_library.scss    |  2 +-
 static/includes/_misc.scss       | 42 ++++++++++++++++----------------
 static/includes/_nav.scss        |  2 +-
 static/includes/_user-info.scss  |  6 ++---
 static/includes/_wcs.scss        | 32 ++++++++++++------------
 13 files changed, 90 insertions(+), 90 deletions(-)
static/includes/_apa.scss
22 22
		position: absolute;
23 23
		right: 20px;
24 24
		top: 5px;
25
		width: 3ex;
25
		width: 2em;
26 26
		text-align: center;
27
		height: 3ex;
27
		height: 2em;
28 28
		&:hover {
29 29
			color: red ;
30 30
		}
......
61 61
			margin: 0;
62 62
		}
63 63
		h3 {
64
			margin-bottom: 1ex;
64
			margin-bottom: 0.7em;
65 65
		}
66 66
		a {
67 67
			display: block;
68
			padding: 1ex;
68
			padding: 0.7em;
69 69
			&:hover {
70 70
				background-color: #eee;
71 71
			}
72 72
		}
73
		margin-bottom: 2ex;
73
		margin-bottom: 1.5em;
74 74
		ul, li {
75 75
			margin: 0;
76 76
			padding: 0;
static/includes/_carrousel.scss
141 141
			font-size: 24px;
142 142
		}
143 143
		&.carrousel-previous {
144
			left: 1ex;
144
			left: 0.7em;
145 145
			&::after {
146 146
				content: "\f053";  // chevron-left;
147 147
			}
148 148
		}
149 149
		&.carrousel-next {
150
			right: 1ex;
150
			right: 0.7em;
151 151
			&::after {
152 152
				content: "\f054";  // chevron-right;
153 153
			}
static/includes/_categories.scss
61 61
		ul {
62 62
			display: block;
63 63
			background: $category-toggled-background;
64
			padding: 0 10% 1ex 10%;
64
			padding: 0 10% 0.7em 10%;
65 65

  
66 66
			a {
67 67
				color: $category-link-color;
static/includes/_cells.scss
226 226
		color: #666;
227 227
		p {
228 228
			margin-top: 0;
229
			margin-bottom: 1ex;
229
			margin-bottom: 0.7em;
230 230
		}
231 231
		border-bottom: 1px solid $cell-entry-border-color;
232 232
	}
......
304 304
			margin: 0;
305 305
		}
306 306
		p + p {
307
			margin-top: 1ex;
307
			margin-top: 0.7em;
308 308
		}
309 309
	}
310 310
	&::after {
......
321 321
		border-bottom: 0;
322 322
		p:last-child {
323 323
			margin-bottom: 0;
324
			padding-bottom: 1ex;
324
			padding-bottom: 0.7em;
325 325
		}
326 326
		+ div {
327 327
			margin-top: 0;
......
332 332
			}
333 333
			p:first-child {
334 334
				margin-top: 0;
335
				padding-top: 1ex;
335
				padding-top: 0.7em;
336 336
			}
337 337
		}
338 338
	}
......
452 452
}
453 453

  
454 454
div.lingobasketcell h3.regie-name {
455
	margin: 2ex 1ex;
455
	margin: 1.5em 0.7em;
456 456
	font-weight: normal;
457 457
	border-bottom: 1px solid #aaa;
458 458
}
......
467 467
		}
468 468
		a {
469 469
			display: inline-block;
470
			padding-bottom: 1ex;
470
			padding-bottom: 0.7em;
471 471
		}
472 472
		&:last-child {
473 473
			list-style: none;
......
503 503
}
504 504

  
505 505
div.feedcell h3 {
506
	margin: 0 0 0.5ex 0;
506
	margin: 0 0 0.3em 0;
507 507
}
508 508

  
509 509
div.feedcell div.feed-content div,
510 510
div.feedcell div.feed-content p {
511
	margin: 0.5ex 0 1.5ex 0;
511
	margin: 0.3em 0 1em 0;
512 512
}
513 513

  
514 514
div.feedcell img {
......
539 539
		height: 2.2em;
540 540
	}
541 541
	table tbody th {
542
		padding-right: 1ex;
542
		padding-right: 0.7em;
543 543
	}
544 544
	table td {
545 545
		border: 1px solid #ddd;
......
615 615
	@media screen and (max-width: $mobile-limit) {
616 616
		width: auto;
617 617
		float: none;
618
		margin: 1ex;
618
		margin: 0.7em;
619 619
	}
620 620
}
621 621

  
......
635 635
		margin: 5px 0;
636 636
	}
637 637
	div.address {
638
		margin: 1ex 0;
638
		margin: 0.7em 0;
639 639
		h4 {
640 640
			margin: 0;
641 641
		}
642 642
	}
643 643
	div.family-data {
644
		padding-bottom: 2ex;
644
		padding-bottom: 1.5em;
645 645
		border-bottom: $title-border-bottom;
646 646
	}
647 647
	div.family_unlink {
......
661 661
		}
662 662
		> div {
663 663
			border-bottom: $title-border-bottom;
664
			padding-bottom: 1ex;
665
			margin: 1ex 0;
664
			padding-bottom: 0.7em;
665
			margin: 0.7em 0;
666 666
		}
667 667
		.name {
668 668
			font-size: 115%;
static/includes/_dashboard.scss
50 50
		}
51 51

  
52 52
		span {
53
			width: 1ex;
53
			width: 0.7em;
54 54
			display: inline-block;
55 55
		}
56 56
	}
......
77 77
		position: absolute;
78 78
		top: 0;
79 79
		right: 0;
80
		padding: 1ex 1.5ex;
80
		padding: 0.7em 1em;
81 81
		border-radius: 2em;
82 82
		background: $dashboard-badge-color;
83 83
		@if (lightness($dashboard-badge-color) > 50) {
......
93 93
	.gru-content div.cell.info-text-#{$dashboard_class} {
94 94
		border: #EFEFEF;
95 95
		box-shadow: 0px 0px 2px 0px #aaa;
96
		padding-bottom: 1ex;
96
		padding-bottom: 0.7em;
97 97
		h2 {
98 98
			top: 0;
99 99
			left: 0;
static/includes/_forms.scss
41 41
}
42 42

  
43 43
form.quixote div.widget {
44
	margin-bottom: 2ex;
44
	margin-bottom: 1.5em;
45 45
}
46 46

  
47 47
div.error {
......
54 54

  
55 55

  
56 56
span.required {
57
	margin-left: 0.7ex;
57
	margin-left: 1em;
58 58
	position: relative;
59
	top: -0.2ex;
59
	top: -0.1em;
60 60
}
61 61

  
62 62
div.widget div.title {
......
83 83
	border: $button-border;
84 84
	border-radius: $button-border-radius;
85 85
	transition: all 0.2s ease;
86
	margin-right: 2ex;
86
	margin-right: 1.5em;
87 87
	vertical-align: middle;
88 88
	box-shadow: 1px 0px 5px rgba(0, 0, 0, 0.21);
89 89

  
......
129 129
	border: $widget-border;
130 130
	border-radius: $widget-border-radius;
131 131
	box-sizing: border-box;
132
	margin: 0.2em 0px;
132
	margin: #{$font-size / 5} 0px;
133 133
	outline: medium none;
134
	padding: 0.7ex 0.7em 0.7ex 0.7em;
134
	padding: 0.4em 0.7em 0.4em 0.7em;
135 135
	max-width: 100%;
136 136
	transition: all 0.5s ease;
137 137
	&:focus:not([readonly]) {
......
175 175

  
176 176
input[type="checkbox"],
177 177
input[type="radio"] {
178
	margin-right: 1ex;
179
	margin-bottom: 1ex;
178
	margin-right: 0.7em;
179
	margin-bottom: 0.7em;
180 180
}
181 181

  
182 182
div.content label {
......
218 218

  
219 219
div.a2-block ul#id_edit-profile-title {
220 220
	margin-left: 1em;
221
	margin-top: -1ex;
221
	margin-top: -0.7em;
222 222
	li {
223 223
		display: inline-block;
224 224
		margin-right: 2em;
......
236 236
	& li::before {
237 237
		content: "\f06a";
238 238
		font-family: FontAwesome;
239
		padding-right: 1ex;
239
		padding-right: 0.7em;
240 240
	}
241 241
}
242 242

  
......
248 248
div.select2-container,
249 249
span.select2-container {
250 250
	min-width: 20em;
251
	margin: 0.2em 0;
251
	margin: #{$font-size / 5} 0px;
252 252
	padding-bottom: 1px;
253 253
	a.select2-choice {
254
		padding: 0.2ex 0.7em;
254
		padding: 0.1em 0.7em;
255 255
	}
256 256
	span.select2-selection--single,
257 257
	a.select2-choice,
258 258
	a.select2-choice div {
259 259
		box-sizing: content-box;
260
		padding: 0.3ex 0 0.3ex 0;
260
		padding: 0.2em 0 0.2em 0;
261 261
		background: $widget-background;
262 262
		color: $widget-color;
263 263
		border-radius: $widget-border-radius;
......
451 451
	form.quixote div.widget {
452 452
		// increase bottom margin as the single border pushes away the
453 453
		// widget from the label and we have to compensate.
454
		margin-bottom: 3ex;
454
		margin-bottom: 1.8em;
455 455
	}
456 456
}
static/includes/_jqueryui.scss
49 49
				background: #eee;
50 50
				border: 1px solid #aaa;
51 51
				display: block;
52
				padding: 0.4ex 1ex;
52
				padding: 0.3em 0.7em;
53 53
				&:hover {
54 54
					border-color: #666;
55 55
				}
......
63 63
	.ui-datepicker-prev {
64 64
		display: block;
65 65
		position: absolute;
66
		left: 0.5ex;
66
		left: 0.3em;
67 67
		cursor: pointer;
68 68
		&::after {
69 69
			font-family: FontAwesome;
......
76 76
	.ui-datepicker-next {
77 77
		display: block;
78 78
		position: absolute;
79
		right: 0.5ex;
79
		right: 0.3em;
80 80
		cursor: pointer;
81 81
		&::after {
82 82
			font-family: FontAwesome;
......
213 213
	z-index: 100000;
214 214
	div.ui-tooltip-content {
215 215
		background: white;
216
		padding: 1ex;
216
		padding: 0.7em;
217 217
	}
218 218
}
219 219

  
......
230 230
	overflow-x: hidden;
231 231
	li {
232 232
		margin: 0;
233
		padding: 0 1ex;
233
		padding: 0 0.7em;
234 234
		position: relative;
235 235
		min-height: 0;
236 236
		&:hover {
static/includes/_layout.scss
44 44
	position: relative;
45 45
	top: 0px;
46 46
	z-index: 0;
47
	padding: 0 1ex;
47
	padding: 0 0.7em;
48 48
	& h1 {
49 49
		margin: 0;
50 50
	}
......
118 118

  
119 119
@media screen and (max-width: $mobile-limit) {
120 120
	#columns {
121
		padding: 0 1ex;
121
		padding: 0 0.7em;
122 122
		max-width: 100%;
123 123
	}
124 124
	#right, #left {
......
135 135
			-webkit-flex: 0 0 auto;
136 136
			flex: 0 0 auto;
137 137
			max-width: 100%;
138
			margin: 0 1ex;
138
			margin: 0 0.7em;
139 139
			div.cell {
140 140
				margin-left: 0;
141 141
				margin-right: 0;
......
146 146

  
147 147
#footer-wrapper {
148 148
	clear: both;
149
	padding: 1ex 0 2ex 0;
149
	padding: 0.7em 0 1.5em 0;
150 150
	background-color: $footer-background;
151 151
	color: $footer-color;
152 152
	&::after {
static/includes/_library.scss
52 52
		font-family: $table-headers-font-family;
53 53
	}
54 54
	th, td {
55
		padding: 0.5ex 2ex 0.5ex 1ex;
55
		padding: 0.3em 1.5em 0.3em 0.7em;
56 56
		border-bottom: 1px solid #aaa;
57 57
	}
58 58
	th {
static/includes/_misc.scss
15 15
div.textcell h5,
16 16
div.textcell p,
17 17
div.textcell table {
18
	margin: 1ex 0.5rem;
18
	margin: 0.7em 0.5rem;
19 19
}
20 20

  
21 21
@media screen and (max-width: $mobile-limit) {
......
85 85
}
86 86

  
87 87
div#login-methods input {
88
	margin-left: 1ex;
88
	margin-left: 0.7em;
89 89
}
90 90

  
91 91
#profile span.label {
......
96 96

  
97 97
#profile div.value {
98 98
	margin-left: 0;
99
	margin-bottom: 1ex;
99
	margin-bottom: 0.7em;
100 100
	span.nodata {
101 101
		font-style: italic;
102 102
	}
......
124 124
	background: rgba(255, 255, 255, 0.95);
125 125
	text-align: center;
126 126
	box-shadow: 0 0 8px 1px #666;
127
	padding: 1ex 0;
127
	padding: 0.7em 0;
128 128
	bottom: 0;
129 129

  
130 130
	& div.actions {
131
		padding-top: 1ex;
131
		padding-top: 0.7em;
132 132
	}
133 133

  
134 134
	& button {
......
312 312
// lingo cells
313 313
table.invoices th.invoice-amount {
314 314
	text-align: right;
315
	padding-right: 1ex;
315
	padding-right: 0.7em;
316 316
}
317 317

  
318 318
td.amount {
......
324 324

  
325 325
	th {
326 326
		text-align: left;
327
		padding: 0.5ex;
327
		padding: 0.3em;
328 328
	}
329 329

  
330 330
	td {
331
		padding: 0.5ex 1ex;
331
		padding: 0.3em 0.7em;
332 332
	}
333 333

  
334 334
	tr:nth-child(even) {
......
345 345
	}
346 346

  
347 347
	a.icon-view:before {
348
		padding-right: 1ex;
348
		padding-right: 0.7em;
349 349
		font-family: FontAwesome;
350 350
		content: "\f06e\00a0";  // eye
351 351
	}
352 352

  
353 353
	a.icon-pdf:before {
354
		padding-right: 1ex;
354
		padding-right: 0.7em;
355 355
		font-family: FontAwesome;
356 356
		content: "\f1c1\00a0";  // file-pdf-o
357 357
	}
......
364 364
		right: 1em;
365 365
	}
366 366
	div {
367
		margin: 2ex 0;
367
		margin: 1.5em 0;
368 368
		border-bottom: 1px dotted #ccc;
369
		padding-bottom: 0.5ex;
369
		padding-bottom: 0.3em;
370 370
		&.paid-info::before,
371 371
		&.no-online-payment-reason::before {
372 372
			content: '\f05a';  // info-circle
......
391 391

  
392 392
	th {
393 393
		text-align: left;
394
		padding: 0.5ex;
394
		padding: 0.3em;
395 395
		text-transform: lowercase;
396 396
	}
397 397

  
......
413 413
	}
414 414

  
415 415
	td {
416
		padding: 0.5ex 1em;
416
		padding: 0.3em 1em;
417 417
		border: 1px solid white;
418 418
	}
419 419

  
......
469 469
	}
470 470

  
471 471
	td.action-column {
472
		width: 2ex;
472
		width: 1.5em;
473 473
		text-align: center;
474 474
		vertical-align: middle;
475 475
	}
......
506 506
		min-height: 2rem;
507 507
		list-style: none;
508 508
		margin: 0 0 1em 0;
509
		padding: 2ex 1ex 1.5ex 0;
509
		padding: 1.5em 0.7em 1em 0;
510 510
		li {
511 511
			float: left;
512 512
			line-height: 150%;
......
522 522

  
523 523
.fargo-pick-popup th {
524 524
	text-align: left;
525
	padding: 0.5ex;
525
	padding: 0.3em;
526 526
	text-transform: lowercase;
527 527
}
528 528

  
......
533 533
table.headers th {
534 534
	background: $button-background;
535 535
	color: $button-color;
536
	padding: 1ex 1em;
536
	padding: 0.7em 1em;
537 537
}
538 538

  
539 539
table.centered-cells td {
......
550 550

  
551 551
div.meetings_table {
552 552
	// style for templates/qommon/forms/widgets/select--meetings.html
553
	margin-top: 1ex;
553
	margin-top: 0.7em;
554 554
	display: flex;
555 555
	width: 100%;
556 556
	& > div {
......
561 561
	}
562 562

  
563 563
	div.head {
564
		padding-bottom: 1ex;
564
		padding-bottom: 0.7em;
565 565
	}
566 566

  
567 567
	div span {
568 568
		display: block;
569 569
		cursor: pointer;
570
		padding: 0.3ex 0;
570
		padding: 0.2em 0;
571 571
		&.disabled {
572 572
			opacity: 0.3;
573 573
		}
static/includes/_nav.scss
205 205
		display: block;
206 206
		background: transparent;
207 207
		li a {
208
			padding-left: 5ex;
208
			padding-left: 3em;
209 209
		}
210 210
	}
211 211

  
static/includes/_user-info.scss
9 9
	background: white;
10 10
	box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.16), 0px 2px 10px 0px rgba(0, 0, 0, 0.12);
11 11
	width: auto;
12
	padding: 1ex 2em 0.3ex 2em;
12
	padding: 0.7em 2em 0.2em 2em;
13 13
	border: 3px solid $primary-color;
14 14
	border-width: 0 1px 1px 1px;
15 15
	@media screen and (max-width: $mobile-limit) {
......
18 18
		max-width: 90%;
19 19
		text-align: right;
20 20
		border-bottom-right-radius: 0;
21
		padding-right: 1ex;
21
		padding-right: 0.7em;
22 22
		& span.sep {
23 23
			display: none;
24 24
		}
......
26 26
}
27 27

  
28 28
#toplinks span.connected-user {
29
	padding-right: 1ex;
29
	padding-right: 0.7em;
30 30
	@media screen and (max-width: $mobile-limit) {
31 31
		padding-right: 0;
32 32
	}
static/includes/_wcs.scss
123 123
div#tracking-code a {
124 124
	font-size: 150%;
125 125
	display: inline-block;
126
	padding: 0.5ex 0 0 0.5ex;
126
	padding: 0.3em 0 0 0.3em;
127 127
	color: #444;
128 128
}
129 129

  
......
145 145
	& li {
146 146
		border: 0;
147 147
		border-bottom: 1px solid #ccc;
148
		margin-bottom: 2ex;
148
		margin-bottom: 1.5em;
149 149
		border-radius: $border-radius;
150
		padding: 1ex;
150
		padding: 0.7em;
151 151
		letter-spacing: 1px;
152 152
	}
153 153
	& li.current {
......
211 211
				border: none;
212 212
				display: inline-block;
213 213
				margin: 0;
214
				padding: 0 1em 1ex 0;
214
				padding: 0 1em 0.7em 0;
215 215
				list-style: none;
216 216
				min-width: auto;
217 217
				border-radius: 0;
......
259 259
	div#gauche {
260 260
		text-align: left;
261 261
		div#tracking-code a {
262
			padding-left: 0.5ex;
262
			padding-left: 0.3em;
263 263
		}
264 264
	}
265 265
}
......
272 272
	content: "\f084";
273 273
	font-family: FontAwesome;
274 274
	position: absolute;
275
	right: 1ex;
275
	right: 0.7em;
276 276
	color: #444;
277 277
}
278 278

  
......
345 345
	display: inline-block;
346 346
	background: $body-background;
347 347
	margin-left: 60px;
348
	padding: 1ex;
348
	padding: 0.7em;
349 349
	padding-top: 30px;
350 350
	padding-bottom: 0;
351 351
	margin-bottom: 0;
......
375 375
}
376 376

  
377 377
ul#evolutions li div.msg {
378
	padding: 1ex;
378
	padding: 0.7em;
379 379
	padding-top: 0;
380 380
	position: relative;
381 381
	background: $body-background;
......
390 390
}
391 391

  
392 392
ul#evolutions li div.msg div.comment {
393
	padding: 1ex 1em;
393
	padding: 0.7em 1em;
394 394
	background: #EEEEEE;
395 395
}
396 396

  
......
427 427

  
428 428
div.dataview {
429 429
	div.field {
430
		margin-bottom: 1ex;
430
		margin-bottom: 0.7em;
431 431
	}
432 432
	span.label {
433 433
		font-weight: bold;
434 434
	}
435 435
	.value {
436 436
		display: block;
437
		margin-left: 1ex;
437
		margin-left: 0.7em;
438 438
	}
439 439
}
440 440

  
441 441
form div.errornotice {
442
	margin-top: 0ex;
442
	margin-top: 0;
443 443
}
444 444

  
445 445
// classes to be used in forms (legacy, grid system to be preferred)
......
479 479

  
480 480
div.form-validation div.page {
481 481
	background: #f0f0f0;
482
	padding-left: 1ex;
482
	padding-left: 0.7em;
483 483
	box-sizing: border-box;
484 484
}
485 485

  
486 486
div.form-validation div.page > h3 {
487
	padding-top: 1ex;
487
	padding-top: 0.7em;
488 488
	font-size: 140%;
489 489
}
490 490

  
......
499 499
}
500 500

  
501 501
span.geoloc-error {
502
	padding-left: 1ex;
502
	padding-left: 0.7em;
503 503
	font-weight: normal;
504 504
	font-size: smaller;
505 505
	float: right;
......
522 522
	.bar {
523 523
		background: $button-background;
524 524
		line-height: 1.5em;
525
		padding-left: 1ex;
525
		padding-left: 0.7em;
526 526
		white-space: nowrap;
527 527
		transition: background linear 0.1s;
528 528
	}
529
-