aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/src
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-05-04 12:43:25 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-05-04 13:04:15 +0200
commit9ab7a19b09fa98fa47f09b95e32b8a0e2e2e5eb7 (patch)
tree5a552a7a4820da89ef948d9f8d68a2451a2bfad3 /apps/theming/src
parent4d3b49b09a8728fedc243fbf378dee6c06d5c8f2 (diff)
downloadnextcloud-server-9ab7a19b09fa98fa47f09b95e32b8a0e2e2e5eb7.tar.gz
nextcloud-server-9ab7a19b09fa98fa47f09b95e32b8a0e2e2e5eb7.zip
fix(theming): remove unnecessary `color-primary-element-default-hover` variable
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/src')
-rw-r--r--apps/theming/src/components/admin/ColorPickerField.vue18
1 files changed, 16 insertions, 2 deletions
diff --git a/apps/theming/src/components/admin/ColorPickerField.vue b/apps/theming/src/components/admin/ColorPickerField.vue
index c9f1a8e4ef5..fd80a45e387 100644
--- a/apps/theming/src/components/admin/ColorPickerField.vue
+++ b/apps/theming/src/components/admin/ColorPickerField.vue
@@ -115,8 +115,22 @@ export default {
width: 230px !important;
border-radius: var(--border-radius-large) !important;
background-color: var(--color-primary-default) !important;
- &:hover {
- background-color: var(--color-primary-element-default-hover) !important;
+
+ // emulated hover state because it would not make sense
+ // to create a dedicated global variable for the color-primary-default
+ &:hover::after {
+ background-color: white;
+ content: "";
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ opacity: .2;
+ filter: var(--primary-invert-if-bright);
+ }
+
+ // Above the ::after
+ &::v-deep * {
+ z-index: 1;
}
}
}