diff --git a/assets/css/style.css b/assets/css/style.css index c62abaa..1141254 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -832,36 +832,6 @@ edit style.scss .illust .illust-description { font-size: 0.85em; } - .illust .comment { - display: flex; - margin-bottom: 10px; - } - .illust .comment p { - margin: 0; - font-size: 0.8em; - } - .illust .comment .comment-avatar { - width: 40px; - height: 40px; - border-radius: 50%; - margin-right: 10px; - } - .illust .comment .comment-author { - color: #fff; - font-size: medium; - font-weight: bold; - } - .illust .comment .stamp { - width: 96px; - height: 96px; - border-radius: 4px; - } - .illust .comment .emoji { - width: 24px; - height: 24px; - margin-left: 3px; - margin-right: 3px; - } .illust .illust-other-works a.illust-other-works-author { display: inline-flex; align-items: center; @@ -877,6 +847,36 @@ edit style.scss object-fit: cover; object-position: center top; } + .comment { + display: flex; + margin-bottom: 10px; + } + .comment p { + margin: 0; + font-size: 0.8em; + } + .comment .comment-avatar { + width: 40px; + height: 40px; + border-radius: 50%; + margin-right: 10px; + } + .comment .comment-author { + color: #fff; + font-size: medium; + font-weight: bold; + } + .comment .stamp { + width: 96px; + height: 96px; + border-radius: 4px; + } + .comment .emoji { + width: 24px; + height: 24px; + margin-left: 3px; + margin-right: 3px; + } .novel-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(407px, 1fr)); @@ -989,6 +989,10 @@ edit style.scss max-height: 100%; margin: 0 0.5rem; } + .novel .novel-content .novel-content-text a { + text-decoration: underline; + color: black; + } .novel .novel-attr { display: flex; align-items: center; diff --git a/assets/css/style.scss b/assets/css/style.scss index 1e471a5..0be2dbc 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -1111,42 +1111,6 @@ $font-fallback-sans: YuGothic, } - .comment { - display: flex; - margin-bottom: 10px; - - p { - margin: 0; - font-size: 0.8em; - } - - .comment-avatar { - width: 40px; - height: 40px; - border-radius: 50%; - margin-right: 10px; - } - - .comment-author { - color: $fg; - font-size: medium; - font-weight: bold; - } - - .stamp { - width: 96px; - height: 96px; - border-radius: 4px; - } - - .emoji { - width: 24px; - height: 24px; - margin-left: 3px; - margin-right: 3px; - } - } - .illust-other-works { a.illust-other-works-author { display: inline-flex; @@ -1167,6 +1131,42 @@ $font-fallback-sans: YuGothic, } } + .comment { + display: flex; + margin-bottom: 10px; + + p { + margin: 0; + font-size: 0.8em; + } + + .comment-avatar { + width: 40px; + height: 40px; + border-radius: 50%; + margin-right: 10px; + } + + .comment-author { + color: $fg; + font-size: medium; + font-weight: bold; + } + + .stamp { + width: 96px; + height: 96px; + border-radius: 4px; + } + + .emoji { + width: 24px; + height: 24px; + margin-left: 3px; + margin-right: 3px; + } + } + .novel-container { display: grid; @@ -1297,6 +1297,11 @@ $font-fallback-sans: YuGothic, max-height: 100%; margin: 0 0.5rem; } + + a { + text-decoration: underline; + color: black; + } } } diff --git a/assets/views/fragments/artwork.jet.html b/assets/views/fragments/artwork.jet.html index 7bee19c..deba968 100644 --- a/assets/views/fragments/artwork.jet.html +++ b/assets/views/fragments/artwork.jet.html @@ -1,12 +1,12 @@ {{- if !.IsUgoira }}
The creator turned comments off
+ {{- else if .Novel.CommentCount == 0 }} +There are no comments yet
+ {{- else }} {{ range .Novel.CommentsList }} +
+ {{- if .Stamp }} +
+ {{- else }} {{ raw: parseEmojis(.Context) }} {{ end }}
+
+ + {{ .Date }} +