julienmonnerie/assets/css/main.scss

179 lines
3.2 KiB
SCSS
Raw Normal View History

2022-07-18 19:15:03 +02:00
@use 'utils/minireset';
2022-08-02 18:50:27 +02:00
@use '@splidejs/splide/dist/css/splide-core.min';
2022-06-17 17:51:59 +02:00
@use 'partials/variables' as *;
@use 'partials/animations';
// ----------------------------------------------------------------------------
// GENERALITIES
// ----------------------------------------------------------------------------
// Fonts and colors
2022-07-06 17:18:42 +02:00
body {
2022-09-09 15:26:04 +02:00
font-family: var(--text-font-family);
font-size: var(--text-font-size);
line-height: var(--text-line-height);
color: var(--black);
2022-08-01 16:59:46 +02:00
}
2022-07-06 17:18:42 +02:00
strong {
2022-09-09 15:26:04 +02:00
font-weight: var(--bold-font-weight);
2022-07-01 16:04:59 +02:00
}
2022-07-06 17:18:42 +02:00
em {
2022-09-09 15:26:04 +02:00
font-style: italic;
2022-07-01 16:04:59 +02:00
}
2022-07-06 17:18:42 +02:00
// Link style
a {
2022-09-09 15:26:04 +02:00
color: var(--black);
text-decoration: none;
transition: text-decoration 200ms ease-in-out;
&:hover,
&:focus,
&:active {
text-decoration: underline;
}
&:focus-visible {
outline: 1px dashed var(--black);
outline-offset: 2px;
animation: expand-outline 200ms ease-in-out;
}
2022-07-06 17:18:42 +02:00
}
// General layout
body {
2022-09-09 15:26:04 +02:00
min-height: 100vh;
overflow-x: hidden;
2022-08-08 12:40:16 +02:00
}
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
2022-11-23 14:55:44 +01:00
// MAIN
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
2022-11-23 14:55:44 +01:00
// Home section
2022-06-17 17:51:59 +02:00
2022-11-23 14:55:44 +01:00
.home-section {
position: relative;
2022-11-22 16:10:47 +01:00
z-index: 1;
2022-09-09 15:26:04 +02:00
width: 100%;
2022-11-23 14:55:44 +01:00
min-height: 100vh;
2022-09-09 15:26:04 +02:00
padding: var(--sidebar-padding);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
2022-11-23 14:55:44 +01:00
}
2022-09-09 15:26:04 +02:00
2022-11-23 14:55:44 +01:00
.navigation {
max-width: 100%;
2022-12-21 17:21:58 +01:00
&__item {
+ .navigation__item {
margin: 0.3rem 0 0 0;
}
}
2022-11-23 14:55:44 +01:00
&__link {
2022-12-21 17:21:58 +01:00
display: block;
max-width: fit-content;
2022-09-09 15:26:04 +02:00
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
2022-11-23 11:58:30 +01:00
font-weight: var(--bold-font-weight);
transition: color 200ms ease-in-out;
&--white {
color: var(--white);
&:focus-visible {
outline: 1px dashed var(--white);
}
}
2022-09-09 15:26:04 +02:00
}
2022-11-23 14:55:44 +01:00
}
2022-09-09 15:26:04 +02:00
2022-11-23 14:55:44 +01:00
.social {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 0.8rem 0 0 0;
&__link {
2022-09-09 15:26:04 +02:00
width: var(--icon-size);
height: var(--icon-size);
display: flex;
justify-content: center;
align-items: center;
2022-11-23 14:55:44 +01:00
+ .social__link {
2022-09-27 16:42:28 +02:00
margin: 0 0 0 0.8rem;
2022-09-09 15:26:04 +02:00
}
svg {
width: 100%;
height: 100%;
}
&--white {
&:focus-visible {
outline: 1px dashed var(--white);
}
}
2022-09-09 15:26:04 +02:00
}
2022-08-05 17:14:28 +02:00
}
2022-07-26 17:03:58 +02:00
2022-12-20 11:43:50 +01:00
@media screen and (min-width: $tablet-media-query) {
2022-07-22 17:53:26 +02:00
2022-12-21 17:21:58 +01:00
.navigation {
&__item {
+ .navigation__item {
margin: 0.2rem 0 0 0;
}
}
}
2022-11-23 14:55:44 +01:00
.social {
justify-content: flex-start;
2022-09-09 15:26:04 +02:00
}
2022-07-06 17:18:42 +02:00
}
2022-12-21 17:21:58 +01:00
@media screen and (min-width: $desktop-media-query) {
.navigation {
&__item {
+ .navigation__item {
margin: 0.1rem 0 0 0;
}
}
}
}
2022-08-02 18:50:27 +02:00
// Slider section
.slider-section {
position: fixed;
top: 0;
2022-11-23 14:55:44 +01:00
left: 0;
2022-08-02 18:50:27 +02:00
}
2022-11-23 14:55:44 +01:00
.splide {
&__image {
width: 100%;
height: 100%;
object-fit: cover;
}
}