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

Update style book headings to new design #67546

Merged
merged 3 commits into from
Dec 5, 2024
Merged
Changes from all commits
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
27 changes: 8 additions & 19 deletions packages/edit-site/src/components/style-book/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,27 +216,25 @@ export const STYLE_BOOK_IFRAME_STYLES = `
}
.edit-site-style-book__duotone-example > div:not(:first-child) {
height: 20px;
border: 1px solid #ddd;
border: 1px solid color-mix( in srgb, currentColor 10%, transparent );
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh I didn't know we were already using color-mix! That does make things easier.

}

.edit-site-style-book__color-example {
height: 52px;
border: 1px solid #ddd;
}

.edit-site-style-book__examples.is-wide .edit-site-style-book__example {
flex-direction: row;
height: 32px;
border: 1px solid color-mix( in srgb, currentColor 10%, transparent );
}

.edit-site-style-book__subcategory-title,
.edit-site-style-book__example-title {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 11px;
font-weight: 500;
font-size: 13px;
font-weight: normal;
line-height: normal;
margin: 0;
text-align: left;
text-transform: uppercase;
padding-top: 8px;
border-top: 1px solid color-mix( in srgb, currentColor 10%, transparent );
color: color-mix( in srgb, currentColor 60%, transparent );
}

.edit-site-style-book__subcategory-title {
Expand All @@ -246,18 +244,9 @@ export const STYLE_BOOK_IFRAME_STYLES = `
padding-bottom: 8px;
}

.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {
text-align: right;
width: 120px;
}

.edit-site-style-book__example-preview {
width: 100%;
}

.is-wide .edit-site-style-book__example-preview {
width: calc(100% - 120px);
}

.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,
.edit-site-style-book__example-preview .block-list-appender {
Expand Down
Loading