diff options
| author | Mistivia <i@mistivia.com> | 2025-03-08 21:30:23 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-03-08 21:30:31 +0800 |
| commit | b1d0493153689803b5a30d9a9c10e0f505159980 (patch) | |
| tree | 3a0c0a8c72895fd51192b695a12e55d96c1b9872 /src/components/main_panel.svelte | |
| parent | 819380fa314812dcbb99ce06cc029dd51533b155 (diff) | |
update banlist
Diffstat (limited to 'src/components/main_panel.svelte')
| -rw-r--r-- | src/components/main_panel.svelte | 113 |
1 files changed, 59 insertions, 54 deletions
diff --git a/src/components/main_panel.svelte b/src/components/main_panel.svelte index 5127e31..f295ef0 100644 --- a/src/components/main_panel.svelte +++ b/src/components/main_panel.svelte @@ -131,60 +131,65 @@ <style> -.middle-panel { - width: 55%; - padding: 20px; - background-color: #fff; - overflow-y: auto; -} - -.control-bar { - margin-bottom: 20px; -} - -.btn { - padding: 8px 20px; - margin-right: 10px; - background-color: #4CAF50; - color: white; - border: none; - border-radius: 4px; - cursor: pointer; -} - - -.select-format { - padding: 8px 8px; - margin-right: 10px; - cursor: pointer; - font-size: 1.1em; -} - -.deck-group { - margin-bottom: 30px; -} - -.deck-group h3 { - margin-bottom: 10px; - color: #333; -} - -.card-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); - grid-auto-flow: dense; - overflow-y: auto; - padding: 10px; - border: 1px solid #ddd; - border-radius: 4px; - min-height: 80px; -} - -.card-grid-thumb { - position: relative; - aspect-ratio: 1/1.4; - border-radius: 5px; -} + .middle-panel { + width: 55%; + padding: 20px; + background-color: #fff; + overflow-y: auto; + } + @media screen and (max-width: 768px) { + .middle-panel { + width: 100%; + } + } + + .control-bar { + margin-bottom: 20px; + } + + .btn { + padding: 8px 20px; + margin-right: 10px; + background-color: #4CAF50; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; + } + + + .select-format { + padding: 8px 8px; + margin-right: 10px; + cursor: pointer; + font-size: 1.1em; + } + + .deck-group { + margin-bottom: 30px; + } + + .deck-group h3 { + margin-bottom: 10px; + color: #333; + } + + .card-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); + grid-auto-flow: dense; + overflow-y: auto; + padding: 10px; + border: 1px solid #ddd; + border-radius: 4px; + min-height: 80px; + } + + .card-grid-thumb { + position: relative; + aspect-ratio: 1/1.4; + border-radius: 5px; + } </style> |
