drupal-erable/web/themes/erabletheme/scss/_fullpage.scss

189 lines
4.2 KiB
SCSS
Raw Normal View History

2023-12-13 15:08:55 +01:00
.fullpage {
margin-bottom: 10vh;
2023-12-13 15:08:55 +01:00
padding-top: 3vh;
2024-11-05 01:44:18 +01:00
padding-bottom: 3vh;
background-color: white;
2023-12-17 16:49:23 +01:00
position: relative;
2024-11-05 01:44:18 +01:00
h2 {
margin-top: 5vh !important;
margin-bottom: 7vh;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@include main_title();
2023-12-13 15:08:55 +01:00
}
2024-01-26 16:17:45 +01:00
.legende {
display: block !important;
font-size: 0.8rem;
color: $dark_green;
}
2023-12-13 15:08:55 +01:00
.fullpage_content {
> h2 {
margin-bottom: 1rem;
2023-12-13 15:08:55 +01:00
}
.sous_titre {
font-size: $l_font_size;
padding: 0 $x_margin;
@include main_text_content();
2023-12-13 15:08:55 +01:00
}
2024-10-31 01:32:57 +01:00
2023-12-13 15:08:55 +01:00
p {
padding: 0 $x_margin;
margin-bottom: 2rem;
@include main_text_content();
2023-12-13 15:08:55 +01:00
}
p:first-of-type {
margin-top: 7vh;
}
.liens_fixed > div > div, .file_fixed > div > div {
padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0;
@include fluo_button();
a {
display: inline-block;
}
@media (min-width: $breakpoint_desktop) {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
left: 75vw;
bottom: 10vh;
> div {
height: 3vh;
}
a {
max-width: calc(25vw - $x_margin * 2);
}
}
}
.file_fixed span:last-of-type {
display: none;
2023-12-13 15:08:55 +01:00
}
2024-01-06 09:39:13 +01:00
h3, h4, h5, h6 {
margin-bottom: 1rem;
padding-left: $x_margin;
@include sous_titre();
2024-01-06 09:39:13 +01:00
}
2023-12-13 15:08:55 +01:00
}
.views-row {
margin-bottom: 8vh;
}
@media (min-width: $breakpoint_tablet) {
2024-11-05 01:44:18 +01:00
margin-top: 5vh;
padding-top: 0;
width: 75vw;
margin-left: 12.5vw;
}
@media (min-width: $breakpoint_desktop) {
2024-11-05 01:44:18 +01:00
margin-top: 13vh;
width: 50vw;
margin-left: 25%;
}
2024-10-31 01:32:57 +01:00
&.large-container {
@media (min-width: $breakpoint_tablet) {
width: auto;
margin-left: $x_margin;
margin-right: $x_margin;
}
}
}
2024-11-05 01:44:18 +01:00
main:has(#block-erabletheme-leprogramme-2) {
.fullpage {
@media (min-width: $breakpoint_tablet) {
width: 70vw;
margin-left: 2vw;
}
@media (min-width: $breakpoint_desktop) {
width: 50vw;
margin-left: 3vw;
margin-right: 24vw;
}
}
}
aside.layout-sidebar-first:has(#block-erabletheme-leprogramme-2) {
height: auto;
margin-top: 2vh;
margin-bottom: 2vh;
@media screen and (min-width: $breakpoint_tablet) {
margin-top: 5vh;
margin-bottom: 0;
}
@media screen and (min-width: $breakpoint_desktop) {
margin-top: 13vh;
}
> div {
width: auto;
display: inline-block;
@media screen and (min-width: $breakpoint_tablet) {
position: sticky;
top: 5vh;
width: 27vw;
}
@media screen and (min-width: $breakpoint_desktop) {
top: 12vh;
width: 22vw;
}
#block-erabletheme-leprogramme-2 {
padding: 1.5rem;
background-color: white;
margin-left: 2vw;
> h2 {
padding-bottom: 1rem;
border-bottom: solid 1px $teal;
display: flex;
justify-content: space-between;
cursor: pointer;
> span {
@include sous_titre();
}
> div {
mask-image: url('/themes/erabletheme/assets/icons/arrow-down-s-line.svg');
background-size: contain;
background-color: $teal;
width: 1.3rem;
height: 1.3rem;
color: $teal;
transform: rotate(0deg);
transition: transform 0.3s ease;
&.closed {
transform: rotate(180deg);
}
}
}
> ul {
max-height: 100vh;
overflow: hidden;
transition: max-height 0.6s ease;
> li {
margin: 1rem 0;
@include main_text_content();
> a {
color: black;
font-size: $m_font_size;
&:hover,
&.is-active {
font-weight: 800;
}
}
}
&.closed {
max-height: 0vh;
}
}
}
}
}