1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Various CSS tweaks (#21244)

- Remove arc-green specific rules and instead fix the colors in the base
rules.
- Make file table row border visible on arc-green.
- Remove remnants of fomantic accordeon module that was removed.
This commit is contained in:
silverwind
2022-09-23 05:00:29 +02:00
committed by GitHub
parent 301d84e83a
commit 3f9e323ecd
5 changed files with 61 additions and 99 deletions

View File

@@ -135,7 +135,7 @@
--color-light: #00000006;
--color-light-mimic-enabled: rgba(0, 0, 0, calc(6 / 255 * 222 / 255 / var(--opacity-disabled)));
--color-light-border: #0000001d;
--color-hover: #0000000f;
--color-hover: #0000000c;
--color-active: #00000014;
--color-menu: #ffffff;
--color-card: #ffffff;
@@ -157,6 +157,7 @@
--color-reaction-active-bg: var(--color-primary-alpha-20);
--color-tooltip-bg: #000000f0;
--color-tooltip-text: #ffffff;
--color-header-bar: #ffffff;
/* backgrounds */
--checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
--checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');
@@ -294,6 +295,29 @@ a.commit-statuses-trigger {
text-decoration: none !important;
}
.ui.search > .results {
background: var(--color-body);
border-color: var(--color-secondary);
}
.ui.search > .results .result {
background: var(--color-body);
}
.ui.search > .results .result .title {
color: var(--color-text-dark);
}
.ui.search > .results .result .image {
width: auto;
height: auto;
}
.ui.search > .results .result:hover,
.ui.category.search > .results .category .result:hover {
background: var(--color-hover);
}
.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
@@ -318,6 +342,11 @@ a.commit-statuses-trigger {
color: var(--color-text-light-2);
}
.ui.divider:not(.vertical,.horizontal) {
border-top-color: var(--color-secondary) !important;
border-bottom: none !important;
}
.page-content {
margin-top: 15px;
}
@@ -449,6 +478,11 @@ a.commit-statuses-trigger {
color: var(--color-text-light-2);
}
.ui.list .list > .item > .content,
.ui.list > .item > .content {
color: var(--color-text);
}
.ui.secondary.menu .dropdown.item:hover,
.ui.secondary.menu .link.item:hover,
.ui.secondary.menu a.item:hover {
@@ -656,10 +690,20 @@ a.ui.card:hover,
.ui.table {
color: var(--color-text);
background: var(--color-body);
background: var(--color-box-body);
border-color: var(--color-secondary);
}
.ui.table th,
.ui.table td {
transition: none;
}
.ui.table > tr > td,
.ui.table > tbody > tr > td {
border-top-color: var(--color-secondary-alpha-50);
}
.ui.ui.selectable.table > tbody > tr:hover,
.ui.table tbody tr td.selectable:hover {
color: var(--color-text);
@@ -672,6 +716,11 @@ a.ui.card:hover,
color: var(--color-text);
}
.ui.table > thead > tr > th {
background: var(--color-box-header);
color: var(--color-text);
}
.ui.modal {
background: var(--color-body);
}
@@ -750,7 +799,7 @@ a.ui.card:hover,
margin: 0 !important;
&.light {
background: var(--color-body);
background: var(--color-header-bar);
border-bottom: 1px solid var(--color-secondary);
}