Skip to content

Commit

Permalink
Merge pull request #2068 from ampproject/amp-story/text-block_tip-sty…
Browse files Browse the repository at this point in the history
…ling

[AMP Stories] Add "Tip" block style for Text Block.
  • Loading branch information
swissspidy authored Apr 4, 2019
2 parents 8536754 + 12ad356 commit e35aa84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/css/amp-stories.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ amp-story-grid-layer[template="fill"] .wp-block-image { margin: 0; }
padding: 10px !important;
}

.is-style-rounded {
.is-style-rounded,
.is-style-rounded img {
border-radius: 5px;
}
.is-style-rounded img {
border-radius: 5px;

.is-style-half-rounded {
border-radius: 4px 4px 26px 26px;
}
5 changes: 5 additions & 0 deletions assets/src/amp-story-editor-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ domReady( () => {
label: __( 'Rounded', 'amp' ),
} );

registerBlockStyle( 'amp/amp-story-text', {
name: 'half-rounded',
label: __( 'Half Rounded', 'amp' ),
} );

registerBlockStyle( 'core/image', {
name: 'rounded',
label: __( 'Rounded', 'amp' ),
Expand Down

0 comments on commit e35aa84

Please sign in to comment.