Skip to content

Commit

Permalink
feat(Popover): clockface 4 updates (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChitlangeSahas committed Nov 8, 2022
1 parent 7c47667 commit 5561802
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 31 deletions.
3 changes: 2 additions & 1 deletion src/Components/Popover/Base/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
position: relative;
color: $cf-white;
box-shadow: 0px 0px 16px rgba($cf-grey-95, 0.3);
border: $cf-border solid rgba($cf-white, 0.05);

.cf-popover__nav.cf-popover & {
@extend %backdrop-blur-blue;
@extend %backdrop-blur-dark;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Components/Popover/Composed/ErrorTooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

.cf-error-tooltip {
color: $c-fire;
color: $cf-red;
display: inline-flex;
justify-content: center;
position: relative;
Expand All @@ -15,6 +15,6 @@

&:hover {
cursor: help;
color: $c-curacao;
color: rgba($cf-red, 0.85);
}
}
18 changes: 9 additions & 9 deletions src/Components/Popover/Composed/QuestionMarkTooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@
&.cf-question-mark-tooltip__default {
background-color: $g13-mist;
}

&.cf-question-mark-tooltip__primary {
background-color: $c-pool;
background-color: $cf-turquoise;
}

&.cf-question-mark-tooltip__secondary {
background-color: $c-comet;
background-color: $cf-lavender;
}

&.cf-question-mark-tooltip__success {
background-color: $c-rainforest;
background-color: $cf-green;
}

&.cf-question-mark-tooltip__warning {
background-color: $c-thunder;
}

&.cf-question-mark-tooltip__danger {
background-color: $c-dreamsicle;
background-color: $cf-red;
}
}
2 changes: 1 addition & 1 deletion src/Components/TreeNav/TreeNav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ $cf-tree-nav--user-padding: (
flex-direction: column;
align-items: stretch;
padding: $cf-space-s $cf-space-s $cf-space-s $cf-tree-nav__small-height;
@extend %backdrop-blur-blue;
@extend %backdrop-blur-dark;

.cf-tree-nav--username,
.cf-tree-nav--team {
Expand Down
20 changes: 2 additions & 18 deletions src/Styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ $cf-scrollbar-offset: 3px;

// Blur
%backdrop-blur {
-webkit-backdrop-filter: blur(15px);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(24px);
backdrop-filter: blur(24px);
}

%backdrop-bg {
Expand All @@ -658,23 +658,7 @@ $cf-scrollbar-offset: 3px;
}
}

%backdrop-blue {
background-color: rgba($cf-grey-15, 0.9);

@supports (
(backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
background: linear-gradient(0deg, rgba($c-pool, 0.05), rgba($c-pool, 0.05)),
#{rgba($cf-grey-95, 0.05)};
}
}

%backdrop-blur-dark {
@extend %backdrop-blur;
@extend %backdrop-bg;
}

%backdrop-blur-blue {
@extend %backdrop-blur;
@extend %backdrop-blue;
}

0 comments on commit 5561802

Please sign in to comment.