themes-wordpress/scratchpad/editor-blocks.css
2020-03-26 20:43:23 +07:00

918 lines
20 KiB
CSS

/*
* Theme Name: Scratchpad
* Description: Gutenberg Block Editor Styles
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General Typography
2.0 General Block Styles
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,
.edit-post-visual-editor .editor-block-list__block p,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-family: "Lato", "Helvetica Neue", helvetica, arial, sans-serif;
font-size: 18px;
line-height: 1.8;
}
.edit-post-visual-editor .editor-block-list__block {
color: #777;
}
.alignleft,
.editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
display: inline;
float: left;
margin: 0 1.5em .75em 0;
}
.alignright,
.editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit {
display: inline;
float: right;
margin: 0 0 .75em 1.5em;
}
.aligncenter,
.editor-block-list__layout .editor-block-list__block[data-align=center] .editor-block-list__block-edit {
margin-left: auto;
margin-right: auto;
}
.wp-block-columns.alignfull,
.wp-block-latest-comments.alignfull,
.editor-block-list__layout .editor-block-list__block[data-align=full] {
padding-left: 60px;
padding-right: 60px;
}
/* Title */
.editor-post-title__block .editor-post-title__input {
font-family: "Lato", "Helvetica Neue", helvetica, arial, sans-serif;
color: #777;
margin-top: 0;
padding-top: 0;
font-size: 32px;
}
@media only screen and (max-width: 800px) {
.editor-post-title__block .editor-post-title__input {
font-size: 28px;
}
}
/* Headings */
.edit-post-visual-editor h1,
.edit-post-visual-editor h2,
.edit-post-visual-editor h3,
.edit-post-visual-editor h4,
.edit-post-visual-editor h5,
.edit-post-visual-editor h6 {
clear: both;
margin-top: 0;
padding-top: 0;
}
.edit-post-visual-editor h1 {
font-size: 32px;
}
.edit-post-visual-editor h2 {
font-size: 28px;
}
.edit-post-visual-editor h3 {
font-size: 24px;
}
.edit-post-visual-editor h4 {
font-size: 20px;
}
.edit-post-visual-editor h5 {
font-size: 16px;
text-transform: uppercase;
}
.edit-post-visual-editor h6 {
font-size: 14px;
text-transform: uppercase;
}
@media only screen and (max-width: 800px) {
.edit-post-visual-editor h1 {
font-size: 28px;
}
.edit-post-visual-editor h2 {
font-size: 24px;
}
.edit-post-visual-editor h3 {
font-size: 20px;
}
.edit-post-visual-editor h4 {
font-size: 18px;
}
.edit-post-visual-editor h5 {
font-size: 16px;
}
.edit-post-visual-editor h6 {
font-size: 14px;
}
}
/*--------------------------------------------------------------
2.0 General Block Styles
--------------------------------------------------------------*/
/* Main column width */
.wp-block {
max-width: 690px; /* 660px + 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: #537375;
}
.edit-post-visual-editor a:hover,
.edit-post-visual-editor a:focus,
.edit-post-visual-editor a:active,
.editor-block-list__block a:hover,
.editor-block-list__block a:focus,
.editor-block-list__block a:active,
.wp-block-freeform.block-library-rich-text__tinymce a:hover,
.wp-block-freeform.block-library-rich-text__tinymce a:focus,
.wp-block-freeform.block-library-rich-text__tinymce a:active {
color: #537375;
text-decoration: none;
}
/* List styles */
.block-library-list .editor-rich-text__tinymce {
margin: 0;
padding: 0;
}
.edit-post-visual-editor ul:not(.wp-block-gallery),
.editor-block-list__block ul:not(.wp-block-gallery),
.block-library-list ul {
list-style: disc;
}
.edit-post-visual-editor ol,
.editor-block-list__block ol,
.block-library-list ol.editor-rich-text__tinymce {
list-style: decimal;
}
.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
.block-library-list li > ul,
.edit-post-visual-editor li > ol,
.editor-block-list__block li > ol,
.block-library-list li > ol {
margin-bottom: 0;
margin-left: 2em;
}
.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
.rtl .block-library-list ul,
.rtl .edit-post-visual-editor ol,
.rtl .editor-block-list__block ol,
.rtl .block-library-list ol.editor-rich-text__tinymce {
margin-left: 0;
margin-right: 2em;
padding: 0;
}
/* Captions */
[class^="wp-block-"] figcaption,
.wp-caption-dd {
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 15px;
line-height: 1.5;
margin-left: 0;
margin-right: 0;
text-align: center;
}
[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
.wp-caption-dd {
border-bottom: 1px solid #ddd;
color: #b9b9b9;
padding-bottom: 0.5em;
}
/* Definition List styles */
.wp-block-freeform.block-library-rich-text__tinymce dt {
font-weight: bold;
}
.wp-block-freeform.block-library-rich-text__tinymce dd {
margin-bottom: 1em;
}
/* Code 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;
color: #777;
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 15px;
}
/* Mark, Ins styles */
.wp-block-freeform.block-library-rich-text__tinymce mark,
.wp-block-freeform.block-library-rich-text__tinymce ins {
background: #fff9c0;
}
/*--------------------------------------------------------------
3.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
font-size: 5em;
margin-top: 0.16em;
}
.edit-post-visual-editor p {
margin: 0 0 1.5em;
}
.edit-post-visual-editor blockquote p {
margin: 0 0 1.5em;
}
/* Images */
.wp-block-image figcaption {
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 15px;
line-height: 1.5;
}
/* Quote */
.wp-block-quote:before {
background: url("images/icon-sprites.svg") 0 -408px no-repeat;
background-size: 100%;
content: "";
display: block;
height: 39px;
opacity: 0.2;
position: absolute;
top: 0;
width: 50px;
}
.wp-block-quote:before,
.rtl .wp-block-quote[style*="text-align:left"]:before,
.rtl .wp-block-quote[style*="text-align: left"]:before {
left: 0;
right: auto;
}
.wp-block-quote:not(.is-large):not(.is-style-large),
.wp-block-quote {
border: 0;
color: #aaa;
font-size: 22px;
font-style: italic;
margin: 0;
padding-left: 70px;
position: relative;
}
.rtl .wp-block-quote:before,
.wp-block-quote[style*="text-align:right"]:before,
.wp-block-quote[style*="text-align: right"]:before {
left: auto;
right: 0;
}
@media only screen and (max-width: 800px) {
.editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
.editor-block-list__block .wp-block-quote {
font-size: 17px;
}
}
.rtl .wp-block-quote:not(.is-large):not(.is-style-large),
.rtl .wp-block-quote,
.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[style*="text-align:right"],
.wp-block-quote[style*="text-align: right"] {
border: 0;
margin: 0;
padding-left: 0;
padding-right: 70px;
}
.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[style*="text-align:left"],
.rtl .wp-block-quote[style*="text-align: left"] {
padding-left: 70px;
padding-right: 0;
}
.edit-post-visual-editor .editor-block-list__block blockquote p {
color: #aaa;
font-size: 22px;
}
.editor-block-list__block .wp-block-quote__citation {
color: inherit;
display: block;
font-size: 18px;
font-style: italic;
padding: 8px 0 0;
}
.editor-block-list__block .wp-block-quote em,
.editor-block-list__block .wp-block-quote i {
font-style: normal;
}
.editor-block-list__block .wp-block-quote > :last-child {
margin-bottom: 0;
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
font-size: 32px;
font-style: italic;
}
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
font-size: 32px;
}
@media only screen and (max-width: 800px) {
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
font-size: 28px;
}
}
.editor-block-list__block .wp-block-quote.is-large p,
.editor-block-list__block .wp-block-quote.is-style-large p {
margin-bottom: 1.5em;
font-style: normal;
}
/* Cover */
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.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 p.wp-block-cover-image-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover p.wp-block-cover-text,
.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 2.0em;
}
/* File */
.wp-block-file {
margin: 0 0 1.5em;
}
.wp-block-file .wp-block-file__button {
background: transparent;
border: 2px solid rgba(119, 119, 119, 0.5);
border-radius: 255px 15px 225px 15px/15px 225px 15px;
color: rgba(119, 119, 119, 0.8);
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 14px;
letter-spacing: 0.05em;
outline: none;
padding: 10px 20px;
text-shadow: none;
text-transform: uppercase;
-webkit-transition: color 0.2s, border-color 0.2s;
-moz-transition: color 0.2s, border-color 0.2s;
transition: color 0.2s, border-color 0.2s;
}
.rtl .wp-block-file .wp-block-file__button {
margin-left: 10px;
margin-right: 0;
}
/*--------------------------------------------------------------
4.0 Blocks - Formatting
--------------------------------------------------------------*/
/* Verse */
.wp-block-verse pre {
background: transparent;
color: inherit;
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: inherit;
line-height: inherit;
margin-bottom: 1.5em;
max-width: 100%;
overflow: auto;
padding: 0;
}
/* Code */
.wp-block-code {
color: #777;
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
font-size: 0.9375rem;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
.wp-block-code .editor-plain-text {
background: #eee;
}
/* Classic */
.wp-block-freeform.block-library-rich-text__tinymce {
overflow: visible;
}
.wp-block-freeform.block-library-rich-text__tinymce address {
margin-bottom: 1.5em;
}
.wp-block-freeform.block-library-rich-text__tinymce ol {
list-style: decimal;
margin-left: 3em;
padding: 0;
}
.wp-block-freeform.block-library-rich-text__tinymce li > ol {
margin-left: 3em;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
background: url("images/icon-sprites.svg") 0 -408px no-repeat;
background-size: 100%;
content: "";
display: block;
height: 39px;
left: 0;
opacity: 0.2;
position: absolute;
top: 0;
width: 50px;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
left: auto;
right: 0;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
border: 0;
color: #aaa;
font-size: 22px;
font-style: italic;
margin: 0;
padding-left: 70px;
position: relative;
}
@media only screen and (max-width: 800px) {
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
font-size: 17px;
}
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
margin-bottom: 0;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
font-style: italic;
font-size: 18px;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
border: 0;
padding-left: 0;
padding-right: 70px;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
float: left;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
float: right;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
margin: .75em 1.5em .75em 0;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
margin: .75em 0 .75em 1.5em;
}
.wp-block-freeform.block-library-rich-text__tinymce h1,
.wp-block-freeform.block-library-rich-text__tinymce h2,
.wp-block-freeform.block-library-rich-text__tinymce h3,
.wp-block-freeform.block-library-rich-text__tinymce h4,
.wp-block-freeform.block-library-rich-text__tinymce h5,
.wp-block-freeform.block-library-rich-text__tinymce h6 {
clear: both;
margin-top: 0;
padding-top: 0;
color: #777;
}
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 32px;
}
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 28px;
}
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 24px;
}
.wp-block-freeform.block-library-rich-text__tinymce h4 {
font-size: 20px;
}
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 16px;
text-transform: uppercase;
}
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 14px;
text-transform: uppercase;
}
@media only screen and (max-width: 800px) {
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 28px;
}
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 24px;
}
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 20px;
}
.wp-block-freeform.block-library-rich-text__tinymce h4 {
font-size: 18px;
}
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 16px;
}
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 14px;
}
}
.wp-block-freeform.block-library-rich-text__tinymce pre {
color: #777;
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
.wp-block-freeform.block-library-rich-text__tinymce table {
border: 0;
border-collapse: collapse;
border-top: 1px solid #ddd;
color: #777;
margin: 0 0 1.5em;
width: 100%;
}
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
background: transparent;
}
.wp-block-freeform.block-library-rich-text__tinymce table td,
.wp-block-freeform.block-library-rich-text__tinymce table th {
border: 0;
border-bottom: 1px solid #ddd;
font-size: 90%;
padding: 0.5em;
text-align: left;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce table td,
.rtl .wp-block-freeform.block-library-rich-text__tinymce table th {
text-align: right;
}
/* Preformatted */
.editor-block-list__block .wp-block-preformatted pre {
color: #777;
background: #eee;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
}
/* Pullquote */
.editor-block-list__block .wp-block-pullquote blockquote {
margin: 0;
padding: 0;
border: 0;
}
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote blockquote p {
font-size: 28px;
}
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignleft blockquote p,
.edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignright blockquote p {
font-size: 22px;
}
.wp-block-pullquote blockquote:before {
display: none;
}
.wp-block-pullquote {
border-left: 0;
border-bottom: 2px solid #bdcbcc;
border-top: 5px solid #bdcbcc;
font-size: 28px;
font-style: italic;
line-height: 1.6;
margin: 0 0 1.5em;
padding: 1.5em;
color: #aaa;
}
.wp-block-pullquote blockquote {
font-size: 28px;
}
.wp-block-pullquote.alignfull blockquote {
padding-left: 1.5em;
padding-right: 1.5em;
}
.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
font-size: 22px;
}
.wp-block-pullquote.alignleft cite,
.wp-block-pullquote.alignright cite {
font-size: 18px;
}
.wp-block-pullquote.alignleft blockquote,
.wp-block-pullquote.alignright blockquote {
border: 0;
padding: 0;
margin: 0;
}
.wp-block-pullquote.alignleft {
font-size: 18px;
margin-right: 1.5em;
}
.wp-block-pullquote.alignright {
font-size: 18px;
margin-left: 1.5em;
}
.wp-block-pullquote blockquote > .editor-rich-text p {
margin-bottom: .75em;
}
.wp-block-pullquote__citation,
.wp-block-pullquote cite,
.wp-block-pullquote footer {
color: inherit;
font-size: 18px;
font-style: italic;
font-weight: normal;
text-transform: none;
}
/* Table */
.editor-block-list__block .wp-block-table__cell-content {
padding: 0;
}
.editor-block-list__block table.wp-block-table {
border-top: 1px solid #ddd;
margin: 0 0 1.5em;
width: 100%;
}
.editor-block-list__block table.wp-block-table td {
border: 0;
border-bottom: 1px solid #ddd;
font-size: 90%;
padding: 0.5em;
text-align: left;
}
.editor-block-list__block table.wp-block-table th {
border: 0;
border-bottom: 1px solid #ddd;
font-size: 90%;
padding: 0.5em;
text-align: left;
}
.rtl .editor-block-list__block table.wp-block-table td,
.rtl .editor-block-list__block table.wp-block-table th {
text-align: right;
}
/*--------------------------------------------------------------
5.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 14px;
letter-spacing: 0.05em;
outline: none;
padding: 12px 20px 10px;
text-shadow: none;
text-transform: uppercase;
}
.wp-block-button__link {
background-color: rgba(119, 119, 119, 0.8);
color: #fff;
}
.is-style-outline .wp-block-button__link:not(.has-text-color) {
color: rgba(119, 119, 119, 0.8);
}
.wp-block-button.alignleft {
margin-left: 0;
}
.wp-block-button.alignright {
margin-right: 0;
}
.wp-block-button.aligncenter {
margin: 1.5em auto;
}
/* Separator */
.wp-block-separator {
background-color: #ccc;
border: 0;
height: 1px;
margin-bottom: 1.5em;
}
.wp-block-separator.is-style-wide {
max-width: 100%;
}
/*--------------------------------------------------------------
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;
text-align: center;
}
/* Categories */
.editor-block-list__block[data-align=right] .wp-block-categories__list,
.editor-block-list__block[data-align=left] .wp-block-categories__list {
padding: 0;
}
/* Latest Comments */
.wp-block-latest-comments {
margin-left: 0;
margin-right: 0;
}
.wp-block-latest-comments__comment-meta a {
font-weight: 700;
text-decoration: none;
}
.wp-block-latest-comments .wp-block-latest-comments__comment {
margin-bottom: 0;
padding: 0.75em 0;
}
.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar {
margin: 0;
}
.wp-block-latest-comments__comment,
.wp-block-latest-comments__comment-date,
.wp-block-latest-comments__comment-excerpt p {
font-size: inherit;
}
.wp-block-latest-comments__comment-date {
color: #999;
font-family: "Kalam", "Chalkboard", "Comic Sans", script;
font-size: 16px;
font-size: 1rem;
}
.rtl ol.wp-block-latest-comments {
margin-right: 0;
}
/* Latest Posts */
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
list-style: none;
margin-left: 0;
margin-right: 0;
}
.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
margin-bottom: .75em;
}