Skip to content

Commit

Permalink
Use transparent borders for popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
lassekongo83 committed Dec 4, 2019
1 parent bc6555a commit 84fd9df
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gtk/src/Zukitre/gtk-3.0/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,13 @@ popover.background {

.csd &, & { border: 1px solid transparentize(black, 0.7); }

.csd & {
$_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));

background-clip: padding-box;
border-color: $_popover_border;
}

box-shadow: 0 1px 2px transparentize(black, 0.7);

& modelbutton.flat:hover,
Expand Down
2 changes: 2 additions & 0 deletions gtk/src/Zukitre/gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,8 @@ popover.background { padding: 2px; border-radius: 3px; background-color: #323537

.csd popover.background, popover.background { border: 1px solid rgba(0, 0, 0, 0.3); }

.csd popover.background { background-clip: padding-box; border-color: rgba(18, 21, 23, 0.9); }

popover.background modelbutton.flat:hover, popover.background checkbutton:hover, popover.background radiobutton:hover, popover.background.menuitem.button.flat:hover { background-color: #4a79c7; color: #ffffff; border-radius: 0; }

popover.background > list, popover.background > .view, popover.background > iconview, popover.background > toolbar { border-style: none; background-color: transparent; }
Expand Down
2 changes: 2 additions & 0 deletions gtk/src/Zukitre/gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ popover.background { padding: 2px; border-radius: 3px; background-color: #e7e7e7

.csd popover.background, popover.background { border: 1px solid rgba(0, 0, 0, 0.3); }

.csd popover.background { background-clip: padding-box; border-color: rgba(0, 0, 0, 0.23); }

popover.background modelbutton.flat:hover, popover.background checkbutton:hover, popover.background radiobutton:hover, popover.background.menuitem.button.flat:hover { background-color: #4a79c7; color: #ffffff; border-radius: 0; }

popover.background > list, popover.background > .view, popover.background > iconview, popover.background > toolbar { border-style: none; background-color: transparent; }
Expand Down
7 changes: 7 additions & 0 deletions gtk/src/Zukitwo/gtk-3.0/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,13 @@ popover.background {

.csd &, & { border: 1px solid transparentize(black, 0.7); }

.csd & {
$_popover_border: if($variant=='light', transparentize(black, 0.77), transparentize($borders_color, 0.1));

background-clip: padding-box;
border-color: $_popover_border;
}

box-shadow: 0 1px 2px transparentize(black, 0.7);

& modelbutton.flat:hover,
Expand Down
2 changes: 2 additions & 0 deletions gtk/src/Zukitwo/gtk-3.0/gtk-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,8 @@ popover.background { padding: 2px; border-radius: 7px; background-color: #323537

.csd popover.background, popover.background { border: 1px solid rgba(0, 0, 0, 0.3); }

.csd popover.background { background-clip: padding-box; border-color: rgba(18, 21, 23, 0.9); }

popover.background modelbutton.flat:hover, popover.background checkbutton:hover, popover.background radiobutton:hover, popover.background.menuitem.button.flat:hover { background-color: #4a79c7; color: #ffffff; border-radius: 0; }

popover.background > list, popover.background > .view, popover.background > iconview, popover.background > toolbar { border-style: none; background-color: transparent; }
Expand Down
2 changes: 2 additions & 0 deletions gtk/src/Zukitwo/gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ popover.background { padding: 2px; border-radius: 7px; background-color: #e7e7e7

.csd popover.background, popover.background { border: 1px solid rgba(0, 0, 0, 0.3); }

.csd popover.background { background-clip: padding-box; border-color: rgba(0, 0, 0, 0.23); }

popover.background modelbutton.flat:hover, popover.background checkbutton:hover, popover.background radiobutton:hover, popover.background.menuitem.button.flat:hover { background-color: #4a79c7; color: #ffffff; border-radius: 0; }

popover.background > list, popover.background > .view, popover.background > iconview, popover.background > toolbar { border-style: none; background-color: transparent; }
Expand Down

0 comments on commit 84fd9df

Please sign in to comment.