Skip to content

Commit

Permalink
Meatballs util: Fix blog menu item styling (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored May 4, 2023
1 parent 8cb12dd commit 8477b53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content_scripts/meatballs.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[data-xkit-meatball-button] {
.xkit-meatball-button {
display: flex;
flex-direction: row;
justify-content: center;
Expand All @@ -16,15 +16,15 @@
text-decoration: none;
}

[data-xkit-meatball-button][hidden] {
.xkit-meatball-button[hidden] {
display: none;
}

[data-xkit-meatball-button]:not([hidden]) ~ [data-xkit-meatball-button] {
.xkit-meatball-button:not([hidden]) ~ .xkit-meatball-button {
border-top: none;
}

[data-xkit-meatball-button]:hover,
[data-xkit-meatball-button]:focus {
.xkit-meatball-button:hover,
.xkit-meatball-button:focus {
background-color: rgb(var(--secondary-accent));
}
2 changes: 2 additions & 0 deletions src/util/meatballs.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const addPostMeatballItem = async meatballMenu => {
const { label, onclick, postFilter } = meatballItems[id];

const meatballItemButton = dom('button', {
class: 'xkit-meatball-button',
'data-xkit-meatball-button': id,
hidden: true
}, {
Expand Down Expand Up @@ -127,6 +128,7 @@ const addBlogMeatballItem = async meatballMenu => {
const { label, onClick, blogFilter } = blogMeatballItems[id];

const meatballItemButton = dom('button', {
class: 'xkit-meatball-button',
'data-xkit-blog-meatball-button': id,
hidden: true
}, {
Expand Down

0 comments on commit 8477b53

Please sign in to comment.