This commit is contained in:
parent
da79013711
commit
563e9b9fd4
6 changed files with 209 additions and 161 deletions
|
|
@ -2,18 +2,12 @@
|
|||
--font: 'Executive', Arial, sans-serif;
|
||||
--title: 'System', Arial, sans-serif;
|
||||
|
||||
// --fs-xsmall: 10px;
|
||||
// --fs-small: 12px;
|
||||
// --fs-normal: 16px;
|
||||
// --fs-medium: 22px;
|
||||
// --fs-big: 38px;
|
||||
|
||||
--fs-xsmall: 12px;
|
||||
--fs-small: 16px;
|
||||
--fs-normal: 20px;
|
||||
--fs-medium: 24px;
|
||||
--fs-big: 30px;
|
||||
--fs-xbig: 38px;
|
||||
--fs-big: 45px;
|
||||
|
||||
--fs-button-bold: 22px;
|
||||
|
||||
|
|
@ -85,12 +79,11 @@
|
|||
|
||||
@media #{$small}{
|
||||
:root {
|
||||
--fs-xsmall: 16px;
|
||||
--fs-xsmall: 13px;
|
||||
--fs-small: 16px;
|
||||
--fs-normal: 20px;
|
||||
--fs-medium: 24px;
|
||||
--fs-big: 28px;
|
||||
--fs-xbig: 32px;
|
||||
--fs-big: 34px;
|
||||
|
||||
--header-h: 60px;
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,62 @@ button:disabled{
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.btn--home{
|
||||
background-color: var(--color-bg);
|
||||
display: block;
|
||||
height: calc(var(--h-block)*1);
|
||||
border: 1px solid currentColor;
|
||||
border-radius: var(--radius-btn);
|
||||
font-size: var(--fs-xsmall);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
color: var(--color-accent);
|
||||
|
||||
transition: .3s ease-in;
|
||||
|
||||
@media #{$small} {
|
||||
}
|
||||
|
||||
svg{
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
fill: var(--color-accent);
|
||||
transition: fill .3s ease-in;
|
||||
}
|
||||
a{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1ch;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 2ch;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
&:hover{
|
||||
border-color: var(--color-accent);
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
svg{
|
||||
fill: var(--color-bg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.btn--toc{
|
||||
svg{
|
||||
width: 15px;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@
|
|||
--fs-small: 16px;
|
||||
--fs-normal: 20px;
|
||||
--fs-medium: 24px;
|
||||
--fs-big: 30px;
|
||||
--fs-xbig: 38px;
|
||||
--fs-big: 45px;
|
||||
--fs-button-bold: 22px;
|
||||
--max-w-content: 640px;
|
||||
--max-w-cards: 940px;
|
||||
|
|
@ -58,12 +57,11 @@
|
|||
|
||||
@media screen and (max-width: 768px) {
|
||||
:root {
|
||||
--fs-xsmall: 16px;
|
||||
--fs-xsmall: 13px;
|
||||
--fs-small: 16px;
|
||||
--fs-normal: 20px;
|
||||
--fs-medium: 24px;
|
||||
--fs-big: 28px;
|
||||
--fs-xbig: 32px;
|
||||
--fs-big: 34px;
|
||||
--header-h: 60px;
|
||||
--padding-body: 16px;
|
||||
}
|
||||
|
|
@ -416,6 +414,48 @@ button:disabled {
|
|||
fill: var(--grey-100);
|
||||
}
|
||||
|
||||
.btn--home {
|
||||
background-color: var(--color-bg);
|
||||
display: block;
|
||||
height: calc(var(--h-block) * 1);
|
||||
border: 1px solid currentColor;
|
||||
border-radius: var(--radius-btn);
|
||||
font-size: var(--fs-xsmall);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
color: var(--color-accent);
|
||||
transition: 0.3s ease-in;
|
||||
}
|
||||
.btn--home svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
fill: var(--color-accent);
|
||||
transition: fill 0.3s ease-in;
|
||||
}
|
||||
.btn--home a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1ch;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 2ch;
|
||||
padding-top: 4px;
|
||||
}
|
||||
.btn--home:hover {
|
||||
border-color: var(--color-accent);
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
}
|
||||
.btn--home:hover svg {
|
||||
fill: var(--color-bg);
|
||||
}
|
||||
|
||||
.btn--toc svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
|
|
@ -2584,34 +2624,26 @@ main .page__header .description-medium {
|
|||
}
|
||||
}
|
||||
|
||||
.section--home .btn--bold-inline {
|
||||
text-transform: none;
|
||||
margin-top: calc(var(--spacing) * 1.5);
|
||||
}
|
||||
.section--home .btn--bold-inline svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
top: 0px;
|
||||
}
|
||||
.section--home .title-section {
|
||||
font-size: var(--fs-medium);
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-big);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
}
|
||||
.section--home .description-section {
|
||||
max-width: 42ch;
|
||||
font-size: var(--fs-medium);
|
||||
font-size: var(--fs-normal);
|
||||
line-height: 1.1;
|
||||
}
|
||||
.section--home .btn--home {
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
}
|
||||
@media screen and (min-width: 1080px) {
|
||||
.section--home {
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
.section--home .section--inner {
|
||||
max-width: 1280px;
|
||||
margin: calc(var(--spacing) * 3) auto;
|
||||
margin: calc(var(--spacing) * 4) auto;
|
||||
display: grid;
|
||||
--gap: calc(var(--padding-body)*2);
|
||||
grid-template-columns: 1fr 640px;
|
||||
|
|
@ -2628,56 +2660,6 @@ main .page__header .description-medium {
|
|||
height: 100%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1080px) {
|
||||
.section--home#home__investigations, .section--home#home__hero {
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
.section--home .section--inner {
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
}
|
||||
.section--home .col-left {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
}
|
||||
.section--home .col-left .title-section {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.section--home .section--inner {
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.section--home .col-left {
|
||||
margin-bottom: calc(var(--spacing) * 1.5);
|
||||
}
|
||||
.section--home .title-section {
|
||||
margin-bottom: calc(var(--spacing) * 0.25);
|
||||
}
|
||||
.section--home .description-section {
|
||||
max-width: 42ch;
|
||||
font-size: var(--fs-normal);
|
||||
}
|
||||
.section--home .btn--bold-inline {
|
||||
color: var(--color-txt-light);
|
||||
border-color: var(--color-txt-light);
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
margin-top: calc(var(--spacing) * 0.75);
|
||||
}
|
||||
.section--home .btn--bold-inline a {
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.section--home .btn--bold-inline svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
}
|
||||
|
||||
#home__investigations .home-investigations-slider {
|
||||
max-width: 500px;
|
||||
height: auto;
|
||||
|
|
@ -2705,15 +2687,10 @@ main .page__header .description-medium {
|
|||
display: block;
|
||||
}
|
||||
#home__hero .baseline {
|
||||
font-size: 45px;
|
||||
font-size: var(--fs-big);
|
||||
line-height: 1.1;
|
||||
max-width: 32ch;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
#home__hero .baseline {
|
||||
font-size: 34px;
|
||||
}
|
||||
}
|
||||
#home__hero button {
|
||||
margin-top: calc(var(--spacing) * 1);
|
||||
}
|
||||
|
|
@ -2722,6 +2699,28 @@ main .page__header .description-medium {
|
|||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1080px) {
|
||||
.section--home:not(#home-hero) {
|
||||
border-bottom: var(--border);
|
||||
padding-bottom: calc(var(--spacing) * 4);
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
}
|
||||
.section--home:not(#home-hero) .col-left {
|
||||
margin-bottom: calc(var(--spacing) * 3);
|
||||
}
|
||||
#home__hero {
|
||||
height: calc(100vh - var(--header-h));
|
||||
margin: 0 !important;
|
||||
border-bottom: none !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 25vh !important;
|
||||
}
|
||||
#home__investigations {
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
[data-template=investigation-summary] main {
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,33 +1,21 @@
|
|||
.section--home {
|
||||
|
||||
.btn--bold-inline {
|
||||
text-transform: none;
|
||||
margin-top: calc(var(--spacing)*1.5);
|
||||
|
||||
svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.title-section {
|
||||
font-size: var(--fs-medium);
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
font-size: var(--fs-big);
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
}
|
||||
|
||||
.description-section {
|
||||
max-width: 42ch;
|
||||
font-size: var(--fs-medium);
|
||||
font-size: var(--fs-normal);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.btn--home{
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
}
|
||||
|
||||
|
||||
@media #{$medium-up} {
|
||||
|
||||
|
|
@ -35,7 +23,7 @@
|
|||
|
||||
.section--inner {
|
||||
max-width: 1280px;
|
||||
margin: calc(var(--spacing)*3) auto;
|
||||
margin: calc(var(--spacing)*4) auto;
|
||||
display: grid;
|
||||
--gap: calc(var(--padding-body)*2);
|
||||
grid-template-columns: 1fr 640px;
|
||||
|
|
@ -61,67 +49,52 @@
|
|||
|
||||
@media #{$medium} {
|
||||
|
||||
&#home__investigations,
|
||||
&#home__hero {
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
// &#home__investigations,
|
||||
// &#home__hero {
|
||||
// border-bottom: var(--border-light);
|
||||
// }
|
||||
|
||||
.section--inner {
|
||||
margin-top: calc(var(--spacing)*3);
|
||||
margin-bottom: calc(var(--spacing)*4);
|
||||
}
|
||||
// .section--inner {
|
||||
// margin-top: calc(var(--spacing)*3);
|
||||
// margin-bottom: calc(var(--spacing)*4);
|
||||
// }
|
||||
|
||||
.col-left {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
margin-bottom: calc(var(--spacing)*2);
|
||||
// .col-left {
|
||||
// display: flex;
|
||||
// flex-wrap: wrap;
|
||||
// align-items: flex-end;
|
||||
// justify-content: space-between;
|
||||
// margin-bottom: calc(var(--spacing)*2);
|
||||
|
||||
.title-section {
|
||||
width: 100%;
|
||||
}
|
||||
// .title-section {
|
||||
// width: 100%;
|
||||
// }
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
@media #{$x-small} {
|
||||
.section--inner {
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
margin-bottom: calc(var(--spacing)*4);
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
// .section--inner {
|
||||
// margin-top: calc(var(--spacing)*2);
|
||||
// margin-bottom: calc(var(--spacing)*4);
|
||||
// margin-bottom: 0px;
|
||||
// }
|
||||
|
||||
.col-left{
|
||||
margin-bottom: calc(var(--spacing)*1.5);
|
||||
}
|
||||
// .col-left{
|
||||
// margin-bottom: calc(var(--spacing)*1.5);
|
||||
// }
|
||||
|
||||
|
||||
.title-section {
|
||||
margin-bottom: calc(var(--spacing)*0.25);
|
||||
}
|
||||
// .title-section {
|
||||
// margin-bottom: calc(var(--spacing)*0.25);
|
||||
// }
|
||||
|
||||
.description-section {
|
||||
max-width: 42ch;
|
||||
font-size: var(--fs-normal);
|
||||
}
|
||||
// .description-section {
|
||||
// max-width: 42ch;
|
||||
// font-size: var(--fs-normal);
|
||||
// }
|
||||
|
||||
.btn--bold-inline {
|
||||
color: var(--color-txt-light);
|
||||
border-color: var(--color-txt-light);
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
// margin: 0 auto;
|
||||
margin-top: calc(var(--spacing)*0.75);
|
||||
|
||||
a {
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -176,13 +149,9 @@
|
|||
}
|
||||
|
||||
.baseline {
|
||||
font-size: 45px;
|
||||
font-size: var(--fs-big);
|
||||
line-height: 1.1;
|
||||
max-width: 32ch;
|
||||
|
||||
@media #{$x-small} {
|
||||
font-size: 34px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
|
|
@ -198,4 +167,35 @@
|
|||
.card--folder {
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media #{$medium} {
|
||||
|
||||
.section--home:not(#home-hero) {
|
||||
border-bottom: var(--border);
|
||||
padding-bottom: calc(var(--spacing)*4);
|
||||
margin-bottom: calc(var(--spacing)*4);
|
||||
|
||||
.col-left{
|
||||
margin-bottom: calc(var(--spacing)*3);
|
||||
}
|
||||
}
|
||||
|
||||
#home__hero{
|
||||
height: calc(100vh - var(--header-h));
|
||||
margin: 0!important;
|
||||
border-bottom: none!important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 25vh!important;
|
||||
|
||||
}
|
||||
|
||||
#home__investigations{
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<div class="section--inner">
|
||||
<p class="baseline">Index est une ONG d’investigation numérique, au service du public, de la vérité et de la justice.</p>
|
||||
|
||||
<button class="btn--bold-inline">
|
||||
<button class="btn--home">
|
||||
<a href="#">
|
||||
<span class="text">En savoir plus</span>
|
||||
<span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></span>
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<?= $investigationsPage->chapo() ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
<button class="btn--bold-inline">
|
||||
<button class="btn--home">
|
||||
<a href="/enquetes">
|
||||
<span class="text">Voir les enquêtes</span>
|
||||
<span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></span>
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
<?= $impactsPage->chapo() ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
<button class="btn--bold-inline">
|
||||
<button class="btn--home">
|
||||
<a href="/impacts">
|
||||
<span class="text">Voir les impacts</span>
|
||||
<span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></span>
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
<?= $foldersPage->chapo() ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
<button class="btn--bold-inline">
|
||||
<button class="btn--home">
|
||||
<a href="/dossiers">
|
||||
<span class="text">Voir les dossiers</span>
|
||||
<span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue