2017-06-20 11:13:24 +02:00
|
|
|
@import "colors";
|
|
|
|
@import "constants";
|
2022-10-05 13:59:38 +02:00
|
|
|
@import "placeholders";
|
2017-06-20 11:13:24 +02:00
|
|
|
|
|
|
|
.two-columns {
|
|
|
|
|
2018-02-08 17:13:15 +01:00
|
|
|
@media (min-width: $two-columns-breakpoint) {
|
2023-11-13 14:42:51 +01:00
|
|
|
background: linear-gradient(to right, transparent 0%, transparent 50%, var(--background-alt-blue-france) 50%, var(--background-alt-blue-france) 100%);
|
2018-02-08 17:13:15 +01:00
|
|
|
}
|
2017-06-20 11:13:24 +02:00
|
|
|
|
2022-10-10 19:12:52 +02:00
|
|
|
.columns-container { // TODO: https://github.com/betagouv/demarches-simplifiees.fr/issues/7882, once implemented, we won't need container anymore
|
2022-10-05 13:59:38 +02:00
|
|
|
@extend %container;
|
2017-06-20 11:13:24 +02:00
|
|
|
display: flex;
|
2018-02-08 17:13:15 +01:00
|
|
|
flex-direction: column;
|
2019-03-14 17:04:00 +01:00
|
|
|
justify-content: center;
|
2018-02-08 17:13:15 +01:00
|
|
|
|
|
|
|
@media (min-width: $two-columns-breakpoint) {
|
|
|
|
flex-direction: row;
|
2018-03-21 11:01:06 +01:00
|
|
|
align-items: stretch;
|
2019-03-14 16:39:25 +01:00
|
|
|
justify-content: space-between;
|
2018-02-08 17:13:15 +01:00
|
|
|
}
|
2017-06-20 11:13:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.column {
|
2018-02-08 17:13:15 +01:00
|
|
|
width: 100%;
|
|
|
|
max-width: 500px;
|
2019-03-14 17:04:00 +01:00
|
|
|
margin: 0 auto;
|
2019-03-14 17:19:17 +01:00
|
|
|
padding: ($default-padding * 2) 0 0 0;
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
padding-bottom: $default-padding * 2;
|
|
|
|
}
|
2017-06-20 11:13:24 +02:00
|
|
|
|
|
|
|
@media (min-width: $two-columns-breakpoint) {
|
2019-03-14 16:39:25 +01:00
|
|
|
width: 45%;
|
2019-03-14 17:04:00 +01:00
|
|
|
margin: 0;
|
2019-03-14 17:19:17 +01:00
|
|
|
padding: $two-columns-padding 0 $two-columns-padding 0;
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
padding-bottom: $two-columns-padding;
|
|
|
|
}
|
2017-06-20 11:13:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-09-26 08:56:27 +02:00
|
|
|
|
|
|
|
.one-column-centered {
|
|
|
|
margin: auto;
|
|
|
|
max-width: $page-width / 2;
|
|
|
|
}
|
2018-10-04 15:48:23 +02:00
|
|
|
|
|
|
|
.blank-tab {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-10-21 18:12:57 +02:00
|
|
|
|
|
|
|
.sticky--top {
|
|
|
|
position: sticky;
|
|
|
|
// scss-lint:disable VendorPrefix
|
2024-02-13 14:16:33 +01:00
|
|
|
position: -webkit-sticky; // This is needed on Safari (tested on 12.1)
|
2019-10-21 18:12:57 +02:00
|
|
|
// scss-lint:enable VendorPrefix
|
2024-02-13 14:16:33 +01:00
|
|
|
top: 1rem;
|
2019-10-21 18:12:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.sticky--bottom {
|
|
|
|
position: sticky;
|
|
|
|
// scss-lint:disable VendorPrefix
|
2024-02-13 14:16:33 +01:00
|
|
|
position: -webkit-sticky; // This is needed on Safari (tested on 12.1)
|
2019-10-21 18:12:57 +02:00
|
|
|
// scss-lint:enable VendorPrefix
|
|
|
|
bottom: 0;
|
2022-11-22 18:46:04 +01:00
|
|
|
|
|
|
|
z-index: 10; // above DSFR btn which are at 1
|
2019-10-21 18:12:57 +02:00
|
|
|
}
|
|
|
|
|
2020-07-23 14:22:26 +02:00
|
|
|
html.scroll-margins-for-sticky-footer {
|
|
|
|
scroll-padding: 0 0 100px 0;
|
|
|
|
}
|