Skip to content

Commit

Permalink
Explain the unreadable selector
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Dec 4, 2024
1 parent 64da5e6 commit db88ca3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@
border-bottom-left-radius: 4px;
}

/* Cancel rounded borders on the left side for second to last button in group */
.prose-menubar__button:not(.hidden) ~ .prose-menubar__button:not(.hidden) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

/* Find last button in group (the button which doesn't have a following button) */
.prose-menubar__button:not(.hidden):not(
:has(~ .prose-menubar__button:not(.hidden))
) {
Expand Down

0 comments on commit db88ca3

Please sign in to comment.