Skip to content

Commit

Permalink
lists: Fix unnecessary separation line in permissions list
Browse files Browse the repository at this point in the history
Firefox 121 enables the has() selector, now we ca use it to fix this issue.

Fixes #654
  • Loading branch information
rafaelmardojai committed Nov 22, 2023
1 parent 1208b24 commit 4a7dccf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 13 additions & 2 deletions theme/parts/lists.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,26 @@ richlistbox#items {
}

/* List item */
.permission-popup-permission-list-anchor,
.permission-popup-permission-item,
richlistbox#items richlistitem {
padding: 6px !important;
margin: 0 !important;
}
.permission-popup-permission-list-anchor:not(:last-child),
.permission-popup-permission-list-anchor {
padding: 0 !important;
}
.permission-popup-permission-list-anchor:not(:has(.permission-popup-permission-item)) {
visibility: collapse;
}
richlistbox#items richlistitem:not(:last-child) {
border-bottom: 1px solid var(--gnome-card-shade-color);
}
.permission-popup-permission-list-anchor:not(#permission-popup-permission-list-default-anchor):has(.permission-popup-permission-item) {
border-top: 1px solid var(--gnome-card-shade-color);
}
#permission-popup-permission-list-default-anchor:empty + .permission-popup-permission-list-anchor {
border: 0 !important;
}

/* Fix list buttons on selected state */
@media (prefers-color-scheme: light) {
Expand Down
1 change: 0 additions & 1 deletion theme/parts/popups-contents.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@

#permission-popup-permission-list-default-anchor:empty {
padding: 0 !important;
border: 0 !important;
}
.permission-popup-permission-list-anchor[anchorfor="3rdPartyStorage"] {
padding: 0 !important;
Expand Down

0 comments on commit 4a7dccf

Please sign in to comment.