[Glitch] Add media editing modal

Port 23f7afa562 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
Eugen Rochko
2019-08-14 04:07:32 +02:00
committed by Thibaut Girka
parent f8e7c69861
commit ab019800f8
6 changed files with 158 additions and 121 deletions

View File

@@ -577,6 +577,14 @@
}
}
.setting-text-label {
display: block;
color: $inverted-text-color;
font-size: 14px;
font-weight: 500;
margin-bottom: 10px;
}
.setting-toggle {
margin-top: 20px;
margin-bottom: 24px;
@@ -787,19 +795,18 @@
.focal-point {
position: relative;
cursor: pointer;
cursor: move;
overflow: hidden;
&.dragging {
cursor: move;
}
img {
max-width: 80vw;
img,
video {
display: block;
max-height: 80vh;
width: auto;
width: 100%;
height: auto;
margin: auto;
margin: 0;
object-fit: contain;
background: $base-shadow-color;
}
&__reticle {
@@ -819,6 +826,27 @@
top: 0;
left: 0;
}
&__preview {
position: absolute;
bottom: 10px;
right: 10px;
z-index: 2;
cursor: default;
strong {
color: $primary-text-color;
font-size: 14px;
font-weight: 500;
display: block;
margin-bottom: 5px;
}
div {
border-radius: 4px;
box-shadow: 0 0 14px rgba($base-shadow-color, 0.2);
}
}
}
.filtered-status-info {