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

65 lines
1.4 KiB
SCSS
Raw Normal View History

2024-03-29 21:29:59 +01:00
#block-erabletheme-unequestion {
position: relative;
display: grid;
grid-template-columns: 0.5fr 1fr;
grid-template-rows: repeat(2, 1fr);
align-items: center;
width: 50vw;
margin-left: 1.5vw;
@include main_text_content();
background-color: $teal;
color: white;
font-weight: 800;
padding-bottom: 2rem;
padding-top: 1.5rem;
padding-right: 0.5rem;
@media (min-width: $breakpoint_tablet) {
position: absolute;
width: 40vw;
left: 1.5vw;
bottom: -25vh;
}
@media (min-width: $breakpoint_desktop) {
left: unset;
right: 1.5vw;
width: 22vw;
bottom: unset;
top: 24vh;
padding-right: 1rem;
}
> h2 {
grid-column: 2;
}
> div {
grid-column: 2;
a {
color: white;
text-decoration: underline;
}
}
}
#block-erabletheme-unequestion::before {
content: "?";
grid-column: 1;
grid-row: 1/3;
justify-self: center;
align-self: center;
border: solid 1px white;
width: 3rem;
height: 3rem;
border-radius: 1.5rem;
font-size: 1.6rem;
display: flex;
justify-content: center;
align-items: center;
margin-right: 0.5rem;
2024-03-30 18:41:51 +01:00
}
#block-erabletheme-unequestion a {
display: block;
transform: translateY(0);
transition: transform 0.2s ease-out;
}
#block-erabletheme-unequestion a:hover {
transform: translateY(-2px);
2024-03-29 21:29:59 +01:00
}