aboutsummaryrefslogtreecommitdiff
path: root/views/styles.css
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-09 20:52:35 +0200
committerSyndamia <kamen@syndamia.com>2025-02-09 20:52:35 +0200
commitae8b6f88a0c31703d5e846fd1717a26b74d5da3b (patch)
treef4bbffc0670e46450acba673c819672b28d89f26 /views/styles.css
parentaac3a0fa5072525edb4e271a61047624781567e4 (diff)
downloadnowayforward_human-ae8b6f88a0c31703d5e846fd1717a26b74d5da3b.tar
nowayforward_human-ae8b6f88a0c31703d5e846fd1717a26b74d5da3b.tar.gz
nowayforward_human-ae8b6f88a0c31703d5e846fd1717a26b74d5da3b.zip
feat: Better home cards, show total view count of pages
Diffstat (limited to 'views/styles.css')
-rw-r--r--views/styles.css16
1 files changed, 13 insertions, 3 deletions
diff --git a/views/styles.css b/views/styles.css
index 07564ea..3817e0e 100644
--- a/views/styles.css
+++ b/views/styles.css
@@ -12,7 +12,8 @@
--blue: #add8e6;
--cherry: #c26979;
- --card-expand-with: 6em;
+ --card-height: 7em;
+ --card-expand-with: 2.5em;
}
/* Global */
@@ -240,7 +241,7 @@ hr.new-section {
background-image: url(/img/paper.jpg);
background-repeat: repeat;
- height: 8.5em;
+ height: var(--card-height);
overflow: hidden;
mask-image: linear-gradient(
to top,
@@ -261,9 +262,13 @@ hr.new-section {
pointer-events: none;
}
+.card strong:not(:first-of-type) {
+ margin-left: 1em;
+}
+
.card:hover {
cursor: pointer;
- height: calc(8.5em + var(--card-expand-with));
+ height: calc(var(--card-height) + var(--card-expand-with));
}
.card > .quickinfo {
@@ -272,6 +277,11 @@ hr.new-section {
border-bottom: 3px dotted #909090;
}
+.card > .title {
+ font-size: 1.2em;
+ margin-bottom: 0.5em;
+}
+
.card > .title img {
vertical-align: middle;
height: 2em;