This commit is contained in:
parent
6cf52a6703
commit
43e50ebc37
21 changed files with 578 additions and 143 deletions
|
|
@ -89,6 +89,7 @@
|
|||
|
||||
--header-h: 60px;
|
||||
|
||||
--padding-body: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ button{
|
|||
color: var(--color-txt);
|
||||
&:hover{
|
||||
color: var(--grey-100);
|
||||
svg{ fill: var(--grey-100); }
|
||||
}
|
||||
|
||||
a{
|
||||
|
|
@ -30,7 +31,34 @@ button:disabled{
|
|||
}
|
||||
|
||||
|
||||
.btn--small{
|
||||
display: block;
|
||||
height: calc(var(--h-block)*0.75);
|
||||
border: var(--border);
|
||||
border-radius: var(--radius-btn);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
a{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
&.no-link{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.btn--bold,
|
||||
.btn--bold-inline{
|
||||
display: block;
|
||||
|
|
@ -90,6 +118,10 @@ button:disabled{
|
|||
}
|
||||
}
|
||||
|
||||
.btn--light{
|
||||
border: var(--border-light);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
.dl{
|
||||
margin-top: calc(var(--spacing)*0.5);
|
||||
|
||||
font-size: var(--fs-small);
|
||||
.dl__group{
|
||||
@include grid-content();
|
||||
border-top: var(--border-light);
|
||||
|
|
|
|||
40
assets/css/components/_search-form.scss
Normal file
40
assets/css/components/_search-form.scss
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
.search-form{
|
||||
--icon: 40px;
|
||||
display: grid;
|
||||
grid-template-columns: var(--icon) 1fr;
|
||||
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;
|
||||
&::placeholder{
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
&:focus{
|
||||
border-color: var(--color-accent);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.icon{
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
svg{
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
57
assets/css/components/_sort.scss
Normal file
57
assets/css/components/_sort.scss
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.sort{
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1ch;
|
||||
|
||||
.arrow{
|
||||
line-height: 0;
|
||||
--size: 12px;
|
||||
height: var(--size);
|
||||
width: var(--size);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
transform: rotate(90deg);
|
||||
transition: transform 0.2s ease-in;
|
||||
svg{
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
&[data-sort-type="up"]{
|
||||
.arrow{
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-sort="false"]{
|
||||
color: var(--color-txt-light);
|
||||
svg{
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
&[data-sort="false"],
|
||||
&[data-sort="true"]{
|
||||
&:hover{
|
||||
color: var(--grey-100);
|
||||
svg{
|
||||
fill: var(--grey-100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
.tag{
|
||||
height: calc(var(--h-block)*0.75);
|
||||
border-radius: calc(var(--h-block)*0.75/2);
|
||||
// border-radius: calc(var(--h-block)*0.75/2);
|
||||
border-radius: var(--radius-small);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,19 @@
|
|||
.title-page{
|
||||
font-size: var(--fs-medium);
|
||||
.page__title{
|
||||
font-size: var(--fs-big);
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
margin: calc(var(--spacing)*2) auto;
|
||||
text-align: center;
|
||||
max-width: var(--max-w-container);
|
||||
|
||||
}
|
||||
|
||||
.page__description{
|
||||
display: none;
|
||||
max-width: var(--max-w-content);
|
||||
margin: calc(var(--spacing)*2) auto;
|
||||
p{
|
||||
font-size: var(--fs-normal);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.title-page{
|
||||
.header__title-page{
|
||||
display: none;
|
||||
flex-grow: 2;
|
||||
text-align: left;
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.title-page{
|
||||
.header__title-page{
|
||||
@media #{$small-up}{
|
||||
display: block;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,50 +20,11 @@
|
|||
flex-direction: column;
|
||||
|
||||
|
||||
form{
|
||||
.search-form{
|
||||
margin-top: calc(var(--spacing)*1);
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
--icon: 40px;
|
||||
display: grid;
|
||||
grid-template-columns: var(--icon) 1fr;
|
||||
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;
|
||||
&::placeholder{
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
&:focus{
|
||||
border-color: var(--color-accent);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.icon{
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
svg{
|
||||
width: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nav{
|
||||
flex-grow: 1;
|
||||
ul{
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
--fs-big: 28px;
|
||||
--fs-xbig: 32px;
|
||||
--header-h: 60px;
|
||||
--padding-body: 16px;
|
||||
}
|
||||
}
|
||||
:root[data-theme=light] {
|
||||
|
|
@ -174,7 +175,7 @@ body, #site-header, #site-footer {
|
|||
width: 80px;
|
||||
}
|
||||
}
|
||||
#site-header .title-page {
|
||||
#site-header .header__title-page {
|
||||
display: none;
|
||||
flex-grow: 2;
|
||||
text-align: left;
|
||||
|
|
@ -245,11 +246,11 @@ body, #site-header, #site-footer {
|
|||
width: calc(var(--banner-medium) - var(--padding-body));
|
||||
}
|
||||
}
|
||||
#site-header.is-visible .site-header__inner .title-page {
|
||||
#site-header.is-visible .site-header__inner .header__title-page {
|
||||
flex-grow: 2;
|
||||
}
|
||||
@media screen and (min-width: 768px) {
|
||||
#site-header.is-visible .site-header__inner .title-page {
|
||||
#site-header.is-visible .site-header__inner .header__title-page {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
@ -271,6 +272,9 @@ button {
|
|||
button:hover {
|
||||
color: var(--grey-100);
|
||||
}
|
||||
button:hover svg {
|
||||
fill: var(--grey-100);
|
||||
}
|
||||
button a {
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
|
|
@ -289,6 +293,33 @@ button:disabled {
|
|||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
.btn--small {
|
||||
display: block;
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
border: var(--border);
|
||||
border-radius: var(--radius-btn);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn--small a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.btn--small.no-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 1ch;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.btn--bold,
|
||||
.btn--bold-inline {
|
||||
display: block;
|
||||
|
|
@ -345,6 +376,10 @@ button:disabled {
|
|||
color: var(--color-txt);
|
||||
}
|
||||
|
||||
.btn--light {
|
||||
border: var(--border-light);
|
||||
}
|
||||
|
||||
.btn__default {
|
||||
--size: calc(var(--h-block) - 8px);
|
||||
font-size: var(--fs-normal);
|
||||
|
|
@ -405,7 +440,7 @@ button:disabled {
|
|||
|
||||
.tag {
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
border-radius: calc(var(--h-block) * 0.75 / 2);
|
||||
border-radius: var(--radius-small);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -434,6 +469,44 @@ button:disabled {
|
|||
padding-right: 0.25ch;
|
||||
}
|
||||
|
||||
.sort {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1ch;
|
||||
}
|
||||
.sort .arrow {
|
||||
line-height: 0;
|
||||
--size: 12px;
|
||||
height: var(--size);
|
||||
width: var(--size);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
transform: rotate(90deg);
|
||||
transition: transform 0.2s ease-in;
|
||||
}
|
||||
.sort .arrow svg {
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.sort[data-sort-type=up] .arrow {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.sort[data-sort=false] {
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.sort[data-sort=false] svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
.sort[data-sort=false]:hover, .sort[data-sort=true]:hover {
|
||||
color: var(--grey-100);
|
||||
}
|
||||
.sort[data-sort=false]:hover svg, .sort[data-sort=true]:hover svg {
|
||||
fill: var(--grey-100);
|
||||
}
|
||||
|
||||
.form__newsletter {
|
||||
--size: 24px;
|
||||
position: relative;
|
||||
|
|
@ -529,6 +602,51 @@ button:disabled {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.search-form {
|
||||
--icon: 40px;
|
||||
display: grid;
|
||||
grid-template-columns: var(--icon) 1fr;
|
||||
}
|
||||
.search-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;
|
||||
}
|
||||
.search-form input::-moz-placeholder {
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
.search-form input::placeholder {
|
||||
font-family: var(--font);
|
||||
font-size: var(--fs-normal);
|
||||
color: var(--color-txt);
|
||||
}
|
||||
.search-form input:focus {
|
||||
border-color: var(--color-accent);
|
||||
outline: none;
|
||||
}
|
||||
.search-form .icon {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.search-form .icon svg {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.list-socials {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
|
|
@ -680,8 +798,22 @@ button:disabled {
|
|||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.title-page {
|
||||
font-size: var(--fs-medium);
|
||||
.page__title {
|
||||
font-size: var(--fs-big);
|
||||
font-weight: normal;
|
||||
text-transform: uppercase;
|
||||
margin: calc(var(--spacing) * 2) auto;
|
||||
text-align: center;
|
||||
max-width: var(--max-w-container);
|
||||
}
|
||||
|
||||
.page__description {
|
||||
display: none;
|
||||
max-width: var(--max-w-content);
|
||||
margin: calc(var(--spacing) * 2) auto;
|
||||
}
|
||||
.page__description p {
|
||||
font-size: var(--fs-normal);
|
||||
}
|
||||
|
||||
.card--article {
|
||||
|
|
@ -731,6 +863,7 @@ button:disabled {
|
|||
}
|
||||
.card--article .dl {
|
||||
margin-top: calc(var(--spacing) * 0.5);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
.card--article .dl .dl__group {
|
||||
display: grid;
|
||||
|
|
@ -1025,7 +1158,7 @@ button:disabled {
|
|||
width: 80px;
|
||||
}
|
||||
}
|
||||
#site-header .title-page {
|
||||
#site-header .header__title-page {
|
||||
display: none;
|
||||
flex-grow: 2;
|
||||
text-align: left;
|
||||
|
|
@ -1096,11 +1229,11 @@ button:disabled {
|
|||
width: calc(var(--banner-medium) - var(--padding-body));
|
||||
}
|
||||
}
|
||||
#site-header.is-visible .site-header__inner .title-page {
|
||||
#site-header.is-visible .site-header__inner .header__title-page {
|
||||
flex-grow: 2;
|
||||
}
|
||||
@media screen and (min-width: 768px) {
|
||||
#site-header.is-visible .site-header__inner .title-page {
|
||||
#site-header.is-visible .site-header__inner .header__title-page {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
@ -1134,51 +1267,9 @@ button:disabled {
|
|||
right: -100vw;
|
||||
}
|
||||
}
|
||||
#site-menu form {
|
||||
#site-menu .search-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;
|
||||
|
|
@ -1304,26 +1395,50 @@ body main {
|
|||
padding: 0 var(--padding-body);
|
||||
}
|
||||
|
||||
[data-template=investigations] main #container-cards {
|
||||
max-width: var(--max-w-container);
|
||||
@media screen and (min-width: 560px) {
|
||||
[data-template=investigations] main #container-cards {
|
||||
max-width: var(--max-w-container);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
grid-auto-rows: minmax(100px, auto);
|
||||
grid-gap: var(--padding-body);
|
||||
margin-bottom: 10vh;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
[data-template=investigations] main #container-cards {
|
||||
margin-bottom: 10vh;
|
||||
}
|
||||
[data-template=investigations] main #container-cards .card--article {
|
||||
margin-bottom: calc(var(--spacing) * 1.5);
|
||||
}
|
||||
}
|
||||
[data-template=investigations] main .search-container {
|
||||
max-width: var(--max-w-content);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
||||
grid-auto-rows: minmax(100px, auto);
|
||||
grid-gap: var(--padding-body);
|
||||
margin-bottom: 10vh;
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
}
|
||||
[data-template=investigations] main .page__sort {
|
||||
max-width: var(--max-w-container);
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
grid-gap: var(--padding-inner);
|
||||
margin: 0 auto;
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
|
||||
[data-template=investigation-summary] main {
|
||||
position: relative;
|
||||
}
|
||||
[data-template=investigation-summary] main header .page-type {
|
||||
text-transform: uppercase;
|
||||
color: var(--color-txt-light);
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
[data-template=investigation-summary] main header h2 {
|
||||
font-size: var(--fs-xbig);
|
||||
[data-template=investigation-summary] main header .page-title {
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
font-size: var(--fs-big);
|
||||
line-height: var(--leading-tight);
|
||||
}
|
||||
[data-template=investigation-summary] main .section__article a:hover {
|
||||
|
|
@ -1342,22 +1457,59 @@ body main {
|
|||
[data-template=investigation-summary] main #hero figcaption {
|
||||
color: var(--color-txt-light);
|
||||
font-size: var(--fs-small);
|
||||
padding-top: calc(var(--spacing) * 0.5);
|
||||
padding: calc(var(--spacing) * 0.5) var(--padding-body);
|
||||
padding-bottom: 0;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
[data-template=investigation-summary] main #hero figcaption {
|
||||
font-size: var(--fs-xsmall);
|
||||
}
|
||||
}
|
||||
[data-template=investigation-summary] main #hero.hero-video figure {
|
||||
[data-template=investigation-summary] main #hero figure {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero.hero-video figure img {
|
||||
[data-template=investigation-summary] main #hero figure img {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-slide {
|
||||
position: relative;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-button-prev, [data-template=investigation-summary] main #hero .swiper-button-next {
|
||||
--swiper-navigation-sides-offset: 32px;
|
||||
--swiper-navigation-size: 32px;
|
||||
opacity: 0.8;
|
||||
top: calc(28.125vw - var(--swiper-navigation-size) * 0.5);
|
||||
margin-top: 0;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
[data-template=investigation-summary] main #hero .swiper-button-prev, [data-template=investigation-summary] main #hero .swiper-button-next {
|
||||
--swiper-navigation-sides-offset: 15px;
|
||||
--swiper-navigation-size: 15px;
|
||||
}
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-button-prev svg, [data-template=investigation-summary] main #hero .swiper-button-next svg {
|
||||
color: white;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-pagination {
|
||||
position: static;
|
||||
margin-top: calc(var(--spacing) * 0.5);
|
||||
padding: 0 var(--padding-body);
|
||||
text-align: center;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-pagination .swiper-pagination-bullet {
|
||||
width: 15px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: var(--color-txt-light);
|
||||
}
|
||||
[data-template=investigation-summary] main #hero .swiper-pagination .swiper-pagination-bullet-active {
|
||||
background: var(--color-txt);
|
||||
opacity: 0.8;
|
||||
}
|
||||
[data-template=investigation-summary] main #nav--page ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -11,9 +11,11 @@
|
|||
@import 'components/tags';
|
||||
@import 'components/keywords';
|
||||
@import 'components/details-summary';
|
||||
@import 'components/sort';
|
||||
|
||||
@import 'components/figures';
|
||||
@import 'components/form-newsletter';
|
||||
@import 'components/search-form';
|
||||
@import 'components/list-socials';
|
||||
@import 'components/modal-share';
|
||||
@import 'components/text';
|
||||
|
|
|
|||
|
|
@ -6,12 +6,14 @@
|
|||
|
||||
header{
|
||||
.page-type{
|
||||
text-transform: uppercase;
|
||||
// text-transform: uppercase;
|
||||
color: var(--color-txt-light);
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
}
|
||||
h2{
|
||||
font-size: var(--fs-xbig);
|
||||
.page-title{
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
font-size: var(--fs-big);
|
||||
line-height: var(--leading-tight);
|
||||
}
|
||||
}
|
||||
|
|
@ -36,24 +38,66 @@
|
|||
color: var(--color-txt-light);
|
||||
font-size: var(--fs-small);
|
||||
@media #{$x-small}{ font-size: var(--fs-xsmall); }
|
||||
padding-top: calc(var(--spacing)*0.5);
|
||||
padding: calc(var(--spacing)*0.5) var(--padding-body);
|
||||
padding-bottom: 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
&.hero-video{
|
||||
figure{
|
||||
figure{
|
||||
width: 100%;
|
||||
position: relative;
|
||||
img{
|
||||
width: 100%;
|
||||
|
||||
img{
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
|
||||
aspect-ratio: 16/9;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
.swiper-slide{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.swiper-button-prev, .swiper-button-next{
|
||||
--swiper-navigation-sides-offset: 32px;
|
||||
--swiper-navigation-size: 32px;
|
||||
|
||||
@media #{$x-small}{
|
||||
--swiper-navigation-sides-offset: 15px;
|
||||
--swiper-navigation-size: 15px;
|
||||
}
|
||||
opacity: 0.8;
|
||||
|
||||
// Position buttons relative to the image (16/9 aspect ratio)
|
||||
// Calculate: 50% of image height = 50% * (9/16) of width
|
||||
// Image is 100vw wide, so center at: (100vw * 9/16) / 2
|
||||
top: calc(100vw * 9 / 16 / 2 - var(--swiper-navigation-size)*0.5);
|
||||
margin-top: 0;
|
||||
|
||||
svg{ color: white; }
|
||||
}
|
||||
|
||||
.swiper-pagination{
|
||||
position: static;
|
||||
margin-top: calc(var(--spacing)*0.5);
|
||||
padding: 0 var(--padding-body);
|
||||
text-align: center;
|
||||
|
||||
.swiper-pagination-bullet{
|
||||
width: 15px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: var(--color-txt-light);
|
||||
// opacity: 0.4;
|
||||
}
|
||||
|
||||
.swiper-pagination-bullet-active{
|
||||
background: var(--color-txt);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#nav--page{
|
||||
|
|
|
|||
|
|
@ -2,15 +2,40 @@
|
|||
[data-template="investigations"] main{
|
||||
|
||||
#container-cards{
|
||||
max-width: var(--max-w-container);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
||||
grid-auto-rows: minmax(100px, auto);
|
||||
grid-gap: var(--padding-body);
|
||||
margin-bottom: 10vh;
|
||||
|
||||
@media #{$x-small-up}{
|
||||
max-width: var(--max-w-container);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
grid-auto-rows: minmax(100px, auto);
|
||||
grid-gap: var(--padding-body);
|
||||
margin-bottom: 10vh;
|
||||
}
|
||||
@media #{$x-small}{
|
||||
margin-bottom: 10vh;
|
||||
.card--article{
|
||||
margin-bottom: calc(var(--spacing)*1.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.search-container{
|
||||
max-width: var(--max-w-content);
|
||||
margin: 0 auto;
|
||||
margin-bottom: calc(var(--spacing)*2);
|
||||
}
|
||||
|
||||
.page__sort{
|
||||
max-width: var(--max-w-container);
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
grid-gap: var(--padding-inner);
|
||||
margin: 0 auto;
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue