From 6319183b70ee7a30f850a17b1aeda0785ca531c4 Mon Sep 17 00:00:00 2001 From: Anthony Kinsey Date: Fri, 5 Nov 2021 10:59:54 -1000 Subject: [PATCH] feat: port css for quote styling --- src/views/Posts.vue | 60 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/views/Posts.vue b/src/views/Posts.vue index 08675793..10ded744 100644 --- a/src/views/Posts.vue +++ b/src/views/Posts.vue @@ -1036,6 +1036,66 @@ export default { /*-------------- Posts (Thread View) Layout -------------- */ $postWidth__mobile: calc(100vw - 2rem); +.post-body { + white-space: pre-wrap; + word-wrap: break-word; + overflow-wrap: break-word; + .imageContainer.loaded { background: none; } + .imageContainer { background: url('/static/img/loading.gif') no-repeat center; display: inline;} + ul, ol { @include pad(0 0 0 1.15rem); } + ul { white-space: normal } + img.loaded { opacity: 1; } + img { @include transition(opacity 0.5s ease-in); opacity: 0; } + & table { + display: block; + overflow-x: scroll; + } + .video-wrap { + position: relative; + padding-bottom: 56.25%; + padding-top: 1.875rem; + height: 0; + width: 100%; + overflow:hidden; + } + .video-wrap iframe, .video-wrap object, .video-wrap embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } + + pre { + overflow-x: scroll; + word-wrap: normal; + } +} +.quoteHeader { + border-left: $border-quote; + color: $secondary-font-color; + font-size: $font-size-sm; + margin: 0 0 0 1rem; + padding: 0 0.625rem 0; +} +.quote { + color: $secondary-font-color; + margin: 0 0 0rem 1rem; + padding: 0 0.625rem 0; + border-left: $border-quote; + ul, ol { margin-left: 1.625rem } + &>br:first-child, + &>br:last-child, + &+br { display: none; } +} +.rtl .quote { + border-left: 0; + border-right: $border-quote; +} +.rtl .quoteHeader { + border-left: 0; + border-right: 4px solid RGB(221, 221, 221); +} #public-content { .posts & {