Update static/style.css
Browse files- static/style.css +140 -43
static/style.css
CHANGED
|
@@ -2,11 +2,23 @@
|
|
| 2 |
box-sizing: border-box;
|
| 3 |
}
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
html,
|
| 6 |
body {
|
| 7 |
margin: 0;
|
| 8 |
-
|
| 9 |
-
|
|
|
|
| 10 |
color: #ffffff;
|
| 11 |
font-family: Arial, Helvetica, sans-serif;
|
| 12 |
}
|
|
@@ -16,10 +28,13 @@ body {
|
|
| 16 |
}
|
| 17 |
|
| 18 |
.app-shell {
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
display: flex;
|
| 21 |
flex-direction: column;
|
| 22 |
-
padding:
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
.slide-area {
|
|
@@ -27,15 +42,18 @@ body {
|
|
| 27 |
min-height: 0;
|
| 28 |
display: flex;
|
| 29 |
flex-direction: column;
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
.top-status {
|
|
|
|
| 33 |
display: flex;
|
| 34 |
justify-content: space-between;
|
| 35 |
align-items: center;
|
| 36 |
gap: 8px;
|
| 37 |
-
padding:
|
| 38 |
-
font-size: 13px;
|
|
|
|
| 39 |
color: #b8dfff;
|
| 40 |
}
|
| 41 |
|
|
@@ -48,17 +66,20 @@ body {
|
|
| 48 |
position: relative;
|
| 49 |
flex: 1 1 auto;
|
| 50 |
min-height: 0;
|
|
|
|
| 51 |
display: flex;
|
| 52 |
align-items: center;
|
| 53 |
justify-content: center;
|
| 54 |
-
background:
|
| 55 |
-
border: 1px solid
|
| 56 |
border-radius: 10px;
|
| 57 |
overflow: hidden;
|
| 58 |
}
|
| 59 |
|
| 60 |
#slideImage {
|
| 61 |
display: block;
|
|
|
|
|
|
|
| 62 |
max-width: 100%;
|
| 63 |
max-height: 100%;
|
| 64 |
object-fit: contain;
|
|
@@ -75,29 +96,32 @@ body {
|
|
| 75 |
}
|
| 76 |
|
| 77 |
.script-area {
|
| 78 |
-
flex: 0 0
|
| 79 |
-
min-height:
|
| 80 |
-
max-height:
|
| 81 |
-
margin
|
| 82 |
-
padding: 10px
|
| 83 |
-
background:
|
| 84 |
-
border: 1px solid
|
| 85 |
border-radius: 10px;
|
| 86 |
overflow-y: auto;
|
| 87 |
-webkit-overflow-scrolling: touch;
|
| 88 |
}
|
| 89 |
|
| 90 |
.slide-title {
|
| 91 |
-
margin
|
| 92 |
-
color:
|
| 93 |
-
font-size:
|
| 94 |
-
line-height: 1.
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
.slide-script {
|
|
|
|
| 98 |
color: #eeeeee;
|
| 99 |
-
font-size:
|
| 100 |
-
line-height: 1.
|
|
|
|
| 101 |
white-space: pre-wrap;
|
| 102 |
}
|
| 103 |
|
|
@@ -106,8 +130,8 @@ body {
|
|
| 106 |
left: 0;
|
| 107 |
right: 0;
|
| 108 |
bottom: 0;
|
| 109 |
-
height:
|
| 110 |
-
padding:
|
| 111 |
display: grid;
|
| 112 |
grid-template-columns: 1fr 1fr 1fr 1fr;
|
| 113 |
gap: 7px;
|
|
@@ -121,16 +145,16 @@ body {
|
|
| 121 |
min-width: 0;
|
| 122 |
border: none;
|
| 123 |
border-radius: 9px;
|
| 124 |
-
padding:
|
| 125 |
background: #efefef;
|
| 126 |
color: #111111;
|
| 127 |
-
font-size: 14px;
|
| 128 |
-
line-height: 1.
|
| 129 |
cursor: pointer;
|
| 130 |
}
|
| 131 |
|
| 132 |
.nav-btn.primary {
|
| 133 |
-
background:
|
| 134 |
color: #06121a;
|
| 135 |
}
|
| 136 |
|
|
@@ -139,40 +163,113 @@ body {
|
|
| 139 |
cursor: not-allowed;
|
| 140 |
}
|
| 141 |
|
| 142 |
-
@media (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
.app-shell {
|
| 144 |
-
|
| 145 |
-
flex-direction: row;
|
| 146 |
-
gap: 8px;
|
| 147 |
}
|
| 148 |
|
| 149 |
-
.
|
| 150 |
-
flex:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
}
|
| 152 |
|
| 153 |
.script-area {
|
| 154 |
-
flex:
|
| 155 |
-
max-height:
|
| 156 |
-
margin-top: 0;
|
| 157 |
}
|
| 158 |
|
| 159 |
-
.
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
}
|
| 162 |
|
| 163 |
.slide-script {
|
| 164 |
font-size: 14px;
|
| 165 |
-
line-height: 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
}
|
| 167 |
}
|
| 168 |
|
| 169 |
-
@media (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
.app-shell {
|
| 171 |
-
|
| 172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
}
|
| 174 |
|
| 175 |
.slide-script {
|
| 176 |
-
font-size:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
}
|
| 178 |
}
|
|
|
|
| 2 |
box-sizing: border-box;
|
| 3 |
}
|
| 4 |
|
| 5 |
+
:root {
|
| 6 |
+
--nav-height: 66px;
|
| 7 |
+
--page-gap: 6px;
|
| 8 |
+
--page-padding-x: 10px;
|
| 9 |
+
--page-padding-top: 8px;
|
| 10 |
+
--panel-border: #2a2a2a;
|
| 11 |
+
--panel-bg: #181818;
|
| 12 |
+
--body-bg: #101010;
|
| 13 |
+
--accent: #74c7ff;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
html,
|
| 17 |
body {
|
| 18 |
margin: 0;
|
| 19 |
+
width: 100%;
|
| 20 |
+
height: 100%;
|
| 21 |
+
background: var(--body-bg);
|
| 22 |
color: #ffffff;
|
| 23 |
font-family: Arial, Helvetica, sans-serif;
|
| 24 |
}
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
.app-shell {
|
| 31 |
+
width: min(100vw, 1800px);
|
| 32 |
+
height: calc(100dvh - var(--nav-height));
|
| 33 |
+
margin: 0 auto;
|
| 34 |
display: flex;
|
| 35 |
flex-direction: column;
|
| 36 |
+
padding: var(--page-padding-top) var(--page-padding-x) var(--page-gap) var(--page-padding-x);
|
| 37 |
+
gap: var(--page-gap);
|
| 38 |
}
|
| 39 |
|
| 40 |
.slide-area {
|
|
|
|
| 42 |
min-height: 0;
|
| 43 |
display: flex;
|
| 44 |
flex-direction: column;
|
| 45 |
+
gap: 5px;
|
| 46 |
}
|
| 47 |
|
| 48 |
.top-status {
|
| 49 |
+
flex: 0 0 auto;
|
| 50 |
display: flex;
|
| 51 |
justify-content: space-between;
|
| 52 |
align-items: center;
|
| 53 |
gap: 8px;
|
| 54 |
+
padding: 0 2px;
|
| 55 |
+
font-size: clamp(11px, 1.1vw, 13px);
|
| 56 |
+
line-height: 1.25;
|
| 57 |
color: #b8dfff;
|
| 58 |
}
|
| 59 |
|
|
|
|
| 66 |
position: relative;
|
| 67 |
flex: 1 1 auto;
|
| 68 |
min-height: 0;
|
| 69 |
+
width: 100%;
|
| 70 |
display: flex;
|
| 71 |
align-items: center;
|
| 72 |
justify-content: center;
|
| 73 |
+
background: var(--panel-bg);
|
| 74 |
+
border: 1px solid var(--panel-border);
|
| 75 |
border-radius: 10px;
|
| 76 |
overflow: hidden;
|
| 77 |
}
|
| 78 |
|
| 79 |
#slideImage {
|
| 80 |
display: block;
|
| 81 |
+
width: 100%;
|
| 82 |
+
height: 100%;
|
| 83 |
max-width: 100%;
|
| 84 |
max-height: 100%;
|
| 85 |
object-fit: contain;
|
|
|
|
| 96 |
}
|
| 97 |
|
| 98 |
.script-area {
|
| 99 |
+
flex: 0 0 clamp(94px, 17dvh, 165px);
|
| 100 |
+
min-height: 94px;
|
| 101 |
+
max-height: 165px;
|
| 102 |
+
margin: 0;
|
| 103 |
+
padding: 7px 10px 8px 10px;
|
| 104 |
+
background: var(--panel-bg);
|
| 105 |
+
border: 1px solid var(--panel-border);
|
| 106 |
border-radius: 10px;
|
| 107 |
overflow-y: auto;
|
| 108 |
-webkit-overflow-scrolling: touch;
|
| 109 |
}
|
| 110 |
|
| 111 |
.slide-title {
|
| 112 |
+
margin: 0 0 4px 0;
|
| 113 |
+
color: var(--accent);
|
| 114 |
+
font-size: clamp(11px, 1.2vw, 13px);
|
| 115 |
+
line-height: 1.25;
|
| 116 |
+
font-weight: 400;
|
| 117 |
}
|
| 118 |
|
| 119 |
.slide-script {
|
| 120 |
+
margin: 0;
|
| 121 |
color: #eeeeee;
|
| 122 |
+
font-size: clamp(13px, 1.45vw, 16px);
|
| 123 |
+
line-height: 1.42;
|
| 124 |
+
font-weight: 400;
|
| 125 |
white-space: pre-wrap;
|
| 126 |
}
|
| 127 |
|
|
|
|
| 130 |
left: 0;
|
| 131 |
right: 0;
|
| 132 |
bottom: 0;
|
| 133 |
+
height: var(--nav-height);
|
| 134 |
+
padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) 8px;
|
| 135 |
display: grid;
|
| 136 |
grid-template-columns: 1fr 1fr 1fr 1fr;
|
| 137 |
gap: 7px;
|
|
|
|
| 145 |
min-width: 0;
|
| 146 |
border: none;
|
| 147 |
border-radius: 9px;
|
| 148 |
+
padding: 8px 5px;
|
| 149 |
background: #efefef;
|
| 150 |
color: #111111;
|
| 151 |
+
font-size: clamp(12px, 1.2vw, 14px);
|
| 152 |
+
line-height: 1.15;
|
| 153 |
cursor: pointer;
|
| 154 |
}
|
| 155 |
|
| 156 |
.nav-btn.primary {
|
| 157 |
+
background: var(--accent);
|
| 158 |
color: #06121a;
|
| 159 |
}
|
| 160 |
|
|
|
|
| 163 |
cursor: not-allowed;
|
| 164 |
}
|
| 165 |
|
| 166 |
+
@media (min-width: 900px) {
|
| 167 |
+
:root {
|
| 168 |
+
--nav-height: 64px;
|
| 169 |
+
--page-padding-x: 14px;
|
| 170 |
+
--page-padding-top: 8px;
|
| 171 |
+
--page-gap: 6px;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
.app-shell {
|
| 175 |
+
width: min(98vw, 1780px);
|
|
|
|
|
|
|
| 176 |
}
|
| 177 |
|
| 178 |
+
.script-area {
|
| 179 |
+
flex-basis: clamp(92px, 15dvh, 150px);
|
| 180 |
+
max-height: 150px;
|
| 181 |
+
padding: 7px 12px;
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
@media (min-width: 1400px) {
|
| 186 |
+
.app-shell {
|
| 187 |
+
width: min(97vw, 1900px);
|
| 188 |
}
|
| 189 |
|
| 190 |
.script-area {
|
| 191 |
+
flex-basis: clamp(90px, 13dvh, 135px);
|
| 192 |
+
max-height: 135px;
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
+
.slide-script {
|
| 196 |
+
font-size: clamp(13px, 1vw, 15px);
|
| 197 |
+
line-height: 1.38;
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
@media (max-width: 600px) {
|
| 202 |
+
:root {
|
| 203 |
+
--nav-height: 64px;
|
| 204 |
+
--page-padding-x: 6px;
|
| 205 |
+
--page-padding-top: 6px;
|
| 206 |
+
--page-gap: 5px;
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
.image-wrap,
|
| 210 |
+
.script-area {
|
| 211 |
+
border-radius: 8px;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
.script-area {
|
| 215 |
+
flex-basis: clamp(105px, 22dvh, 170px);
|
| 216 |
+
min-height: 105px;
|
| 217 |
+
max-height: 170px;
|
| 218 |
+
padding: 7px 9px;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.slide-title {
|
| 222 |
+
font-size: 12px;
|
| 223 |
}
|
| 224 |
|
| 225 |
.slide-script {
|
| 226 |
font-size: 14px;
|
| 227 |
+
line-height: 1.42;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.bottom-nav {
|
| 231 |
+
gap: 5px;
|
| 232 |
+
padding-left: 6px;
|
| 233 |
+
padding-right: 6px;
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
.nav-btn {
|
| 237 |
+
font-size: 12px;
|
| 238 |
+
padding: 8px 4px;
|
| 239 |
}
|
| 240 |
}
|
| 241 |
|
| 242 |
+
@media (orientation: landscape) and (max-height: 520px) {
|
| 243 |
+
:root {
|
| 244 |
+
--nav-height: 54px;
|
| 245 |
+
--page-padding-top: 5px;
|
| 246 |
+
--page-gap: 5px;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
.app-shell {
|
| 250 |
+
height: calc(100dvh - var(--nav-height));
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
.script-area {
|
| 254 |
+
flex-basis: clamp(72px, 23dvh, 105px);
|
| 255 |
+
min-height: 72px;
|
| 256 |
+
max-height: 105px;
|
| 257 |
+
padding: 5px 8px;
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
.slide-title {
|
| 261 |
+
font-size: 11px;
|
| 262 |
+
margin-bottom: 2px;
|
| 263 |
}
|
| 264 |
|
| 265 |
.slide-script {
|
| 266 |
+
font-size: 12px;
|
| 267 |
+
line-height: 1.34;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
.bottom-nav {
|
| 271 |
+
height: var(--nav-height);
|
| 272 |
+
padding-top: 5px;
|
| 273 |
+
padding-bottom: calc(5px + env(safe-area-inset-bottom));
|
| 274 |
}
|
| 275 |
}
|