julienmonnerie/public/assets/css/main.scss

208 lines
3.6 KiB
SCSS
Raw Normal View History

2022-07-18 19:15:03 +02:00
@use 'utils/minireset';
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 {
font-family: var(--text-font-family);
font-size: var(--text-font-size);
2022-07-19 17:28:33 +02:00
line-height: var(--text-line-height);
2022-07-06 17:18:42 +02:00
color: var(--black);
background-color: var(--white);
}
2022-06-17 17:51:59 +02:00
2022-07-06 17:18:42 +02:00
h1 {
font-family: var(--title-font-family);
font-size: var(--h1-font-size);
2022-07-19 17:28:33 +02:00
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 {
font-family: var(--text-font-family);
font-size: var(--h2-font-size);
2022-07-19 17:28:33 +02:00
line-height: var(--h2-line-height);
2022-07-06 17:18:42 +02:00
margin: 0 0 4rem 0;
}
h3 {
font-family: var(--text-font-family);
font-size: var(--h3-font-size);
2022-07-19 17:28:33 +02:00
line-height: var(--h3-line-height);
2022-07-06 17:18:42 +02:00
margin: 2rem 0 1rem 0;
}
p {
text-align: justify;
2022-07-01 16:04:59 +02:00
}
2022-07-06 17:18:42 +02:00
strong {
font-weight: var(--bold-font-weight);
2022-07-01 16:04:59 +02:00
}
2022-07-06 17:18:42 +02:00
em {
font-style: italic;
2022-07-01 16:04:59 +02:00
}
2022-07-06 17:18:42 +02:00
// 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: 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 {
2022-07-06 17:18:42 +02:00
position: fixed;
top: 0;
bottom: 0;
left: 0;
2022-07-21 17:20:07 +02:00
padding: var(--sidebar-vertical-padding) var(--sidebar-horizontal-padding);
2022-07-06 17:18:42 +02:00
overflow-y: auto;
2022-07-22 17:53:26 +02:00
background-color: var(--transparent-white);
2022-07-19 17:28:33 +02:00
transition: background-color 400ms ease-in-out;
2022-07-06 17:18:42 +02:00
2022-07-21 17:20:07 +02:00
.sidebar__nav {
2022-07-06 17:18:42 +02:00
2022-07-21 17:20:07 +02:00
.sidebar__nav-item {
2022-07-22 17:53:26 +02:00
width: 97vw;
transition: width 400ms ease-in-out;
2022-07-06 17:18:42 +02:00
2022-07-21 17:20:07 +02:00
+ .sidebar__nav-item {
2022-07-19 17:28:33 +02:00
margin: 0.75rem 0 0 0;
2022-07-06 17:18:42 +02:00
}
}
2022-07-22 17:53:26 +02:00
.sidebar__nav-link {
display: inline-block;
max-width: 100vw;
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--black);
transition:
max-width 400ms ease-in-out,
color 400ms ease-in-out;
2022-07-06 17:18:42 +02:00
}
}
2022-07-21 17:20:07 +02:00
.sidebar__social {
2022-07-06 17:18:42 +02:00
display: flex;
align-items: center;
2022-07-19 17:28:33 +02:00
margin: 1rem 0 0 0;
2022-07-06 17:18:42 +02:00
2022-07-22 17:53:26 +02:00
.sidebar__social-link {
2022-07-06 17:18:42 +02:00
width: var(--icon-size);
height: var(--icon-size);
display: flex;
justify-content: center;
align-items: center;
2022-07-22 17:53:26 +02:00
+ .sidebar__social-link {
2022-07-06 17:18:42 +02:00
margin: 0 0 0 1rem;
}
svg {
width: 100%;
height: 100%;
2022-07-22 17:53:26 +02:00
fill: var(--black);
2022-07-06 17:18:42 +02:00
transition: fill 400ms ease-in-out;
}
}
}
2022-07-22 17:53:26 +02:00
&--slimmed {
background-color: transparent;
2022-07-06 17:18:42 +02:00
2022-07-21 17:20:07 +02:00
.sidebar__nav {
2022-07-22 17:53:26 +02:00
.sidebar__nav-item {
width: 15vw;
}
.sidebar__nav-link {
max-width: 15vw;
color: var(--transparent-black);
2022-07-06 17:18:42 +02:00
}
}
2022-07-21 17:20:07 +02:00
.sidebar__social {
2022-07-06 17:18:42 +02:00
svg {
2022-07-22 17:53:26 +02:00
fill: var(--transparent-black);
2022-07-06 17:18:42 +02:00
}
}
2022-07-22 17:53:26 +02:00
&:hover {
background-color: var(--transparent-white);
.sidebar__nav {
.sidebar__nav-link {
color: var(--black);
}
}
.sidebar__social {
svg {
fill: var(--black);
}
}
}
2022-07-06 17:18:42 +02:00
}
}
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
// MAIN
// ----------------------------------------------------------------------------
2022-07-22 17:53:26 +02:00
// Exhibition section
2022-06-17 17:51:59 +02:00
2022-07-22 17:53:26 +02:00
.exhibition-section {
2022-07-06 17:18:42 +02:00
width: 100vw;
height: 100vh;
}
2022-07-22 17:53:26 +02:00
.exhibition-section__iframe {
2022-07-06 17:18:42 +02:00
width: 100%;
height: 100%;
}
2022-06-17 17:51:59 +02:00
// ----------------------------------------------------------------------------
// FOOTER
// ----------------------------------------------------------------------------
// Footer bar