aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-08-17 00:12:40 +0200
committerGitHub <noreply@github.com>2023-08-16 22:12:40 +0000
commit376c0e25f74c967242b860a740fb4d509bae7ee9 (patch)
tree5092c5232cb7d37a31917b39c10c2f3e9e114a31 /web_src/css
parent3b129aaa80e752dd2e0e007fc28c0db652af6b5c (diff)
downloadgitea-376c0e25f74c967242b860a740fb4d509bae7ee9.tar.gz
gitea-376c0e25f74c967242b860a740fb4d509bae7ee9.zip
Remove fomantic transition module (#26469)
Removes all dropdown and dimmer animations. Works everywhere as far as I can tell, but need to give this thorough testing. Removes around 70kb JS/CSS. Note, I'm not 100% sure regarding the various callbacks, those will need more investigation, but it appears to work nonetheless. Fixes: https://github.com/go-gitea/gitea/issues/15709
Diffstat (limited to 'web_src/css')
-rw-r--r--web_src/css/base.css29
-rw-r--r--web_src/css/modules/animations.css6
-rw-r--r--web_src/css/themes/theme-arc-green.css1
3 files changed, 34 insertions, 2 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css
index bdc1234bc9..0ea0c81864 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -225,7 +225,7 @@
--color-button: #fafafa;
--color-code-bg: #ffffff;
--color-code-sidebar-bg: #f5f5f5;
- --color-shadow: #00000030;
+ --color-shadow: #00000026;
--color-secondary-bg: #f4f4f4;
--color-expand-button: #d8efff;
--color-placeholder-text: #aaa;
@@ -248,6 +248,7 @@
--color-accent: var(--color-primary-light-1);
--color-small-accent: var(--color-primary-light-6);
--color-active-line: #fffbdd;
+ --color-overlay-backdrop: #080808c0;
accent-color: var(--color-accent);
color-scheme: light;
}
@@ -705,6 +706,16 @@ a.label,
background: var(--color-active) !important;
}
+/* styles from removed fomantic transition module */
+.hidden.transition {
+ visibility: hidden;
+ display: none;
+}
+.visible.transition {
+ display: block !important;
+ visibility: visible !important;
+}
+
.ui.message {
background: var(--color-box-body);
color: var(--color-text);
@@ -796,7 +807,7 @@ a.label,
.ui.selection.active.dropdown:hover,
.ui.selection.active.dropdown .menu,
.ui.selection.active.dropdown:hover .menu {
- border-color: var(--color-primary-light-2);
+ border-color: var(--color-primary);
}
.ui.selection.dropdown .menu {
@@ -1186,6 +1197,20 @@ img.ui.avatar,
box-shadow: none;
}
+.ui.dropdown .menu,
+.ui.upward.dropdown > .menu,
+.ui.menu .dropdown.item .menu,
+.ui.selection.active.dropdown .menu,
+.ui.upward.selection.dropdown .menu,
+.ui.selection.active.dropdown:hover .menu,
+.ui.upward.active.selection.dropdown:hover .menu {
+ box-shadow: 0 6px 18px var(--color-shadow);
+}
+
+.ui.dimmer {
+ background: var(--color-overlay-backdrop);
+}
+
/* Override semantic selector '.ui.menu:not(.vertical) .item > .button' */
/* This fixes the commit graph button on the commits page */
/* modal svg icons, copied from fomantic except width and height */
diff --git a/web_src/css/modules/animations.css b/web_src/css/modules/animations.css
index 876758d8bf..2f69117928 100644
--- a/web_src/css/modules/animations.css
+++ b/web_src/css/modules/animations.css
@@ -105,3 +105,9 @@ code.language-math.is-loading::after {
.pulse {
animation: pulse 2s linear;
}
+
+.ui.modal {
+ animation-name: fadein;
+ animation-duration: 300ms;
+ animation-timing-function: ease-in-out;
+}
diff --git a/web_src/css/themes/theme-arc-green.css b/web_src/css/themes/theme-arc-green.css
index 31752ccad6..088e92d12c 100644
--- a/web_src/css/themes/theme-arc-green.css
+++ b/web_src/css/themes/theme-arc-green.css
@@ -233,6 +233,7 @@
--color-accent: var(--color-primary-light-1);
--color-small-accent: var(--color-primary-light-5);
--color-active-line: #534d1b;
+ --color-overlay-backdrop: #080808c0;
accent-color: var(--color-accent);
color-scheme: dark;
}