themes-wordpress/sketch/css/editor-blocks.css

579 lines
14 KiB
CSS

/*
Theme Name: Sketch
Description: Used to style Gutenberg Blocks in the editor.
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General Typography
2.0 General Block Settings
3.0 Blocks - Common Blocks
4.0 Blocks - Formatting
5.0 Blocks - Layout Elements
6.0 Blocks - Widgets
--------------------------------------------------------------*/
/*--------------------------------------------------------------
1.0 General Typography
--------------------------------------------------------------*/
.edit-post-visual-editor .editor-block-list__block,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-family: Lato, Helvetica, Arial, sans-serif;
}
/* Font size */
.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .editor-block-list__block p,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-size: 16px;
font-weight: 300;
}
@media (min-width: 50em) {
.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .editor-block-list__block p,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-size: 20px;
}
}
/* Color */
.edit-post-visual-editor .editor-block-list__block {
color: #333333;
}
/* Post title */
.editor-post-title__block .editor-post-title__input {
color: #333333;
font-family: Lato, Helvetica, Arial, sans-serif;
font-size: 28px;
font-weight: normal;
letter-spacing: 1px;
}
/* Headings */
.edit-post-visual-editor h1,
.wp-block-freeform.block-library-rich-text__tinymce h1,
.edit-post-visual-editor h2,
.wp-block-freeform.block-library-rich-text__tinymce h2,
.edit-post-visual-editor h3,
.wp-block-freeform.block-library-rich-text__tinymce h3,
.edit-post-visual-editor h4,
.wp-block-freeform.block-library-rich-text__tinymce h4,
.edit-post-visual-editor h5,
.wp-block-freeform.block-library-rich-text__tinymce h5,
.edit-post-visual-editor h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-weight: 400;
letter-spacing: 1px;
text-transform: uppercase;
}
.edit-post-visual-editor h1,
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 28px;
}
.edit-post-visual-editor h2,
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 20px;
}
.edit-post-visual-editor h3,
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 20px;
}
.edit-post-visual-editor h4,
.wp-block-freeform.block-library-rich-text__tinymce h4 {
font-size: 16px;
}
.edit-post-visual-editor h5,
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 16px;
}
.edit-post-visual-editor h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 13px;
}
@media (min-width: 50em) {
.edit-post-visual-editor h1,
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 36px;
}
.edit-post-visual-editor h2,
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 28px;
}
.edit-post-visual-editor h3,
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 20px;
}
.edit-post-visual-editor h4,
.wp-block-freeform.block-library-rich-text__tinymce h4,
.edit-post-visual-editor h5,
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 16px;
}
.edit-post-visual-editor h6,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 13px;
}
}
/*--------------------------------------------------------------
2.0 General Block Settings
--------------------------------------------------------------*/
/* Main content width */
.wp-block {
max-width: 795px; /* 765px + 30px to account for padding */
}
/* Link styles */
.edit-post-visual-editor a,
.editor-block-list__block a,
.wp-block-freeform.block-library-rich-text__tinymce a {
color: #f68060;
text-decoration: none;
}
/* Table styles */
.wp-block-freeform.block-library-rich-text__tinymce table {
border-collapse: collapse;
border: 0;
}
.wp-block-freeform.block-library-rich-text__tinymce table th,
.wp-block-freeform.block-library-rich-text__tinymce table td {
border: 0;
border-bottom: 1px solid #eee;
font-weight: 400;
padding: 7px 3px 6px;
}
.wp-block-freeform.block-library-rich-text__tinymce table th {
border-bottom-width: 3px;
font-weight: bold;
letter-spacing: 2px;
padding-bottom: 4px;
text-align: left;
text-transform: uppercase;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce table th {
text-align: right;
}
/* Quote styles */
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
border-left: 3px solid #eee;
color: #999;
font-style: italic;
line-height: 1.5;
padding-left: 24px;
}
.wp-block-freeform.block-library-rich-text__tinymce cite {
color: #999;
font-style: italic;
text-align: right;
}
.edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
font-size: 20px;
}
@media (min-width: 50em) {
.edit-post-visual-editor .editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote p {
font-size: 25px;
}
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce cite {
text-align: left;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
border-left: 0;
border-right: 3px solid #eee;
padding-left: 0;
padding-right: 24px;
}
/* List styles */
.wp-block-freeform.block-library-rich-text__tinymce li,
.editor-styles-wrapper li {
margin-bottom: 0;
}
/* Caption styles */
[class^="wp-block-"] figcaption {
font-size: 16.25px;
}
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
color: #333333;
margin-top: 0;
text-align: left;
}
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
text-align: right;
}
/* Definition List styles */
.wp-block-freeform.block-library-rich-text__tinymce dt {
font-weight: 400;
}
/* Pre styles */
.wp-block-freeform.block-library-rich-text__tinymce pre {
background: rgba(0, 0, 0, 0.03);
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 0.8em;
line-height: 2.09231em;
padding: 27px;
}
/* Code, etc styles */
.wp-block-freeform.block-library-rich-text__tinymce code,
.wp-block-freeform.block-library-rich-text__tinymce kbd,
.wp-block-freeform.block-library-rich-text__tinymce tt,
.wp-block-freeform.block-library-rich-text__tinymce var {
background: transparent;
}
/* Mark & Ins styles */
.wp-block-freeform.block-library-rich-text__tinymce mark,
.wp-block-freeform.block-library-rich-text__tinymce ins {
background: #fff9c0;
padding: 0 0.25em;
text-decoration: none;
}
/*--------------------------------------------------------------
3.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
p.has-drop-cap:not(:focus)::first-letter {
font-size: 5em;
margin-top: 0.15em;
}
/* Gallery */
.wp-block-gallery {
margin: 0 0 27px;
}
/* Quote */
.wp-block-quote:not(.is-large):not(.is-style-large),
.wp-block-quote.is-large,
.wp-block-quote.is-style-large,
.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"],
.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"],
.rtl .wp-block-quote.is-large[style*="text-align:left"],
.rtl .wp-block-quote.is-large[style*="text-align: left"],
.rtl .wp-block-quote.is-style-large[style*="text-align:left"],
.rtl .wp-block-quote.is-style-large[style*="text-align: left"] {
border-left: 3px solid #eee;
border-right: 0;
line-height: 1.5;
padding-left: 24px;
padding-right: 0;
}
.wp-block-quote p,
.wp-block-quote .wp-block-quote__citation {
color: #999;
font-style: italic;
}
.wp-block-quote .wp-block-quote__citation {
text-align: right;
}
.wp-block-quote:not(.is-large):not(.is-style-large) p,
.wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
font-size: 20px;
}
.editor-styles-wrapper .wp-block-quote.is-large p,
.editor-styles-wrapper .wp-block-quote.is-style-large p {
font-size: 26px;
}
.wp-block-quote.is-large .wp-block-quote__citation,
.wp-block-quote.is-style-large .wp-block-quote__citation {
font-size: 22px;
}
@media (min-width: 50em) {
.wp-block-quote:not(.is-large):not(.is-style-large) p,
.wp-block-quote:not(.is-large):not(.is-style-large) .wp-block-quote__citation {
font-size: 25px;
}
.editor-styles-wrapper .wp-block-quote.is-large p,
.editor-styles-wrapper .wp-block-quote.is-style-large p {
font-size: 32px;
}
.wp-block-quote.is-large .wp-block-quote__citation,
.wp-block-quote.is-style-large .wp-block-quote__citation {
font-size: 26px;
}
}
.rtl .wp-block-quote:not(.is-large):not(.is-style-large),
.rtl .wp-block-quote.is-large,
.rtl .wp-block-quote.is-style-large,
.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"],
.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"],
.wp-block-quote.is-large[style*="text-align:right"],
.wp-block-quote.is-large[style*="text-align: right"],
.wp-block-quote.is-style-large[style*="text-align:right"],
.wp-block-quote.is-style-large[style*="text-align: right"] {
border-left: 0;
border-right: 3px solid #eee;
padding-left: 0;
padding-right: 24px;
}
.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:center"],
.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: center"],
.wp-block-quote.is-large[style*="text-align:center"],
.wp-block-quote.is-large[style*="text-align: center"],
.wp-block-quote.is-style-large[style*="text-align:center"],
.wp-block-quote.is-style-large[style*="text-align: center"] {
border: 0;
padding-left: 0;
padding-right: 0;
}
.rtl .wp-block-quote .wp-block-quote__citation {
text-align: left;
}
/* Cover */
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
font-size: 1.5em;
}
/* File */
.wp-block-file__textlink {
color: #f68060;
}
.wp-block-file .wp-block-file__button {
background: transparent;
border: 3px solid #eeeeee;
border-radius: 3px;
color: #999999;
font-family: Lato, Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: 400;
letter-spacing: 2px;
padding: 10px 14px;
text-transform: uppercase;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out
transition: all 0.3s ease-in-out;
}
/*--------------------------------------------------------------
4.0 Blocks - Formatting
--------------------------------------------------------------*/
/* Verse */
.wp-block-verse pre {
font-style: italic;
}
/* Code */
.wp-block-code {
background: rgba(0, 0, 0, 0.03);
border: 0;
border-radius: 0;
padding: 27px;
}
.wp-block-code .editor-plain-text {
background: transparent;
}
/* Preformatted */
.wp-block-preformatted {
background: rgba(0, 0, 0, 0.03);
border: 0;
font-family: "Courier 10 Pitch", Courier, monospace;
border-radius: 0;
padding: 27px;
}
/* Pullquote */
.wp-block-pullquote {
border-top: 3px solid #eee;
border-bottom: 2px solid #eee;
}
.wp-block-pullquote blockquote,
.wp-block-pullquote__citation {
border: 0;
color: #999;
font-style: italic;
padding-left: 0;
padding-right: 0;
text-align: center;
text-transform: none;
}
.wp-block-pullquote__citation {
font-size: inherit;
}
/* Table */
.wp-block-table {
border: 0;
}
.wp-block-table th,
.wp-block-table td {
border: 0;
border-bottom: 1px solid #eee;
font-weight: 400;
padding: 7px 3px 6px;
}
.wp-block-table th {
border-bottom-width: 3px;
font-weight: bold;
letter-spacing: 2px;
padding-bottom: 4px;
text-align: left;
text-transform: uppercase;
}
.wp-block-table__cell-content {
padding: 0;
}
.rtl .wp-block-table th {
text-align: right;
}
/*--------------------------------------------------------------
5.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
font-family: Lato, Helvetica, Arial, sans-serif;
font-size: 16px;
font-weight: 400;
letter-spacing: 2px;
line-height: 24px;
padding: 14px 20px;
text-transform: uppercase;
}
.wp-block-button__link {
background-color: #999999;
color: #fff;
}
.is-style-outline .wp-block-button__link:not(.has-text-color) {
color: #999;
}
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
line-height: 24px;
}
/* Separator */
.wp-block-separator {
border-color: #eee;
border-width: 1px;
}
/*--------------------------------------------------------------
6.0 Blocks - Widgets
--------------------------------------------------------------*/
/* General Widget styles */
.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
.edit-post-visual-editor [data-align="center"] .wp-block-archives,
.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
list-style-position: inside;
}
/* Latest Comments */
.wp-block-latest-comments {
margin-left: 0;
margin-right: 0;
}
.wp-block-latest-comments__comment-date {
color: #999;
font-size: 13px;
text-transform: uppercase;
}
.wp-block-latest-comments__comment {
font-size: 80%;
}
.wp-block-latest-comments__comment-excerpt p {
font-size: inherit;
}
.wp-block-latest-comments__comment-meta {
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
}