From fcb4941d47217f3a369148d98b07e27205f385b8 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 1 Sep 2023 14:59:38 +0800 Subject: [PATCH] Remove some unused CSS styles (#26852) 1. `icons`: globally searched, no use in templates. 2. toast's `display: inline-block;`: there is a `display: flex` below. --- web_src/css/base.css | 13 +------------ web_src/css/modules/toast.css | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index 20ddf01486..4330fb1df0 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -1647,10 +1647,6 @@ img.ui.avatar, margin-top: 1px; } -i.icons .icon:first-child { - margin-right: 0; -} - .ui.label { padding: 0.3em 0.5em; transition: none; @@ -1686,14 +1682,6 @@ a.ui.active.label:hover { color: var(--color-label-text); } -.ui.label > .detail .icons { - margin-right: 0.25em; -} - -.ui.label > .detail .icons .icon { - margin-right: 0; -} - .lines-blame-btn { padding-left: 10px; padding-right: 10px; @@ -2099,6 +2087,7 @@ table th[data-sortt-desc] .svg { vertical-align: -0.15em; } +/* for the jquery.minicolors plugin */ .minicolors-panel { background: var(--color-secondary-dark-1) !important; } diff --git a/web_src/css/modules/toast.css b/web_src/css/modules/toast.css index 0bfaa5be41..2a9f78e017 100644 --- a/web_src/css/modules/toast.css +++ b/web_src/css/modules/toast.css @@ -28,7 +28,6 @@ border-radius: var(--border-radius); background: transparent; border: none; - display: inline-block; display: flex; width: 30px; height: 30px;