From 4d64816a23872d37848b943d3c30341a228cf945 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 12 May 2016 11:13:10 +0200 Subject: [PATCH] richtext-content: style table, p and code --- app/assets/stylesheets/zammad.scss | 67 +++++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index b33540e1b..5d04127cb 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -8124,16 +8124,63 @@ output { animation: pulsate 667ms ease-in-out infinite alternate; } -.richtext-content pre { - padding: 15px; - font-size: 13px; - line-height: 1.45; - margin: 10px 0; - background: hsl(0,0%,97%); - white-space: pre-wrap; - border-radius: 3px; - border: none; - overflow: auto; +.richtext-content { + p, table, pre { + margin-bottom: 16px; + + + &:first-child { + margin-top: 6px; + } + + &:last-child { + margin-bottom: 6px; + } + } + + table { + border: none; + table-layout: auto; + display: block; + width: 100%; + overflow: auto; + word-break: keep-all; + + td, th { + padding: 7px 12px; + border: 1px solid hsl(0,0%,87%); + } + + th { + font-weight: bold; + text-align: center; + } + + tbody tr:nth-child(even) { + background: hsl(0,0%,97%); + } + + col { + width: auto; + } + } + + code { + border: none; + background: hsl(0,0%,97%); + white-space: normal; + } + + pre { + padding: 15px; + font-size: 13px; + line-height: 1.45; + background: hsl(0,0%,97%); + white-space: pre-wrap; + border-radius: 3px; + border: none; + overflow: auto; + } } /*