Skip to content

Commit

Permalink
[JENKINS-73330] Fix dropdowns and tooltips on HDR displays (#9654)
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik authored Aug 26, 2024
1 parent 9045a3d commit a304977
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions war/src/main/scss/abstracts/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,13 @@ $semantics: (
--link-font-weight: 450;

// Tooltips
--tooltip-backdrop-filter: contrast(0.6) brightness(2.4) saturate(2)
blur(15px);
--tooltip-backdrop-filter: saturate(2) blur(20px);
--tooltip-color: var(--text-color);
--tooltip-box-shadow: 0 0 8px 2px rgba(0, 0, 30, 0.05),
0 0 1px 1px rgba(0, 0, 20, 0.025), 0 10px 20px rgba(0, 0, 20, 0.15);

// Dropdowns
--dropdown-backdrop-filter: contrast(0.6) brightness(2.5) saturate(1.5)
blur(20px);
--dropdown-backdrop-filter: saturate(1.5) blur(20px);
--dropdown-box-shadow: 0 10px 30px rgba(0, 0, 20, 0.2),
0 2px 10px rgba(0, 0, 20, 0.05), inset 0 -1px 2px rgba(255, 255, 255, 0.025);

Expand Down
1 change: 1 addition & 0 deletions war/src/main/scss/components/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $dropdown-padding: 0.4rem;
border-radius: 15px;
box-shadow: var(--dropdown-box-shadow);
outline: none !important;
background: color-mix(in sRGB, var(--background) 85%, transparent);
backdrop-filter: var(--dropdown-backdrop-filter);
max-width: unset !important;
max-height: 75vh;
Expand Down
1 change: 1 addition & 0 deletions war/src/main/scss/components/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
max-width: min(50vw, 1000px) !important;
white-space: pre-line;
z-index: 0;
background: color-mix(in sRGB, var(--background) 85%, transparent);
backdrop-filter: var(--tooltip-backdrop-filter);

.tippy-content {
Expand Down

0 comments on commit a304977

Please sign in to comment.