aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/css')
-rw-r--r--web_src/css/index.css1
-rw-r--r--web_src/css/modules/checkbox.css10
-rw-r--r--web_src/css/modules/select.css25
3 files changed, 10 insertions, 26 deletions
diff --git a/web_src/css/index.css b/web_src/css/index.css
index ce1a23b245..630aa3c2ef 100644
--- a/web_src/css/index.css
+++ b/web_src/css/index.css
@@ -19,7 +19,6 @@
@import "./modules/dimmer.css";
@import "./modules/modal.css";
-@import "./modules/select.css";
@import "./modules/tippy.css";
@import "./modules/breadcrumb.css";
@import "./modules/comment.css";
diff --git a/web_src/css/modules/checkbox.css b/web_src/css/modules/checkbox.css
index 0a3a71acaa..f7e61ba360 100644
--- a/web_src/css/modules/checkbox.css
+++ b/web_src/css/modules/checkbox.css
@@ -119,3 +119,13 @@ input[type="radio"] {
.ui.toggle.checkbox input:focus:checked ~ label::before {
background: var(--color-primary) !important;
}
+
+label.gt-checkbox {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.25em;
+}
+
+.ui.form .field > label.gt-checkbox {
+ display: flex;
+}
diff --git a/web_src/css/modules/select.css b/web_src/css/modules/select.css
deleted file mode 100644
index 1d7d749d4a..0000000000
--- a/web_src/css/modules/select.css
+++ /dev/null
@@ -1,25 +0,0 @@
-.gitea-select {
- position: relative;
-}
-
-.gitea-select select {
- appearance: none; /* hide default triangle */
-}
-
-/* ::before and ::after pseudo elements don't work on select elements,
- so we need to put it on the parent. */
-.gitea-select::after {
- position: absolute;
- top: 12px;
- right: 8px;
- pointer-events: none;
- content: "";
- width: 14px;
- height: 14px;
- mask-size: cover;
- -webkit-mask-size: cover;
- mask-image: var(--octicon-chevron-right);
- -webkit-mask-image: var(--octicon-chevron-right);
- transform: rotate(90deg); /* point the chevron down */
- background: currentcolor;
-}