This commit is contained in:
vinceliuice 2022-10-09 17:27:14 +08:00
parent 2f79cc92eb
commit 72feeeeddf
2 changed files with 43 additions and 26 deletions

View file

@ -632,41 +632,36 @@ entry {
} }
.entry-tag { .entry-tag {
$tag_height: $menuitem_size - 4px; margin: 0;
$tag_margin: 8px; min-height: 16px;
border-radius: $circular_radius;
margin: $tag_margin; // instead of min-height: $tag_height;
border-radius: 50px;
box-shadow: none; box-shadow: none;
background-color: $destructive_color; background-color: $suggested_color;
color: $light_fg_color; color: $light_fg_color;
border: none; border: none;
padding: 2px;
&:hover { box-shadow: 0 0 0 1px $borders_color; } &:hover { box-shadow: $shadow_4; }
// side margins: compensate the entry padding with a negative margin // side margins: compensate the entry padding with a negative margin
// then the negative margin itself // then the negative margin itself
:dir(ltr) & { :dir(ltr) & {
margin-left: 8px; margin-left: $container_padding / 2;
margin-right: $tag_margin - 8px; margin-right: 0;
padding-left: 8px;
padding-right: ($tag_height - 16px) / 2;
} }
:dir(rtl) & { :dir(rtl) & {
margin-left: $tag_margin - 8px; margin-left: 0;
margin-right: 8px; margin-right: $container_padding / 2;
padding-left: ($tag_height - 16px) / 2;
padding-right: 8px;
} }
// seems any sizing doesn't work // seems any sizing doesn't work
&.button { > button {
box-shadow: none; min-height: 20px;
border: none; min-width: 20px;
background-color: transparent; padding: 0;
border-radius: $circular_radius;
&:not(:hover):not(:active) { color: $disabled_fg_color; } @extend %selected-button;
} }
} }
@ -4388,10 +4383,12 @@ stacksidebar {
// Navigation Sidebar // Navigation Sidebar
.navigation-sidebar { .navigation-sidebar {
background-color: $dark_sidebar_bg;
padding: $container_padding 0; //only vertical padding. horizontal row size would clip padding: $container_padding 0; //only vertical padding. horizontal row size would clip
> separator { > separator {
margin: $container_padding 0; margin: $container_padding 0;
background: none;
} }
> row { > row {

View file

@ -4,6 +4,18 @@
************/ ************/
.nautilus-window { .nautilus-window {
flap.unfolded {
> separator.horizontal {
background-color: $header_border;
}
}
flap.folded {
> placessidebar {
border-right: 1px solid $header_border;
}
}
// Floating Bar // Floating Bar
.floating-bar { .floating-bar {
padding: 2px; padding: 2px;
@ -13,13 +25,11 @@
margin: $container_padding; margin: $container_padding;
box-shadow: $shadow_5; box-shadow: $shadow_5;
button { > button.circular.flat {
border: none;
border-radius: $circular_radius; border-radius: $circular_radius;
min-height: 0; min-height: 24px;
min-width: 0; min-width: 24px;
padding: 0; padding: 0;
margin-right: container_padding;
-gtk-icon-shadow: none; -gtk-icon-shadow: none;
@extend %selected-button; @extend %selected-button;
} }
@ -36,6 +46,16 @@
#NautilusQueryEditor { // search entry #NautilusQueryEditor { // search entry
padding: 1px $container_padding; padding: 1px $container_padding;
> box { margin: 0; }
#NautilusQueryEditorTag {
@extend .entry-tag;
> button {
margin: 0;
}
}
> menubutton > button { > menubutton > button {
min-width: 16px; min-width: 16px;
min-height: 16px; min-height: 16px;