julienmonnerie/public/assets/css/main.scss

257 lines
4.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/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);
2022-08-01 16:59:46 +02:00
background-color: var(--feldgrau);
}
.body--white-background {
2022-07-06 17:18:42 +02:00
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-28 18:59:14 +02:00
// Logo
.logo {
z-index: 2;
position: fixed;
top: 1rem;
right: 1.5rem;
.logo__link {
width: var(--logo-width);
height: var(--logo-height);
display: flex;
justify-content: center;
align-items: center;
}
.logo__icon {
width: 100%;
height: 100%;
&--black {
2022-07-28 18:59:14 +02:00
stroke: var(--black);
2022-08-02 18:50:27 +02:00
transition: stroke 400ms ease-in-out;
2022-07-28 18:59:14 +02:00
}
&--white {
2022-07-28 18:59:14 +02:00
stroke: var(--white);
2022-08-02 18:50:27 +02:00
transition: stroke 400ms ease-in-out;
2022-07-28 18:59:14 +02:00
}
&--rotate-horizontal-bottom {
animation: rotate-horizontal-bottom 800ms ease-in-out infinite;
}
}
}
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-28 18:59:14 +02:00
z-index: 1;
overflow-y: auto;
2022-07-06 17:18:42 +02:00
position: fixed;
top: 0;
bottom: 0;
left: 0;
2022-07-28 18:59:14 +02:00
width: 100%;
2022-07-21 17:20:07 +02:00
padding: var(--sidebar-vertical-padding) var(--sidebar-horizontal-padding);
2022-07-28 18:59:14 +02:00
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
2022-08-01 16:59:46 +02:00
background-color: transparent;
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-28 18:59:14 +02:00
.sidebar__nav {
max-width: 100%;
}
2022-07-26 17:03:58 +02:00
.sidebar__nav-item {
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
+ .sidebar__nav-item {
2022-07-28 18:59:14 +02:00
margin: 0.5rem 0 0 0;
2022-07-06 17:18:42 +02:00
}
2022-07-26 17:03:58 +02:00
}
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
.sidebar__nav-link {
display: inline-block;
2022-07-28 18:59:14 +02:00
max-width: 100%;
2022-07-26 17:03:58 +02:00
overflow-x: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--black);
2022-07-28 18:59:14 +02:00
transition: 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-26 17:03:58 +02:00
}
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
.sidebar__social-link {
width: var(--icon-size);
height: var(--icon-size);
display: flex;
justify-content: center;
align-items: center;
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
+ .sidebar__social-link {
margin: 0 0 0 1rem;
2022-07-06 17:18:42 +02:00
}
}
2022-07-26 17:03:58 +02:00
.sidebar__instagram-icon,
.sidebar__email-icon {
width: 100%;
height: 100%;
fill: var(--black);
transition: fill 400ms ease-in-out;
}
2022-07-22 17:53:26 +02:00
&--slimmed {
2022-07-28 18:59:14 +02:00
width: 15%;
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
.sidebar__nav-link {
color: var(--transparent-black);
}
2022-07-06 17:18:42 +02:00
2022-07-26 17:03:58 +02:00
.sidebar__instagram-icon,
.sidebar__email-icon {
fill: var(--transparent-black);
2022-07-06 17:18:42 +02:00
}
2022-07-22 17:53:26 +02:00
&:hover {
2022-08-01 16:59:46 +02:00
background-color: var(--transparent-feldgrau);
2022-07-22 17:53:26 +02:00
2022-07-26 17:03:58 +02:00
.sidebar__nav-link {
color: var(--black);
2022-07-22 17:53:26 +02:00
}
2022-07-26 17:03:58 +02:00
.sidebar__instagram-icon,
.sidebar__email-icon {
fill: var(--black);
2022-07-22 17:53:26 +02:00
}
}
2022-08-01 16:59:46 +02:00
}
2022-07-22 17:53:26 +02:00
2022-08-01 16:59:46 +02:00
&--white-background {
&:hover {
background-color: var(--transparent-white);
}
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
.splide {
&__image {
width: 100%;
height: 100%;
object-fit: cover;
}
}
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-26 17:03:58 +02:00
.exhibition {
2022-07-28 18:59:14 +02:00
opacity: 0;
2022-07-06 17:18:42 +02:00
width: 100%;
height: 100%;
2022-08-01 16:59:46 +02:00
// padding: 0 0 0 15%;
2022-07-28 18:59:14 +02:00
transition: opacity 400ms ease-in-out;
2022-06-17 17:51:59 +02:00
2022-07-28 18:59:14 +02:00
&--visible {
opacity: 1;
}
}