342 lines
No EOL
7.1 KiB
SCSS
342 lines
No EOL
7.1 KiB
SCSS
:root{
|
|
--rapport-w: 290px;
|
|
}
|
|
|
|
|
|
#rapport{
|
|
margin-bottom: 20vh;
|
|
padding-left: calc(var(--rapport-w) + var(--padding-body)*1);
|
|
padding-bottom: 10vh;
|
|
margin: 0 auto;
|
|
max-width: calc(var(--max-w-content) + var(--rapport-w) + var(--padding-body));
|
|
margin-top: calc(var(--spacing)*-1);
|
|
}
|
|
|
|
#rapport .rapport__header{
|
|
margin-top: calc(var(--spacing)*2);
|
|
max-width: var(--max-w-content);
|
|
margin-bottom: calc(var(--spacing)*2.5);
|
|
|
|
display: grid;
|
|
column-gap: var(--padding-inner);
|
|
row-gap: calc(var(--spacing)*1);
|
|
grid-template-columns: 30% 70%;
|
|
grid-template-rows: auto auto 1fr;
|
|
position: relative;
|
|
|
|
|
|
.rapport__title-group{
|
|
grid-row: 1;
|
|
grid-column: span 2;
|
|
// padding-bottom: calc(var(--spacing)*1);
|
|
|
|
.title{
|
|
text-transform: uppercase;
|
|
font-weight: normal;
|
|
font-size: var(--fs-big);
|
|
line-height: var(--leading-tight);
|
|
font-weight: normal;
|
|
margin-top: calc(var(--spacing)*1);
|
|
}
|
|
|
|
.subtitle{
|
|
font-size: var(--fs-big);
|
|
line-height: var(--leading-tight);
|
|
// margin-top: calc(var(--spacing)*0.25);
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.rapport__figure{
|
|
width: 100%;
|
|
aspect-ratio: 4/5;
|
|
grid-row: span 2;
|
|
grid-column: 1;
|
|
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
}
|
|
|
|
.rapport__dl{
|
|
grid-row: 2;
|
|
grid-column: 2;
|
|
align-self: start;
|
|
|
|
// align-self: start;
|
|
font-size: var(--fs-small);
|
|
border-bottom: var(--border-light);
|
|
// flex-grow: 2;
|
|
align-items: flex-start;
|
|
// margin-top: calc(var(--spacing)*1);
|
|
.dl__group{
|
|
@include grid-content();
|
|
border-top: var(--border-light);
|
|
padding: calc(var(--spacing)*0.5) 0;
|
|
}
|
|
|
|
dt{
|
|
color: var(--color-txt-light);
|
|
padding-right: 1ch;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn--group{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: start;
|
|
align-items: start;
|
|
gap: calc(var(--spacing)*0.25);
|
|
position: relative;
|
|
grid-row: 3;
|
|
grid-column: 2;
|
|
|
|
button, label{
|
|
min-width: 28ch;
|
|
justify-content: flex-start;
|
|
a{
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
label{
|
|
// position: relative;
|
|
}
|
|
|
|
// .modal--share{
|
|
// max-width: 240px;
|
|
// position: absolute;
|
|
// height: 250px;
|
|
// top: calc(var(--h-block) * 1.5);
|
|
// left: 260px;
|
|
|
|
|
|
// &::before{
|
|
// content: "◀";
|
|
// transform: rotate(90deg);
|
|
// font-size: 10px;
|
|
// position: absolute;
|
|
// top: -10px;
|
|
// right: calc(var(--h-block) * 1.5);
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
#rapport{
|
|
|
|
.rapport__content{
|
|
max-width: var(--max-w-content);
|
|
// margin-top: calc(var(--spacing)*0.5);
|
|
|
|
|
|
.section-content{
|
|
margin-bottom: calc(var(--spacing)*3);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
.section-title{
|
|
font-size: var(--fs-medium);
|
|
margin-bottom: var(--spacing);
|
|
font-weight: normal;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
p {
|
|
margin: calc(var(--spacing)*0.5) 0;
|
|
}
|
|
|
|
ul{
|
|
padding-left: 3ch;
|
|
}
|
|
}
|
|
|
|
.rapport__content:target{
|
|
padding-top: calc(var(--header-h)*2 + var(--spacing))!important;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#rapport__aside{
|
|
width: var(--rapport-w);
|
|
position: fixed;
|
|
top: calc(var(--header-h) + var(--padding-body));
|
|
left: var(--padding-body);
|
|
--border-aside: var(--border-light);
|
|
|
|
// border-radius: var(--radius-small);
|
|
height: calc(100vh - var(--header-h) - var(--padding-body)*4);
|
|
|
|
.tabs{
|
|
display: flex;
|
|
border: var(--border-aside);
|
|
height: calc(var(--h-block)*1.25);
|
|
|
|
.tab{
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--fs-small);
|
|
font-weight: bold;
|
|
padding-left: 2ch;
|
|
padding-top: 3px;
|
|
}
|
|
|
|
.tab[for="tab-print"]{
|
|
width: calc(var(--h-block)*1.5);
|
|
border-right: var(--border-aside);
|
|
padding-left: 0;
|
|
justify-content: center;
|
|
.icon{
|
|
|
|
svg{
|
|
width: 18px;
|
|
fill: var(--color-txt);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content-aside{
|
|
padding: var(--padding-body);
|
|
height: calc(100% - var(--h-block)*1.25);
|
|
overflow: scroll;
|
|
border: var(--border-aside);
|
|
border-top: none;
|
|
}
|
|
|
|
|
|
#toc{
|
|
ul{ list-style: none;}
|
|
|
|
li{
|
|
font-size: var(--fs-small);
|
|
|
|
color: var(--color-txt-light);
|
|
|
|
a{
|
|
display: block;
|
|
padding: 5px 1ch;
|
|
padding-top: 7px;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
li.selected{
|
|
background-color: var(--grey-800);
|
|
color: var(--color-txt);
|
|
}
|
|
|
|
li:hover{
|
|
background-color: var(--grey-800);
|
|
}
|
|
|
|
.toc-level-1{
|
|
margin-bottom: calc(var(--spacing)*0.5);
|
|
font-weight: bold;
|
|
}
|
|
.toc-level-2{
|
|
margin-bottom: calc(var(--spacing)*0.25);
|
|
padding-left: 4ch;
|
|
}
|
|
a{
|
|
text-decoration: none;
|
|
}
|
|
|
|
}
|
|
|
|
.btn--group{
|
|
margin-top: calc(var(--spacing)*0.5);
|
|
display: flex;
|
|
gap: var(--padding-inner);
|
|
|
|
[for="share-banner__aside"]{
|
|
cursor: pointer;
|
|
}
|
|
|
|
#download-pdf{
|
|
a{
|
|
padding-left: 1ch;
|
|
padding-right: 1ch;
|
|
}
|
|
}
|
|
}
|
|
|
|
// .modal--share{
|
|
// position: absolute;
|
|
// bottom: calc(var(--h-block) * -1.5);
|
|
// right: calc(-100% + var(--padding-inner));
|
|
|
|
// &::before{
|
|
// content: "◀";
|
|
// font-size: 10px;
|
|
// position: absolute;
|
|
// bottom: calc(var(--h-block) * 0.25);
|
|
// left: -9px;
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#tab-print, #tab-toc{ display: none; }
|
|
#tab-print:checked ~ .content-aside #toc{ display: none; }
|
|
#tab-print:checked ~ .content-aside #print-features{ display: block; }
|
|
|
|
#tab-toc:checked ~ .content-aside #toc{ display: block; }
|
|
#tab-toc:checked ~ .content-aside #print-features{ display: none; }
|
|
|
|
|
|
|
|
|
|
#rapport{
|
|
--fig-outside: calc(var(--spacing)*2);
|
|
.container-figure{
|
|
width: calc(100% + var(--fig-outside)*2);
|
|
position: relative;
|
|
left: calc(var(--fig-outside)*-1);
|
|
}
|
|
.fig-simple{
|
|
height: calc(100vh - var(--header-h) - var(--spacing)*2);
|
|
|
|
figure{
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
img{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
}
|
|
}
|
|
} |