aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-28 22:14:51 +0800
committerGitHub <noreply@github.com>2023-08-28 22:14:51 +0800
commit4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c (patch)
tree777d8a03c5933b99519a2f5afaef86e245892b6c /web_src
parenta587d2526163153a4d992527fe6040d578beaa83 (diff)
downloadgitea-4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c.tar.gz
gitea-4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c.zip
Refactor some CSS styles and simplify code (#26771)
Refactor some CSS styles and simplify code. Some styles are not in use, remove them.
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/base.css40
1 files changed, 13 insertions, 27 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index d9c57932fc..481e231f3e 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -474,7 +474,7 @@ a.label,
/* fix Fomantic's line-height cutting off "g" on Windows Chrome with Segoe UI */
.ui.input > input {
- line-height: 1.3;
+ line-height: var(--line-height-default);
}
.ui.input.focus > input,
@@ -951,6 +951,7 @@ img.ui.avatar,
filter: saturate(2);
}
+/* TODO: use gt-word-break instead */
.dont-break-out {
overflow-wrap: break-word;
word-wrap: break-word;
@@ -1456,10 +1457,6 @@ img.ui.avatar,
border-color: var(--color-gold) !important;
}
-.ui .branch-tag-choice {
- line-height: 20px;
-}
-
@media (max-width: 767.98px) {
.ui.pagination.menu .item:not(.active,.navigation),
.ui.pagination.menu .item.navigation span.navigation_label {
@@ -1640,10 +1637,6 @@ img.ui.avatar,
margin-left: 0.5rem;
}
-.repo-icon {
- display: inline-block;
-}
-
.activity-bar-graph {
background-color: var(--color-primary);
color: var(--color-primary-contrast);
@@ -1681,10 +1674,6 @@ i.icons .icon:first-child {
margin-right: 0;
}
-i.icon.centerlock {
- top: 1em;
-}
-
.ui.label {
padding: 0.3em 0.5em;
transition: none;
@@ -1879,10 +1868,6 @@ a.ui.active.label:hover {
width: 100%;
}
-.octicon-tiny {
- font-size: 0.85714286rem;
-}
-
.ui.primary.label,
.ui.primary.labels .label,
.ui.ui.ui.primary.label {
@@ -2037,6 +2022,7 @@ a.ui.basic.label:hover {
margin-left: 0;
}
+/* TODO: replace it with gt-invisible */
.invisible {
visibility: hidden;
}
@@ -2123,11 +2109,6 @@ table th[data-sortt-desc] .svg {
box-shadow: 0 0 0 1px var(--color-secondary) inset;
}
-.text-label {
- display: inline-flex !important;
- align-items: center !important;
-}
-
.emoji,
.reaction {
font-size: 1.25em;
@@ -2241,14 +2222,14 @@ table th[data-sortt-desc] .svg {
}
.precolors {
- padding-left: 0 !important;
- padding-right: 0 !important;
- margin: 3px 10px auto !important;
- width: 120px !important;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ margin-left: 1em;
}
.precolors .color {
- float: left;
+ display: inline-block;
width: 15px;
height: 15px;
}
@@ -2303,6 +2284,7 @@ table th[data-sortt-desc] .svg {
.ui.ui.button,
.ui.ui.dropdown,
+.ui.ui.label,
.flex-items-inline > .item,
.flex-text-inline {
display: inline-flex;
@@ -2319,6 +2301,10 @@ table th[data-sortt-desc] .svg {
vertical-align: middle;
}
+.ui.ui.circular.label {
+ justify-content: center;
+}
+
.ui.ui.labeled.button {
gap: 0;
align-items: stretch;