Skip to content

Commit

Permalink
DataViews: Add missing styles and remove opinionated ones for generic…
Browse files Browse the repository at this point in the history
… usage (WordPress#64711)

Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
  • Loading branch information
4 people authored and bph committed Aug 31, 2024
1 parent e1deb69 commit 6cbe2d1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
}
}

.dataviews-settings-section:has(.dataviews-settings-section__content:empty) {
display: none;
}

/* stylelint-disable-next-line scss/at-rule-no-unknown -- '@container' not globally permitted */
@container (max-width: 500px) {
.dataviews-settings-section.dataviews-settings-section {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ export const fields = [
id: 'title',
enableHiding: false,
enableGlobalSearch: true,
render: ( { item } ) => {
return <a href="#nothing">{ item.title }</a>;
},
},
{
id: 'date',
Expand Down
1 change: 1 addition & 0 deletions packages/dataviews/src/dataviews-layouts/list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
}

.dataviews-view-list__item {
box-sizing: border-box;
padding: $grid-unit-20 $grid-unit-30;
width: 100%;
scroll-margin: $grid-unit-10 0;
Expand Down
5 changes: 0 additions & 5 deletions packages/dataviews/src/dataviews-layouts/table/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
color: $gray-700;
margin-bottom: auto;

a {
text-decoration: none;
color: $gray-900;
font-weight: 500;
}
th {
text-align: left;
color: $gray-900;
Expand Down

0 comments on commit 6cbe2d1

Please sign in to comment.