This commit is contained in:
parent
4642425f43
commit
dc223ae1b8
24 changed files with 1199 additions and 492 deletions
|
|
@ -29,6 +29,7 @@
|
|||
--color-accent-100: #d8fdd8;
|
||||
--dark: black;
|
||||
--border: 1px solid var(--color-txt);
|
||||
--border-medium: 1px solid var(--grey-600);
|
||||
--border-light: 1px solid var(--grey-800);
|
||||
--header-h: 80px;
|
||||
--header-h-shrinked: 50px;
|
||||
|
|
@ -52,7 +53,7 @@
|
|||
@media screen and (max-width: 768px) {
|
||||
:root {
|
||||
--fs-xsmall: 10px;
|
||||
--fs-small: 11px;
|
||||
--fs-small: 12px;
|
||||
--fs-normal: 14px;
|
||||
--fs-medium: 18px;
|
||||
--fs-big: 28px;
|
||||
|
|
@ -99,6 +100,16 @@ img {
|
|||
max-width: 100%;
|
||||
}
|
||||
|
||||
.link-block {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@keyframes add-border {
|
||||
from {
|
||||
border-bottom-color: transparent;
|
||||
|
|
@ -326,8 +337,7 @@ button:disabled {
|
|||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn__default .icon,
|
||||
.btn__default .txt {
|
||||
.btn__default .icon, .btn__default .txt {
|
||||
z-index: 10;
|
||||
}
|
||||
.btn__default .icon {
|
||||
|
|
@ -370,34 +380,35 @@ button:disabled {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.tag {
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
border-radius: calc(var(--h-block) * 0.75 / 2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 1.5ch;
|
||||
padding-top: 3px;
|
||||
font-size: var(--fs-small);
|
||||
line-height: 1;
|
||||
background-color: var(--color-txt);
|
||||
color: var(--color-bg);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.keywords {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 1ch;
|
||||
}
|
||||
.keywords li {
|
||||
height: var(--h-block);
|
||||
border-radius: calc(var(--h-block) * 0.5);
|
||||
border: var(--border-light);
|
||||
font-size: var(--fs-normal);
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
padding-right: 0.75ch;
|
||||
}
|
||||
.keywords li a {
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 1.5ch;
|
||||
line-height: 1;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.keywords li:hover {
|
||||
border-color: var(--color-txt);
|
||||
}
|
||||
.keywords li:hover a {
|
||||
color: currentColor;
|
||||
.keywords li a::before {
|
||||
content: "#";
|
||||
padding-right: 0.25ch;
|
||||
}
|
||||
|
||||
.form__newsletter {
|
||||
|
|
@ -725,6 +736,230 @@ button:disabled {
|
|||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.card--small {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
margin-bottom: var(--spacing);
|
||||
position: relative;
|
||||
}
|
||||
.card--small figure {
|
||||
aspect-ratio: 16/9;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card--small figure img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
|
||||
}
|
||||
.card--small:hover figure img {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.card--small .content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-top: calc(var(--spacing) * 0.25);
|
||||
}
|
||||
.card--small .title {
|
||||
font-weight: normal;
|
||||
font-size: var(--fs-medium);
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
.card--small .title a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.card--small time {
|
||||
flex-grow: 1;
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.card--small .keywords {
|
||||
margin-top: 1.5em;
|
||||
padding-bottom: calc(var(--spacing) * 0.25);
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.card--small:hover .title {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media screen and (max-width: 1080px) {
|
||||
.card--small .title {
|
||||
font-size: var(--fs-normal);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--small .content {
|
||||
padding: 0;
|
||||
}
|
||||
.card--small .title {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.card--small time {
|
||||
font-size: var(--fs-small);
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
.card--small .keywords {
|
||||
margin-top: 0.5em;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.card--impact {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
padding: calc(var(--spacing) * 0.5) 0;
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
.card--impact:first-of-type {
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
.card--impact .content {
|
||||
grid-column: 2;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact:not([data-impact-type=media]) .content {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
.card--impact .tag {
|
||||
width: auto;
|
||||
justify-self: start;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
.card--impact .content .see-more {
|
||||
color: var(--color-txt-light);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.card--impact .content .see-more::after {
|
||||
content: " +";
|
||||
}
|
||||
.card--impact .open-graph__details {
|
||||
grid-column: span 2;
|
||||
}
|
||||
.card--impact .open-graph__details summary,
|
||||
.card--impact .open-graph__details .summary-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
.card--impact .open-graph__details .arrow-details {
|
||||
line-height: 0;
|
||||
--size: 11px;
|
||||
height: var(--size);
|
||||
width: var(--size);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
.card--impact .open-graph__details .arrow-details svg {
|
||||
transition: transform 0.2s ease-in;
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact .open-graph__details[open] .arrow-details svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.card--impact .open-graph__details summary {
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.card--impact .open-graph__details summary .arrow-details svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
.card--impact .open-graph__details summary {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 3fr;
|
||||
grid-gap: var(--padding-inner);
|
||||
}
|
||||
.card--impact .open-graph__details summary .summary-inner {
|
||||
grid-column: 2;
|
||||
}
|
||||
.card--impact .open-graph__inner {
|
||||
margin-top: calc(var(--spacing) * 0.5);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
}
|
||||
@media screen and (min-width: 768px) {
|
||||
.card--impact .open-graph__inner {
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
}
|
||||
}
|
||||
.card--impact .open-graph__inner .card--open-graph {
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
|
||||
.card--open-graph {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 3fr;
|
||||
grid-gap: var(--padding-inner);
|
||||
border: var(--border-light);
|
||||
border-radius: var(--radius-small);
|
||||
position: relative;
|
||||
}
|
||||
.card--open-graph figure {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
.card--open-graph figure {
|
||||
aspect-ratio: 16/9;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card--open-graph figure img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
transition: cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
|
||||
}
|
||||
.card--open-graph:hover figure img {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--open-graph figure {
|
||||
height: 100%;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
}
|
||||
.card--open-graph .content {
|
||||
padding: var(--padding-inner);
|
||||
padding-left: 0;
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
.card--open-graph .site-name {
|
||||
color: var(--color-txt-light);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
.card--open-graph .title {
|
||||
font-size: var(--fs-normal);
|
||||
font-weight: normal;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.card--open-graph .title a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.card--open-graph .description {
|
||||
font-size: var(--fs-small);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card--open-graph:hover .title {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@keyframes add-border {
|
||||
from {
|
||||
border-bottom-color: transparent;
|
||||
|
|
@ -869,9 +1104,10 @@ button:disabled {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
@media screen and (max-width: 560px) {
|
||||
#site-menu {
|
||||
width: 100vw;
|
||||
right: -100vw;
|
||||
}
|
||||
}
|
||||
#site-menu form {
|
||||
|
|
@ -1019,7 +1255,7 @@ body.menu-open #menu-toggle .close {
|
|||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#site-footer .footer__socials .socials {
|
||||
#site-footer .footer__socials .container {
|
||||
max-width: 400px;
|
||||
-moz-columns: 2;
|
||||
columns: 2;
|
||||
|
|
@ -1074,6 +1310,11 @@ body main {
|
|||
font-size: var(--fs-small);
|
||||
padding-top: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.page-enquete #hero figcaption {
|
||||
font-size: var(--fs-xsmall);
|
||||
}
|
||||
}
|
||||
.page-enquete #hero.hero-video figure {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
@ -1104,7 +1345,7 @@ body main {
|
|||
}
|
||||
.page-enquete #section__dl .dl__group {
|
||||
display: grid;
|
||||
grid-template-columns: 40% 1fr;
|
||||
grid-template-columns: 2fr 3fr;
|
||||
border-top: var(--border-light);
|
||||
padding: calc(var(--spacing) * 0.5) 0;
|
||||
}
|
||||
|
|
@ -1156,8 +1397,7 @@ body main {
|
|||
.page-enquete .section__article {
|
||||
margin: calc(var(--spacing) * 1.5) 0;
|
||||
}
|
||||
.page-enquete #section__impacts,
|
||||
.page-enquete #section__en-lien {
|
||||
.page-enquete #section__impacts, .page-enquete #section__en-lien {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.page-enquete #hero {
|
||||
|
|
@ -1208,9 +1448,10 @@ body main {
|
|||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.page-enquete #section__dl .dl__group {
|
||||
grid-template-columns: 32% 1fr;
|
||||
-moz-column-gap: 1ch;
|
||||
column-gap: 1ch;
|
||||
font-size: var(--fs-small);
|
||||
padding: calc(var(--spacing) * 0.25) 0;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 768px) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue