summaryrefslogtreecommitdiffstats
path: root/browser/components/newtab/content-src/styles/_variables.scss
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /browser/components/newtab/content-src/styles/_variables.scss
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/newtab/content-src/styles/_variables.scss')
-rw-r--r--browser/components/newtab/content-src/styles/_variables.scss27
1 files changed, 23 insertions, 4 deletions
diff --git a/browser/components/newtab/content-src/styles/_variables.scss b/browser/components/newtab/content-src/styles/_variables.scss
index 9fd0083841..43672c7796 100644
--- a/browser/components/newtab/content-src/styles/_variables.scss
+++ b/browser/components/newtab/content-src/styles/_variables.scss
@@ -157,14 +157,17 @@ $customize-menu-border-tint: 1px solid rgba(0, 0, 0, 15%);
@mixin context-menu-button {
.context-menu-button {
background-clip: padding-box;
- background-color: var(--newtab-background-color-secondary);
+ background-color: var(--newtab-button-background);
background-image: url('chrome://global/skin/icons/more.svg');
background-position: 55%;
- border: $border-primary;
+ border: 0;
+ outline: $border-primary;
+ outline-width: 0;
border-radius: 100%;
box-shadow: $context-menu-button-boxshadow;
cursor: pointer;
- fill: var(--newtab-text-primary-color);
+ color: var(--button-text-color);
+ fill: var(--newtab-button-text);
height: $context-menu-button-size;
inset-inline-end: math.div(-$context-menu-button-size, 2);
opacity: 0;
@@ -175,10 +178,26 @@ $customize-menu-border-tint: 1px solid rgba(0, 0, 0, 15%);
transition-property: transform, opacity;
width: $context-menu-button-size;
- &:is(:active, :focus) {
+ &:is(:active, :focus-visible, :hover) {
opacity: 1;
transform: scale(1);
}
+
+ &:is(:hover) {
+ background-color: var(--newtab-button-hover-background);
+ }
+
+ &:is(:focus-visible) {
+ outline-color: var(--newtab-button-focus-border);
+ background-color: var(--newtab-button-focus-background);
+ outline-width: 4px;
+ }
+
+ &:is(:active) {
+ background-color: var(--newtab-button-active-background);
+ }
+
+
}
}