themes-wordpress/dara/editor-blocks.css
2020-03-27 13:04:58 +07:00

872 lines
19 KiB
CSS

/*
* Theme Name: Dara
* 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: "Source Sans Pro", Helvetica, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: 1.6;
}
.edit-post-visual-editor .editor-block-list__block {
color: #444340;
}
@media screen and (min-width: 850px) {
.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: 18px;
}
}
.alignleft {
margin-right: 1.6em;
}
.alignright {
margin-left: 1.6em;
}
/* Title */
.editor-post-title__block .editor-post-title__input {
clear: both;
font-family: "Yrsa", sans-serif;
margin-bottom: .8em;
font-size: 23px;
font-weight: normal;
line-height: 1.1;
margin-bottom: 0.2em;
}
@media screen and ( min-width: 850px ) {
.editor-post-title__block .editor-post-title__input {
font-size: 32px;
}
}
/* 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;
font-family: "Yrsa", sans-serif;
font-weight: 300;
margin-bottom: .8em;
}
.edit-post-visual-editor h1 {
font-size: 29px;
line-height: 1.1;
margin-bottom: 0.2em;
}
.edit-post-visual-editor h2 {
font-size: 23px;
margin-bottom: 0.4em;
}
.edit-post-visual-editor h3 {
font-size: 18px;
}
.edit-post-visual-editor h4 {
font-size: 16px;
}
.edit-post-visual-editor h5 {
font-size: 15px;
}
.edit-post-visual-editor h6 {
font-size: 14px;
}
@media screen and (min-width: 850px) {
.edit-post-visual-editor h1 {
font-size: 47px;
line-height: 1.1;
margin-bottom: 0.2em;
}
.edit-post-visual-editor h2 {
font-size: 29px;
margin-bottom: 0.4em;
}
.edit-post-visual-editor h3 {
font-size: 23px;
}
.edit-post-visual-editor h4 {
font-size: 18px;
}
.edit-post-visual-editor h5 {
font-size: 16px;
}
.edit-post-visual-editor h6 {
font-size: 15px;
}
}
/* Paragraphs */
.edit-post-visual-editor p {
margin: 0 0 1.6em;
}
.edit-post-visual-editor blockquote p {
margin-bottom: 1.6em;
}
/*--------------------------------------------------------------
2.0 General Block Styles
--------------------------------------------------------------*/
/* Main column width */
.wp-block {
max-width: 705px; /* 675px + 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: #15b6b8;
}
.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: #a8a6a1;
text-decoration: none;
}
/* List styles */
.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 {
list-style: decimal;
}
.edit-post-visual-editor ul:not(.wp-block-gallery) li,
.editor-block-list__block ul:not(.wp-block-gallery) li,
.edit-post-visual-editor ol li,
.editor-block-list__block ol li,
.block-library-list li {
margin-bottom: 0;
}
.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: 1em;
}
.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 {
margin-left: 0;
margin-right: 1em;
padding: 0;
}
.rtl .edit-post-visual-editor ol,
.rtl .editor-block-list__block ol,
.rtl .block-library-list ol {
margin-left: 0;
margin-right: 1.6em;
}
/* Captions */
[class^="wp-block-"] figcaption {
color: #686868;
font-size: 15px;
font-style: italic;
line-height: 1.6153846154;
padding-top: 0.5384615385em;
}
/* Definition List styles */
.wp-block-freeform.block-library-rich-text__tinymce dt {
font-weight: bold;
}
/*--------------------------------------------------------------
3.0 Blocks - Common Blocks
--------------------------------------------------------------*/
/* Paragraph */
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
font-size: 64px;
}
/* Images */
.wp-block-image figcaption {
font-size: 15px;
font-style: italic;
text-align: center;
}
/* Quote */
.wp-block-quote:not(.is-large):not(.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"] {
border: 0;
padding-left: 2.4em;
padding-right: 0;
}
.wp-block-quote,
.rtl .wp-block-quote[style*="text-align:left"],
.rtl .wp-block-quote[style*="text-align: left"],
.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"] {
border: none;
margin-left: 0;
margin-bottom: 1.6em;
padding-left: 2.4em;
padding-right: 0;
position: relative;
}
.edit-post-visual-editor .editor-block-list__block blockquote p {
font-family: "Yrsa", Georgia, serif;
font-size: 23px;
font-style: normal;
}
.wp-block-quote::before,
.rtl .wp-block-quote[style*="text-align:left"]::before,
.rtl .wp-block-quote[style*="text-align: left"]::before {
color: #ccc;
content: "\201C";
font-family: "Yrsa", Georgia, serif;
font-size: 140px;
font-style: normal;
line-height: 1;
position: absolute;
top: -5px;
left: -10px;
right: auto;
}
.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"] {
padding-left: 0;
padding-right: 2.4em;
}
.wp-block-quote[style*="text-align:right"]::before,
.wp-block-quote[style*="text-align: right"]::before {
left: auto;
right: -10px;
}
.editor-block-list__block .wp-block-quote__citation {
color: inherit;
display: block;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
margin: .4em 0;
text-transform: uppercase;
}
.rtl .wp-block-quote:not(.is-large):not(.is-style-large) {
padding-left: 0;
padding-right: 2.4em;
}
.rtl .wp-block-quote.is-large,
.rtl .wp-block-quote.is-style-large {
padding-left: 0;
padding-right: 1.6em;
}
.rtl .wp-block-quote:before {
position: absolute;
left: auto;
right: -10px;
}
.editor-block-list__block .wp-block-quote em,
.editor-block-list__block .wp-block-quote i,
.editor-block-list__block .wp-block-quote__citation:before {
font-style: normal;
}
.editor-block-list__block .wp-block-quote > :last-child {
margin-bottom: 0;
}
.editor-block-list__block .wp-block-quote.alignleft {
margin: .8em 1.6em .8em 0;
}
.editor-block-list__block .wp-block-quote.alignright {
margin: .8em 0 .8em 1.6em;
}
.editor-block-list__block .wp-block-quote.aligncenter {
margin-bottom: 1.6em;
}
.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
padding-left: 1.6em;
}
.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-style: normal;
font-size: 32px;
}
.editor-block-list__block .wp-block-quote.is-large p,
.editor-block-list__block .wp-block-quote.is-style-large p {
margin-bottom: .8em;
}
/* 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: 2.0em; /* Cover images inherit the paragraph size; this resets it */
}
/* File */
.wp-block-file__textlink {
box-shadow: 0 1px 0 0 currentColor;
color: #15b6b8;
}
.wp-block-file .wp-block-file__button {
background-color: #15b6b8;
border-style: none;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 15px;
font-weight: bold;
letter-spacing: 1px;
line-height: 2;
padding: .25em 1em .4em;
text-align: center;
vertical-align: middle;
text-transform: uppercase;
border-radius: 3px;
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
-webkit-appearance: none;
}
/*--------------------------------------------------------------
4.0 Blocks - Formatting
--------------------------------------------------------------*/
/* Verse */
.wp-block-verse pre {
background: transparent;
color: inherit;
font-family: inherit;
font-style: italic;
line-height: inherit;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 0;
}
/* Code */
.wp-block-code {
background: #f2f2f2;
border: 0;
border-radius: 0;
font-family: "Courier 10 Pitch", Courier, monospace;
}
.wp-block-code textarea {
background: transparent;
}
/* Classic */
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
border: none;
font-family: "Yrsa", Georgia, serif;
font-size: 23px;
font-style: normal;
margin-left: 0;
margin-bottom: 1.6em;
padding-left: 2.4em;
position: relative;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
color: #ccc;
content: "\201C";
font-family: "Yrsa", Georgia, serif;
font-size: 140px;
font-style: normal;
line-height: 1;
position: absolute;
top: -5px;
left: -10px;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
margin-bottom: 0;
}
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
display: block;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
margin: .4em 0;
text-transform: uppercase;
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
}
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
margin-right: 0;
padding-left: 0;
padding-right: 2.4em;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
position: absolute;
top: -5px;
left: auto;
right: -10px;
}
.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.6em .75em 0;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
margin: .75em 0 .75em 1.6em;
}
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 29px;
line-height: 1.1;
margin-bottom: 0.2em;
}
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 23px;
margin-bottom: 0.4em;
}
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 18px;
}
.wp-block-freeform.block-library-rich-text__tinymce {
font-size: 16px;
}
.wp-block-freeform.block-library-rich-text__tinymce h5 {
font-size: 15px;
}
.wp-block-freeform.block-library-rich-text__tinymce h6 {
font-size: 14px;
}
@media screen and (min-width: 850px) {
.wp-block-freeform.block-library-rich-text__tinymce h1 {
font-size: 47px;
line-height: 1.1;
margin-bottom: 0.2em;
}
.wp-block-freeform.block-library-rich-text__tinymce h2 {
font-size: 29px;
margin-bottom: 0.4em;
}
.wp-block-freeform.block-library-rich-text__tinymce h3 {
font-size: 23px;
}
.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: 15px;
}
}
.wp-block-freeform.block-library-rich-text__tinymce pre {
background: #f2f2f2;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
max-width: 100%;
margin-bottom: 1.6em;
overflow-x: scroll;
padding: 1em;
}
.wp-block-freeform.block-library-rich-text__tinymce table {
border: 0;
border-bottom: 1px solid #eee;
border-collapse: collapse;
margin: 0 0 1.6em 0;
width: 100%;
}
.wp-block-freeform.block-library-rich-text__tinymce .alternate {
background: transparent;
}
.wp-block-freeform.block-library-rich-text__tinymce table td {
border: 0;
border-top: 1px solid #eee;
padding: 0.4em;
}
.wp-block-freeform.block-library-rich-text__tinymce table th {
border: 0;
font-weight: bold;
padding: 0.4em;
text-transform: uppercase;
text-align: left;
}
.rtl .wp-block-freeform.block-library-rich-text__tinymce table th {
text-align: right;
}
/* Preformatted */
.editor-block-list__block .wp-block-preformatted pre {
background: #f2f2f2;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: 15px;
max-width: 100%;
margin-bottom: 1.6em;
overflow-x: scroll;
padding: 1em;
}
/* Pullquote */
.editor-block-list__block .wp-block-pullquote blockquote:before {
color: #ccc;
content: "\201C";
font-family: "Yrsa", Georgia, serif;
font-size: 140px;
font-style: normal;
line-height: 1;
position: absolute;
top: -5px;
left: -10px;
}
.editor-block-list__block .wp-block-pullquote blockquote {
margin: 0;
padding: 0;
border: 0;
}
.edit-post-visual-editor .wp-block-pullquote p {
font-family: "Yrsa", Georgia, serif;
font-size: 23px;
font-style: normal;
}
.wp-block-pullquote {
border: none;
margin-left: 0;
margin-bottom: 1.6em;
padding: 0 0 0 1.6em;
position: relative;
}
.wp-block-pullquote blockquote {
font-size: 32px;
}
.wp-block-pullquote.alignleft {
margin-right: 1.6em;
}
.wp-block-pullquote.alignright {
margin-left: 1.6em;
}
.wp-block-pullquote blockquote > .editor-rich-text p {
color: inherit;
margin: 0;
}
.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
font-size: 23px;
}
.wp-block-pullquote .wp-block-pullquote__citation {
display: block;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
margin: .4em 0;
text-transform: uppercase;
}
.wp-block-pullquote .wp-block-pullquote__citation:before {
}
.rtl .editor-block-list__block .wp-block-pullquote blockquote {
border: 0;
padding-left: 0;
padding-right: 1.6em;
}
.rtl .editor-block-list__block .wp-block-pullquote blockquote:before {
right: -10px;
left: auto;
}
/* Table */
.editor-block-list__block table.wp-block-table {
display: table;
border-bottom: 1px solid #eee;
margin: 0 0 1.6em 0;
width: 100%;
}
.editor-block-list__block table.wp-block-table td {
border: 0;
border-top: 1px solid #eee;
padding: 0.4em;
}
.editor-block-list__block table.wp-block-table th {
border: 0;
font-weight: bold;
padding: 0.4em;
text-align: left;
text-transform: uppercase;
}
.rtl .editor-block-list__block table.wp-block-table th {
text-align: right;
}
.wp-block-table__cell-content {
padding: 0;
}
/*--------------------------------------------------------------
5.0 Blocks - Layout Elements
--------------------------------------------------------------*/
/* Buttons */
.wp-block-button .wp-block-button__link {
cursor: pointer;
display: inline-block;
font-size: 15px;
font-weight: bold;
letter-spacing: 1px;
line-height: 2;
padding: .25em 1em .4em;
text-align: center;
vertical-align: middle;
text-transform: uppercase;
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
-webkit-appearance: none;
}
.wp-block-button__link:not(.has-background) {
background-color: #15b6b8;
}
.is-style-outline .wp-block-button__link {
background-color: transparent;
box-shadow: none;
border-color: currentColor;
}
.is-style-outline .wp-block-button__link:not(.has-text-color) {
color: #15b6b8;
}
.wp-block-button .editor-rich-text__tinymce.mce-content-body {
line-height: 30px;
}
/* Separator */
.wp-block-separator {
border: 0;
height: 1px;
margin: 1.6em auto;
background-color: #e6e6e6;
max-width: 66%;
}
.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;
}
/* 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 */
.rtl .edit-post-visual-editor .wp-block-latest-comments {
margin-left: 0;
margin-right: 0;
}
.wp-block-latest-comments .wp-block-latest-comments__comment,
.wp-block-latest-comments__comment-date,
.edit-post-visual-editor .editor-block-list__block .wp-block-latest-comments__comment-excerpt p {
font-size: 15px;
}
.wp-block-latest-comments .wp-block-latest-comments__comment {
border-top: 1px solid #e6e6e6;
margin-bottom: 0;
padding: 1.6em 0;
}
.wp-block-latest-comments__comment-excerpt p:last-child {
margin-bottom: 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: 1em;
}