sphinx_galleria/static/sphinxgalleria/sphinxgalleria.css

337 lines
7.1 KiB
CSS
Raw Normal View History

.sphinxgalleria-core {
text-align: center;
box-sizing: border-box;
margin-bottom: 1rem;
2021-06-03 19:17:21 +02:00
display: flex;
flex-flow: column nowrap;
}
.sphinxgalleria-core.align-center {
margin-left: auto;
margin-right: auto;
}
.sphinxgalleria-core.align-left {
float: left;
margin-right: 1rem;
}
.sphinxgalleria-core.align-right {
float: right;
margin-left: 1rem;
}
.sphinxgalleria-core figure {
margin: 0;
padding: 0;
2021-06-03 19:17:21 +02:00
flex-grow: 1000;
flex-shrink: 1000;
display: flex;
flex-flow: column nowrap;
}
.sphinxgalleria-core figure .row {
2021-07-25 01:54:37 +02:00
position: relative;
2021-06-03 19:17:21 +02:00
flex-shrink: 1000;
flex-grow: 1000;
}
.sphinxgalleria-core figure .row button {
flex-grow: 1;
flex-shrink: 1;
cursor: pointer;
}
.sphinxgalleria-core figure .row button.button-modal {
flex-grow: 1000;
flex-shrink: 1000;
margin: 0;
padding: 0;
border: none;
border-radius: unset;
box-sizing: border-box;
width: 100%;
2021-06-03 19:17:21 +02:00
height: 100%;
2021-07-25 01:54:37 +02:00
position: relative;
background-color: transparent;
}
.sphinxgalleria-core figure .row button.button-modal::hover {
background-color: transparent;
}
.sphinxgalleria-core figure .row button.button-modal .caption {
background-color: hsl(0, 0%, 34%);
color: white;
text-transform: none;
border-bottom-left-radius: .5rem;
border-bottom-right-radius: .5rem;
border: none;
margin: 0;
padding: .5rem 1.5rem .5rem 1.5rem;
box-sizing: border-box;
width: 100%;
text-align: left;
}
.sphinxgalleria-core figure .row button.button-modal figcaption {
font-style: italic;
text-align: center;
}
.sphinxgalleria-core figure .row button.button-modal img {
2021-06-03 19:17:21 +02:00
margin: auto;
padding: 0;
border: none;
2021-06-03 19:17:21 +02:00
width: auto;
height: auto;
transition: width ease .4s, height ease .4s, opacity ease .4s;
2021-06-03 19:17:21 +02:00
object-fit: contain;
flex-grow: 1000;
flex-shrink: 1000;
}
.sphinxgalleria-core.no-transition figure .row button.button-modal img {
transition: unset;
}
.sphinxgalleria-core figure input[type=range] {
2021-06-03 00:41:18 +02:00
width: 90%;
2021-06-03 19:17:21 +02:00
margin-left: auto;
margin-right: auto;
height: 1.5rem;
border: none;
-webkit-appearance: none;
}
.sphinxgalleria-core figure input[type=range]:focus {
outline: none;
border: none;
}
.sphinxgalleria-core figure input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: .1rem;
padding: 0 1rem 0 1rem;
margin: 0;
border: none;
cursor: pointer;
animate: 0.2s;
background-color: hsl(0, 0%, 34%);
}
.sphinxgalleria-core figure input[type=range]::-webkit-slider-thumb {
height: 1rem;
width: 1rem;
border-radius: .5rem;
border: none;
background-color: hsl(0, 0%, 34%);
cursor: pointer;
-webkit-appearance: none;
margin-top: -.5rem;
}
.sphinxgalleria-core figure input[type=range]:focus::-webkit-slider-runnable-track {
2021-06-03 19:17:21 +02:00
-webkit-appearance: none;
background-color: hsl(0, 0%, 34%);
border: none;
}
.sphinxgalleria-core figure input[type=range]::-moz-range-track {
width: 100%;
padding: 0 1rem 0 1rem;
margin: 0;
border: none;
height: .1rem;
cursor: pointer;
animate: 0.2s;
background-color: hsl(0, 0%, 34%);
}
.sphinxgalleria-core figure input[type=range]::-moz-range-thumb {
height: 1rem;
width: 1rem;
border-radius: .5rem;
background-color: hsl(0, 0%, 34%);
cursor: pointer;
}
.sphinxgalleria-core .mask {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
background-color: hsla(0, 0%, 0%, 80%);
z-index: 1000;
}
.sphinxgalleria-core .submask {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
position: relative;
}
.sphinxgalleria-core dialog {
position: absolute;
2021-07-25 01:54:37 +02:00
top: 2.5vh;
left: 0;
2021-07-25 01:54:37 +02:00
max-height: 95vh;
width: max-content;
2021-07-25 01:54:37 +02:00
margin: auto;
padding-left: 2vw;
padding-right: 2vw;
background-color: black;
color: white;
border: white solid 0.2rem;
border-radius: 0.5rem;
text-align: center;
display: flex;
flex-flow: column nowrap;
}
.sphinxgalleria-core dialog img {
height: 100%;
2021-07-25 01:54:37 +02:00
width: 100%;
max-width: 90vw !important;
max-height: 90vh !important;
object-fit: contain;
flex-grow: 1000;
flex-shrink: 1000;
margin: 0.5rem 0 0.5rem 0;
padding: 0;
transition: width ease 1s, height ease 1s, opacity ease .4s;
}
.sphinxgalleria-core.no-transition dialog img {
transition: unset;
}
.sphinxgalleria-core dialog menu {
text-align: left;
width: 100%;
padding: 0;
margin: 0;
}
.sphinxgalleria-core dialog button {
border: none;
padding: .5em;
background-color: black;
color: white;
}
.sphinxgalleria-core dialog button:hover,
.sphinxgalleria-core dialog button:focus {
background-color: hsl(0, 0%, 34%);
transition: background-color ease 0.4s;
}
.sphinxgalleria-core dialog header button {
position: absolute;
top: .5rem;
2021-07-25 01:54:37 +02:00
right: 0;
background: transparent;
}
.sphinxgalleria-core dialog header button::after {
content: '✕';
2021-07-25 01:54:37 +02:00
text-shadow: .1rem .05rem black;
}
.sphinxgalleria-core dialog header {
position: relative;
}
.sphinxgalleria-core dialog menu {
height: 3rem;
}
.sphinxgalleria-core dialog header::after {
clear: both;
}
.sphinxgalleria-core dialog menu button.close {
float: right;
}
.sphinxgalleria-core dialog menu button.close::before {
margin-right: 0.5rem;
content: '✕';
}
.sphinxgalleria-core figure button.prev,
.sphinxgalleria-core figure button.next {
2021-07-25 01:54:37 +02:00
position: absolute;
top: 0;
bottom: 0;
z-index: 100;
2021-06-03 19:17:21 +02:00
color: hsl(0, 0%, 34%);
background-color: transparent;
font-size: 4rem;
padding: 1rem;
2021-07-13 19:04:55 +02:00
height: auto;
2021-06-03 19:17:21 +02:00
display: inline;
vertical-align: middle;
margin: 1;
border: none;
}
.sphinxgalleria-core figure button.prev:hover,
.sphinxgalleria-core figure button.next:hover,
.sphinxgalleria-core figure button.prev:focus,
.sphinxgalleria-core figure button.next:focus {
2021-06-03 19:17:21 +02:00
color: hsl(0, 0%, 64%);
transition: color ease .4s;
}
2021-07-25 01:54:37 +02:00
.sphinxgalleria-core figure button.prev {
left: 0;
}
.sphinxgalleria-core figure button.next {
right: 0;
}
.sphinxgalleria-core figure button.prev::before,
.sphinxgalleria-core dialog menu button.prev::before {
2021-06-03 19:17:21 +02:00
content: '<';
}
2021-07-25 01:54:37 +02:00
.sphinxgalleria-core dialog menu button.next {
float: right;
}
.sphinxgalleria-core figure button.next::after,
.sphinxgalleria-core dialog menu button.next::after {
margin-left: 0.5rem;
2021-06-03 19:17:21 +02:00
content: '>';
}
.sphinxgalleria-core ul.thumbnails {
overflow-x: hidden;
margin: 0 auto 0 auto;
padding: 0;
max-width: 100%;
height: max-content;
display: inline-flex;
flex-flow: row nowrap;
justify-content: flex-start;
}
.sphinxgalleria-core ul.thumbnails li {
list-style: none;
}
.sphinxgalleria-core ul.thumbnails li input[type=radio] {
display: none;
}
.sphinxgalleria-core ul.thumbnails li input:checked + label {
opacity: .5;
}
.sphinxgalleria-core ul.thumbnails li img {
margin: 0.5rem;
cursor: pointer;
2021-07-13 15:10:41 +02:00
object-fit: contain;
max-width: unset;
2021-07-13 15:10:41 +02:00
width: auto;
height: auto;
}