feat(SW-3231): Move Lightbox to design-system * Move Lightbox to design-system * Fix self-referencing imports * Fix broken import Approved-by: Matilda Landström
128 lines
2.4 KiB
CSS
128 lines
2.4 KiB
CSS
.fullViewContainer {
|
|
background-color: var(--UI-Text-High-contrast);
|
|
height: 100%;
|
|
padding: var(--Space-x3) var(--Space-x2);
|
|
position: relative;
|
|
align-items: center;
|
|
justify-items: center;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
grid-template-columns: 1fr;
|
|
place-content: center;
|
|
gap: var(--Space-x5);
|
|
}
|
|
|
|
.closeButton {
|
|
position: absolute;
|
|
top: var(--Space-x2);
|
|
right: var(--Space-x2);
|
|
z-index: 1;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.imageCount {
|
|
background-color: var(--Overlay-90);
|
|
padding: var(--Space-x025) var(--Space-x05);
|
|
border-radius: var(--Corner-radius-sm);
|
|
color: var(--Text-Inverted);
|
|
}
|
|
|
|
.imageContainer {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: 25rem;
|
|
margin-top: var(--Space-x5);
|
|
}
|
|
|
|
.imageWrapper {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: var(--Corner-radius-Medium);
|
|
}
|
|
|
|
.imageCaption {
|
|
color: var(--Text-Inverted);
|
|
position: absolute;
|
|
top: calc(-1 * var(--Space-x5));
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
.navigationButton {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) and (max-width: 1366px) {
|
|
.fullViewContainer {
|
|
padding: var(--Space-x5);
|
|
}
|
|
|
|
.imageContainer {
|
|
height: 100%;
|
|
max-height: 560px;
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.closeButton {
|
|
position: fixed;
|
|
top: var(--Space-x15);
|
|
right: var(--Space-x15);
|
|
}
|
|
|
|
.fullViewContainer {
|
|
margin-top: 0;
|
|
padding: var(--Space-x5);
|
|
grid-template-rows: auto 1fr auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.imageContainer {
|
|
width: 70%;
|
|
max-width: 1454px;
|
|
max-height: 700px;
|
|
}
|
|
|
|
.navigationButton {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background-color: var(--Component-Button-Inverted-Fill-Default);
|
|
color: var(--Component-Button-Inverted-On-fill-Default);
|
|
border-radius: var(--Corner-radius-rounded);
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
border-width: 0;
|
|
display: flex;
|
|
z-index: 1;
|
|
box-shadow: 0px 0px 8px 1px #0000001a;
|
|
|
|
&:hover {
|
|
background-color: var(--Component-Button-Inverted-Fill-Hover);
|
|
color: var(--Component-Button-Inverted-On-fill-Hover);
|
|
}
|
|
}
|
|
|
|
.fullViewNextButton {
|
|
right: var(--Space-x5);
|
|
}
|
|
|
|
.fullViewPrevButton {
|
|
left: var(--Space-x5);
|
|
}
|
|
}
|