Skip to content

Commit

Permalink
Fix media card and collection click area and card font size
Browse files Browse the repository at this point in the history
  • Loading branch information
razwan committed Jul 20, 2020
1 parent 7f0277e commit fe00ffa
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/css/editor-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/frontend-rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/frontend.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17812,7 +17812,7 @@ function addEmphasisLevelAttribute(block) {
},
contentStyle: {
type: 'string',
default: 'basic'
default: block.name === 'novablocks/media' ? 'moderate' : 'basic'
},
emphasisByContrast: {
number: 'number',
Expand Down
2 changes: 1 addition & 1 deletion dist/js/editor.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/editor.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/blocks/media/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
.novablocks-media__layout {
margin-top: calc( -1 * var(--novablocks-media-gutter) );
margin-left: calc( -1 * var(--novablocks-media-gutter) );
pointer-events: none;

> * {
padding-left: var(--novablocks-media-gutter);
margin-top: var(--novablocks-media-gutter);
pointer-events: auto;
}

@include above(tablet) {
Expand Down
2 changes: 2 additions & 0 deletions src/components/collection/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
align-items: stretch;
margin-top: calc(-1 * var(--novablocks-spacing));
margin-left: calc(-0.5 * var(--novablocks-spacing));
pointer-events: none;

> * {
--columns-below-tablet: 1;
Expand All @@ -16,6 +17,7 @@
flex: 0 1 var(--width);
margin-top: var(--novablocks-spacing);
margin-left: calc(0.5 * var(--novablocks-spacing));
pointer-events: auto;

@include below(lap) {
--columns: var(--columns-below-lap) !important;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/with-emphasis-level/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function addEmphasisLevelAttribute( block ) {
},
contentStyle: {
type: 'string',
default: 'basic',
default: block.name === 'novablocks/media' ? 'moderate' : 'basic',
},
emphasisByContrast: {
number: 'number',
Expand Down

0 comments on commit fe00ffa

Please sign in to comment.