julienmonnerie/assets/css/main.scss
2022-12-21 15:11:56 +01:00

178 lines
3.1 KiB
SCSS

@use 'utils/minireset';
@use '@splidejs/splide/dist/css/splide-core.min';
@use 'partials/fonts';
@use 'partials/variables' as *;
@use 'partials/animations';
// ----------------------------------------------------------------------------
// GENERALITIES
// ----------------------------------------------------------------------------
// Fonts and colors
body {
font-family: var(--text-font-family);
font-size: var(--text-font-size);
line-height: var(--text-line-height);
color: var(--black);
}
strong {
font-weight: var(--bold-font-weight);
}
em {
font-style: italic;
}
// Link style
a {
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;
}
}
// General layout
body {
min-height: 100vh;
overflow-x: hidden;
}
// ----------------------------------------------------------------------------
// MAIN
// ----------------------------------------------------------------------------
// Home section
.home-section {
position: relative;
z-index: 1;
width: 100%;
min-height: 100vh;
padding: var(--sidebar-padding);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
}
.navigation {
max-width: 100%;
&__item {
+ .navigation__item {
margin: 0.3rem 0 0 0;
}
}
&__link {
display: block;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: var(--bold-font-weight);
transition: color 200ms ease-in-out;
&--white {
color: var(--white);
&:focus-visible {
outline: 1px dashed var(--white);
}
}
}
}
.social {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin: 0.8rem 0 0 0;
&__link {
width: var(--icon-size);
height: var(--icon-size);
display: flex;
justify-content: center;
align-items: center;
+ .social__link {
margin: 0 0 0 0.8rem;
}
svg {
width: 100%;
height: 100%;
}
&--white {
&:focus-visible {
outline: 1px dashed var(--white);
}
}
}
}
@media screen and (min-width: $tablet-media-query) {
.navigation {
&__item {
+ .navigation__item {
margin: 0.2rem 0 0 0;
}
}
}
.social {
justify-content: flex-start;
}
}
@media screen and (min-width: $desktop-media-query) {
.navigation {
&__item {
+ .navigation__item {
margin: 0.1rem 0 0 0;
}
}
}
}
// Slider section
.slider-section {
position: fixed;
top: 0;
left: 0;
}
.splide {
&__image {
width: 100%;
height: 100%;
object-fit: cover;
}
}