Skip to content

Commit df5270f

Browse files
committed
fix prettier
Signed-off-by: Younes Khoudli <[email protected]>
1 parent cd3d211 commit df5270f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2220
-1939
lines changed

front/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
"@rjsf/utils": "^5.24.11",
2626
"@rjsf/validator-ajv8": "^5.24.11",
2727
"@sdziadkowiec/react-datasheet-grid": "^4.12.3",
28-
2928
"bootstrap": "4.3.1",
3029
"flatpickr": "^4.6.2",
3130
"ion-rangeslider": "^2.2.0",
32-
3331
"@turf/along": "^7.3.1",
3432
"@turf/bbox": "^7.3.1",
3533
"@turf/bbox-clip": "^7.3.1",

front/src/styles/scss/vendor/bootstrap-sncf/site-common/components/_accordion.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@
1919
padding-right: rem(30px);
2020
font-size: $font-size-base;
2121
font-weight: $font-weight-medium;
22-
color: theme-color("primary");
22+
color: theme-color('primary');
2323
text-transform: none;
2424
}
2525

2626
.accordion-toggle {
2727
font-size: $font-size-base;
2828
font-weight: $font-weight-medium;
29-
color: theme-color("primary");
29+
color: theme-color('primary');
3030
cursor: pointer;
3131
background-color: transparent;
3232
border: none;
3333

34-
[class^="icons-arrow-"] {
34+
[class^='icons-arrow-'] {
3535
display: inline-block;
36-
transition: transform .15s ease-out;
36+
transition: transform 0.15s ease-out;
3737
}
3838
}
3939

@@ -50,11 +50,11 @@
5050
// expanded state
5151
//
5252

53-
.accordion-head[aria-expanded="true"] {
54-
color: theme-color("primary-dark");
53+
.accordion-head[aria-expanded='true'] {
54+
color: theme-color('primary-dark');
5555

5656
.accordion-toggle {
57-
[class^="icons-arrow-"] {
57+
[class^='icons-arrow-'] {
5858
transform: rotate(180deg);
5959
}
6060
}
@@ -77,7 +77,7 @@
7777
display: inline-block;
7878
}
7979

80-
.accordion-head[aria-expanded="true"] {
80+
.accordion-head[aria-expanded='true'] {
8181
.accordion-toggle-close {
8282
display: inline-block;
8383
}

front/src/styles/scss/vendor/bootstrap-sncf/site-common/components/_advanced-search.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
width: 100%;
2222
height: 100%;
2323
pointer-events: none;
24-
content: " ";
25-
border-top: gray("200") solid 1px;
26-
border-left: gray("200") solid 1px;
24+
content: ' ';
25+
border-top: gray('200') solid 1px;
26+
border-left: gray('200') solid 1px;
2727
border-top-left-radius: $border-radius;
2828
border-top-right-radius: $border-radius;
2929
}

front/src/styles/scss/vendor/bootstrap-sncf/site-common/components/_breadcrumb.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.breadcrumb {
55
font-weight: $font-weight-medium;
6-
border-bottom: 1px solid gray("100");
6+
border-bottom: 1px solid gray('100');
77
border-radius: 0;
88
}
99

@@ -14,7 +14,7 @@
1414
+ .breadcrumb-item::before {
1515
width: rem(8px) + $breadcrumb-item-padding;
1616
height: rem(10px);
17-
content: "";
17+
content: '';
1818
background-image: $breadcrumb-active-divider;
1919
background-repeat: no-repeat;
2020
background-position: center;
@@ -31,7 +31,7 @@
3131

3232
a {
3333
font-weight: $font-weight-normal;
34-
color: gray("400");
34+
color: gray('400');
3535
}
3636
}
3737

front/src/styles/scss/vendor/bootstrap-sncf/site-common/components/_buttons.scss

Lines changed: 56 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
vertical-align: middle;
1515
user-select: none;
1616
border: $btn-border-width solid transparent;
17-
@include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-line-height, $btn-border-radius);
17+
@include button-size(
18+
$btn-padding-y,
19+
$btn-padding-x,
20+
$font-size-base,
21+
$btn-line-height,
22+
$btn-border-radius
23+
);
1824
@include transition($btn-transition);
1925

2026
// Share hover and focus styles
@@ -57,18 +63,23 @@ fieldset:disabled a.btn {
5763
pointer-events: none;
5864
}
5965

60-
6166
//
6267
// Alternate buttons
6368
//
6469

6570
@each $color, $value in $btn-colors {
6671
.btn-#{$color} {
67-
@if type-of($value) == "list" {
72+
@if type-of($value) == 'list' {
6873
@include button-variant(
69-
nth($value, 1), nth($value, 2), nth($value, 3),
70-
nth($value, 4), nth($value, 5), nth($value, 6),
71-
nth($value, 7), nth($value, 8), nth($value, 9)
74+
nth($value, 1),
75+
nth($value, 2),
76+
nth($value, 3),
77+
nth($value, 4),
78+
nth($value, 5),
79+
nth($value, 6),
80+
nth($value, 7),
81+
nth($value, 8),
82+
nth($value, 9)
7283
);
7384
} @else {
7485
@include button-variant($value, $value);
@@ -82,7 +93,6 @@ fieldset:disabled a.btn {
8293
}
8394
}
8495

85-
8696
//
8797
// Link buttons
8898
//
@@ -116,29 +126,33 @@ fieldset:disabled a.btn {
116126
color: $btn-link-disabled-color;
117127
}
118128

119-
[class^="icons-"] {
120-
padding-bottom: .25rem;
129+
[class^='icons-'] {
130+
padding-bottom: 0.25rem;
121131
font-size: rem(13px);
122132
}
123133

124134
// No need for an active state here
125135
}
126136

127137
.btn-link-white {
128-
color: color("white");
138+
color: color('white');
129139
}
130140

131-
132141
//
133142
// Button sizes
134143
//
135144

136145
.btn-sm {
137146
font-weight: $font-weight-medium;
138-
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-base, $btn-line-height-sm, $btn-border-radius-sm);
147+
@include button-size(
148+
$btn-padding-y-sm,
149+
$btn-padding-x-sm,
150+
$font-size-base,
151+
$btn-line-height-sm,
152+
$btn-border-radius-sm
153+
);
139154
}
140155

141-
142156
//
143157
// Block button
144158
//
@@ -154,15 +168,14 @@ fieldset:disabled a.btn {
154168
}
155169

156170
// Specificity overrides
157-
input[type="submit"],
158-
input[type="reset"],
159-
input[type="button"] {
171+
input[type='submit'],
172+
input[type='reset'],
173+
input[type='button'] {
160174
&.btn-block {
161175
width: 100%;
162176
}
163177
}
164178

165-
166179
//
167180
// Button icon
168181
//
@@ -175,7 +188,7 @@ input[type="button"] {
175188
padding: $btn-only-icon-padding;
176189

177190
&.active {
178-
[class^="icons-arrow-"] {
191+
[class^='icons-arrow-'] {
179192
transform: rotate(180deg);
180193
}
181194
}
@@ -198,7 +211,6 @@ input[type="button"] {
198211
}
199212
}
200213

201-
202214
//
203215
// Button navigation
204216
//
@@ -211,9 +223,9 @@ input[type="button"] {
211223
height: rem(40px);
212224
font-size: rem(14px);
213225
font-weight: $font-weight-medium;
214-
color: color("white");
226+
color: color('white');
215227
cursor: pointer;
216-
background-color: gray("400");
228+
background-color: gray('400');
217229
border: none;
218230
border-radius: 50%;
219231
@include transition($btn-transition);
@@ -231,7 +243,7 @@ input[type="button"] {
231243
}
232244

233245
&:not(:disabled):not(.disabled).box-shadow {
234-
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .2);
246+
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
235247

236248
@include hover {
237249
box-shadow: none;
@@ -241,7 +253,7 @@ input[type="button"] {
241253

242254
@each $color, $value in $btn-rounded-colors {
243255
.btn-rounded-#{$color} {
244-
@if type-of($value) == "list" {
256+
@if type-of($value) == 'list' {
245257
color: nth($value, 3);
246258
background-color: nth($value, 1);
247259

@@ -257,7 +269,6 @@ input[type="button"] {
257269
}
258270
}
259271

260-
261272
//
262273
// Button option
263274
//
@@ -268,30 +279,28 @@ input[type="button"] {
268279
color: $body-color;
269280
background-color: transparent;
270281

271-
&[aria-expanded="true"],
282+
&[aria-expanded='true'],
272283
&:focus,
273284
&:active,
274285
&:hover {
275-
color: theme-color("primary");
286+
color: theme-color('primary');
276287
background-color: transparent;
277288
}
278289
}
279290

280-
281291
//
282292
// Button favorite
283293
//
284294

285295
.btn.btn-favorite {
286-
color: gray("300");
296+
color: gray('300');
287297

288298
&:hover,
289299
&.active {
290300
color: #ffb612;
291301
}
292302
}
293303

294-
295304
//
296305
// Button alert
297306
//
@@ -311,13 +320,12 @@ input[type="button"] {
311320
padding-top: 3px;
312321
font-size: rem(9px);
313322
line-height: 1;
314-
color: color("white");
315-
background-color: theme-color("primary");
323+
color: color('white');
324+
background-color: theme-color('primary');
316325
border-radius: 50%;
317326
}
318327
}
319328

320-
321329
//
322330
// Button card
323331
//
@@ -338,33 +346,41 @@ input[type="button"] {
338346
}
339347

340348
@include button-variant(
341-
$btn-card-bg, $btn-card-border, $btn-card-color,
342-
theme-color("primary-dark"), theme-color("primary-dark"), $btn-card-active-color,
343-
$btn-card-active-bg, $btn-card-active-border, $btn-card-active-color
349+
$btn-card-bg,
350+
$btn-card-border,
351+
$btn-card-color,
352+
theme-color('primary-dark'),
353+
theme-color('primary-dark'),
354+
$btn-card-active-color,
355+
$btn-card-active-bg,
356+
$btn-card-active-border,
357+
$btn-card-active-color
344358
);
345359
}
346360

347-
348361
//
349362
// Button color
350363
//
351364

352365
.btn-color-gray {
353366
color: $btn-color-gray;
354367
&:not(:disabled):not(.disabled) {
355-
@include hover-focus-active { color: theme-color("primary"); }
368+
@include hover-focus-active {
369+
color: theme-color('primary');
370+
}
356371
}
357372
}
358373

359374
.btn-color-footer {
360375
color: $carbon;
361-
background-color: color("white");
376+
background-color: color('white');
362377
&:not(:disabled):not(.disabled) {
363-
@include hover-focus-active { background-color: #b9b9b9; }
378+
@include hover-focus-active {
379+
background-color: #b9b9b9;
380+
}
364381
}
365382
}
366383

367-
368384
//
369385
// Button unstyled
370386
//

front/src/styles/scss/vendor/bootstrap-sncf/site-common/components/_chips.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
white-space: nowrap;
4444
vertical-align: middle;
4545
user-select: none;
46-
background-color: theme-color("primary");
47-
border: $btn-border-width solid theme-color("primary");
48-
@include button-size(.5em, 1.125em, $font-size-base, $btn-line-height, $btn-border-radius);
46+
background-color: theme-color('primary');
47+
border: $btn-border-width solid theme-color('primary');
48+
@include button-size(0.5em, 1.125em, $font-size-base, $btn-line-height, $btn-border-radius);
4949
@include transition($btn-transition);
5050

5151
.icons-close {
@@ -61,7 +61,7 @@
6161
@include hover-focus {
6262
text-decoration: none;
6363
cursor: pointer;
64-
background-color: theme-color("primary-dark");
64+
background-color: theme-color('primary-dark');
6565
}
6666

6767
&:focus,

0 commit comments

Comments
 (0)