aboutsummaryrefslogtreecommitdiff
path: root/public/main.css
diff options
context:
space:
mode:
authorJoris2023-02-09 10:03:11 +0100
committerJoris2023-02-09 10:03:11 +0100
commit4e2339ddd1d95c07e7b54dee8565cd07e9e7dc34 (patch)
tree069ad8a9f99473290d49215de7598af5f6788fa7 /public/main.css
parent0aa9ef160fe3362a85a6e9b678d1b65756c8e3a0 (diff)
Improve filtering on read status
Diffstat (limited to 'public/main.css')
-rw-r--r--public/main.css69
1 files changed, 60 insertions, 9 deletions
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;
-}