From 4e2339ddd1d95c07e7b54dee8565cd07e9e7dc34 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 9 Feb 2023 10:03:11 +0100 Subject: Improve filtering on read status --- public/main.css | 69 +++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 60 insertions(+), 9 deletions(-) (limited to 'public') diff --git a/public/main.css b/public/main.css index 7e7f297..1beec21 100644 --- a/public/main.css +++ b/public/main.css @@ -1,19 +1,75 @@ +html { + height: 100%; +} + body { margin: 0; display: flex; + height: 100%; + font-family: sans-serif; } -.g-Aside { - padding: 1rem; +/* Filters */ + +aside { background-color: #333; + color: white; + width: 200px; + overflow-y: auto; +} + +ul { + margin: 0; + padding: 0; + list-style-type: none; +} + +.g-FilterTitle { + padding: 0.5rem 1rem; + background-color: #555; + border-left: 8px solid transparent; + font-weight: bold; +} + +.g-Filter--Unselected { + border-left: 8px solid #555; +} + +.g-Filter--Selected { + border-left: 8px solid #883333; } -.g-Main { +.g-Filter button { + border: none; + background-color: transparent; + color: inherit; + cursor: pointer; + padding: 0.5rem 1rem; + width: 100%; + text-align: left; +} + +.g-Filter button:hover { + background-color: #888833; +} + +/* Books */ + +main { + width: 100%; padding: 1rem; + overflow-y: auto; +} + +header { + font-size: 120%; + margin-bottom: 1rem; +} + +.g-Books { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 1rem; - } .g-Book { @@ -21,8 +77,3 @@ body { align-self: center; border: 1px solid #DDDDDD; } - -.g-Book:hover { - transform: scale(1.1); - transition: transform 0.1s linear; -} -- cgit v1.2.3