From bea03194cc57c9589730d3ab2edbb9deaa70a21b Mon Sep 17 00:00:00 2001 From: Emilia Date: Wed, 2 Aug 2023 13:39:15 -0400 Subject: [PATCH] Book entry scss --- src/scss/waltuh/components/_book_entry.scss | 44 +++++++++++++++++++++ src/scss/waltuh/components/_index.scss | 1 + 2 files changed, 45 insertions(+) create mode 100644 src/scss/waltuh/components/_book_entry.scss diff --git a/src/scss/waltuh/components/_book_entry.scss b/src/scss/waltuh/components/_book_entry.scss new file mode 100644 index 0000000..9d6d57d --- /dev/null +++ b/src/scss/waltuh/components/_book_entry.scss @@ -0,0 +1,44 @@ +.book-entry-container { + width: 100%; +} + +.book-entry { + width: 100%; + position: relative; + &:last-of-type { + margin-bottom: 5vh; + } + details { + summary { + cursor: pointer; + user-select: none; + } + div { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + grid-template-rows: 4rem 1fr; + grid-template-areas: + "author year score" + "comments comments comments" + } + } +} + +.book-entry__author { + grid-area: author; +} +.book-entry__year { + grid-area: year; +} +.book-entry__score { + grid-area: score; + &:before { + content: "Score: "; + } + &:after { + content: " / 10"; + } +} +.book-entry__comments { + grid-area: comments; +} diff --git a/src/scss/waltuh/components/_index.scss b/src/scss/waltuh/components/_index.scss index c2faa97..dd4e203 100644 --- a/src/scss/waltuh/components/_index.scss +++ b/src/scss/waltuh/components/_index.scss @@ -1,3 +1,4 @@ @forward "header"; @forward "overlay"; @forward "marks"; +@forward "book_entry";