Skip to content

Commit

Permalink
fix: feat #74
Browse files Browse the repository at this point in the history
  • Loading branch information
edelvarden committed Oct 1, 2024
1 parent 959d635 commit d6004d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/user-chrome/components/_findbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ $-checkbox-selectors: (
border-top-width: 0 !important;
}

animation: 0.1s findbar-scale-in;
animation: get-var("short-duration") findbar-scale-in;

&[hidden='true'] {
animation: 0.1s findbar-scale-out;
animation: 0ms findbar-scale-out;
}

// Nested Styles
Expand Down Expand Up @@ -238,9 +238,10 @@ $-checkbox-selectors: (
position: relative !important;
}

// findbar position
.browserContainer>findbar {
position: absolute !important;
margin: 2px 2px 0 0 !important;
margin: 2px 14px 0 0 !important;
align-items: center !important;
}

Expand Down Expand Up @@ -396,3 +397,12 @@ $-checkbox-selectors: (
.findbar-textbox:focus-visible {
box-shadow: none !important;
}

// background color when not found
.findbar-textbox {
&[status="notfound"] {
background-color: get-var("findbar-notfound-background-color") !important;
border-radius: 6px !important;
border-color: transparent !important;
}
}
1 change: 1 addition & 0 deletions src/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $global: (
"alltabs-background-color-open": cm(get-var(accent-color), get-var(tab-background-color-hover), 0.5),
"urlbar-background-color-hover": get-var("menu-background-color-hover"),
"urlbar-background-color-open": get-var("background-color-100"),
"findbar-notfound-background-color": rgba(255, 0, 0, 0.3),
// --------------------------------------------------------------------------------
// -- Shadow
// --------------------------------------------------------------------------------
Expand Down

0 comments on commit d6004d0

Please sign in to comment.