What I’m trying to do
Hide individual elements from embedded bases.
Things I have tried
I added custom CSS to hide all elements but the “New” button from an embedded bases toolbar. When I first tried doing this, I used the following CSS.
:is(
.bases-new-only,
.bases-embed[alt~="new-only"]
) .bases-toolbar-views-menu,
.bases-toolbar-sort-menu,
.bases-toolbar-filter-menu,
.bases-toolbar-properties-menu {
display: none;
}
This did not work. However, the CSS below works.
:is(
.bases-new-only,
.bases-embed[alt~="new-only"]
) .bases-toolbar-views-menu {
display: none;
}
:is(
.bases-new-only,
.bases-embed[alt~="new-only"]
) .bases-toolbar-sort-menu {
display: none;
}
:is(
.bases-new-only,
.bases-embed[alt~="new-only"]
) .bases-toolbar-filter-menu {
display: none;
}
:is(
.bases-new-only,
.bases-embed[alt~="new-only"]
) .bases-toolbar-properties-menu {
display: none;
}
This seems unnecessarily cumbersome. Is there something I’m doing wrong in the first example, or do they have to be individually declared like in the second?