Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73330] Fix dropdowns and tooltips on HDR displays #9654

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading