Skip to content

Commit

Permalink
tweak gb overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
goranalkovic-infinum committed Jul 29, 2024
1 parent 4ee9863 commit cd57ba9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/wp/gutenberg-overrides.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/* Add rounded corners to make components look nicer and more uniform. */
.edit-post-header__toolbar .components-button,
.edit-post-header__settings .components-button,
.editor-document-tools__left .components-button,
.editor-header__center .components-button,
.editor-header__settings .components-button,
.edit-post-header__settings .components-button,
.edit-post-sidebar .components-button:not(.components-panel__body-toggle, .editor-post-last-revision__title),
.components-snackbar,
.components-toggle-group-control,
.editor-post-publish-panel .components-button,
.edit-post-text-editor__toolbar .components-button,
.edit-post-text-editor__body .components-textarea-control__input,
.media-modal-content,
.media-modal-content .components-button {
.media-modal-content .components-button,
.components-guide__container .components-button,
.components-notice__content .components-button,
.editor-post-featured-image__toggle.components-button {
@apply !es-uic-rounded-md;
}

Expand All @@ -27,7 +30,8 @@ button.components-toggle-group-control-option-base,
@apply first:!es-uic-rounded-l-md last:!es-uic-rounded-r-md;
}

.components-popover__content {
.components-popover__content,
.components-guide {
@apply !es-uic-rounded-lg;
}

Expand All @@ -48,6 +52,7 @@ button.components-toggle-group-control-option-base,

/* Increase sidebar width */
.edit-post-sidebar,
.interface-interface-skeleton__sidebar:not(:empty) > .interface-complementary-area__fill[style='width: 280px;'], /* WP6.6 is weird. */
.interface-complementary-area.editor-sidebar {
@apply !es-uic-w-80;
}
Expand Down Expand Up @@ -107,7 +112,11 @@ button.components-toggle-group-control-option-base,
}

/* Unify buttons in top toolbar */
.edit-post-header__toolbar {
.edit-post-header__toolbar,
.edit-post-header__settings,
.editor-document-tools__left,
.editor-header__center,
.editor-header__settings {
.components-button {
@apply !es-uic-min-h-9 !es-uic-min-w-9;
}
Expand Down

0 comments on commit cd57ba9

Please sign in to comment.