hover card with bg
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
This commit is contained in:
parent
80a606243e
commit
a0f0110fa6
14 changed files with 289 additions and 78 deletions
|
|
@ -1296,8 +1296,8 @@ button.sort[data-sort-type=up] .arrow {
|
|||
z-index: 1000;
|
||||
max-width: 32ch;
|
||||
}
|
||||
.card--article-small:hover .title {
|
||||
text-decoration: underline;
|
||||
.card--article-small:hover {
|
||||
background-color: var(--grey-950);
|
||||
}
|
||||
.card--article-small .btn--go-to {
|
||||
position: absolute;
|
||||
|
|
@ -1361,10 +1361,44 @@ button.sort[data-sort-type=up] .arrow {
|
|||
border-bottom: var(--border-light);
|
||||
container-type: inline-size;
|
||||
container-name: impact;
|
||||
position: relative;
|
||||
}
|
||||
.card--impact:first-of-type {
|
||||
border-top: var(--border-light);
|
||||
}
|
||||
.card--impact .btn--go-to {
|
||||
position: absolute;
|
||||
right: var(--padding-inner);
|
||||
bottom: calc(var(--padding-inner) - 3px);
|
||||
}
|
||||
.card--impact .btn--go-to svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.card--impact .btn--go-to svg {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact .btn--go-to {
|
||||
right: calc(var(--padding-inner) * 0.5);
|
||||
bottom: calc(var(--padding-inner) * 0.25);
|
||||
}
|
||||
.card--impact .btn--go-to svg {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
}
|
||||
}
|
||||
.card--impact:hover .btn--go-to {
|
||||
animation: wiggle-left 0.8s ease-in-out;
|
||||
}
|
||||
.card--impact .btn--go-to {
|
||||
top: calc(var(--padding-inner) * 1);
|
||||
bottom: auto;
|
||||
}
|
||||
.card--impact .content {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
|
@ -1379,16 +1413,39 @@ button.sort[data-sort-type=up] .arrow {
|
|||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
.card--impact .content .see-more {
|
||||
color: var(--color-txt-light);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
.card--impact:not([data-impact-type=media]) .content {
|
||||
padding-right: calc(var(--padding-inner) * 2.5);
|
||||
}
|
||||
.card--impact .content .see-more::after {
|
||||
content: " +";
|
||||
.card--impact .investigations {
|
||||
z-index: 10;
|
||||
grid-column: 2;
|
||||
list-style: none;
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
.card--impact .investigations a {
|
||||
text-decoration: none;
|
||||
color: var(--color-txt-light);
|
||||
}
|
||||
.card--impact .investigations .icon {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
.card--impact .investigations .icon svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
.card--impact .investigations li:hover a {
|
||||
color: var(--color-txt);
|
||||
}
|
||||
.card--impact .investigations li:hover .icon svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact.has-link:hover {
|
||||
background-color: var(--grey-950);
|
||||
}
|
||||
.card--impact .open-graph__details {
|
||||
grid-column: span 2;
|
||||
grid-column: 2;
|
||||
}
|
||||
.card--impact .open-graph__details summary,
|
||||
.card--impact .open-graph__details .summary-inner {
|
||||
|
|
@ -1413,6 +1470,12 @@ button.sort[data-sort-type=up] .arrow {
|
|||
width: 100%;
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact .open-graph__details summary:hover {
|
||||
color: var(--color-txt);
|
||||
}
|
||||
.card--impact .open-graph__details summary:hover .arrow-details svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
.card--impact .open-graph__details[open] .arrow-details svg {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
|
@ -1422,23 +1485,23 @@ button.sort[data-sort-type=up] .arrow {
|
|||
.card--impact .open-graph__details summary .arrow-details svg {
|
||||
fill: var(--color-txt-light);
|
||||
}
|
||||
.card--impact .open-graph__details summary {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
position: relative;
|
||||
}
|
||||
.card--impact .open-graph__details summary .summary-inner {
|
||||
grid-column: 2;
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--impact .open-graph__details {
|
||||
grid-column: 1/3;
|
||||
}
|
||||
.card--impact .open-graph__details summary {
|
||||
display: grid;
|
||||
grid-gap: var(--padding-inner);
|
||||
grid-template-columns: 2fr 3fr;
|
||||
position: relative;
|
||||
grid-row-gap: 0;
|
||||
}
|
||||
.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);
|
||||
|
|
@ -1449,6 +1512,10 @@ button.sort[data-sort-type=up] .arrow {
|
|||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
[data-template=impacts] .card--impact:not([data-impact-type=media]):hover {
|
||||
background-color: var(--grey-950);
|
||||
}
|
||||
|
||||
.card--folder {
|
||||
position: relative;
|
||||
max-width: var(--max-w-cards);
|
||||
|
|
@ -1597,18 +1664,14 @@ button.sort[data-sort-type=up] .arrow {
|
|||
.card--open-graph figure {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
}
|
||||
.card--open-graph figure {
|
||||
aspect-ratio: 16/9;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
@media screen and (max-width: 560px) {
|
||||
.card--open-graph figure {
|
||||
|
|
@ -1650,6 +1713,7 @@ button.sort[data-sort-type=up] .arrow {
|
|||
}
|
||||
.card--open-graph:hover {
|
||||
border-color: var(--color-txt);
|
||||
background-color: var(--grey-950);
|
||||
}
|
||||
|
||||
.open-graph__inner {
|
||||
|
|
@ -1972,6 +2036,11 @@ body main {
|
|||
min-height: 100dvh;
|
||||
min-height: 100vh;
|
||||
}
|
||||
body main .page__header,
|
||||
body main .page__content {
|
||||
max-width: var(--max-w-cards);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.page__type {
|
||||
height: calc(var(--h-block) * 0.75);
|
||||
|
|
@ -1992,8 +2061,6 @@ body main {
|
|||
}
|
||||
|
||||
main .page__header {
|
||||
max-width: var(--max-w-cards);
|
||||
margin-inline: auto;
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
}
|
||||
|
|
@ -2188,10 +2255,6 @@ main .page__header .description-medium {
|
|||
[data-template=investigation-summary] main {
|
||||
position: relative;
|
||||
}
|
||||
[data-template=investigation-summary] main #hero, [data-template=investigation-summary] main .section__article {
|
||||
max-width: var(--max-w-cards);
|
||||
margin-inline: auto;
|
||||
}
|
||||
[data-template=investigation-summary] main .panel-left {
|
||||
width: calc((100vw - var(--max-w-cards) - var(--padding-body) * 4) * 0.5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue