From af5d13b9d96b2329446cc9f6aed9742ebc0bed27 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 4 Jun 2023 12:37:37 -0400 Subject: [PATCH] improve mark visual --- common/static/scss/_mark.scss | 20 ++++++++++++++ journal/templates/mark2.html | 52 ++++++++++++++++++----------------- 2 files changed, 47 insertions(+), 25 deletions(-) diff --git a/common/static/scss/_mark.scss b/common/static/scss/_mark.scss index 9f12e3c2..c71851e1 100644 --- a/common/static/scss/_mark.scss +++ b/common/static/scss/_mark.scss @@ -2,6 +2,26 @@ width: unset !important; } +.mark-line { + margin-bottom: var(--pico-spacing); + + >div:last-child { + margin-top: calc(-0.3rem * var(--pico-line-height)); + text-align: right; + } +} + +@media (max-width: 768px) { + .mark-line { + + >div, + >div:last-child { + margin-top: unset; + text-align: center; + } + } +} + .tag-input { display: -webkit-box; display: -ms-flexbox; diff --git a/journal/templates/mark2.html b/journal/templates/mark2.html index 98446fd4..ff8e4e21 100644 --- a/journal/templates/mark2.html +++ b/journal/templates/mark2.html @@ -22,7 +22,7 @@
{% csrf_token %} -
+
{% for k, v in shelf_types %} @@ -40,32 +40,34 @@
-
- - {{ mark.rating_grade|rating_star }} - - -
+ + {{ mark.rating_grade|rating_star }} + +
- +
+
+ +
+