Spaces:
Running
Running
Ron Au
commited on
Commit
·
153043d
1
Parent(s):
9d0de4e
refactor(style): Remove unneeded buttons`container
Browse files- static/index.html +0 -2
- static/style.css +12 -15
static/index.html
CHANGED
|
@@ -45,11 +45,9 @@
|
|
| 45 |
</section>
|
| 46 |
<section class="output" data-mode="booster" data-state="ready">
|
| 47 |
<div class="actions" aria-hidden="true">
|
| 48 |
-
<div class="buttons">
|
| 49 |
<button class="save" tabindex="-1">Save</button>
|
| 50 |
<button class="toggle-name" data-include tabindex="-1">Trainer Name</button>
|
| 51 |
<button class="generate-new" tabindex="-1">New Pokémon</button>
|
| 52 |
-
</div>
|
| 53 |
</div>
|
| 54 |
<div class="scene">
|
| 55 |
<div class="booster" title="Open booster pack for new card">
|
|
|
|
| 45 |
</section>
|
| 46 |
<section class="output" data-mode="booster" data-state="ready">
|
| 47 |
<div class="actions" aria-hidden="true">
|
|
|
|
| 48 |
<button class="save" tabindex="-1">Save</button>
|
| 49 |
<button class="toggle-name" data-include tabindex="-1">Trainer Name</button>
|
| 50 |
<button class="generate-new" tabindex="-1">New Pokémon</button>
|
|
|
|
| 51 |
</div>
|
| 52 |
<div class="scene">
|
| 53 |
<div class="booster" title="Open booster pack for new card">
|
static/style.css
CHANGED
|
@@ -66,7 +66,7 @@ main {
|
|
| 66 |
width: 95%;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
main > section.info h1
|
| 70 |
font-size: 2.5rem;
|
| 71 |
}
|
| 72 |
|
|
@@ -85,7 +85,7 @@ main {
|
|
| 85 |
}
|
| 86 |
|
| 87 |
.output .scene {
|
| 88 |
-
margin-top: -4rem
|
| 89 |
}
|
| 90 |
}
|
| 91 |
|
|
@@ -189,13 +189,13 @@ section {
|
|
| 189 |
height: 45px;
|
| 190 |
box-sizing: border-box;
|
| 191 |
padding: 0.5rem 1rem 0.5rem 5rem;
|
|
|
|
| 192 |
border: 3px solid hsl(0 0% 70%);
|
| 193 |
border-right: none;
|
| 194 |
-
|
| 195 |
text-align: center;
|
| 196 |
font-size: 1.25rem;
|
| 197 |
transition: box-shadow 0.5s ease-out;
|
| 198 |
-
border-radius: 1rem 0 0 1rem;;
|
| 199 |
box-shadow: none;
|
| 200 |
}
|
| 201 |
|
|
@@ -210,10 +210,10 @@ input:focus {
|
|
| 210 |
|
| 211 |
form button {
|
| 212 |
height: 2.8125rem;
|
| 213 |
-
border-top-left-radius: 0;
|
| 214 |
-
border-bottom-left-radius: 0;
|
| 215 |
margin: 0;
|
| 216 |
font-size: 0.85rem;
|
|
|
|
|
|
|
| 217 |
}
|
| 218 |
|
| 219 |
.info p {
|
|
@@ -248,11 +248,12 @@ info a:is(:hover, :focus, :active, :visited) {
|
|
| 248 |
gap: 1rem;
|
| 249 |
width: 100%;
|
| 250 |
margin: 1rem auto 1.5rem;
|
|
|
|
| 251 |
z-index: 5;
|
| 252 |
}
|
| 253 |
|
| 254 |
-
|
| 255 |
-
|
| 256 |
}
|
| 257 |
|
| 258 |
button {
|
|
@@ -263,15 +264,13 @@ button {
|
|
| 263 |
font-weight: bold;
|
| 264 |
color: white;
|
| 265 |
transform-origin: bottom;
|
| 266 |
-
|
| 267 |
-
transition: transform 0.5s ease, box-shadow 0.1s, outline-offset 0.25s ease-out, filter 0.25s ease-out, opacity 0.25s;
|
| 268 |
whitespace: nowrap;
|
| 269 |
filter: saturate(1);
|
| 270 |
cursor: pointer;
|
| 271 |
}
|
| 272 |
|
| 273 |
.actions button {
|
| 274 |
-
transform: translateY(-25%);
|
| 275 |
box-shadow: 0 0.2rem 0.375rem hsl(158 100% 33% / 60%);
|
| 276 |
user-select: none;
|
| 277 |
pointer-events: none;
|
|
@@ -279,13 +278,11 @@ button {
|
|
| 279 |
}
|
| 280 |
|
| 281 |
[data-mode='card'][data-state='completed'] button {
|
| 282 |
-
transform: translateY(0);
|
| 283 |
pointer-events: auto;
|
| 284 |
opacity: 1;
|
| 285 |
}
|
| 286 |
|
| 287 |
button:active {
|
| 288 |
-
transform: translateY(0.1rem);
|
| 289 |
box-shadow: none;
|
| 290 |
}
|
| 291 |
|
|
@@ -500,7 +497,7 @@ button.toggle-name.off {
|
|
| 500 |
.face.front,
|
| 501 |
.face.back {
|
| 502 |
background-size: var(--width);
|
| 503 |
-
background-image: url(
|
| 504 |
background-position: center;
|
| 505 |
}
|
| 506 |
|
|
@@ -881,9 +878,9 @@ header > * {
|
|
| 881 |
}
|
| 882 |
|
| 883 |
header > div {
|
| 884 |
-
width: max-content;
|
| 885 |
position: absolute;
|
| 886 |
right: 1rem;
|
|
|
|
| 887 |
}
|
| 888 |
|
| 889 |
.hp {
|
|
|
|
| 66 |
width: 95%;
|
| 67 |
}
|
| 68 |
|
| 69 |
+
main > section.info h1 {
|
| 70 |
font-size: 2.5rem;
|
| 71 |
}
|
| 72 |
|
|
|
|
| 85 |
}
|
| 86 |
|
| 87 |
.output .scene {
|
| 88 |
+
margin-top: -4rem;
|
| 89 |
}
|
| 90 |
}
|
| 91 |
|
|
|
|
| 189 |
height: 45px;
|
| 190 |
box-sizing: border-box;
|
| 191 |
padding: 0.5rem 1rem 0.5rem 5rem;
|
| 192 |
+
margin: 0;
|
| 193 |
border: 3px solid hsl(0 0% 70%);
|
| 194 |
border-right: none;
|
| 195 |
+
border-radius: 1rem 0 0 1rem;
|
| 196 |
text-align: center;
|
| 197 |
font-size: 1.25rem;
|
| 198 |
transition: box-shadow 0.5s ease-out;
|
|
|
|
| 199 |
box-shadow: none;
|
| 200 |
}
|
| 201 |
|
|
|
|
| 210 |
|
| 211 |
form button {
|
| 212 |
height: 2.8125rem;
|
|
|
|
|
|
|
| 213 |
margin: 0;
|
| 214 |
font-size: 0.85rem;
|
| 215 |
+
border-top-left-radius: 0;
|
| 216 |
+
border-bottom-left-radius: 0;
|
| 217 |
}
|
| 218 |
|
| 219 |
.info p {
|
|
|
|
| 248 |
gap: 1rem;
|
| 249 |
width: 100%;
|
| 250 |
margin: 1rem auto 1.5rem;
|
| 251 |
+
transition: transform 0.5s ease;
|
| 252 |
z-index: 5;
|
| 253 |
}
|
| 254 |
|
| 255 |
+
[data-mode='booster'][data-state='completed'] .actions {
|
| 256 |
+
transform: translateY(-25%);
|
| 257 |
}
|
| 258 |
|
| 259 |
button {
|
|
|
|
| 264 |
font-weight: bold;
|
| 265 |
color: white;
|
| 266 |
transform-origin: bottom;
|
| 267 |
+
transition: box-shadow 0.1s, outline-offset 0.25s ease-out, filter 0.25s ease-out, opacity 0.25s;
|
|
|
|
| 268 |
whitespace: nowrap;
|
| 269 |
filter: saturate(1);
|
| 270 |
cursor: pointer;
|
| 271 |
}
|
| 272 |
|
| 273 |
.actions button {
|
|
|
|
| 274 |
box-shadow: 0 0.2rem 0.375rem hsl(158 100% 33% / 60%);
|
| 275 |
user-select: none;
|
| 276 |
pointer-events: none;
|
|
|
|
| 278 |
}
|
| 279 |
|
| 280 |
[data-mode='card'][data-state='completed'] button {
|
|
|
|
| 281 |
pointer-events: auto;
|
| 282 |
opacity: 1;
|
| 283 |
}
|
| 284 |
|
| 285 |
button:active {
|
|
|
|
| 286 |
box-shadow: none;
|
| 287 |
}
|
| 288 |
|
|
|
|
| 497 |
.face.front,
|
| 498 |
.face.back {
|
| 499 |
background-size: var(--width);
|
| 500 |
+
background-image: url('booster-background.svg');
|
| 501 |
background-position: center;
|
| 502 |
}
|
| 503 |
|
|
|
|
| 878 |
}
|
| 879 |
|
| 880 |
header > div {
|
|
|
|
| 881 |
position: absolute;
|
| 882 |
right: 1rem;
|
| 883 |
+
width: max-content;
|
| 884 |
}
|
| 885 |
|
| 886 |
.hp {
|