This commit is contained in:
parent
c34a564aa5
commit
9f2b85087d
6 changed files with 214 additions and 254 deletions
|
|
@ -1,86 +1,80 @@
|
|||
.slider-before-after {
|
||||
width: 100%;
|
||||
|
||||
.slider-before-after{
|
||||
max-width: 700px;
|
||||
z-index: 300;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
--position: 50%;
|
||||
|
||||
width: 100%;
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
max-width: 700px;
|
||||
z-index: 300;
|
||||
display: grid;
|
||||
place-content: center;
|
||||
.image-container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
--position: 50%;
|
||||
width: 100%;
|
||||
// max-width: 800px;
|
||||
// max-height: 90vh;
|
||||
// aspect-ratio: 1/1;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
.slider-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: left;
|
||||
}
|
||||
|
||||
.image-before {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: var(--position);
|
||||
}
|
||||
|
||||
.image-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
// max-width: 800px;
|
||||
// max-height: 90vh;
|
||||
// aspect-ratio: 1/1;
|
||||
}
|
||||
.slider {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
/* for Firefox */
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.slider:focus-visible ~ .slider-button {
|
||||
outline: 5px solid black;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.slider-line {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 0.2rem;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
/* z-index: 10; */
|
||||
left: var(--position);
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.slider-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: left;
|
||||
}
|
||||
|
||||
.image-before {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: var(--position);
|
||||
}
|
||||
|
||||
.slider {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
/* for Firefox */
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.slider:focus-visible ~ .slider-button {
|
||||
outline: 5px solid black;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.slider-line {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: .2rem;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
/* z-index: 10; */
|
||||
left: var(--position);
|
||||
transform: translateX(-50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.slider-button {
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
color: black;
|
||||
padding: .5rem;
|
||||
border-radius: 100vw;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
top: 50%;
|
||||
left: var(--position);
|
||||
transform: translate(-50%, -50%);
|
||||
pointer-events: none;
|
||||
/* z-index: 100; */
|
||||
box-shadow: 1px 1px 1px hsl(0, 50%, 2%, .5);
|
||||
}
|
||||
|
||||
.slider-button {
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
color: black;
|
||||
padding: 0.5rem;
|
||||
border-radius: 100vw;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
top: 50%;
|
||||
left: var(--position);
|
||||
transform: translate(-50%, -50%);
|
||||
pointer-events: none;
|
||||
/* z-index: 100; */
|
||||
box-shadow: 1px 1px 1px hsl(0, 50%, 2%, 0.5);
|
||||
}
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
video,
|
||||
figure,
|
||||
img,
|
||||
img:not(.slider-before-after img),
|
||||
picture {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
|
|
|||
|
|
@ -1551,15 +1551,15 @@ figcaption, .caption {
|
|||
}
|
||||
[data-template=package] .page__content video,
|
||||
[data-template=package] .page__content figure,
|
||||
[data-template=package] .page__content img,
|
||||
[data-template=package] .page__content img:not(.slider-before-after img),
|
||||
[data-template=package] .page__content picture,
|
||||
.main__single .page__content video,
|
||||
.main__single .page__content figure,
|
||||
.main__single .page__content img,
|
||||
.main__single .page__content img:not(.slider-before-after img),
|
||||
.main__single .page__content picture,
|
||||
#investigation__content video,
|
||||
#investigation__content figure,
|
||||
#investigation__content img,
|
||||
#investigation__content img:not(.slider-before-after img),
|
||||
#investigation__content picture {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
|
@ -3533,8 +3533,7 @@ main .page__header ul.list-nav li:hover {
|
|||
}
|
||||
#investigation__content .subsection-w-media .media {
|
||||
margin-inline: auto;
|
||||
max-width: var(--max-w-content);
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + var(--spacing));
|
||||
align-self: start;
|
||||
|
|
@ -3576,7 +3575,8 @@ main .page__header ul.list-nav li:hover {
|
|||
margin-bottom: calc(var(--spacing) * 1);
|
||||
font-size: 1em;
|
||||
}
|
||||
#investigation__content h4, #investigation__content h5 {
|
||||
#investigation__content h4,
|
||||
#investigation__content h5 {
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
}
|
||||
|
|
@ -3606,7 +3606,8 @@ main .page__header ul.list-nav li:hover {
|
|||
max-width: 700px;
|
||||
padding: 0 calc(var(--spacing) * 1);
|
||||
}
|
||||
#investigation__content .subsection-w-hscroll .horizontal-scroll-slide figure, #investigation__content .subsection-w-hscroll .horizontal-scroll-slide img {
|
||||
#investigation__content .subsection-w-hscroll .horizontal-scroll-slide figure,
|
||||
#investigation__content .subsection-w-hscroll .horizontal-scroll-slide img {
|
||||
width: 100%;
|
||||
}
|
||||
#investigation__content .subsection-w-hscroll .horizontal-scroll-pagination {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,190 +1,157 @@
|
|||
|
||||
#investigation__content {
|
||||
padding-top: calc(var(--spacing) * 4);
|
||||
|
||||
padding-top: calc(var(--spacing) * 4);
|
||||
.section-title-only {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.section-txt {
|
||||
max-width: var(--max-w-content);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.subsection-txt .insert {
|
||||
margin-top: calc(var(--spacing) * 2);
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
padding: calc(var(--padding-inner) * 2) calc(var(--padding-inner) * 1.5);
|
||||
}
|
||||
|
||||
.section-title-only{
|
||||
margin-bottom: 0;
|
||||
.subsection-txt {
|
||||
max-width: var(--max-w-content);
|
||||
}
|
||||
|
||||
@media #{$small-up} {
|
||||
.section-content {
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
}
|
||||
|
||||
.subsection-w-media {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: var(--padding-body);
|
||||
position: relative;
|
||||
|
||||
.media {
|
||||
margin-inline: auto;
|
||||
width: 100%;
|
||||
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + var(--spacing));
|
||||
align-self: start;
|
||||
|
||||
.section-txt{
|
||||
max-width: var(--max-w-content);
|
||||
margin-inline: auto;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.subsection-txt .insert{
|
||||
margin-top: calc(var(--spacing)*2);
|
||||
margin-bottom: calc(var(--spacing)*2);
|
||||
padding: calc(var(--padding-inner)*2) calc(var(--padding-inner)*1.5);
|
||||
}
|
||||
|
||||
|
||||
.subsection-txt {
|
||||
max-width: var(--max-w-content);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media #{$small-up}{
|
||||
|
||||
.section-content {
|
||||
margin-bottom: calc(var(--spacing)*4);
|
||||
}
|
||||
|
||||
.subsection-w-media{
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: var(--padding-body);
|
||||
position: relative;
|
||||
|
||||
|
||||
.media{
|
||||
margin-inline: auto;
|
||||
max-width: var(--max-w-content);
|
||||
min-width: 0;
|
||||
|
||||
position: sticky;
|
||||
top: calc(var(--header-h) + var(--spacing));
|
||||
align-self: start;
|
||||
|
||||
@media #{$medium-up}{
|
||||
padding-left: var(--padding-inner);
|
||||
padding-right: var(--padding-inner);
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$medium-up} {
|
||||
padding-left: var(--padding-inner);
|
||||
padding-right: var(--padding-inner);
|
||||
}
|
||||
|
||||
.subsection-txt {
|
||||
min-height: calc(100vh - var(--header-h));
|
||||
padding-left: var(--padding-inner);
|
||||
padding-right: var(--padding-inner);
|
||||
padding-bottom: calc(var(--spacing)*6);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.subsection-txt {
|
||||
min-height: calc(100vh - var(--header-h));
|
||||
padding-left: var(--padding-inner);
|
||||
padding-right: var(--padding-inner);
|
||||
padding-bottom: calc(var(--spacing) * 6);
|
||||
}
|
||||
}
|
||||
|
||||
@media #{$small}{
|
||||
|
||||
.section-content:not(.section-title-only) {
|
||||
padding-bottom: calc(var(--spacing)*1);
|
||||
margin-bottom: calc(var(--spacing)*2);
|
||||
border-bottom: var(--border-light);
|
||||
@media #{$small} {
|
||||
.section-content:not(.section-title-only) {
|
||||
padding-bottom: calc(var(--spacing) * 1);
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
|
||||
.section-title-only{
|
||||
margin-bottom: calc(var(--spacing)*1.5);
|
||||
}
|
||||
.media{
|
||||
margin-bottom: calc(var(--spacing)*2);
|
||||
}
|
||||
|
||||
h3{
|
||||
margin-top: calc(var(--spacing)*3);
|
||||
margin-bottom: calc(var(--spacing)*1.5);
|
||||
font-size: 1.35em;
|
||||
}
|
||||
|
||||
h4{
|
||||
margin-top: calc(var(--spacing)*3);
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h4, h5{
|
||||
margin-top: calc(var(--spacing)*3);
|
||||
margin-bottom: calc(var(--spacing)*1);
|
||||
}
|
||||
|
||||
.subsection-txt .insert{
|
||||
margin-top: calc(var(--spacing)*1.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.subsection-w-hscroll{
|
||||
position: relative;
|
||||
margin-bottom: calc(var(--spacing)*4);
|
||||
|
||||
.horizontal-scroll{
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.horizontal-scroll-wrapper{
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.horizontal-scroll-slide{
|
||||
flex-shrink: 0;
|
||||
width: 90vw;
|
||||
max-width: 700px;
|
||||
padding: 0 calc(var(--spacing) * 1);
|
||||
|
||||
figure, img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.horizontal-scroll-pagination{
|
||||
position: fixed;
|
||||
bottom: calc(var(--spacing) * 2);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.section-title-only {
|
||||
margin-bottom: calc(var(--spacing) * 1.5);
|
||||
}
|
||||
.media {
|
||||
margin-bottom: calc(var(--spacing) * 2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.insert--inner > :last-child{
|
||||
margin-bottom: 0px;
|
||||
h3 {
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 1.5);
|
||||
font-size: 1.35em;
|
||||
}
|
||||
.insert--inner > :first-child,
|
||||
.subsection-txt > :first-child,
|
||||
.section-content > :first-child{
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h4,
|
||||
h5 {
|
||||
margin-top: calc(var(--spacing) * 3);
|
||||
margin-bottom: calc(var(--spacing) * 1);
|
||||
}
|
||||
|
||||
.subsection-txt .insert {
|
||||
margin-top: calc(var(--spacing) * 1.5);
|
||||
}
|
||||
}
|
||||
|
||||
.subsection-w-hscroll {
|
||||
position: relative;
|
||||
margin-bottom: calc(var(--spacing) * 4);
|
||||
|
||||
.horizontal-scroll {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.horizontal-scroll-wrapper {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.horizontal-scroll-slide {
|
||||
flex-shrink: 0;
|
||||
width: 90vw;
|
||||
max-width: 700px;
|
||||
padding: 0 calc(var(--spacing) * 1);
|
||||
|
||||
figure,
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.horizontal-scroll-pagination {
|
||||
position: fixed;
|
||||
bottom: calc(var(--spacing) * 2);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
|
||||
.insert--inner > :last-child {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.insert--inner > :first-child,
|
||||
.subsection-txt > :first-child,
|
||||
.section-content > :first-child {
|
||||
margin-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.investigation__content:target {
|
||||
padding-top: calc(var(--header-h)*2 + var(--spacing)) !important;
|
||||
padding-top: calc(var(--header-h) * 2 + var(--spacing)) !important;
|
||||
}
|
||||
|
||||
.media {
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media{
|
||||
|
||||
video{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
figure{
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
||||
figure {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<div class="modal--share">
|
||||
|
||||
|
||||
<p class="title"><?= $page->title()->esc() ?>
|
||||
<?php if ($page->subtitle()->isNotEmpty()): ?>
|
||||
<?= $page->subtitle()->esc() ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue