From 60da14d4f5d8855c0e179f391a730fe0b102cf18 Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 28 Nov 2024 13:27:29 -0500 Subject: [PATCH] grid layout --- static/pyrite.css | 22 ++++++++++++------- templates/index.html | 52 ++++++++++++++++++++------------------------ 2 files changed, 38 insertions(+), 36 deletions(-) diff --git a/static/pyrite.css b/static/pyrite.css index 88b2c9d..9f075f7 100644 --- a/static/pyrite.css +++ b/static/pyrite.css @@ -70,16 +70,17 @@ input[type="radio"]:checked+div { #player_container { grid-area: f; - display: flex; - flex-direction: column; - align-items: center; -} - -#player_container > div { - display: flex; + display: grid; + grid-template-columns: 1fr auto 2fr 1fr;; + grid-template-rows: 1fr auto auto; + grid-template-areas: + "L A B R" + "L A C R" + "L D D R"; } #cover_art { + grid-area: A; padding-right: 1em; padding-top: 0.5em; } @@ -90,6 +91,11 @@ img { } #title { + grid-area: B; +} + +#player_controls { + grid-area: C; } input[type='range'] { @@ -109,7 +115,7 @@ button img { } #seek_controls { - width: 50%; + grid-area: D; } #seek_controls output { diff --git a/templates/index.html b/templates/index.html index 18d1d6a..d51a527 100644 --- a/templates/index.html +++ b/templates/index.html @@ -27,33 +27,29 @@
-
-
Album cover art
-
-
-

Artist - Album

-

Title

-
-
- - - - - - - -
-
+
Album cover art
+
+

Artist - Album

+

Title

+
+
+ + + + + + +
@@ -73,7 +69,7 @@