Add full editor styles support for classic blocks; being refactoring CSS across front end and back end for consistency, based on Twenty Sixteen's styles.
This commit is contained in:
parent
ba47ffba1a
commit
af107db754
3 changed files with 791 additions and 316 deletions
|
@ -1,53 +1,64 @@
|
|||
/*
|
||||
Theme Name: Affinity
|
||||
Description: Used to style Gutenberg Blocks.
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Gutenberg Styles
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
1.0 General Block Styles
|
||||
2.0 Blocks - Common Blocks
|
||||
3.0 Blocks - Formatting
|
||||
4.0 Blocks - Layout Elements
|
||||
5.0 Blocks - Widgets
|
||||
6.0 Blocks - Colors
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Dropcaps */
|
||||
p.has-drop-cap:first-letter {
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 64px;
|
||||
}
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Block Styles
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Images */
|
||||
.wp-block-image {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
/* Captions */
|
||||
|
||||
.wp-block-image figcaption {
|
||||
[class^="wp-block-"] figcaption {
|
||||
font-size: 13.2px;
|
||||
font-style: italic;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Galleries */
|
||||
/*--------------------------------------------------------------
|
||||
2.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
p.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-cover-image {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Gallery */
|
||||
|
||||
.wp-block-gallery {
|
||||
margin-bottom: 1.6em;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Blockquotes */
|
||||
.wp-block-quote {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
font-style: italic;
|
||||
margin: 0;
|
||||
border-top: 3px solid #e8e9ea;
|
||||
padding-top: .8em;
|
||||
border-bottom: 1px solid #e8e9ea;
|
||||
margin-bottom: .8em;
|
||||
padding-bottom: .8em;
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
font-size: 26px;
|
||||
padding: .8em 0;
|
||||
}
|
||||
|
||||
.wp-block-quote p:last-of-type {
|
||||
margin-bottom: 1.6em;
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
}
|
||||
|
||||
.wp-block-quote cite {
|
||||
|
@ -57,45 +68,78 @@ p.has-drop-cap:first-letter {
|
|||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-quote.aligncenter {
|
||||
text-align: center;
|
||||
.wp-block-quote cite:before {
|
||||
}
|
||||
|
||||
/* Cover Images */
|
||||
.wp-block-cover-image {
|
||||
display: flex;
|
||||
margin-bottom: 1.6em;
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding: .4em 0 .8em;
|
||||
}
|
||||
|
||||
/* Video */
|
||||
.wp-block-video {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
.wp-block-video.alignleft,
|
||||
.wp-block-video.alignright {
|
||||
max-width: 360px;
|
||||
}
|
||||
.wp-block-video video {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
/* Audio */
|
||||
.wp-block-audio {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
.wp-block-audio.alignleft,
|
||||
.wp-block-audio.alignright {
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.wp-block-audio audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/* Pullquotes */
|
||||
/* File */
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: #1a1a1a;
|
||||
border: 0;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.046875em;
|
||||
line-height: 1;
|
||||
padding: 0.84375em 0.875em 0.78125em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:hover,
|
||||
.wp-block-file .wp-block-file__button:focus {
|
||||
background: #007acc;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:focus {
|
||||
outline: thin dotted;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-file * + .wp-block-file__button {
|
||||
margin-left: 0.75em;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Formatting Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Verse */
|
||||
|
||||
.wp-block-verse {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
font-family: inherit;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 13.2px;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.wp-block-pullquote {
|
||||
padding: 0;
|
||||
|
@ -113,105 +157,55 @@ p.has-drop-cap:first-letter {
|
|||
padding-bottom: .8em;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote,
|
||||
.wp-block-pullquote.alignleft,
|
||||
.wp-block-pullquote.alignright {
|
||||
color: #99908a;
|
||||
font-size: 18px;
|
||||
margin: 0 0 1.6em;
|
||||
.rtl .wp-block-pullquote blockquote {
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote > p:last-of-type {
|
||||
margin-bottom: 1.6em;
|
||||
.wp-block-pullquote p {
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote cite {
|
||||
.wp-block-pullquote cite {
|
||||
color: #99908a;
|
||||
display: block;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignleft,
|
||||
.wp-block-pullquote.alignright {
|
||||
max-width: 320px;
|
||||
padding-bottom: 1.6em;
|
||||
padding-top: .8em;
|
||||
.wp-block-pullquote cite:before {
|
||||
}
|
||||
|
||||
/* Categories & Archives */
|
||||
.wp-block-categories-list,
|
||||
.wp-block-archives {
|
||||
margin-left: 3.2em;
|
||||
/* Table */
|
||||
|
||||
.wp-block-table,
|
||||
.wp-block-table th,
|
||||
.wp-block-table td {
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.wp-block-table {
|
||||
display: table;
|
||||
}
|
||||
|
||||
.wp-block-table.alignleft,
|
||||
.wp-block-table.alignright {
|
||||
max-width: 50%;
|
||||
.wp-block-table th,
|
||||
.wp-block-table td {
|
||||
}
|
||||
|
||||
/* Preformatted */
|
||||
.wp-block-preformatted {
|
||||
background: #e8e9ea;
|
||||
font-family: "Courier 10 Pitch", Courier, monospace;
|
||||
font-size: 13.2px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 1.6em;
|
||||
.wp-block-table th {
|
||||
}
|
||||
|
||||
/* Code */
|
||||
.wp-block-code {
|
||||
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
|
||||
font-size: 13.2px;
|
||||
.wp-block-table td {
|
||||
}
|
||||
|
||||
/* Verse */
|
||||
pre.wp-block-verse {
|
||||
background: transparent;
|
||||
font-family: inherit;
|
||||
font-size: 18px;
|
||||
line-height: inherit;
|
||||
margin-bottom: 1.6em;
|
||||
max-width: 100%;
|
||||
overflow: auto;
|
||||
padding: 0;
|
||||
padding-left: 1.6em;
|
||||
}
|
||||
.wp-block-verse.aligncenter {
|
||||
text-align: center;
|
||||
.rtl .wp-block-table th,
|
||||
.rtl .wp-block-table td {
|
||||
}
|
||||
|
||||
.wp-block-verse.alignleft {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-verse.alignright {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* Separator */
|
||||
.wp-block-separator {
|
||||
background-color: #e8e9ea;
|
||||
border: 0;
|
||||
height: 1px;
|
||||
margin: 0.8em auto;
|
||||
max-width: 66%;
|
||||
}
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
|
||||
.wp-block-button .wp-block-button__link {
|
||||
border-radius: 0;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
font-size: 13.2px;
|
||||
font-family: Raleway, "Helvetica Neue", sans-serif;
|
||||
|
@ -223,13 +217,6 @@ pre.wp-block-verse {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-text-color),
|
||||
.wp-block-button__link:not(.has-text-color):active,
|
||||
.wp-block-button__link:not(.has-text-color):focus,
|
||||
.wp-block-button__link:not(.has-text-color):hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background) {
|
||||
background-color: #99908a;
|
||||
outline: 4px solid #99908a;
|
||||
|
@ -238,6 +225,10 @@ pre.wp-block-verse {
|
|||
left: 4px;
|
||||
}
|
||||
|
||||
.wp-block-button .wp-block-button__link:hover,
|
||||
.wp-block-button .wp-block-button__link:focus {
|
||||
}
|
||||
|
||||
.wp-block-button__link:not(.has-background):active,
|
||||
.wp-block-button__link:not(.has-background):focus,
|
||||
.wp-block-button__link:not(.has-background):hover {
|
||||
|
@ -245,85 +236,162 @@ pre.wp-block-verse {
|
|||
background-color: #5e5853;
|
||||
}
|
||||
|
||||
/* Text Columns */
|
||||
.wp-block-columns {
|
||||
justify-content: space-between;
|
||||
}
|
||||
.wp-block-column {
|
||||
flex: initial;
|
||||
}
|
||||
.wp-block-columns.has-2-columns .wp-block-column {
|
||||
width: 47%;
|
||||
}
|
||||
.wp-block-columns.has-3-columns .wp-block-column {
|
||||
width: 30%;
|
||||
}
|
||||
.wp-block-columns.has-4-columns .wp-block-column {
|
||||
width: 23%;
|
||||
/* Seperator */
|
||||
|
||||
hr.wp-block-separator {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Latest Posts */
|
||||
|
||||
.wp-block-latest-posts.is-grid {
|
||||
margin: 0 0 1.6em;
|
||||
.wp-block-separator {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 66%;
|
||||
}
|
||||
|
||||
.wp-block-separator.is-style-wide {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Widget Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
ol.wp-block-latest-comments {
|
||||
margin: 0;
|
||||
.wp-block-latest-comments__comment-meta a {
|
||||
box-shadow: none;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
color: #686868;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.6153846154;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
||||
border-top: 1px solid #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 1.75em 0;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-excerpt p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Colors
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.has-dark-gray-color {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
.has-dark-gray-background-color {
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
.has-medium-gray-color {
|
||||
color: #686868;
|
||||
}
|
||||
|
||||
.has-medium-gray-background-color {
|
||||
background-color: #686868;
|
||||
}
|
||||
|
||||
.has-light-gray-color {
|
||||
color: #e5e5e5;
|
||||
}
|
||||
|
||||
.has-light-gray-background-color {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.has-white-color {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.has-white-background-color {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.has-blue-gray-color {
|
||||
color: #4d545c;
|
||||
}
|
||||
|
||||
.has-blue-gray-background-color {
|
||||
background-color: #4d545c;
|
||||
}
|
||||
|
||||
.has-bright-blue-color {
|
||||
color: #007acc;
|
||||
}
|
||||
|
||||
.has-bright-blue-background-color {
|
||||
background-color: #007acc;
|
||||
}
|
||||
|
||||
.has-light-blue-color {
|
||||
color: #9adffd;
|
||||
}
|
||||
|
||||
.has-light-blue-background-color {
|
||||
background-color: #9adffd;
|
||||
}
|
||||
|
||||
.has-dark-brown-color {
|
||||
color: #402b30;
|
||||
}
|
||||
|
||||
.has-dark-brown-background-color {
|
||||
background-color: #402b30;
|
||||
}
|
||||
|
||||
.has-medium-brown-color {
|
||||
color: #774e24;
|
||||
}
|
||||
|
||||
.has-medium-brown-background-color {
|
||||
background-color: #774e24;
|
||||
}
|
||||
|
||||
.has-dark-red-color {
|
||||
color: #640c1f;
|
||||
}
|
||||
|
||||
.has-dark-red-background-color {
|
||||
background-color: #640c1f;
|
||||
}
|
||||
|
||||
.has-bright-red-color {
|
||||
color: #ff675f;
|
||||
}
|
||||
|
||||
.has-bright-red-background-color {
|
||||
background-color: #ff675f;
|
||||
}
|
||||
|
||||
.has-yellow-color {
|
||||
color: #ffef8e;
|
||||
}
|
||||
|
||||
.has-yellow-background-color {
|
||||
background-color: #ffef8e;
|
||||
}
|
||||
|
||||
|
||||
/* Media queries */
|
||||
|
||||
@media screen and ( min-width: 46em ) {
|
||||
h1 {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 68em ) {
|
||||
.wp-block-quote,
|
||||
.wp-block-pullquote blockquote,
|
||||
.wp-block-pullquote.alignleft p,
|
||||
.wp-block-pullquote.alignright p {
|
||||
.wp-block-pullquote blockquote {
|
||||
font-size: 26px;
|
||||
}
|
||||
.wp-block-pullquote.alignleft {
|
||||
margin-right: 1.6em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.alignright {
|
||||
margin-left: 1.6em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignright {
|
||||
margin-left: 1.6em;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignleft {
|
||||
margin-right: 1.6em;
|
||||
.wp-block-quote.is-large p,
|
||||
.wp-block-quote.is-style-large p {
|
||||
font-size: 36px;
|
||||
}
|
||||
}
|
|
@ -1,95 +1,55 @@
|
|||
/* Gutenberg Editor Styles */
|
||||
/*
|
||||
Theme Name: Affinity
|
||||
Description: Used to style Gutenberg Blocks in the editor.
|
||||
*/
|
||||
|
||||
/* Editor body */
|
||||
.edit-post-visual-editor .editor-post-title__block,
|
||||
.edit-post-visual-editor .editor-default-block-appender,
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
max-width: 747px !important;
|
||||
}
|
||||
/*--------------------------------------------------------------
|
||||
>>> 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
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.edit-post-visual-editor .mce-content-body {
|
||||
line-height: 1.6 !important;
|
||||
}
|
||||
/*--------------------------------------------------------------
|
||||
1.0 General Typography
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.editor-block-list__block,
|
||||
.editor-block-list__block p.wp-block-paragraph,
|
||||
.editor-block-list__block .block-library-list ol,
|
||||
.editor-block-list__block .block-library-list ul,
|
||||
.editor-block-list__block td {
|
||||
.edit-post-visual-editor .editor-block-list__block,
|
||||
.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
|
||||
color: #5e5853;
|
||||
font-size: 18px;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
|
||||
.editor-block-list__block .block-library-list ul,
|
||||
.editor-block-list__block .block-library-list ol {
|
||||
margin: 0 0 1.6em 3.2em;
|
||||
padding-left: 0;
|
||||
.edit-post-visual-editor .editor-block-list__block {
|
||||
color: #5e5853;
|
||||
}
|
||||
|
||||
.editor-block-list__block .block-library-list ul,
|
||||
.editor-block-list__block ul.wp-block-categories__list,
|
||||
.editor-block-list__block ul.wp-block-archives {
|
||||
list-style: disc;
|
||||
}
|
||||
/* Title */
|
||||
|
||||
.editor-block-list__block .block-library-list ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.editor-block-list__block .block-library-list li > ul,
|
||||
.editor-block-list__block .block-library-list li > ol {
|
||||
margin-bottom: 0;
|
||||
margin-left: 1.6em;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
.edit-post-visual-editor a {
|
||||
color: #99908a;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:visited {
|
||||
color: #99908a;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:focus,
|
||||
.edit-post-visual-editor a:active {
|
||||
color: #383e44;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:focus {
|
||||
outline: thin dotted;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor a:hover,
|
||||
.edit-post-visual-editor a:active {
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
color: #5e5853;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 28px;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
|
||||
h1.mce-content-body,
|
||||
h2.mce-content-body,
|
||||
h3.mce-content-body,
|
||||
h4.mce-content-body,
|
||||
h5.mce-content-body,
|
||||
h6.mce-content-body,
|
||||
.wp-block-heading h1,
|
||||
.wp-block-heading h2,
|
||||
.wp-block-heading h3,
|
||||
.wp-block-heading h4,
|
||||
.wp-block-heading h5,
|
||||
.wp-block-heading h6,
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
clear: both;
|
||||
.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 {
|
||||
color: #5e5853;
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-style: italic;
|
||||
|
@ -98,38 +58,504 @@ h6.mce-content-body,
|
|||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.wp-block-heading h1,
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
.edit-post-visual-editor h1 {
|
||||
font-size: 34px;
|
||||
}
|
||||
|
||||
.wp-block-heading h2 {
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.wp-block-heading h3 {
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.wp-block-heading h4 {
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-heading h5 {
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.wp-block-heading h6 {
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Dropcaps */
|
||||
@media screen and (min-width: 46em) {
|
||||
.edit-post-visual-editor h1,
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
p.has-drop-cap:first-letter {
|
||||
.edit-post-visual-editor h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.edit-post-visual-editor h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
|
||||
body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
|
||||
body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
|
||||
body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
|
||||
max-width: 747px;
|
||||
}
|
||||
|
||||
/* Link styles */
|
||||
|
||||
.edit-post-visual-editor a,
|
||||
.editor-block-list__block a,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce a {
|
||||
color: #99908a;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.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: #383e44;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
/* List styles */
|
||||
|
||||
.edit-post-visual-editor ul:not(.wp-block-gallery),
|
||||
.editor-block-list__block ul:not(.wp-block-gallery),
|
||||
.block-library-list ul,
|
||||
.edit-post-visual-editor ol,
|
||||
.editor-block-list__block ol,
|
||||
.block-library-list ol {
|
||||
margin: 0 0 1.6em 3.2em;
|
||||
padding-left: 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 {
|
||||
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;
|
||||
}
|
||||
|
||||
.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: 1.6em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .edit-post-visual-editor ol,
|
||||
.rtl .editor-block-list__block ol,
|
||||
.rtl .block-library-list ol {
|
||||
margin-left: 1.6em;
|
||||
margin-right: 1.6em;
|
||||
}
|
||||
|
||||
/* Quotes */
|
||||
|
||||
.rtl .editor-block-list__block blockquote {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* Captions */
|
||||
|
||||
[class^="wp-block-"] figcaption {
|
||||
color: #686868;
|
||||
font-style: italic;
|
||||
line-height: 1.6153846154;
|
||||
padding-top: 0.5384615385em;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Common Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Paragraph */
|
||||
|
||||
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
font-family: Lora, Baskerville, Georgia, Times, serif;
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote {
|
||||
border: 0 solid #1a1a1a;
|
||||
border-left-width: 4px;
|
||||
color: #686868;
|
||||
font-style: italic;
|
||||
line-height: 1.4736842105;
|
||||
margin: 0 0 1.4736842105em;
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 1.263157895em;
|
||||
}
|
||||
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-quote p {
|
||||
font-size: 19px;
|
||||
font-size: 1.1875rem;
|
||||
margin-bottom: 1.4736842105em;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation {
|
||||
color: #1a1a1a;
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.wp-block-quote__citation:before {
|
||||
content: "\2014\00a0";
|
||||
}
|
||||
|
||||
.wp-block-quote em,
|
||||
.wp-block-quote i,
|
||||
.wp-block-quote__citation:before {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.wp-block-quote strong,
|
||||
.wp-block-quote b {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-quote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignleft {
|
||||
margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
|
||||
}
|
||||
|
||||
.wp-block-quote.alignright {
|
||||
margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
|
||||
}
|
||||
|
||||
.wp-block-quote.aligncenter {
|
||||
margin-bottom: 1.473684211em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
|
||||
.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
|
||||
border-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 44.375em) {
|
||||
.wp-block-quote.alignleft,
|
||||
.wp-block-quote.alignright {
|
||||
border-width: 4px 0 0 0;
|
||||
padding: 0.9473684211em 0 0;
|
||||
width: -webkit-calc(50% - 0.736842105em);
|
||||
width: calc(50% - 0.736842105em);
|
||||
}
|
||||
|
||||
.wp-block-quote:not(.alignleft):not(.alignright) {
|
||||
margin-left: -1.473684211em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-quote:not(.alignleft):not(.alignright) {
|
||||
margin-left: 0;
|
||||
margin-right: -1.473684211em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 80em) {
|
||||
.editor-block-list__block .wp-block-quote.alignleft {
|
||||
margin-left: -40%;
|
||||
width: -webkit-calc(60% - 1.4736842105em);
|
||||
width: calc(60% - 1.4736842105em);
|
||||
}
|
||||
}
|
||||
|
||||
/* File */
|
||||
|
||||
.wp-block-file__textlink {
|
||||
box-shadow: 0 1px 0 0 currentColor;
|
||||
color: #007acc;
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background: #1a1a1a;
|
||||
border: 0;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.046875em;
|
||||
line-height: 1;
|
||||
padding: 0.84375em 0.875em 0.78125em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Code */
|
||||
|
||||
.wp-block-code {
|
||||
border: 0;
|
||||
padding: 0.125em 0.25em;
|
||||
}
|
||||
|
||||
/* Classic */
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border: 0 solid #1a1a1a;
|
||||
border-left-width: 4px;
|
||||
color: #686868;
|
||||
font-style: italic;
|
||||
line-height: 1.4736842105;
|
||||
margin: 0 0 1.4736842105em;
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 1.263157895em;
|
||||
}
|
||||
|
||||
.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
|
||||
font-size: 19px;
|
||||
font-size: 1.1875rem;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
|
||||
color: #1a1a1a;
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
font-style: normal;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
|
||||
content: "\2014\00a0";
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
|
||||
margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
|
||||
margin-bottom: 1.473684211em;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 44.375em) {
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft,
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
border-width: 4px 0 0 0;
|
||||
padding: 0.9473684211em 0 0;
|
||||
width: -webkit-calc(50% - 0.736842105em);
|
||||
width: calc(50% - 0.736842105em);
|
||||
}
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
border-left-width: 0;
|
||||
border-right-width: 4px;
|
||||
overflow: hidden;
|
||||
padding-left: 0;
|
||||
padding-right: 1.263157895em;
|
||||
}
|
||||
|
||||
.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: 0.3157894737em 0 1.473684211em 1.4736842105em;
|
||||
}
|
||||
|
||||
.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
|
||||
margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
|
||||
}
|
||||
|
||||
/* Pullquote */
|
||||
|
||||
.editor-block-list__block .wp-block-pullquote blockquote {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wp-block-pullquote blockquote > .editor-rich-text p {
|
||||
color: #686868;
|
||||
font-size: 19px;
|
||||
font-size: 1.1875rem;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation {
|
||||
color: #1a1a1a;
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
font-style: italic;
|
||||
line-height: 1.75;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.wp-block-pullquote .wp-block-pullquote__citation:before {
|
||||
content: "\2014\00a0";
|
||||
}
|
||||
|
||||
/* Table */
|
||||
|
||||
.editor-block-list__block table.wp-block-table th,
|
||||
.editor-block-list__block table.wp-block-table td {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .wp-block-table th,
|
||||
.rtl .wp-block-table td {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
5.0 Blocks - Layout Elements
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Buttons */
|
||||
.wp-block-button .wp-block-button__link {
|
||||
background: #1a1a1a;
|
||||
border: 0;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.046875em;
|
||||
line-height: 1;
|
||||
padding: 0.84375em 0.875em 0.78125em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
6.0 Blocks - Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
/* Latest Comments */
|
||||
|
||||
.editor-block-list__block .wp-block-latest-comments__comment-meta a {
|
||||
box-shadow: none;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments__comment-date {
|
||||
color: #686868;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-size: 13px;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.6153846154;
|
||||
}
|
||||
|
||||
.wp-block-latest-comments .wp-block-latest-comments__comment {
|
||||
border-top: 1px solid #d1d1d1;
|
||||
margin-bottom: 0;
|
||||
padding: 1.75em 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: 16px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Gutenberg Editor Styles */
|
||||
|
||||
/* Images */
|
||||
|
||||
.wp-block-image {
|
||||
|
@ -190,8 +616,11 @@ blockquote cite {
|
|||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
font-size: 26px;
|
||||
padding: .8em 0;
|
||||
border-bottom: 0;
|
||||
border-top: 0;
|
||||
border-left: 3px solid #e8e9ea;
|
||||
font-size: 18px;
|
||||
padding: 0 0 0 .8em;
|
||||
}
|
||||
|
||||
.wp-block-quote p {
|
||||
|
@ -478,30 +907,3 @@ ol.wp-block-latest-comments {
|
|||
margin-right: 1.6em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and ( min-width: 46em ) {
|
||||
.wp-block-heading h1,
|
||||
.editor-post-title__block .editor-post-title__input {
|
||||
font-size: 47.12px;
|
||||
}
|
||||
|
||||
.wp-block-heading h2 {
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.wp-block-heading h3 {
|
||||
font-size: 29.2px;
|
||||
}
|
||||
|
||||
.wp-block-heading h4 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.wp-block-heading h5 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.wp-block-heading h6 {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
|
@ -35,6 +35,11 @@ function affinity_setup() {
|
|||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Add editor styles
|
||||
*/
|
||||
add_editor_style();
|
||||
|
||||
/**
|
||||
* Add support for core custom logo
|
||||
* - also see fallback in inc/jetpack.php
|
||||
|
|
Loading…
Reference in a new issue