mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
1.8 KiB
103 lines
1.8 KiB
#preview {
|
|
position: fixed;
|
|
width: 100%;
|
|
justify-content: center;
|
|
display: flex;
|
|
background-color: #111;
|
|
transition: opacity .3s cubic-bezier(.4,0,.2,1);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
z-index: 3;
|
|
}
|
|
|
|
#preview:not(:empty) {
|
|
opacity: 1;
|
|
pointer-events: initial;
|
|
}
|
|
|
|
#preview img {
|
|
max-height: calc(100% - 15rem);
|
|
max-width: calc(100% - 2rem);
|
|
align-self: center;
|
|
border-radius: 0.5rem;
|
|
margin-top: -1rem;
|
|
}
|
|
|
|
#preview .buttons {
|
|
position: absolute;
|
|
bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
#preview .prevnext {
|
|
font-size: 5rem;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
|
|
line-height: 7rem;
|
|
width: 7rem;
|
|
border-radius: 100%;
|
|
color: white;
|
|
height: 7rem;
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
top: calc(50% - 3.5rem);
|
|
|
|
display: none;
|
|
}
|
|
|
|
#preview .prevnext:hover {
|
|
cursor: pointer;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
#preview .prevnext.enabled {
|
|
display: inline-block;
|
|
}
|
|
|
|
#preview .prevnext.prev {
|
|
left: 1.5rem;
|
|
}
|
|
|
|
#preview .prevnext.next {
|
|
right: 1.5rem;
|
|
}
|
|
|
|
#preview .counter {
|
|
color: white;
|
|
font-size: 1.75rem;
|
|
line-height: 5rem;
|
|
display: block;
|
|
text-align: center;
|
|
position: absolute;
|
|
}
|
|
|
|
/* Previewable */
|
|
.previewable {
|
|
display: inline-block;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.previewable img {
|
|
transition: opacity 0.1s ease-in-out;
|
|
border-radius: 0.25rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.previewable:hover img {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.previewable:after {
|
|
color: white;
|
|
font-family: 'Material Icons';
|
|
content: "\e8ff";
|
|
text-shadow: 0 0 1rem rgba(0, 0, 0, 0.75);
|
|
position: absolute;
|
|
display: block;
|
|
font-size: 3rem;
|
|
right: 0.75rem;
|
|
top: 1.25rem;
|
|
pointer-events: none;
|
|
}
|