summaryrefslogtreecommitdiffstats
path: root/web_src/less/themes
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-10-23 06:05:20 +0200
committerGitHub <noreply@github.com>2022-10-23 12:05:20 +0800
commitf982a71997e057bce009574d04503177788e5a4e (patch)
treec5b92c58333ccec6244432d4a920a8d04c48ed89 /web_src/less/themes
parent876ee8c3cd956025aadda14175f80ce4cccfe1bb (diff)
downloadgitea-f982a71997e057bce009574d04503177788e5a4e.tar.gz
gitea-f982a71997e057bce009574d04503177788e5a4e.zip
CSS color enhancements (#21534)
- Add [`accent-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color) which will change the color of various native HTML elements from OS-color to specified one. Affects unstyled checkbox, radio, range and progress - Change `--color-accent` to `--color-primary-light-1` - Change progress bar color to `--color-accent` - Add new `--color-primary-contrast` meant to contrast over primary - Avoid layout shift on clicking `.viewed-file-form` - Add styles for `input[type=file]` upload button <img width="301" alt="Screen Shot 2022-10-21 at 18 05 35" src="https://user-images.githubusercontent.com/115237/197246896-7b3b5591-2934-4436-bf37-6aebcdfecb13.png"> <img width="98" alt="Screen Shot 2022-10-21 at 19 41 27" src="https://user-images.githubusercontent.com/115237/197256892-c8fc6a0a-5d2f-4757-a98b-a79f9b7fcbc5.png"> <img width="93" alt="image" src="https://user-images.githubusercontent.com/115237/197257029-293c02e9-ebf9-448a-a58f-ca418cf36953.png"> <img width="204" alt="Screen Shot 2022-10-21 at 18 21 24" src="https://user-images.githubusercontent.com/115237/197246957-a99f5178-bbd5-4204-bd32-7a6977026f76.png"> <img width="449" alt="Screen Shot 2022-10-21 at 18 56 59" src="https://user-images.githubusercontent.com/115237/197249305-d481abb7-9f16-4b48-936a-c75ed29f5b04.png"> <img width="449" alt="Screen Shot 2022-10-21 at 18 57 09" src="https://user-images.githubusercontent.com/115237/197249309-7ab70c3b-325e-41bc-a4ba-07402c6826b6.png"> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/less/themes')
-rw-r--r--web_src/less/themes/theme-arc-green.less3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index fe83162154..1f6da76db9 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -4,6 +4,7 @@
:root {
--is-dark-theme: true;
--color-primary: #87ab63;
+ --color-primary-contrast: #ffffff;
--color-primary-dark-1: #93b373;
--color-primary-dark-2: #9fbc82;
--color-primary-dark-3: #abc492;
@@ -135,8 +136,8 @@
--color-reaction-active-bg: var(--color-primary-alpha-40);
--color-header-bar: #2e323e;
--color-label-active-bg: #4c525e;
+ --color-accent: var(--color-primary-light-1);
--color-small-accent: var(--color-primary-light-5);
- --color-accent: var(--color-primary-light-3);
--color-active-line: #534d1b;
}