Skip to content

Instantly share code, notes, and snippets.

@itsdavidmorgan
Last active February 18, 2025 06:21

Revisions

  1. itsdavidmorgan revised this gist May 21, 2019. 1 changed file with 140 additions and 65 deletions.
    205 changes: 140 additions & 65 deletions gutenberg.css
    Original file line number Diff line number Diff line change
    @@ -1,64 +1,64 @@
    /************************************************
    Gutenberg Editor
    Gutenberg Editor
    ************************************************/

    body.block-editor-page .edit-post-visual-editor .editor-post-title__block,
    body.block-editor-page .edit-post-visual-editor .editor-default-block-appender,
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block {
    .block-editor .wp-block {
    max-width: 760px;
    }
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="wide"] {
    .block-editor .wp-block[data-align="wide"] {
    max-width: 920px;
    }
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="full"] {
    .block-editor .wp-block[data-align="full"] {
    max-width: none;
    }

    /* Body */

    .mce-content-body,
    .editor-rich-text__tinymce {
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Roboto';
    .editor-rich-text,
    .editor-styles-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    }
    .edit-post-visual-editor h1.editor-rich-text__tinymce,
    .edit-post-visual-editor h2.editor-rich-text__tinymce,
    .edit-post-visual-editor h3.editor-rich-text__tinymce,
    .edit-post-visual-editor h4.editor-rich-text__tinymce,
    .edit-post-visual-editor h5.editor-rich-text__tinymce,
    .edit-post-visual-editor h6.editor-rich-text__tinymce,
    .block-editor .editor-styles-wrapper h1,
    .block-editor .editor-styles-wrapper h2,
    .block-editor .editor-styles-wrapper h3,
    .block-editor .editor-styles-wrapper h4,
    .block-editor .editor-styles-wrapper h5,
    .block-editor .editor-styles-wrapper h6,
    .editor-post-title__block .editor-post-title__input {
    color: #000000;
    font-family: 'Roboto';
    font-weight: 400;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.1;
    word-wrap: break-word;
    }
    .editor-post-title__block .editor-post-title__input {
    text-align: center;
    }
    .edit-post-visual-editor h1.editor-rich-text__tinymce,
    .block-editor .editor-styles-wrapper h1,
    .editor-post-title__block .editor-post-title__input {
    font-size: 3.6rem;
    font-size: 2.6rem;
    }
    .edit-post-visual-editor h2.editor-rich-text__tinymce {
    font-size: 3rem;
    .block-editor .editor-styles-wrapper h2 {
    font-size: 2.2rem;
    }
    .edit-post-visual-editor h3.editor-rich-text__tinymce {
    font-size: 2.4rem;
    .block-editor .editor-styles-wrapper h3 {
    font-size: 1.8rem;
    }
    .edit-post-visual-editor h4.editor-rich-text__tinymce {
    font-size: 2rem;
    .block-editor .editor-styles-wrapper h4 {
    font-size: 1.4em;
    }
    .edit-post-visual-editor h5.editor-rich-text__tinymce {
    font-size: 1.6rem;
    .block-editor .editor-styles-wrapper h5 {
    font-size: 1.2em;;
    }
    .edit-post-visual-editor h6.editor-rich-text__tinymce {
    font-size: 1.2rem;
    .block-editor .editor-styles-wrapper h6 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    }
    .edit-post-visual-editor .wp-block-code {
    .editor-styles-wrapper .wp-block-code code,
    .editor-styles-wrapper .wp-block-preformatted pre {
    color: #666666;
    font-family: Courier, sans-serif;
    line-height: 1.4;
    @@ -73,15 +73,15 @@ body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-a
    /* Blockquotes */

    blockquote.wp-block-quote {
    margin: 24px 0px;
    margin: 32px 0px;
    padding: 12px 18px;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    }
    blockquote.wp-block-quote:not(.is-large):not(.is-style-large) {
    padding-left: 18px;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    }
    blockquote.wp-block-quote .editor-rich-text__tinymce p {
    blockquote.wp-block-quote p {
    font-size: 130%;
    line-height: 1.5;
    }
    @@ -101,61 +101,117 @@ blockquote.wp-block-quote .wp-block-quote__citation::before {

    /* Tables */

    .edit-post-visual-editor table {
    table,
    table.wp-block-table {
    width: 100%;
    margin: 24px 0px;
    text-align: left;
    margin: 32px 0px;
    padding: 0px;
    border-collapse: collapse;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-spacing: 0;
    border-radius: 4px;
    }
    table p,
    table form,
    table ul,
    table li {
    margin: 6px 0px;
    padding: 0px;
    }
    .edit-post-visual-editor table thead,
    .edit-post-visual-editor table tfoot {
    table thead,
    table tfoot,
    table.wp-block-table thead,
    table.wp-block-table tfoot {
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    }
    .edit-post-visual-editor table thead th,
    .edit-post-visual-editor table tfoot td {
    border: none;
    table tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.04);
    }
    .edit-post-visual-editor table th {
    font-size: 1.2rem;
    table th,
    table.wp-block-table th {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin: 0px;
    padding: 12px;
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: none;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    }
    .edit-post-visual-editor table td {
    table td,
    table.wp-block-table td {
    padding: 12px;
    margin: 0px;
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: none;
    border-left: none;
    border-right: none;
    box-sizing: border-box;
    }
    .edit-post-visual-editor table .wp-block-table__cell-content {
    table.wp-block-table.is-style-stripes {
    border-collapse: collapse;
    }
    table.wp-block-table.is-style-stripes td {
    border-top: 1px solid #dddddd;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    }
    .wp-block-table__cell-content {
    padding: 0px;
    }
    .edit-post-visual-editor table.wp-block-table.is-style-stripes {
    border-collapse: collapse;

    /* Buttons */

    .editor-styles-wrapper .wp-block-button .wp-block-button__link {
    display: inline-block;
    background-color: #3399cc;
    color: #cccccc;
    color: rgba(255, 255, 255, .7);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.12);
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.24);
    -webkit-appearance: none;
    }
    .edit-post-visual-editor table.wp-block-table.is-style-stripes td {
    border: 1px solid #dddddd;
    .editor-styles-wrapper .wp-block-button .wp-block-button__link:hover {
    background-color: #006699;
    color: #ffffff;
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.12);
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 12px 24px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0px 3px 2px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    }

    /* Theme Styles */

    .wp-block-image {
    max-width: none;
    margin: 16px auto;
    margin: 0px auto;
    padding: 0px;
    }
    .wp-block-image figcaption {
    width: 100%;
    .wp-block-embed {
    margin-left: auto;
    margin-right: auto;
    }
    .wp-block-gallery .blocks-gallery-item {
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
    }
    .wp-block-gallery .blocks-gallery-image {
    @@ -166,20 +222,39 @@ blockquote.wp-block-quote .wp-block-quote__citation::before {
    .wp-block-gallery .blocks-gallery-item figcaption {
    box-sizing: border-box;
    }
    .wp-block-cover-image {
    margin: 16px auto;
    padding: 24px 0px;
    .wp-block-cover.alignfull,
    .wp-block-cover-image.alignfull {
    margin-top: 0px;
    margin-bottom: 0px;
    }
    .wp-block-cover-image.has-background-dim,
    .wp-block-cover-image.has-background-dim h2 {
    color: #ffffff;
    .wp-block-cover h2 {
    padding: 0px;
    }
    .wp-block-cover.alignfull .wp-block-cover__inner-container,
    .wp-block-cover.alignwide .wp-block-cover__inner-container {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 880px;
    margin: 0px auto;
    transition: all 1s ease-in-out;
    transition-delay: 0.5s;
    z-index: 7;
    }
    .wp-block-button {
    position: relative;
    text-align: center;
    box-sizing: border-box;
    margin: 0px;
    }
    .wp-block-button.alignwide a {
    display: block;
    position: relative;
    }
    .wp-block-audio {
    margin-left: 0px;
    margin-right: 0px;
    }
    .wp-block-audio audio {
    width: 100%;
    }
  2. itsdavidmorgan revised this gist Nov 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gutenberg.css
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    /************************************************
    Gutenberg Editor
    Gutenberg Editor
    ************************************************/

    body.block-editor-page .edit-post-visual-editor .editor-post-title__block,
  3. itsdavidmorgan created this gist Nov 19, 2018.
    185 changes: 185 additions & 0 deletions gutenberg.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,185 @@
    /************************************************
    Gutenberg Editor
    ************************************************/

    body.block-editor-page .edit-post-visual-editor .editor-post-title__block,
    body.block-editor-page .edit-post-visual-editor .editor-default-block-appender,
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block {
    max-width: 760px;
    }
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="wide"] {
    max-width: 920px;
    }
    body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="full"] {
    max-width: none;
    }

    /* Body */

    .mce-content-body,
    .editor-rich-text__tinymce {
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 1.65;
    }
    .edit-post-visual-editor h1.editor-rich-text__tinymce,
    .edit-post-visual-editor h2.editor-rich-text__tinymce,
    .edit-post-visual-editor h3.editor-rich-text__tinymce,
    .edit-post-visual-editor h4.editor-rich-text__tinymce,
    .edit-post-visual-editor h5.editor-rich-text__tinymce,
    .edit-post-visual-editor h6.editor-rich-text__tinymce,
    .editor-post-title__block .editor-post-title__input {
    color: #000000;
    font-family: 'Roboto';
    font-weight: 400;
    line-height: 1.1;
    word-wrap: break-word;
    }
    .editor-post-title__block .editor-post-title__input {
    text-align: center;
    }
    .edit-post-visual-editor h1.editor-rich-text__tinymce,
    .editor-post-title__block .editor-post-title__input {
    font-size: 3.6rem;
    }
    .edit-post-visual-editor h2.editor-rich-text__tinymce {
    font-size: 3rem;
    }
    .edit-post-visual-editor h3.editor-rich-text__tinymce {
    font-size: 2.4rem;
    }
    .edit-post-visual-editor h4.editor-rich-text__tinymce {
    font-size: 2rem;
    }
    .edit-post-visual-editor h5.editor-rich-text__tinymce {
    font-size: 1.6rem;
    }
    .edit-post-visual-editor h6.editor-rich-text__tinymce {
    font-size: 1.2rem;
    }
    .edit-post-visual-editor .wp-block-code {
    color: #666666;
    font-family: Courier, sans-serif;
    line-height: 1.4;
    margin: 24px 0px;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.24);
    box-shadow: inset 0px 0px 6px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    border-radius: 3px;
    }

    /* Blockquotes */

    blockquote.wp-block-quote {
    margin: 24px 0px;
    padding: 12px 18px;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    }
    blockquote.wp-block-quote:not(.is-large):not(.is-style-large) {
    padding-left: 18px;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    }
    blockquote.wp-block-quote .editor-rich-text__tinymce p {
    font-size: 130%;
    line-height: 1.5;
    }
    blockquote.wp-block-quote cite,
    blockquote.wp-block-quote footer,
    blockquote.wp-block-quote .wp-block-quote__citation {
    display: block;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    margin-top: 12px;
    }
    blockquote.wp-block-quote cite::before,
    blockquote.wp-block-quote footer::before,
    blockquote.wp-block-quote .wp-block-quote__citation::before {
    content: '— '
    }

    /* Tables */

    .edit-post-visual-editor table {
    width: 100%;
    margin: 24px 0px;
    padding: 0px;
    border-collapse: collapse;
    border-spacing: 0;
    }
    .edit-post-visual-editor table thead,
    .edit-post-visual-editor table tfoot {
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    }
    .edit-post-visual-editor table thead th,
    .edit-post-visual-editor table tfoot td {
    border: none;
    }
    .edit-post-visual-editor table th {
    font-size: 1.2rem;
    margin: 0px;
    padding: 12px;
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    }
    .edit-post-visual-editor table td {
    padding: 12px;
    margin: 0px;
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    }
    .edit-post-visual-editor table .wp-block-table__cell-content {
    padding: 0px;
    }
    .edit-post-visual-editor table.wp-block-table.is-style-stripes {
    border-collapse: collapse;
    }
    .edit-post-visual-editor table.wp-block-table.is-style-stripes td {
    border: 1px solid #dddddd;
    border: 1px solid rgba(0, 0, 0, 0.12);
    }

    /* Theme Styles */

    .wp-block-image {
    max-width: none;
    margin: 16px auto;
    padding: 0px;
    }
    .wp-block-image figcaption {
    width: 100%;
    }
    .wp-block-gallery .blocks-gallery-item {
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
    }
    .wp-block-gallery .blocks-gallery-image {
    margin-left: 0px;
    margin-right: 0px;
    }
    .wp-block-gallery .blocks-gallery-image figcaption,
    .wp-block-gallery .blocks-gallery-item figcaption {
    box-sizing: border-box;
    }
    .wp-block-cover-image {
    margin: 16px auto;
    padding: 24px 0px;
    }
    .wp-block-cover-image.has-background-dim,
    .wp-block-cover-image.has-background-dim h2 {
    color: #ffffff;
    }
    .wp-block-button {
    position: relative;
    text-align: center;
    box-sizing: border-box;
    }
    .wp-block-button.alignwide a {
    display: block;
    position: relative;
    }