Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Pull back the design a little bit ;)
Revert to a more minimalist design for now.
  • Loading branch information
jasmussen authored and mkaz committed May 4, 2017
commit 75df7b6c6155af54501b886e009a452261cfb71f
4 changes: 2 additions & 2 deletions blocks/library/pullquote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ registerBlock( 'core/pullquote', {
return (
<blockquote className={ `blocks-pullquote blocks-pullquote-bg-${ bg } blocks-pullquote-style-${ style }` }>
<Editable
value={ value || 'Write Quote' }
value={ value || 'Write quote...' }
Copy link
Member

Choose a reason for hiding this comment

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

  1. Should be translated via wp.i18n.__
  2. Should use ellipsis character for semantic meaning over three dots ()

onChange={
( nextValue ) => setAttributes( {
value: nextValue
Expand All @@ -84,7 +84,7 @@ registerBlock( 'core/pullquote', {
{ ( citation || !! focus ) && (
<footer>
<Editable
value={ citation || 'Write Citation' }
value={ citation || 'Write citation...' }
onChange={
( nextCitation ) => setAttributes( {
citation: nextCitation
Expand Down
72 changes: 10 additions & 62 deletions blocks/library/pullquote/style.scss
Original file line number Diff line number Diff line change
@@ -1,75 +1,23 @@
$c1: #29A188;
$c2: #FCB740;
$c3: #F03D56;

.blocks-pullquote {

color: $white;
background-color: inherit;
box-shadow: none;

// replace with full-width, 700px = editor size, 160px = sidebar
width: calc(100vw - 160px);
margin-top: 0;
margin-bottom: 0;
margin-left: calc((700px - 100vw)/2 + 60px ); // not quite sure why 60px works
margin-right: calc((700px - 100vw)/2 );


padding: 4em 25%;
color: $light-gray-900;
padding: 2em;
text-align: center;

footer {
color: $black;
margin-left: 1.3em;
color: $dark-gray-900;
position: relative;

p {
font-size: 22px;
font-style: normal;
}

}
}

.blocks-pullquote-bg-1 {
background-color: $c1;
}

.blocks-pullquote-bg-2 {
background-color: $c2;
}

.blocks-pullquote-bg-3 {
background-color: $c3;
}

.editor-visual-editor .blocks-pullquote-style-1 {
& > .blocks-editable p {
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
font-size: 36px;
font-weight: 700;
line-height: 38px;
footer p {
font-size: 16px;
font-family: $default-font;
}
}

.editor-visual-editor .blocks-pullquote-style-2 {
.editor-visual-editor .blocks-pullquote-style-1 {
& > .blocks-editable p {
font-size: 36px;
font-style: italic;
line-height: 38px;
font-family: $default-font;
font-size: 48px;
font-weight: 900;
}
}

// color icon controls
.editor-toolbar__control.editor-button.color1 {
color: $c1;
}

.editor-toolbar__control.editor-button.color2 {
color: $c2;
}

.editor-toolbar__control.editor-button.color3 {
color: $c3;
}