styles.scss 8.87 KB
Newer Older
1
/* You can add global styles to this file, and also import other style files */
2

3
@import '../node_modules/mapbox-gl/dist/mapbox-gl.css';
4
@import '~scss/init_bulma.scss';
Matthieu BENOIST's avatar
Matthieu BENOIST committed
5
@import '../node_modules/bulma-slider/src/sass/index.sass';
6
@import '../node_modules/bulma-checkradio/dist/css/bulma-checkradio.sass';
7
@import '../node_modules/bulma-tooltip/dist/css/bulma-tooltip.min.css';
8
@import './scss/custom-hamburger.scss';
FORESTIER Fabien's avatar
FORESTIER Fabien committed
9

10
11
12
13
html {
  overflow-y: auto;
}

14
15
16
html,
body {
  height: 100%;
17
  line-height: 1.2rem;
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 .card-header-title,
.navbar {
33
34
35
  font-family: $title-font;
}

36
37
h1,
.h1 {
ncastejon's avatar
ncastejon committed
38
39
40
41
  font-size: $size-1;
  line-height: $size-3;
  margin-top: $size-4;
  margin-bottom: $size-4;
42
43
}

44
45
h2,
.h2 {
46
47
  font-size: $size-3;
  line-height: $size-2;
ncastejon's avatar
ncastejon committed
48
49
  margin-top: $size-4;
  margin-bottom: $size-4;
50
51
}

52
53
h3,
.h3 {
ncastejon's avatar
ncastejon committed
54
55
56
57
  font-size: $size-4;
  line-height: $size-3;
  margin-top: $size-4;
  margin-bottom: $size-4;
58
59
}

60
61
62
63
h4,
.h4,
h5,
.h5 {
ncastejon's avatar
ncastejon committed
64
65
66
67
  font-size: $size-5;
  line-height: $size-5;
  margin-top: $size-4;
  margin-bottom: $size-4;
68
69
}

70
71
72
73
// Hamburger
.hamburger-inner::before {
  width: 15px;
}
74

75
76
77
78
79
80
.hamburger.is-active {
  .hamburger-inner::before {
    width: 20px;
  }
}

81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Overrides checkbox style (from Bulma extension)
.is-checkradio[type="checkbox"] + label::before {
  border-radius: 0;
  background-color: #ffff;

  &:hover {
    border-color: $grey-dark-color;
  }
}

.is-checkradio[type="checkbox"] + label::after {
  border-color: $tomato-color;
}

95
96
97
98
.navbar {
  font-size: $size-6;
}

Jeff Lothéal's avatar
Jeff Lothéal committed
99
100
101
102
.details-container,
.datasets,
.organization,
.reuse {
Jeff Lothéal's avatar
Jeff Lothéal committed
103
104
105
106
107
108
  p,
  span{
    font-size: 0.875rem;
  }
}

109
110
111
select,
input,
ul,
112
tbody {
113
  font-family: $family-sans-serif;
114
  font-size: $size-6;
115
  color: $brand-color;
116
117
}

ncastejon's avatar
ncastejon committed
118
119
// Need to be here, because innerHtml breaks the style inside result-dataset.component
.subtitle span.highlighted {
120
  color: $grey-dark-color;
ncastejon's avatar
ncastejon committed
121
122
}

123
.highlighted {
124
  background: linear-gradient(to bottom, transparent 20%, #fff5c0 20%, #fff5c0 85%, transparent 85%);
125
  font-size: unset;
126
  word-break: break-all;
ncastejon's avatar
ncastejon committed
127
128
}

129
// 3 types of link style
130
a:not(.button) {
131
  color: $link-color;
FORESTIER Fabien's avatar
FORESTIER Fabien committed
132
  text-decoration: none;
133

134
  &:hover {
FORESTIER Fabien's avatar
FORESTIER Fabien committed
135
    text-decoration: underline;
136
  }
137
}
138

139
a:not(.button).link-1 {
FORESTIER Fabien's avatar
FORESTIER Fabien committed
140
141
  color: $brand-color;
  text-decoration: none;
142

143
  &:hover {
FORESTIER Fabien's avatar
FORESTIER Fabien committed
144
    color: $tomato-color;
145
146
147
  }
}

148
149
150
151
152
153
154
155
a:not(.button).link-2 {
  color: $brand-color;

  &:hover {
    font-weight: bold;
  }
}

156
/* stylelint-disable */
157
a:not(.button).link-without-decoration,
158
.dropdown a {
159
  color: $brand-color;
160
  text-decoration: none;
161

162
163
164
  &:hover {
    text-decoration: underline;
  }
165
}
166

167
168
/* stylelint-enable */

169
.active-link {
170
  color: $tomato-color;
171
}
172

173
.appNotification a:not(.button) {
174
  text-decoration: none;
175
}
176

177
178
179
180
181
182
183
184
185
186
187
//Section padding for mobile
.section {
  padding: 0.5rem;
}

@media screen and (min-width: $tablet) {
  .section {
    padding: 1.5rem;
  }
}

ncastejon's avatar
ncastejon committed
188
189
190
191
.title-dgl {
  font-family: $title-font;
}

192
193
194
// In order to see which button is currently focused when using tab on the map
.mapboxgl-ctrl-group {
  button:focus {
195
    background-color: rgba(0, 0, 0, 0.05);
196
  }
197
198
199
}

.mapboxgl-ctrl-minimap {
ncastejon's avatar
ncastejon committed
200
201
202
203
204
  border: 0.1875rem solid white;
  border-radius: 0.5rem;
  box-shadow: 0 0.0625rem 0.4375rem #999;
  margin-right: 0.625rem;
  margin-bottom: 0.625rem;
205
  z-index: -1000;
206

207
208
209
  .mapboxgl-canvas-container {
    cursor: default;
  }
210

211
212
213
  .mapboxgl-canvas {
    cursor: default;
  }
214
}
215

216
217
218
219
.mapboxgl-ctrl-bottom-right {
  display: flex;

  .mapboxgl-ctrl-attrib {
220
221
222
    a {
      color: $brand-color;
    }
223
224
225
226
    margin: 0 10px 10px 0;
  }
}

227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
.link-red {
  color: $tomato-color;
  text-decoration: underline;
}

// Forms
input.has-error {
  border-color: $warning-color;
}

input.is-valid {
  border-color: $success-color;
}

.is-checkradio[type="checkbox"]:focus.is-valid + label::before,
.is-checkradio[type="checkbox"]:hover:not([disabled]).is-valid + label::before,
.is-checkradio[type="checkbox"].is-valid + label::after {
  border-color: $success-color !important;
}

247
.icon.is-icon-success span {
248
249
250
  color: $success-color;
}

251
.icon.is-icon-warning span {
252
253
254
  color: $warning-color;
}

255
form {
256

257
258
259
260
  label,
  .label,
  label span {
    font-size: 0.875rem;
261
    color: $grey-dark-color;
262
263
264
265
266
267
268
    text-transform: uppercase;
    font-weight: normal;
    font-style: normal;

    &:hover {
      cursor: pointer;
    }
269
270
271
  }
}

272
273
274
.label.checkbox-label,
.label.checkbox-label span,
.label.checkbox-label p {
275
  text-transform: none;
276
  color: $brand-color;
277
278
279
  font-weight: 600;
}

280
span.required-field,
281
282
.label span.required-field {
  color: $tomato-color;
283
  padding-left: 0.15rem;
284
285
286
287
288
289
290
291
292
}

.form-incorrect-field-message {
  color: $warning-color;
  font-style: italic;
  font-size: $size-6;
  margin-top: 0.2rem;
}

293
294
295
.btn-blue-text {
  background: transparent;
  border-radius: 2px;
296
  font-size: 0.875rem;
297
  color: $link-color;
298
  border: 1px solid $grey-super-light-color;
299
300
301
  padding: 0.5em 0.75em 0.5em 0.75em;
  white-space: normal;
  line-height: 1;
302
303
  height: 3.14em;
  width: 13.75rem;
304
  max-width: 100%;
305

306
307
  /* stylelint-disable-next-line */
  span {
308
    font-size: 0.875rem;
309
    color: $link-color;
310
311
312
313
    white-space: normal;
    line-height: 1;
  }

314
315
  &:disabled {
    color: $link-color;
316
317
  }

318
319
  &:hover:not(:disabled),
  &:focus:not(:disabled) {
320
    color: $link-color;
321
    border-color: $grey-dark-color;
322
    font-weight: bold;
323
  }
324
325
326
327
328

  &.is-loading::after {
    border-left-color: $link-color;
    border-bottom-color: $link-color;
  }
329
}
330
.btn-red-text {
331
332
  background: white;
  border-radius: 4px;
333
334
335
336
337
338
339
340
341
  font-size: 0.875rem;
  color: $tomato-color;
  border: 1px solid $grey-super-light-color;
  padding: 0.5em 0.75em 0.5em 0.75em;
  white-space: normal;
  line-height: 1;
  height: 3.14em;
  width: 13.75rem;

342
343
  /* stylelint-disable-next-line */
  span {
344
345
346
347
348
349
    font-size: 0.875rem;
    color: $tomato-color;
    white-space: normal;
    line-height: 1;
  }

350
351
  &:disabled {
    color: $tomato-color;
352
353
  }

354
355
  &:hover:not(:disabled),
  &:focus:not(:disabled) {
356
    color: $tomato-color;
357
    border-color: $grey-dark-color;
358
    font-weight: bold;
359
  }
360
361
362
363
364

  &.is-loading::after {
    border-left-color: $tomato-color;
    border-bottom-color: $tomato-color;
  }
365
366
}

367
.button-gl {
368
369
  width: 13.75rem;
  height: 3.14em;
370
  background: $tomato-color;
371
  border-radius: 4px;
372
  border-width: 0;
373
  font-size: 0.875rem;
374
  font-weight: 600;
375
  color: white;
376
  line-height: 1;
377
378
379
380

  &:hover,
  &:focus {
    color: white;
381
    background: $tomato-color;
382
    opacity: 0.92;
383
  }
384

385
  &.is-outlined {
386
    border: 1px solid $grey-super-light-color;
387
    color: $grey-dark-color;
388
389
    background: transparent;

390
391
    &:hover,
    &:focus {
392
      border-color: $tomato-color;
393
      box-shadow: none;
394
    }
395
396

    &:disabled {
397
      color: $grey-dark-color;
398
      background-color: transparent;
399
      opacity: 0.38;
400
      border-color: $grey-super-light-color;
401
    }
402
  }
403

404
  &:disabled {
405
    background: $tomato-color;
406
407
    opacity: 0.38;
  }
408
409
410

  &.is-flat {
    background: transparent;
411
    color: $brand-color;
412
413
    font-weight: bold;

414
415
    &:hover,
    &:focus {
416
417
418
419
      box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.16);
      background-color: #e8ecef;
    }
  }
420
}
421
422
423
.main-container{
  margin-top:0;
}
424

425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
.header-section{
  background-color: white;
  padding:0 2rem;
}
.centered-form{
  padding-bottom: 5rem;
  max-width:850px;
  margin:auto;
  .form-content{
    margin: 2rem;
    padding:2rem;
    background-color: white;
    box-shadow: 0px 6px 12px rgba(129, 128, 128, 0.1);
    border-radius: 8px;
  }
}
441
.page-container {
442
  margin: auto;
443
  min-height: calc(100% - 1rem);
444
445
446
447
448
449
450
451
452
  display: flex;
  justify-content: center;
  flex-grow: 1;

  @media screen and (max-width: $desktop) {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
453
454

  &.has-padding {
455
    padding: 0 1.25rem 4rem 1.25rem;
456
457
  }

458
  &.has-white-background {
459
460
461
    background-color: white;
  }

462
463
464
  &.is-fullwidth {
    margin: auto;
    display: block;
465
    max-width: 100%;
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
    // padding-left: 1.25rem;
    // padding-right: 1.25rem;
    // padding-bottom: 4rem;
    // To remove the margin fusion with the h1
    overflow: hidden;
    // flex-grow: 1;

    @media screen and (min-width: $tablet) {
      max-width: 705px;
      width: 705px;
      margin-top: 1rem;
    }

    @media screen and (min-width: $desktop) {
      max-width: 960px;
      width: 960px;
    }

    @media screen and (min-width: $widescreen) {
      max-width: 1152px;
      width: 1152px;
    }

    @media screen and (min-width: $fullhd) {
      max-width: 1344px;
      width: 1344px;
    }
493
494
  }

495
  @media screen and (min-width: $tablet) {
496
    margin-top: 1rem;
497
498
  }

499
500
501
502
503
504
505
  .post-section {
    background-color: white;
    width: 100%;
    max-width: 680px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 4rem;
506
    position: relative;
507
508
509
510
511
512
513
514
515
516
517
518
    // To remove the margin fusion with the h1
    overflow: hidden;
    flex-grow: 1;

    .feature-image {
      margin-right: -1.25rem;
      margin-left: -1.25rem;

      img {
        width: 100%;
      }
    }
519
520
521
  }
}

Jeff Lothéal's avatar
Jeff Lothéal committed
522
523
524
525
526
527
528
529
530
531
.chapo {
  font-size: 1.0625rem;
  padding-bottom: 1.875rem;
  line-height: normal;

  a{
    font-weight: bold;
  }
}

532
@import "./scss/ghost-style";