botascopia-webiste-static/assets/css/_home.scss

309 lines
5.7 KiB
SCSS
Raw Normal View History

2026-02-12 18:56:14 +01:00
@use "abstracts/mixins.scss" as *;
2026-01-12 18:25:15 +01:00
2026-02-12 18:56:14 +01:00
#home__livrets {
2026-01-09 12:23:22 +01:00
--color: var(--color-violet);
--color-medium: var(--color-violet-medium);
--color-light: var(--color-violet-light);
2026-02-12 18:56:14 +01:00
background-color: var(--color);
color: var(--white);
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
#home__animations {
2026-01-09 12:23:22 +01:00
--color: var(--color-yellow);
--color-medium: var(--color-yellow-medium);
--color-light: var(--color-yellow-light);
2026-02-12 18:56:14 +01:00
background-color: var(--color);
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
color: var(--color-txt);
}
#home__base-connaissance {
2026-01-09 12:23:22 +01:00
--color: var(--color-orange);
--color-medium: var(--color-orange-medium);
--color-light: var(--color-orange-light);
background-color: var(--color);
}
2026-02-12 18:56:14 +01:00
#main_home {
--max-w-home: 1100px;
section {
2026-01-09 12:23:22 +01:00
padding: calc(var(--unit)*3) var(--padding-body);
2026-02-10 17:53:47 +01:00
position: relative;
2026-02-12 18:56:14 +01:00
.section--inner {
max-width: var(--max-w-home);
2026-01-09 12:23:22 +01:00
margin: 0 auto;
2026-02-12 18:56:14 +01:00
}
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
.item-nav__group {
display: flex;
flex-direction: column;
gap: var(--spacing);
}
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
.section--header {
margin-bottom: calc(var(--spacing) * 4);
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
display: grid;
// grid-template-columns: 3fr 2fr;
grid-template-columns: 1fr 440px;
gap: calc(var(--spacing)*1);
}
.section--title {
2026-02-11 15:55:10 +01:00
font-size: 2.8rem;
font-family: var(--font-title);
2026-02-12 18:56:14 +01:00
// margin-bottom: calc(var(--spacing) * 1.5);
grid-column: span 2;
2026-02-11 15:55:10 +01:00
}
2026-02-12 18:56:14 +01:00
.baseline {
2026-02-11 15:55:10 +01:00
font-size: var(--fs-medium);
2026-02-12 18:56:14 +01:00
max-width: 42ch;
margin-top: calc(var(--spacing)*0.5);
2026-02-11 15:55:10 +01:00
}
}
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
.slideshow {
2026-01-12 20:06:16 +01:00
width: 100%;
2026-01-12 21:13:05 +01:00
height: calc(var(--unit)*13);
2026-02-12 18:56:14 +01:00
figure {
2026-01-12 21:13:05 +01:00
height: calc(var(--unit)*11);
}
2026-01-12 20:06:16 +01:00
}
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
#home__hero {
2026-01-09 12:23:22 +01:00
margin-bottom: 0;
2026-02-12 18:56:14 +01:00
padding-bottom: calc(var(--unit)*1.5) !important;
2026-01-12 21:19:10 +01:00
2026-02-12 18:56:14 +01:00
.section--inner {
2026-01-09 12:23:22 +01:00
display: block;
text-align: center;
width: 100%;
max-width: 100%;
2026-02-12 18:56:14 +01:00
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
.section--title {
2026-01-09 12:23:22 +01:00
font-size: 3.6em;
margin-bottom: calc(var(--unit)*1.5);
color: var(--color);
}
/* button{ display: none;} */
2026-02-12 18:56:14 +01:00
.description {
2026-02-11 15:55:10 +01:00
font-size: var(--fs-medium);
2026-01-09 12:23:22 +01:00
max-width: 48ch;
margin: 0 auto;
margin-bottom: calc(var(--unit)*1.5);
}
2026-02-12 18:56:14 +01:00
.search--container {
display: none;
}
2026-01-09 12:23:22 +01:00
2026-02-12 18:56:14 +01:00
.nav-hero {
2026-01-09 12:23:22 +01:00
list-style: none;
display: flex;
justify-content: center;
gap: var(--unit);
margin-top: calc(var(--unit)*1);
margin-bottom: calc(var(--unit)*3);
2026-02-12 18:56:14 +01:00
li {
2026-01-09 12:23:22 +01:00
font-weight: 500;
font-size: 1rem;
min-width: 12ch;
text-align: center;
2026-02-12 18:56:14 +01:00
2026-01-12 21:15:03 +01:00
border: 1.5px solid var(--color);
2026-01-09 12:23:22 +01:00
color: var(--color);
2026-01-12 21:15:03 +01:00
2026-02-12 18:56:14 +01:00
display: inline-flex;
align-items: center;
justify-content: center;
height: calc(var(--unit)*1.5);
padding: 0px 1.5ch;
border-radius: var(--radius-btn);
cursor: pointer;
&:hover {
background-color: var(--color-light);
}
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
a {
2026-01-09 12:23:22 +01:00
text-decoration: none;
color: var(--color);
font-weight: bold;
/* &::after{
content: ""
} */
}
}
2026-02-12 18:56:14 +01:00
.see-more {
2026-01-09 12:23:22 +01:00
display: block;
2026-02-12 18:56:14 +01:00
// color: var(--color-txt);
// font-weight: bold;
padding-top: calc(var(--unit)*1.5);
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
#home__a-propos {
p,
li {
2026-01-09 12:23:22 +01:00
font-size: 1.6rem;
margin-bottom: 1em;
position: relative;
2026-02-12 18:56:14 +01:00
strong {
2026-01-09 12:23:22 +01:00
color: var(--color-green)
}
}
2026-02-12 18:56:14 +01:00
ol li::marker {
2026-01-09 12:23:22 +01:00
display: none;
content: "";
2026-02-12 18:56:14 +01:00
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
ol {
2026-01-09 12:23:22 +01:00
padding-left: 5ch;
counter-reset: ol;
2026-02-12 18:56:14 +01:00
li {
2026-01-09 12:23:22 +01:00
counter-increment: ol 1;
position: relative;
}
}
2026-02-12 18:56:14 +01:00
ol li::before {
2026-01-09 12:23:22 +01:00
font-size: 1.2rem;
font-weight: bold;
content: counter(ol);
display: flex;
justify-content: center;
align-items: center;
width: 2ch;
height: 2ch;
border-radius: 50%;
border: 2px solid var(--color-green);
color: var(--color-green);
background-color: var(--color-green-light);
position: absolute;
left: -4ch;
top: 4px;
2026-02-12 18:56:14 +01:00
2026-01-09 12:23:22 +01:00
}
2026-02-12 18:56:14 +01:00
.btn--solid {
2026-01-09 12:23:22 +01:00
margin-top: calc(var(--unit)*2);
}
}
2026-02-12 18:56:14 +01:00
.slideshow-scroll{
width: 100vw;
position: relative;
left: calc((100vw - var(--max-w-home))*-0.5);
padding-bottom: 20px;
overflow-y: scroll;
@include hide-scrollbar();
margin-top: calc(var(--spacing) * 4);
margin-bottom: calc(var(--spacing) * 4);
.slideshow-scroll__warpper{
// padding-left: calc((100vw - var(--max-w-home))*0.5);
padding-left: var(--padding-body);
display: flex;
gap: var(--padding-inner);
.slideshow-item{
flex-shrink: 0;
figure{
height: 420px;
width: 100%;
img{
width: 100%;
aspect-ratio: 5/3;
}
}
}
&::after{
content: "........................................";
display: block;
width: calc((100vw - var(--max-w-home))*1);
color: transparent;
}
}
}
.screenshot-booklet{
display: flex;
--size-page: 340px;
--gap: var(--padding-inner);
gap: var(--gap);
width: calc(var(--size-page)*5 + var(--gap)*2);
.cover, .page{
width: 300px;
img{
border: 0.5px solid var(--color-txt-light);
width: 100%;
}
}
.double{
display: flex;
}
.page + .page img{
border-left-color: transparent!important;
}
}