sphinx_galleria/sphinx_galleria/static/sphinxgalleria/sphinxgalleria.css

319 lines
6.8 KiB
CSS

.sphinxgalleria-core {
text-align: center;
box-sizing: border-box;
margin-bottom: 1rem;
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;
flex-grow: 1000;
flex-shrink: 1000;
display: flex;
flex-flow: column nowrap;
}
.sphinxgalleria-core figure .row {
flex-flow: row nowrap;
display: flex;
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%;
height: 100%;
display: flex;
flex-flow: column nowrap;
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 {
margin: auto;
padding: 0;
border: none;
width: auto;
height: auto;
transition: width ease .4s, height ease .4s, opacity ease .4s;
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] {
width: 90%;
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 {
-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;
top: 3vh;
left: 0;
height: 90vh;
max-height: 90vh;
width: max-content;
margin: 0 auto 0 auto;
padding-left: 3rem;
padding-right: 3rem;
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%;
width: auto;
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;
right: -.5rem;
}
.sphinxgalleria-core dialog header button::after {
content: '✕';
}
.sphinxgalleria-core dialog header {
position: relative;
min-height: 3rem;
}
.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 {
color: hsl(0, 0%, 34%);
background-color: transparent;
font-size: 4rem;
padding: 1rem;
height: 100%;
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 {
color: hsl(0, 0%, 64%);
transition: color ease .4s;
}
.sphinxgalleria-core figure button.prev::before,
.sphinxgalleria-core dialog menu button.prev::before {
content: '<';
}
.sphinxgalleria-core figure button.next::after,
.sphinxgalleria-core dialog menu button.next::after {
margin-left: 0.5rem;
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;
object-fit: cover;
max-width: unset;
}