From 01c12b3718dc7b2eb3f30e56bc6bd044da4c6f7e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 9 Feb 2020 20:35:09 +0100 Subject: [PATCH] AMP templates: Proper styling for quotes and message lists --- com.woltlab.wcf/templates/ampHeader.tpl | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/com.woltlab.wcf/templates/ampHeader.tpl b/com.woltlab.wcf/templates/ampHeader.tpl index 064d449f67..887b80c26a 100644 --- a/com.woltlab.wcf/templates/ampHeader.tpl +++ b/com.woltlab.wcf/templates/ampHeader.tpl @@ -211,6 +211,35 @@ .breadcrumbs li:nth-child(4) { padding-left: 40px; } + + .quoteBox { + align-items: center; + border: 1px solid {@$__wcf->getStyleHandler()->getStyle()->getVariable('wcfContentBorderInner')}; + border-left-width: 5px; + display: flex; + flex-wrap: wrap; + margin: 0; + padding: 5px 10px; + } + .quoteBoxIcon { + border-radius: 50%; + flex: 0 0 16px; + margin-right: 5px; + overflow: hidden; + } + .quoteBoxTitle { + flex: 0 0 calc(100% - 21px); /* width + margin */ + } + .quoteBoxContent { + flex: 0 0 100%; + font-style: italic; + } + + .article ~ .section { + border-top: 1px solid {@$__wcf->getStyleHandler()->getStyle()->getVariable('wcfContentBorder')}; + margin-top: 20px; + padding: 20px 10px 0 10px; + } {literal}{/literal} -- 2.20.1