card block small + date lang
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s
This commit is contained in:
parent
1fedb2392c
commit
cb2fe498fe
10 changed files with 326 additions and 305 deletions
153
assets/css/components/_card-block-small.scss
Normal file
153
assets/css/components/_card-block-small.scss
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
.card--block-small {
|
||||
|
||||
border-bottom: var(--border-light);
|
||||
padding: var(--padding-inner) 0;
|
||||
padding-bottom: calc(var(--spacing)*0.75);
|
||||
|
||||
&:first-of-type {
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
|
||||
@include grid-content();
|
||||
@include hover-card-line();
|
||||
|
||||
|
||||
.group-top {
|
||||
position: relative;
|
||||
// top: -5px;
|
||||
}
|
||||
|
||||
@include btn--go-to();
|
||||
|
||||
.btn--go-to {
|
||||
top: calc(var(--padding-inner)*1);
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
.title {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
font-size: var(--fs-normal);
|
||||
line-height: var(--leading-title);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-right: 4ch;
|
||||
}
|
||||
|
||||
.date {
|
||||
font-size: var(--fs-small);
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
@media #{$small} {
|
||||
display: block;
|
||||
padding-bottom: calc(var(--spacing)*0.5);
|
||||
|
||||
.btn--go-to{
|
||||
top: auto;
|
||||
bottom: calc(var(--padding-inner)*1);
|
||||
}
|
||||
|
||||
.group-top {
|
||||
top: 0px;
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
}
|
||||
|
||||
.title{
|
||||
margin-bottom: calc(var(--spacing)*0.75);
|
||||
margin-right: 1ch;
|
||||
}
|
||||
|
||||
.date{
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.card--block-small {
|
||||
|
||||
.card--open-graph {
|
||||
grid-column: 2;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.open-graph__details {
|
||||
grid-column: 2;
|
||||
|
||||
summary,
|
||||
.summary-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
svg {
|
||||
transition: transform 0.2s ease-in;
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
summary:hover {
|
||||
color: var(--color-txt);
|
||||
|
||||
.arrow-details svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
}
|
||||
|
||||
&[open] {
|
||||
.arrow-details svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
color: var(--color-txt-light);
|
||||
|
||||
.arrow-details svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$x-small} {
|
||||
summary {
|
||||
@include grid-content();
|
||||
grid-row-gap: 0;
|
||||
|
||||
.summary-inner {
|
||||
grid-column: 2;
|
||||
}
|
||||
}
|
||||
|
||||
grid-column: 1/3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,144 +0,0 @@
|
|||
|
||||
.card--impact-small {
|
||||
|
||||
border-bottom: var(--border-light);
|
||||
&:first-of-type{
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
|
||||
@include grid-content();
|
||||
padding: var(--padding-inner) 0;
|
||||
padding-bottom: calc(var(--spacing)*0.75);
|
||||
|
||||
&.has-link {
|
||||
@include hover-card-line();
|
||||
}
|
||||
|
||||
@include btn--go-to();
|
||||
|
||||
.btn--go-to {
|
||||
top: calc(var(--padding-inner)*1);
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
.title {
|
||||
grid-column: 2;
|
||||
font-size: var(--fs-normal);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-right: 4ch;
|
||||
}
|
||||
|
||||
.date{
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.card--open-graph {
|
||||
grid-column: 2;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.keywords {
|
||||
grid-column: 2;
|
||||
z-index: 10;
|
||||
@media #{$x-small} { display: none; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
&:not([data-impact-type="media"]) .content,
|
||||
.keywords {
|
||||
@media #{$x-small} {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
.category {
|
||||
width: auto;
|
||||
justify-self: start;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
&:not([data-impact-type="media"]) {
|
||||
.content {
|
||||
padding-right: calc(var(--padding-inner)*2.5);
|
||||
@media #{$x-small} {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.open-graph__details {
|
||||
grid-column: 2;
|
||||
|
||||
summary,
|
||||
.summary-inner{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
svg{
|
||||
transition: transform 0.2s ease-in;
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
summary:hover{
|
||||
color: var(--color-txt);
|
||||
.arrow-details svg{
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
}
|
||||
|
||||
&[open]{
|
||||
.arrow-details svg{
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
color: var(--color-txt-light);
|
||||
|
||||
.arrow-details svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$x-small} {
|
||||
summary {
|
||||
@include grid-content();
|
||||
grid-row-gap: 0;
|
||||
|
||||
.summary-inner {
|
||||
grid-column: 2;
|
||||
}
|
||||
}
|
||||
|
||||
grid-column: 1/3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -23,6 +23,27 @@
|
|||
|
||||
|
||||
|
||||
.type{
|
||||
height: calc(var(--h-block)*0.75);
|
||||
border-radius: var(--radius-small);
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 1ch;
|
||||
padding-top: 3px;
|
||||
|
||||
font-size: var(--fs-xsmall);
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
|
||||
border: var(--border-medium);
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-txt-light);
|
||||
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page__type{
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
|
||||
.text{
|
||||
color: black;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
margin-inline: auto;
|
||||
padding-top: calc(var(--spacing)*4);
|
||||
@media #{$small} {
|
||||
padding-top: calc(var(--spacing)*2);
|
||||
padding-top: calc(var(--spacing)*3);
|
||||
}
|
||||
|
||||
.aside__title{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
|
||||
background-color: var(--dark);
|
||||
padding: calc(var(--spacing)*2) var(--padding-body);
|
||||
padding: calc(var(--spacing)*2) var(--padding-body) calc(var(--spacing)*1) var(--padding-body);
|
||||
z-index: 500;
|
||||
|
||||
.site-footer__container {
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
list-style: none;
|
||||
|
||||
li {
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
margin-bottom: calc(var(--spacing)*0.25);
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
@ -77,7 +77,6 @@
|
|||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
max-width: 350px;
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: var(--padding-inner);
|
||||
|
|
@ -89,7 +88,7 @@
|
|||
}
|
||||
}
|
||||
.socials{
|
||||
grid-column: 2;
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
|
|
@ -97,8 +96,8 @@
|
|||
.credits {
|
||||
font-size: var(--fs-xsmall);
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
|
||||
grid-row: 4;
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -112,23 +111,23 @@
|
|||
|
||||
.list-links {
|
||||
margin-top: calc(var(--spacing)*1);
|
||||
li {
|
||||
margin-bottom: calc(var(--spacing)*0.5);
|
||||
}
|
||||
// li {
|
||||
// margin-bottom: calc(var(--spacing)*0.25);
|
||||
// }
|
||||
|
||||
.hightlight {
|
||||
margin-top: calc(var(--spacing)*1.5);
|
||||
margin-top: calc(var(--spacing)*0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.socials {
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
margin-top: calc(var(--spacing)*1);
|
||||
}
|
||||
|
||||
.credits {
|
||||
margin-top: calc(var(--spacing)*1);
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -672,6 +672,24 @@ button:disabled {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.type {
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
border-radius: var(--radius-small);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 1ch;
|
||||
padding-top: 3px;
|
||||
font-size: var(--fs-xsmall);
|
||||
line-height: 1;
|
||||
font-weight: 500;
|
||||
border: var(--border-medium);
|
||||
background-color: var(--color-bg);
|
||||
color: var(--color-txt-light);
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.page__type {
|
||||
height: calc(var(--h-block) * 1);
|
||||
border-radius: var(--radius-small);
|
||||
|
|
@ -916,6 +934,7 @@ button.sort[data-sort-type=up] .arrow {
|
|||
}
|
||||
#investigation__hero .player-container #hero-play-video .text {
|
||||
color: black;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
|
@ -2001,30 +2020,28 @@ button.sort[data-sort-type=up] .arrow {
|
|||
width: calc(50% - 13px);
|
||||
}
|
||||
}
|
||||
.card--impact-small {
|
||||
.card--block-small {
|
||||
border-bottom: var(--border-light);
|
||||
padding: var(--padding-inner) 0;
|
||||
padding-bottom: calc(var(--spacing) * 0.75);
|
||||
}
|
||||
.card--impact-small:first-of-type {
|
||||
.card--block-small:first-of-type {
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
.card--impact-small {
|
||||
.card--block-small {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
position: relative;
|
||||
padding: var(--padding-inner) 0;
|
||||
padding-bottom: calc(var(--spacing) * 0.75);
|
||||
}
|
||||
.card--impact-small.has-link {
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
.card--impact-small.has-link:first-of-type {
|
||||
.card--block-small:first-of-type {
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
.card--impact-small.has-link {
|
||||
.card--block-small {
|
||||
position: relative;
|
||||
}
|
||||
.card--impact-small.has-link::before {
|
||||
.card--block-small::before {
|
||||
content: "";
|
||||
width: 100%;
|
||||
border-top: 1px solid transparent;
|
||||
|
|
@ -2032,103 +2049,104 @@ button.sort[data-sort-type=up] .arrow {
|
|||
top: -1px;
|
||||
left: 0;
|
||||
}
|
||||
.card--impact-small.has-link:hover {
|
||||
.card--block-small:hover {
|
||||
background-color: var(--grey-950);
|
||||
border-color: var(--color-txt);
|
||||
}
|
||||
.card--impact-small.has-link:hover::before {
|
||||
.card--block-small:hover::before {
|
||||
border-color: var(--color-txt);
|
||||
}
|
||||
.card--impact-small {
|
||||
.card--block-small .group-top {
|
||||
position: relative;
|
||||
}
|
||||
.card--impact-small .btn--go-to {
|
||||
.card--block-small {
|
||||
position: relative;
|
||||
}
|
||||
.card--block-small .btn--go-to {
|
||||
position: absolute;
|
||||
right: var(--padding-inner);
|
||||
bottom: calc(var(--padding-inner) - 3px);
|
||||
}
|
||||
.card--impact-small .btn--go-to svg {
|
||||
.card--block-small .btn--go-to svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.card--impact-small .btn--go-to svg {
|
||||
.card--block-small .btn--go-to svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact-small .btn--go-to {
|
||||
.card--block-small .btn--go-to {
|
||||
right: calc(var(--padding-inner) * 0.5);
|
||||
bottom: calc(var(--padding-inner) * 0.25);
|
||||
}
|
||||
.card--impact-small .btn--go-to svg {
|
||||
.card--block-small .btn--go-to svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
}
|
||||
.card--impact-small:hover .btn--go-to {
|
||||
.card--block-small:hover .btn--go-to {
|
||||
animation: wiggle-left 0.8s ease-in-out;
|
||||
}
|
||||
.card--impact-small .btn--go-to {
|
||||
.card--block-small .btn--go-to {
|
||||
top: calc(var(--padding-inner) * 1);
|
||||
bottom: auto;
|
||||
}
|
||||
.card--impact-small .title {
|
||||
.card--block-small .title {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
font-size: var(--fs-normal);
|
||||
line-height: var(--leading-title);
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-right: 4ch;
|
||||
}
|
||||
.card--impact-small .date {
|
||||
.card--block-small .date {
|
||||
font-size: var(--fs-small);
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.card--impact-small .card--open-graph {
|
||||
@media screen and (max-width: 768px) {
|
||||
.card--block-small {
|
||||
display: block;
|
||||
padding-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
.card--block-small .btn--go-to {
|
||||
top: auto;
|
||||
bottom: calc(var(--padding-inner) * 1);
|
||||
}
|
||||
.card--block-small .group-top {
|
||||
top: 0px;
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
.card--block-small .title {
|
||||
margin-bottom: calc(var(--spacing) * 0.75);
|
||||
margin-right: 1ch;
|
||||
}
|
||||
.card--block-small .date {
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.card--block-small .card--open-graph {
|
||||
grid-column: 2;
|
||||
z-index: 10;
|
||||
}
|
||||
.card--impact-small .keywords {
|
||||
grid-column: 2;
|
||||
z-index: 10;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact-small .keywords {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact-small:not([data-impact-type=media]) .content,
|
||||
.card--impact-small .keywords {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
.card--impact-small .category {
|
||||
width: auto;
|
||||
justify-self: start;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
.card--impact-small:not([data-impact-type=media]) .content {
|
||||
padding-right: calc(var(--padding-inner) * 2.5);
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact-small:not([data-impact-type=media]) .content {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
.card--impact-small .open-graph__details {
|
||||
.card--block-small .open-graph__details {
|
||||
grid-column: 2;
|
||||
}
|
||||
.card--impact-small .open-graph__details summary,
|
||||
.card--impact-small .open-graph__details .summary-inner {
|
||||
.card--block-small .open-graph__details summary,
|
||||
.card--block-small .open-graph__details .summary-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
.card--impact-small .open-graph__details .arrow-details {
|
||||
.card--block-small .open-graph__details .arrow-details {
|
||||
line-height: 0;
|
||||
--size: 11px;
|
||||
height: var(--size);
|
||||
|
|
@ -2139,38 +2157,38 @@ button.sort[data-sort-type=up] .arrow {
|
|||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
.card--impact-small .open-graph__details .arrow-details svg {
|
||||
.card--block-small .open-graph__details .arrow-details svg {
|
||||
transition: transform 0.2s ease-in;
|
||||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact-small .open-graph__details summary:hover {
|
||||
.card--block-small .open-graph__details summary:hover {
|
||||
color: var(--color-txt);
|
||||
}
|
||||
.card--impact-small .open-graph__details summary:hover .arrow-details svg {
|
||||
.card--block-small .open-graph__details summary:hover .arrow-details svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact-small .open-graph__details[open] .arrow-details svg {
|
||||
.card--block-small .open-graph__details[open] .arrow-details svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.card--impact-small .open-graph__details summary {
|
||||
.card--block-small .open-graph__details summary {
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.card--impact-small .open-graph__details summary .arrow-details svg {
|
||||
.card--block-small .open-graph__details summary .arrow-details svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact-small .open-graph__details summary {
|
||||
.card--block-small .open-graph__details summary {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
position: relative;
|
||||
grid-row-gap: 0;
|
||||
}
|
||||
.card--impact-small .open-graph__details summary .summary-inner {
|
||||
.card--block-small .open-graph__details summary .summary-inner {
|
||||
grid-column: 2;
|
||||
}
|
||||
.card--impact-small .open-graph__details {
|
||||
.card--block-small .open-graph__details {
|
||||
grid-column: 1/3;
|
||||
}
|
||||
}
|
||||
|
|
@ -2778,7 +2796,7 @@ body.menu-open #menu-toggle .close {
|
|||
|
||||
#site-footer {
|
||||
background-color: var(--dark);
|
||||
padding: calc(var(--spacing) * 2) var(--padding-body);
|
||||
padding: calc(var(--spacing) * 2) var(--padding-body) calc(var(--spacing) * 1) var(--padding-body);
|
||||
z-index: 500;
|
||||
}
|
||||
#site-footer .site-footer__container {
|
||||
|
|
@ -2799,7 +2817,7 @@ body.menu-open #menu-toggle .close {
|
|||
list-style: none;
|
||||
}
|
||||
#site-footer .list-links ul li {
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
margin-bottom: calc(var(--spacing) * 0.25);
|
||||
}
|
||||
#site-footer .list-links ul a {
|
||||
text-decoration: none;
|
||||
|
|
@ -2829,36 +2847,33 @@ body.menu-open #menu-toggle .close {
|
|||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
max-width: 350px;
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: var(--padding-inner);
|
||||
}
|
||||
#site-footer .site-footer__container .socials {
|
||||
grid-column: 2;
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
}
|
||||
#site-footer .site-footer__container .credits {
|
||||
font-size: var(--fs-xsmall);
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
grid-row: 4;
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
#site-footer .list-links {
|
||||
margin-top: calc(var(--spacing) * 1);
|
||||
}
|
||||
#site-footer .list-links li {
|
||||
margin-bottom: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
#site-footer .list-links .hightlight {
|
||||
margin-top: calc(var(--spacing) * 1.5);
|
||||
margin-top: calc(var(--spacing) * 0.5);
|
||||
}
|
||||
#site-footer .socials {
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
margin-top: calc(var(--spacing) * 1);
|
||||
}
|
||||
#site-footer .credits {
|
||||
margin-top: calc(var(--spacing) * 1);
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
|
|
@ -2955,7 +2970,7 @@ main .page__header .page__description {
|
|||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.page__aside {
|
||||
padding-top: calc(var(--spacing) * 2);
|
||||
padding-top: calc(var(--spacing) * 3);
|
||||
}
|
||||
}
|
||||
.page__aside .aside__title {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -24,7 +24,7 @@
|
|||
@import "components/card-article";
|
||||
@import "components/card-article-small";
|
||||
@import "components/card-block";
|
||||
@import "components/card-impact-small";
|
||||
@import "components/card-block-small";
|
||||
// @import "components/card-package";
|
||||
@import "components/card-open-graph";
|
||||
@import "components/swiper";
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
<?php
|
||||
$videoPreview = $page->videoPreview()->toFile();
|
||||
$hasVideo = $videoPreview || $page->videoUrl()->isNotEmpty();
|
||||
$lang = kirby()->language();
|
||||
$locale = $lang ? $lang->locale(LC_ALL) : 'fr_FR.UTF-8';
|
||||
$dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
|
||||
?>
|
||||
|
||||
<?php if ($hasVideo): ?>
|
||||
|
|
@ -63,7 +66,7 @@ $hasVideo = $videoPreview || $page->videoUrl()->isNotEmpty();
|
|||
<?php if ($page->incidentDate()->isNotEmpty()): ?>
|
||||
<div class="dl__group">
|
||||
<dt>Date de l'incident</dt>
|
||||
<dd><time class="date" datetime="<?= $page->incidentDate()->toDate('yyyy-MM-dd') ?>"><?= $page->incidentDate()->toDate('d MMMM yyyy', 'fr_FR') ?></time></dd>
|
||||
<dd><time class="date" datetime="<?= $page->incidentDate()->toDate('yyyy-MM-dd') ?>"><?= $page->incidentDate()->toDate('d MMMM yyyy', $dateLocale) ?></time></dd>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
|
@ -153,7 +156,7 @@ $hasVideo = $videoPreview || $page->videoUrl()->isNotEmpty();
|
|||
<?php if ($page->created()->isNotEmpty()): ?>
|
||||
<div class="dl__group">
|
||||
<dt>Date de publication</dt>
|
||||
<dd><time class="date" datetime="<?= $page->created()->toDate('yyyy-MM-dd') ?>"><?= $page->created()->toDate('d MMMM yyyy', 'fr_FR') ?></time></dd>
|
||||
<dd><time class="date" datetime="<?= $page->created()->toDate('yyyy-MM-dd') ?>"><?= $page->created()->toDate('d MMMM yyyy', $dateLocale) ?></time></dd>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</dl>
|
||||
|
|
@ -279,12 +282,7 @@ $hasVideo = $videoPreview || $page->videoUrl()->isNotEmpty();
|
|||
</div>
|
||||
|
||||
|
||||
|
||||
<aside class="page__aside" id="impacts">
|
||||
<h3 class="aside__title">Impacts</h3>
|
||||
|
||||
<!-- Contenu statique temporaire - sera dynamique quand les pages impacts seront créées -->
|
||||
<div class="card--impact-small" data-impact-type="media">
|
||||
<!-- <div class="card--block-small" data-impact-type="media">
|
||||
|
||||
<p class="category">Médiatique</p>
|
||||
<div class="content">
|
||||
|
|
@ -295,34 +293,50 @@ $hasVideo = $videoPreview || $page->videoUrl()->isNotEmpty();
|
|||
<summary><p class="summary-inner">Détails <span class="arrow-details"><?= svg('assets/icons/arrow-details.svg') ?></span><p></summary>
|
||||
<?php snippet('card-open-graph') ?>
|
||||
</details>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$impactsParent = site()->find('impacts');
|
||||
$impacts = $impactsParent ? $impactsParent->children()->listed()->filter(function($impact) use ($page) {
|
||||
return $impact->linkedInvestigations()->toPages()->has($page);
|
||||
}) : null;
|
||||
?>
|
||||
|
||||
<?php if ($impacts && $impacts->isNotEmpty()): ?>
|
||||
<aside class="page__aside" id="impacts">
|
||||
<h3 class="aside__title">Impacts</h3>
|
||||
|
||||
<?php foreach ($impacts as $impact): ?>
|
||||
<div class="card--block-small has-link">
|
||||
<div class="group-top">
|
||||
<p class="type">Impact</p>
|
||||
<?php if ($impact->category()->isNotEmpty()): ?>
|
||||
<p class="category"><?= $impact->category()->esc() ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="card--impact-small has-link" data-impact-type="judiciaire">
|
||||
<p class="category">Judiciaire</p>
|
||||
<p class="date">12 Dec 2025</p>
|
||||
<h4 class="title">Ouverture d’une informatin judiciaire suite à la plainte d’Utopia 56</h4>
|
||||
<button class="btn--go-to"><a href="#" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
|
||||
<a class="link-block" href="#" target="_blank"></a>
|
||||
</div>
|
||||
<h4 class="title"><?= $impact->title()->esc() ?></h4>
|
||||
|
||||
<div class="card--impact-small has-link" data-impact-type="judiciaire">
|
||||
<p class="category">Judiciaire</p>
|
||||
<p class="date">12 Dec 2025</p>
|
||||
<h4 class="title">Conférence de presse aux archives citoyennes</h4>
|
||||
<button class="btn--go-to"><a href="#" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
|
||||
<a class="link-block" href="#" target="_blank"></a>
|
||||
</div>
|
||||
<?php if ($impact->created()->isNotEmpty()): ?>
|
||||
<p class="date">
|
||||
<time datetime="<?= $impact->created()->toDate('yyyy-MM-dd') ?>"><?= $impact->created()->toDate('d MMMM yyyy', $dateLocale) ?></time>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="card--impact-small has-link" data-impact-type="judiciaire">
|
||||
<p class="category">Judiciaire</p>
|
||||
<p class="date">12 Dec 2025</p>
|
||||
<h4 class="title">La justice israélienne déclare ouvrir une enquête sur "les circonstances de la mort de Nidal et Khaled Amirah"</h4>
|
||||
<button class="btn--go-to"><a href="#" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
|
||||
<a class="link-block" href="#" target="_blank"></a>
|
||||
</div>
|
||||
<button class="btn--go-to">
|
||||
<a href="<?= $impact->url() ?>">
|
||||
<?= svg('assets/icons/arrow-left.svg') ?>
|
||||
</a>
|
||||
</button>
|
||||
|
||||
<a class="link-block" href="<?= $impact->url() ?>" aria-hidden="true"></a>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
||||
</aside>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php
|
||||
|
|
@ -335,38 +349,6 @@ if ($relatedInvestigations->isEmpty()) {
|
|||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<aside class="page__aside" id="package">
|
||||
<h3 class="aside__title">Dans le dossier</h3>
|
||||
|
||||
<article class="card--package">
|
||||
<figure>
|
||||
<img src="/media/pages/enquetes/l-homicide-de-nahel-merzouk/fe521629d6-1770640671/nahel-visuel1.png">
|
||||
</figure>
|
||||
|
||||
<div class="content">
|
||||
<p class="type">Dossier</p>
|
||||
<h4 class="title"><a href="http://localhost:8000/enquetes/l-homicide-de-nahel-merzouk">Violences policières en France</a></h4>
|
||||
<ul class="details">
|
||||
<li>5 enquêtes</li>
|
||||
<li>18 impacts</li>
|
||||
</ul>
|
||||
|
||||
<p class="description">À partir d’images exclusives, l’analyse conjointe de B’Tselem et Index démontre que les deux hommes ont été abattus par des soldats israéliens alors qu’ils ne présentaient aucun danger.</p>
|
||||
</div>
|
||||
<a class="link-block" href="#" target="_blank" aria-hidden="true"></a>
|
||||
<button class="btn--go-to"><a href="#" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
|
||||
|
||||
</article>
|
||||
</aside>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
// KIRBY TO DO : récupérer s’il y a un dossier mr
|
||||
?>
|
||||
|
||||
<?php
|
||||
// Récupérer le dossier associé à cette investigation
|
||||
$packageSlug = $page->package()->value();
|
||||
|
|
@ -389,8 +371,6 @@ if ($package):
|
|||
<div class="content">
|
||||
<p class="type">Dossier</p>
|
||||
<h4 class="title"><a href="<?= $package->url() ?>"><span class="icon"><?= svg('assets/icons/package.svg') ?></span><?= $package->title()->esc() ?></a></h4>
|
||||
|
||||
|
||||
<?php
|
||||
// Compter les enquêtes associées à ce dossier
|
||||
$investigationsCount = site()->find('enquetes')->children()->listed()->filter(function($investigation) use ($package) {
|
||||
|
|
@ -405,10 +385,6 @@ if ($package):
|
|||
<li>8 impacts</li>
|
||||
</ul>
|
||||
|
||||
<?php if ($package->description()->isNotEmpty()): ?>
|
||||
<p class="description"><?= $package->description()->excerpt(200) ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
<button class="btn--go-to"><a href="<?= $package->url() ?>" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
|
||||
<a class="link-block" href="<?= $package->url() ?>" target="_blank" aria-hidden="true"></a>
|
||||
|
|
@ -437,7 +413,7 @@ if ($package):
|
|||
<p class="type">Enquête</p>
|
||||
<h4 class="title"><a href="<?= $related->url() ?>"><?= $related->title()->esc() ?></a></h4>
|
||||
<?php if ($related->incidentDate()->isNotEmpty()): ?>
|
||||
<time class="date" datetime="<?= $related->incidentDate()->toDate('yyyy-MM-dd') ?>"><?= $related->incidentDate()->toDate('d MMMM yyyy', 'fr_FR') ?></time>
|
||||
<time class="date" datetime="<?= $related->incidentDate()->toDate('yyyy-MM-dd') ?>"><?= $related->incidentDate()->toDate('d MMMM yyyy', $dateLocale) ?></time>
|
||||
|
||||
<?php if ($related->chapo()->isNotEmpty()): ?>
|
||||
<p class="description"><?= $related->chapo()->excerpt(200) ?></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue