Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
Gtk-3.24&4.0: [Nautilus] Update sytling for >= 3.29.90 (5)
Browse files Browse the repository at this point in the history
Code cosmetics.
  • Loading branch information
tista500 committed Aug 22, 2018
1 parent f1f59bd commit 8846171
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
38 changes: 19 additions & 19 deletions gtk/sass/3.24/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -515,24 +515,24 @@ dialog.background.csd > box.dialog-vbox.vertical {
transition: none;
}

> headerbar.titlebar > box.horizontal widget > stack { // >= 3.29.90
// we no longer need to keep zero t/b padding for switchable entry node
// anymore
.linked.path-bar button {
&.toggle,
&.popup { // set full-height spacing
min-height: $icon_size * 1.5;
padding-top: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
padding-bottom: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
> headerbar.titlebar > box.horizontal {
widget > stack { // >= 3.29.90
// we no longer need to keep zero t/b padding for switchable entry node
// anymore
.linked.path-bar button {
&.toggle,
&.popup { // set full-height spacing
min-height: $icon_size * 1.5;
padding-top: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
padding-bottom: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
}
}
}
}

> headerbar.titlebar > box.horizontal {
> box.linked > button.disclosure-button.popup.toggle { // >= 3.29.90
// down-arrow button
min-width: $icon_size;
Expand All @@ -544,11 +544,11 @@ dialog.background.csd > box.dialog-vbox.vertical {

// radial-progress widget
> revealer > button.popup.toggle > widget { color: $accent_color; }
}

> headerbar.titlebar > box.horizontal > entry { // location-entry (legacy)
padding-top: 0; // = revealed path-bar
padding-bottom: 0;
> entry { // location-entry (legacy)
padding-top: 0; // = revealed path-bar
padding-bottom: 0;
}
}

flowboxchild { // experimental 'new view' mode
Expand Down
28 changes: 15 additions & 13 deletions gtk/sass/4.0/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -505,22 +505,24 @@ dialog.background.csd > box.dialog-vbox.vertical {
transition: none;
}

> headerbar.titlebar > box.horizontal widget > stack {
.linked.path-bar button {
&.toggle,
&.popup { // set full-height spacing
min-height: $icon_size * 1.5;
padding-top: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
padding-bottom: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
> headerbar.titlebar > box.horizontal {
widget > stack { // >= 3.29.90
// we no longer need to keep zero t/b padding for switchable entry node
// anymore
.linked.path-bar button {
&.toggle,
&.popup { // set full-height spacing
min-height: $icon_size * 1.5;
padding-top: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
padding-bottom: if($ref_weight < 1.0,
rem(($widget_size - $icon_size * 1.5 - 2px) / 2),
rem(($widget_size - $icon_size * 1.5) / 2));
}
}
}
}

> headerbar.titlebar > box.horizontal {
> box.linked > button.disclosure-button.popup.toggle { // >= 3.29.90
// down-arrow button
min-width: $icon_size;
Expand Down

0 comments on commit 8846171

Please sign in to comment.