This commit is contained in:
parent
79833e88a7
commit
c20b493478
3 changed files with 186 additions and 25 deletions
|
|
@ -7,8 +7,9 @@
|
|||
--fs-normal: 16px;
|
||||
--fs-medium: 20px;
|
||||
--fs-big: 30px;
|
||||
--fs-x-big: 38px;
|
||||
--fs-xbig: 38px;
|
||||
--fs-button-bold: 22px;
|
||||
--max-w-content: 700px;
|
||||
--leading-tight: 1;
|
||||
--leading-normal: 1.2;
|
||||
--fw-normal: 400;
|
||||
|
|
@ -22,10 +23,11 @@
|
|||
--grey-800: #383838;
|
||||
--color-bg: #161616;
|
||||
--color-txt: #ffffff;
|
||||
--color-txt-light: var(--grey-600);
|
||||
--color-txt-light: var(--grey-400);
|
||||
--color-accent: #00ff00;
|
||||
--color-accent-50: #e9ffe9;
|
||||
--color-accent-100: #d8fdd8;
|
||||
--dark: black;
|
||||
--border: 1px solid var(--color-txt);
|
||||
--border-light: 1px solid var(--grey-800);
|
||||
--header-h: 80px;
|
||||
|
|
@ -105,7 +107,6 @@ body {
|
|||
width: calc(100vw - var(--padding-body) * 2);
|
||||
height: var(--header-h);
|
||||
background-color: var(--color-bg);
|
||||
border-bottom: var(--border-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
|
@ -119,6 +120,7 @@ body {
|
|||
}
|
||||
#site-header #site-title {
|
||||
flex-grow: 2;
|
||||
opacity: 0;
|
||||
}
|
||||
#site-header #site-title svg {
|
||||
width: 100px;
|
||||
|
|
@ -128,15 +130,6 @@ body {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--gap);
|
||||
}
|
||||
#site-header #btn--soutenir {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
#site-header #btn--soutenir a:hover {
|
||||
color: var(--color-accent);
|
||||
text-decoration: underline;
|
||||
}
|
||||
#site-header ul, #site-header #btn--soutenir {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
#site-header #lang-toggle {
|
||||
|
|
@ -178,6 +171,14 @@ button:disabled {
|
|||
cursor: auto;
|
||||
}
|
||||
|
||||
.soutenir a {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
.soutenir a:hover {
|
||||
color: var(--color-accent) !important;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
.btn__default {
|
||||
--size: calc(var(--h-block) - 8px);
|
||||
font-size: var(--fs-normal);
|
||||
|
|
@ -477,7 +478,6 @@ button:disabled {
|
|||
width: calc(100vw - var(--padding-body) * 2);
|
||||
height: var(--header-h);
|
||||
background-color: var(--color-bg);
|
||||
border-bottom: var(--border-light);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
|
@ -491,6 +491,7 @@ button:disabled {
|
|||
}
|
||||
#site-header #site-title {
|
||||
flex-grow: 2;
|
||||
opacity: 0;
|
||||
}
|
||||
#site-header #site-title svg {
|
||||
width: 100px;
|
||||
|
|
@ -500,15 +501,6 @@ button:disabled {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--gap);
|
||||
}
|
||||
#site-header #btn--soutenir {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
#site-header #btn--soutenir a:hover {
|
||||
color: var(--color-accent);
|
||||
text-decoration: underline;
|
||||
}
|
||||
#site-header ul, #site-header #btn--soutenir {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
#site-header #lang-toggle {
|
||||
|
|
@ -531,13 +523,99 @@ button:disabled {
|
|||
fill: var(--grey-200) !important;
|
||||
}
|
||||
|
||||
#site-menu {
|
||||
position: fixed;
|
||||
width: 420px;
|
||||
height: calc(100dvh - var(--header-h));
|
||||
height: calc(100vh - var(--header-h));
|
||||
top: var(--header-h);
|
||||
right: 0;
|
||||
background-color: var(--color-bg);
|
||||
border-left: var(--border-light);
|
||||
padding: var(--padding-body);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
display: none;
|
||||
}
|
||||
#site-menu .baseline {
|
||||
font-size: var(--fs-medium);
|
||||
}
|
||||
#site-menu form {
|
||||
margin-top: calc(var(--spacing) * 1);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
--icon: 40px;
|
||||
display: grid;
|
||||
grid-template-columns: var(--icon) 1fr;
|
||||
}
|
||||
#site-menu form input {
|
||||
grid-column: 1/3;
|
||||
grid-row: 1;
|
||||
height: calc(var(--h-block) * 1.5);
|
||||
width: 100%;
|
||||
background: var(--color-bg);
|
||||
border: 1px solid var(--color-txt);
|
||||
padding-left: var(--icon);
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
padding-top: 3px;
|
||||
}
|
||||
#site-menu form input::-moz-placeholder {
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
#site-menu form input::placeholder {
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
#site-menu form input:focus {
|
||||
border-color: var(--color-accent);
|
||||
outline: none;
|
||||
}
|
||||
#site-menu form .icon {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
#site-menu form .icon svg {
|
||||
width: 20px;
|
||||
}
|
||||
#site-menu nav {
|
||||
flex-grow: 1;
|
||||
}
|
||||
#site-menu nav ul {
|
||||
list-style-type: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
#site-menu nav ul li {
|
||||
font-size: var(--fs-medium);
|
||||
}
|
||||
#site-menu nav ul li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
#site-menu nav ul li a:hover {
|
||||
color: var(--grey-200);
|
||||
}
|
||||
#site-menu nav ul .highlight {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#site-footer {
|
||||
background-color: black;
|
||||
background-color: var(--dark);
|
||||
padding: calc(var(--padding-body) * 2) var(--padding-body);
|
||||
}
|
||||
#site-footer .logo {
|
||||
margin-top: calc(var(--spacing) * 0.25);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
opacity: 0;
|
||||
}
|
||||
#site-footer .logo svg {
|
||||
width: 100px;
|
||||
|
|
@ -615,4 +693,87 @@ body main {
|
|||
flex-grow: 1;
|
||||
margin-top: var(--header-h);
|
||||
padding: 0 var(--padding-body);
|
||||
}
|
||||
|
||||
.page-article header {
|
||||
max-width: var(--max-w-content);
|
||||
margin: calc(var(--spacing) * 2) auto;
|
||||
}
|
||||
.page-article header .page-type {
|
||||
text-transform: uppercase;
|
||||
color: var(--color-txt-light);
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
.page-article header h2 {
|
||||
font-size: var(--fs-xbig);
|
||||
}
|
||||
|
||||
.page-article .section__article {
|
||||
max-width: var(--max-w-content);
|
||||
margin: calc(var(--spacing) * 3) auto;
|
||||
}
|
||||
.page-article .section__article a:hover {
|
||||
color: var(--grey-200);
|
||||
}
|
||||
.page-article .section__article .section__title {
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-medium);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
}
|
||||
|
||||
.page-article .hero {
|
||||
width: 100vw;
|
||||
position: relative;
|
||||
left: calc(var(--padding-body) * -1);
|
||||
margin: calc(var(--spacing) * 3) 0;
|
||||
}
|
||||
.page-article .hero figcaption {
|
||||
color: var(--color-txt-light);
|
||||
font-size: var(--fs-small);
|
||||
max-width: var(--max-w-content);
|
||||
margin: 0 auto;
|
||||
padding-top: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
.page-article .hero.hero-video figure {
|
||||
width: 100%;
|
||||
}
|
||||
.page-article .hero.hero-video figure img {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.page-article .short {
|
||||
font-size: var(--fs-medium);
|
||||
max-width: var(--max-w-content);
|
||||
}
|
||||
|
||||
.page-article #section__synthese {
|
||||
font-size: var(--fs-medium);
|
||||
}
|
||||
|
||||
.page-article #banner--page {
|
||||
height: calc(100dvh - var(--header-h));
|
||||
height: calc(100dvh - var(--header-h));
|
||||
margin-bottom: calc((100dvh - var(--header-h)) * -1);
|
||||
background-color: red;
|
||||
position: sticky;
|
||||
top: var(--header-h);
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.page-article #section__dl {
|
||||
margin-top: 0px;
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
.page-article #section__dl .dl__group {
|
||||
display: grid;
|
||||
grid-template-columns: 40% 1fr;
|
||||
border-top: var(--border-light);
|
||||
padding: calc(var(--spacing) * 0.5) 0;
|
||||
}
|
||||
.page-article #section__dl dt {
|
||||
color: var(--color-txt-light);
|
||||
}/*# sourceMappingURL=style.css.map */
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
.page-article .short{
|
||||
font-size: var(--fs-medium);
|
||||
margin: calc(var(--spacing)*3) auto;
|
||||
// margin: calc(var(--spacing)*3) auto;
|
||||
max-width: var(--max-w-content);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue