Skip to content

Commit

Permalink
update gutenberg styles & grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Apr 2, 2019
1 parent a2f2b67 commit e033a55
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 43 deletions.
6 changes: 5 additions & 1 deletion assets/css/blocks/block-library/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,12 @@
border-radius: $radius-round;

&:checked::before {
margin: 3px 0 0 3px;
margin: 6px 0 0 6px;
background-color: $white;

@include break-medium() {
margin: 3px 0 0 3px;
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion assets/css/blocks/block-library/_z-index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ $z-layers: (
".nux-dot-tip": 1000001,

// Show tooltips above NUX tips, wp-admin menus, submenus, and sidebar:
".components-tooltip": 1000002
".components-tooltip": 1000002,

// Make sure corner handles are above side handles for ResizableBox component
".components-resizable-box__side-handle": 1,
".components-resizable-box__corner-handle": 2
);

@function z-index( $key ) {
Expand Down
9 changes: 1 addition & 8 deletions assets/css/blocks/block-library/columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}

.wp-block-column {
margin-bottom: 1em;
flex-grow: 1;

// Responsiveness: Show at most one columns on mobile.
Expand Down Expand Up @@ -44,14 +45,6 @@
}
}

// Specificity overide to ensure margin is applied
// and preserved on last child to ensure that when columns
// are aligned to bottom they are are flush with each other
.wp-block-column,
.entry-content > .wp-block-columns .wp-block-column:last-child {
margin-bottom: 1em;
}

/**
* All Columns Alignment
*/
Expand Down
8 changes: 0 additions & 8 deletions assets/css/blocks/block-library/gallery/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@
margin-right: 0;
}

// Make the "Add new Gallery item" button full-width (so it always appears
// below other items).
.blocks-gallery-item {
&.has-add-item-button {
width: 100%;
}
}

// Apply max-width to floated items that have no intrinsic width.
&.alignleft,
&.alignright {
Expand Down
4 changes: 2 additions & 2 deletions assets/css/blocks/block-library/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This folder contains styles for editor blocks.
These styles were copied from the Gutenberg project, and then tweaked to remove duplicates and optimize them for use in the Gridd theme.

Blocks styles copied from https://github.com/WordPress/gutenberg/tree/8260725431021238aa9ab50d6dbd821384dd6c51/packages/block-library/src
Variables, mixins etc copied from https://github.com/WordPress/gutenberg/tree/8260725431021238aa9ab50d6dbd821384dd6c51/assets/stylesheets
Blocks styles copied from https://github.com/WordPress/gutenberg/tree/a64a98d6ce5fc94edf6770e336a17314bff80dab/packages/block-library/src
Variables, mixins etc copied from https://github.com/WordPress/gutenberg/tree/a64a98d6ce5fc94edf6770e336a17314bff80dab/assets/stylesheets
1 change: 1 addition & 0 deletions assets/css/blocks/block-library/rss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

.wp-block-rss__item-publish-date,
.wp-block-rss__item-author {
display: block;
color: $dark-gray-300;
font-size: $default-font-size;
}
5 changes: 1 addition & 4 deletions assets/css/blocks/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
flex-wrap: nowrap; } }

.wp-block-column {
margin-bottom: 1em;
flex-grow: 1;
flex-basis: 100%;
min-width: 0;
Expand All @@ -92,10 +93,6 @@
.wp-block-column:not(:first-child) {
margin-left: 32px; } }

.wp-block-column,
.entry-content > .wp-block-columns .wp-block-column:last-child {
margin-bottom: 1em; }

/**
* All Columns Alignment
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/css/blocks/columns.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions assets/css/blocks/gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@
.wp-block-gallery .blocks-gallery-image:last-child,
.wp-block-gallery .blocks-gallery-item:last-child {
margin-right: 0; }
.wp-block-gallery .blocks-gallery-item.has-add-item-button {
width: 100%; }
.wp-block-gallery.alignleft, .wp-block-gallery.alignright {
max-width: 305px;
width: 100%; }
Expand Down
2 changes: 1 addition & 1 deletion assets/css/blocks/gallery.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/css/blocks/rss.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@

.wp-block-rss__item-publish-date,
.wp-block-rss__item-author {
display: block;
color: #6c7781;
font-size: 1em; }

Expand Down
2 changes: 1 addition & 1 deletion assets/css/blocks/rss.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e033a55

Please sign in to comment.