aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/covers.css
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-04-17 19:01:43 -0700
committerFuwn <[email protected]>2024-04-17 19:01:43 -0700
commit2c2f92568cbd6d4f483f814fa8cead9620549764 (patch)
tree782feb207ac2cfc19528ee7a4aeb7670016eb024 /src/lib/List/covers.css
parentfeat(settings): always show at least one (diff)
downloaddue.moe-2c2f92568cbd6d4f483f814fa8cead9620549764.tar.xz
due.moe-2c2f92568cbd6d4f483f814fa8cead9620549764.zip
feat(manga): cover mode
Diffstat (limited to 'src/lib/List/covers.css')
-rw-r--r--src/lib/List/covers.css48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/lib/List/covers.css b/src/lib/List/covers.css
new file mode 100644
index 00000000..2ecdcf02
--- /dev/null
+++ b/src/lib/List/covers.css
@@ -0,0 +1,48 @@
+.covers {
+ display: grid;
+ justify-content: center;
+ gap: 1em 0.5em;
+ margin-top: 0.5rem;
+}
+
+.cover {
+ background-size: cover;
+ background-position: center;
+ border-radius: 8px;
+}
+
+.cover-title {
+ text-align: center;
+ margin: 0.25rem;
+}
+
+.cover-card {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ transition: transform 0.3s ease;
+ box-sizing: border-box;
+ display: inline-block;
+ padding: 0.1em;
+ margin: -0.1em;
+ box-sizing: content-box;
+}
+
+.cover-card:hover {
+ transform: scale(1.1);
+ position: relative;
+ z-index: 2;
+ transition: transform 0.3s ease;
+}
+
+.entry::after {
+ content: '';
+ display: table;
+ clear: both;
+}
+
+.countdown {
+ white-space: nowrap;
+ float: right;
+}