julienmonnerie/assets/css/main.scss

187 lines
3.7 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/fonts';
@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
h1 {
2022-09-09 15:26:04 +02:00
font-family: var(--title-font-family);
font-size: var(--h1-font-size);
line-height: var(--h1-line-height);
2022-07-06 17:18:42 +02:00
}
2022-06-17 17:51:59 +02:00
2022-07-06 17:18:42 +02:00
h2 {
2022-09-09 15:26:04 +02:00
font-family: var(--text-font-family);
font-size: var(--h2-font-size);
line-height: var(--h2-line-height);
margin: 0 0 4rem 0;
2022-07-06 17:18:42 +02:00
}
h3 {
2022-09-09 15:26:04 +02:00
font-family: var(--text-font-family);
font-size: var(--h3-font-size);
line-height: var(--h3-line-height);
margin: 2rem 0 1rem 0;
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
}
@media screen and (min-width: $desktop-media-query) {
2022-09-09 15:26:04 +02:00
body {
overflow-y: hidden;
}
2022-07-01 16:04:59 +02:00
}
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
// HEADER
// ----------------------------------------------------------------------------
2022-07-21 17:20:07 +02:00
// Sidebar
2022-06-17 17:51:59 +02:00
2022-07-21 17:20:07 +02:00
.sidebar {
position: relative;
2022-11-22 16:10:47 +01:00
z-index: 1;
2022-09-09 15:26:04 +02:00
width: 100%;
padding: var(--sidebar-padding);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
background-color: transparent;
.sidebar__nav {
max-width: 100%;
}
.sidebar__nav-link {
display: inline-block;
max-width: 100%;
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
}
.sidebar__social {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
2022-09-27 16:42:28 +02:00
margin: 0.8rem 0 0 0;
2022-09-09 15:26:04 +02:00
}
.sidebar__social-link {
width: var(--icon-size);
height: var(--icon-size);
display: flex;
justify-content: center;
align-items: center;
+ .sidebar__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-08-08 12:40:16 +02:00
@media screen and (min-width: $desktop-media-query) {
2022-07-22 17:53:26 +02:00
2022-09-09 15:26:04 +02:00
.sidebar {
2022-11-22 16:10:47 +01:00
position: fixed;
overflow-y: auto;
top: 0;
bottom: 0;
left: 0;
2022-09-09 15:26:04 +02:00
.sidebar__social {
width: auto;
justify-content: flex-start;
}
}
2022-07-06 17:18:42 +02:00
}
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
// MAIN
// ----------------------------------------------------------------------------
2022-08-02 18:50:27 +02:00
// Slider section
.slider-section {
position: fixed;
top: 0;
right: 0;
2022-08-02 18:50:27 +02:00
}
.splide__image {
width: 100%;
height: 100%;
object-fit: cover;
}