From 72d13da94cbbaab8ed3fd32f5347e7e718d46465 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Oct 2021 19:20:34 +0200 Subject: [PATCH] luci-theme-bootstrap: rework uci changelog styling Fixes: #5405 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/bootstrap/cascade.css | 58 ++++++++++--------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css index 336aabd21f..4c3e25f52c 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css @@ -2231,6 +2231,28 @@ div.cbi-value var.cbi-tooltip-container, white-space: pre; } +.uci-change-list > del, +.uci-change-list > ins, +.uci-change-list > var, +.uci-change-legend-label > del, +.uci-change-legend-label > ins, +.uci-change-legend-label > var { + margin-bottom: 2px; + border: 1px solid #ccc; + background: #eee; + line-height: 15px; + overflow: hidden; + text-overflow: ellipsis; + padding: 2px; +} + +.uci-change-list > * > del, +.uci-change-list > * > ins, +.uci-change-list > * > var { + overflow: hidden; + text-overflow: ellipsis; +} + .uci-change-list del, .uci-change-list ins, .uci-change-list var, @@ -2240,13 +2262,8 @@ div.cbi-value var.cbi-tooltip-container, text-decoration: none; font-family: monospace; font-style: normal; - border: 1px solid #ccc; - background: #eee; color: #404040; - padding: 2px; display: block; - line-height: 15px; - margin-bottom: 1px; } .uci-change-list ins, @@ -2267,42 +2284,29 @@ div.cbi-value var.cbi-tooltip-container, background: #eee; } -.uci-change-list var ins, -.uci-change-list var del { - display: inline-block; - border: none; - width: 100%; - padding: 0; -} - .uci-change-legend { - padding: 5px; + display: flex; + flex-wrap: wrap; } .uci-change-legend-label { - width: 150px; - float: left; + flex-basis: 150px; + margin: 2px; + display: flex; + align-items: center; } .uci-change-legend-label > ins, .uci-change-legend-label > del, .uci-change-legend-label > var { - float: left; margin-right: 4px; width: 16px; height: 16px; - display: block; - position: relative; + display: flex; } -.uci-change-legend-label var ins, -.uci-change-legend-label var del { - border: none; - position: absolute; - top: 2px; - left: 2px; - right: 2px; - bottom: 2px; +.uci-change-legend-label > var > * { + flex-basis: 100%; } #modal_overlay { -- 2.30.2