-
Notifications
You must be signed in to change notification settings - Fork 8
/
style.css
107 lines (97 loc) · 2.21 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
body {
background-color: hsl(0deg, 0%, 98%);
}
.file-drop-area {
background-color: hsl(0deg, 0%, 95%);
aspect-ratio: 4 / 3;
display: flex;
align-items: center;
justify-content: center;
outline: 1px dashed hsl(0deg 0% 0% / 20%);
cursor: pointer;
position: relative;
transition: outline 0.1s;
border-radius: 0.375rem;
}
.file-input-preview {
width: 100%;
height: 100%;
object-fit: scale-down;
border: none;
display: block;
}
.file-drop-area-text {
text-align: center;
position: absolute;
padding: 1em;
display: flex;
flex-direction: column;
opacity:0.75;
transition: opacity 0.2s, color 0.2s;
}
.file-drop-area-text > :last-child {
opacity: 0.5;
}
.preview-loading-indicator {
position: absolute;
width: 25%;
display: none;
}
.file-drop-area.preview-loading .preview-loading-indicator {
display: block;
}
.file-drop-area.preview-loading .file-drop-area-text {
display: none;
}
.file-drop-area.preview-loaded .file-drop-area-text {
opacity: 0.1;
background-color: hsl(0deg 0% 10% / 60%);
border-radius: 0.5em;
text-shadow: 0 1px hsl(0deg 0% 0% / 66%);
color: hsl(0deg 0% 100% / 90%);
backdrop-filter: blur(1px);
box-shadow: 0 2px 10px black;
}
.file-drop-area:hover {
outline: 2px dashed hsl(0deg 0% 0% / 30%);
}
.file-drop-area:hover .file-drop-area-text {
opacity: 1 !important;
}
.file-drop-area.is-dragover {
outline: 2px dashed hsl(120deg 100% 30% / 50%);
}
.file-drop-area.is-dragover .file-drop-area-text {
color: hsl(120 50% 40% / 1);
opacity: 1 !important;
}
.file-drop-area.preview-loaded.is-dragover .file-drop-area-text {
color: hsl(120 40% 60% / 1);
}
::placeholder {
color: hsl(0deg 0% 0% / 30%) !important;
}
#image-url-errors:not(:empty) {
margin-top: 0.5em;
}
.alert {
--bs-alert-padding-x: 0.5rem;
--bs-alert-padding-y: 0.2rem;
}
.alert.alert-dismissible .btn-close {
scale: 0.5;
transform-origin: top right;
right: 0.1em;
top: 0.1em;
}
#base64-output {
aspect-ratio: 4 / 2;
font-family: monospace;
font-size: 14px;
word-break: break-all;
}
@media (min-width: 768px) {
#base64-output {
aspect-ratio: 4 / 3;
}
}