Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Styles: Add Style Book to Global Styles #45960

Merged
merged 20 commits into from
Dec 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add border beneath tab bar, make tab bar scroll on mobile
  • Loading branch information
noisysocks committed Dec 4, 2022
commit 7f22f7e0527f07ca8b9dd10759141451a21bedf1
24 changes: 16 additions & 8 deletions packages/edit-site/src/components/style-book/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@
top: $grid-unit-10;
}

.edit-site-style-book__tab-panel .components-tab-panel__tab-content {
bottom: 0;
left: 0;
overflow: auto;
padding: $grid-unit-40;
position: absolute;
right: 0;
top: $grid-unit-60; // Height of tabs.
.edit-site-style-book__tab-panel {
.components-tab-panel__tabs {
margin-right: $button-size + $grid-unit-10;
overflow: auto;
}

.components-tab-panel__tab-content {
border-top: 1px solid $gray-400;
bottom: 0;
left: 0;
overflow: auto;
padding: $grid-unit-40;
position: absolute;
right: 0;
top: $grid-unit-60; // Height of tabs.
}
}

.edit-site-style-book__examples {
Expand Down