Style (pane) separators and sidebars#850
Merged
danirabbit merged 10 commits intoelementary:mainfrom Apr 24, 2025
wpkelso:styles-separator
Merged
Style (pane) separators and sidebars#850danirabbit merged 10 commits intoelementary:mainfrom wpkelso:styles-separator
danirabbit merged 10 commits intoelementary:mainfrom
wpkelso:styles-separator
Conversation
Member
wpkelso
commented
Apr 23, 2025

danirabbit
reviewed
Apr 23, 2025
danirabbit
requested changes
Apr 23, 2025
danirabbit
requested changes
Apr 24, 2025
lib/Styles/Gtk/Sidebar.scss
Outdated
Comment on lines
10
to
24
| & row { | ||
| padding: rem(6px) rem(12px); | ||
| background-color: inherit; | ||
|
|
||
| transition: all duration("in-place") easing(); | ||
|
|
||
| &:hover { | ||
| background-color: $highlight_color; | ||
| } | ||
|
|
||
| &:selected { | ||
| // FIXME: replace with translucent/brighter accent color | ||
| background-color: bg-color(4); | ||
| } | ||
| } |
Member
There was a problem hiding this comment.
This seems like it should be in stacksidebar.sidebar since otherwise this would effect Granite.ListItem styles in a sidebar using those widgets
Member
There was a problem hiding this comment.
There's probably a better way to abstract these styles, but what do you think about how this looks?
stacksidebar.sidebar {
background: none;
box-shadow: none;
.navigation-sidebar {
margin: $button-spacing;
row {
@extend .model;
border-spacing: $button-spacing;
min-width: rem(150px);
&:active {
// There's an optical illusion because items are wider than
// they are tall, so compensate by scaling y a little extra
transform: scale(0.98, 0.96);
}
&:selected {
@extend selection;
}
}
}
}
Member
Author
Member
There was a problem hiding this comment.
Ah yeah I'll propose a branch to fix the selected styles. I forgot to add the dark one
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


