Skip to content

Commit

Permalink
Improve display of image sliders on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
marlinstrub committed Jan 7, 2024
1 parent 25b3ce1 commit d439ad9
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ div.back a {
position: relative;
width: 95vw;
max-width: 500px;
height: 290px;
height: 350px;
min-height: 100%;
margin-top: 2rem;
margin-bottom: 2rem;
overflow: hidden;
Expand All @@ -417,8 +418,19 @@ div.back a {
justify-content: center;
}

.figure {
max-width: 200px;
float: right;
margin-left: 1rem;
margin-bottom: 0.25rem;
padding: 0rem;
}

img {
max-width: 500px;
max-width: 500px;
width: 100%;
height: auto;
margin-top: 50px;
}

input {
Expand All @@ -429,7 +441,7 @@ input {
width: 25px;
height: 25px;
background: rgba(51, 51, 51, 1.00);
opacity: 0.2;
opacity: 0.3;
outline: 10px solid white;
outline-offset: -10px;
cursor: pointer;
Expand All @@ -442,7 +454,8 @@ input:checked {
input + * {
position: absolute;
display: block;
top: -1rem;
top: -2.0rem;
line-height: 1rem;
right: 0;
width: 100%;
height: 100%;
Expand All @@ -457,14 +470,12 @@ input + *[aria-label]:before {
left: 0;
width: 95vw;
max-width: 500px;
height: 2rem;
text-align: center;
vertical-align: top;
height: 1.75rem;
font-size: 0.8rem;
color: rgba(51, 51, 51, 1.00);
z-index: 1;
padding: .2rem;
background-color: rgba(255, 255, 255, 1.00);
padding: .3rem;
background-color: rgba(255, 255, 255, 1.0);
}

input:checked + * {
Expand Down

0 comments on commit d439ad9

Please sign in to comment.