FINALLY CUSTOM COLOR ALSO ON EDITOR SIDE. Plus lots and lots of adjustments for better editor side compatibility and avoidance of conclits when selecting colors from the component side. Better support to wide align on realy wide screens.

This commit is contained in:
mateuswetah 2020-07-17 22:52:25 -03:00
parent e6a08a7021
commit f82a9d7653
9 changed files with 484 additions and 152 deletions

View File

@ -58,7 +58,7 @@ jQuery( document ).ready(function( $ ) {
/**
* Change the class of guttenberg button
*/
$( '.wp-block-button a' ).toggleClass().addClass( 'btn btn-jelly-bean' );
$( '.wp-block-button a' ).addClass( 'btn btn-jelly-bean' );
$( '.tainacan-list-post .table .tainacan-list-collection td' ).click( function(){
window.location = $( '.tainacan-list-post .table .tainacan-list-collection' ).data( "href" );

View File

@ -1,6 +1,4 @@
// Register palette classes for colors
.has-default-color { color: #298596 !important; }
.has-default-background-color { background-color: #298596 !important; }
.has-carmine-color { color: #8c442c !important; }
.has-carmine-background-color { background-color: #8c442c !important; }
.has-cherry-color { color: #A12B42 !important; }
@ -29,8 +27,7 @@
// 1400px is the maximum the inner cointainer should get, so we
// use 1526px - 1 column - 1 column;
@media only screen and (min-width: 1526px) {
margin-left: calc(-1*(87.5vw - 1400px)/2) !important;
margin-right: calc(-1*(87.5vw - 1400px)/2) !important;
width: 116.66667vw;
}
}
@ -70,6 +67,12 @@
padding: 0 !important;
}
/* Columns */
.wp-block-columns.alignfull {
padding-left: 8.333333%;
padding-right: 8.333333%;
}
/* Buttons */
.wp-block-button {
margin-bottom: 1rem;

View File

@ -258,15 +258,19 @@
}
}
.wp-block-separator {
border-color: #cbcbcb;
&:not(.has-background-color) {
border-color: #cbcbcb;
}
width: 50%;
max-width: 300px;
&.is-style-wide{
&.is-style-wide {
width: 100%;
}
&.is-style-dots{
&::before {
&.is-style-dots {
&:not(.has-background-color)::before {
color: #cbcbcb;
}
&::before {
font-weight: 600;
}
}
@ -475,27 +479,35 @@
}
}
text-align: center;
figcaption{
color: #000;
figcaption {
color: inherit;
font-size: 0.875rem;
font-weight: 400;
}
}
.wp-block-pullquote{
.wp-block-pullquote {
margin: 3rem 0;
padding: 0;
border: none;
&:not(.is-style-solid-color) {
border-color:#298596;
border-top-width: 2px;
border-bottom-width: 2px;
border-top-style: solid;
border-bottom-style: solid;
}
blockquote {
border-top: 2px solid #cbcbcb;
border-bottom: 2px solid #cbcbcb;
padding: 2rem 8.3333333%;
margin: 0;
p {
font-size: 1.375rem;
color: #298596;
font-weight: 500;
}
:not(.has-text-color) p {
color: #298596;
}
cite {
color: #555758;
font-size: 1rem;

View File

@ -2,15 +2,38 @@
background: white;
padding: 3rem 0px 0px 0px !important;
}
.block-editor-block-preview__content {
font-family: 'Roboto', sans-serif;
}
.edit-post-visual-editor.editor-styles-wrapper,
.components-modal__screen-overlay {
font-family: 'Roboto', sans-serif !important;
// Register palette classes for colors
.has-carmine-color { color: #8c442c }
.has-carmine-background-color { background-color: #8c442c }
.has-cherry-color { color: #A12B42 }
.has-cherry-background-color { background-color: #A12B42 }
.has-mustard-color { color: #754E24 }
.has-mustard-background-color { background-color: #754E24 }
.has-mintgreen-color { color: #255F56 }
.has-mintgreen-background-color { background-color: #255F56 }
.has-darkturquoise-color { color: #205E6F }
.has-darkturquoise-background-color { background-color: #205E6F }
.has-turquoise-color { color: #185F6D }
.has-turquoise-background-color { background-color: #185F6D }
.has-blueheavenly-color { color: #1D5C86 }
.has-blueheavenly-background-color { background-color: #1D5C86 }
.has-purple-color { color: #4751a3 }
.has-purple-background-color { background-color: #4751a3 }
.has-violet-color { color: #955ba5 }
.has-violet-background-color { background-color: #955ba5 }
// Editor Block list side spacing
.editor-block-list__layout,
.block-editor-block-list__layout {
padding-left: 8.333333%;
padding-right: 8.333333%;
padding-left: 8.3333333%;
padding-right: 8.3333333%;
}
.editor-writing-flow__click-redirect {
width: auto;
@ -19,39 +42,81 @@
// otherwise they won't match their theme result
.editor-inner-blocks,
.block-editor-inner-blocks,
.wp-block-group__inner-container,
.wp-block-cover__inner-container>.wp-block,
.editor-inner-blocks>.editor-block-list__layout,
.block-editor-inner-blocks>.block-editor-block-list__layout {
padding-left: 0;
padding-right: 0;
}
.wp-block-group__inner-container {
padding-left: 0;
padding-right: 0;
}
/* Main column width */
.wp-block {
max-width: calc(1400px - 16.666666%);
max-width: calc(1400px - 8.3333336%);
padding-left: 4.1666667%;
padding-right: 4.1666667%;
}
/* Width of "wide" blocks */
.wp-block[data-align="wide"] {
max-width: 1400px;
padding-left: 0;
padding-right: 0;
.wp-block-columns {
padding-left: 0;
padding-right: 0;
}
}
/* Width of "full" blocks */
.block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"],
.wp-block[data-align="full"] {
max-width: 120%;// calc(100% + 16.6666667%);
width: 120%; // calc(100% + 16.6666667%);
margin-left: -10%; //calc(-8.3333333%);
margin-right: -10%; //-8.3333333%;
max-width: 122.5%;// calc(100% + 16.6666667%);
width: 125.5%; // calc(100% + 16.6666667%);
margin-left: -12.5%; //calc(-8.3333333%);
margin-right: -12.5%; //-8.3333333%;
padding-left: 0;
padding-right: 0;
}
/* Tainacan Interface does not force a margin between block elements */
.block-editor-block-list__block {
margin-top: initial;
margin-bottom: initial;
}
/* Post title */
.edit-post-visual-editor__post-title-wrapper,
:not(.edit-post-visual-editor__post-title-wrapper)>.editor-post-title {
margin: 0 auto 5.35rem auto;
padding: 0;
max-width: calc(1400px - 4.1666667%);
width: calc(100% - 8.33333%);
border-bottom: 2px solid #298596;
border-bottom: 2px solid var(--tainacan-color-default, #298596);
&>.wp-block {
margin: 0 !important;
padding: 0px;
}
}
.wp-block.editor-post-title__block,
.editor-post-title__block .editor-post-title__input{
font-size: 1.25rem;
font-family: 'Roboto', sans-serif;
textarea {
padding: 3px 6px;
color: #298596;
color: var(--tainacan-color-default, #298596);
}
}
/* Resize containers also shouldn't add a margin */
.block-library-spacer__resize-container {
margin-bottom: initial;
}
/* Columns */
.wp-block-columns {
padding: 0;
}
.wp-block-columns>.editor-inner-blocks >.editor-block-list__layout> [data-type="core/column"]:not(:last-child),
.wp-block-columns>.block-editor-inner-blocks >.block-editor-block-list__layout> [data-type="core/column"]:not(:last-child) {
margin-right: 2.0833333%; // Half column
@ -70,34 +135,14 @@
.wp-block-columns>.wp-block-column[data-type="core/column"]:not(:first-child) {
padding-left: 2.0833333%; // Half column
}
.wp-block-columns>.wp-block-column[data-type="core/column"]:not(:first-child) {
.wp-block-columns>.wp-block-column[data-type="core/column"]:not(:last-child) {
padding-right: 2.0833333%; // Half column
}
.wp-block-columns>.wp-block-column[data-type="core/column"]>.wp-block {
margin-left: 0;
margin-right: 0;
}
/* Post title */
.edit-post-visual-editor__post-title-wrapper,
:not(.edit-post-visual-editor__post-title-wrapper)>.editor-post-title {
margin: 0 auto 3em auto;
padding: 0;
max-width: 1400px;
border-bottom: 2px solid #298596;
&>.wp-block {
margin: 0 14px !important;
}
}
.wp-block.editor-post-title__block,
.editor-post-title__block .editor-post-title__input{
font-size: 1.25rem;
font-family: 'Roboto', sans-serif;
textarea {
padding: 3px 6px;
color: #298596;
}
padding-right: 0;
padding-left: 0;
}
/* Heading */
@ -106,16 +151,23 @@
h1.wp-block[data-type="core/heading"] {
font-size: 1.125rem;
color: #298596;
color: var(--tainacan-color-default, #298596);
padding-top: .4rem;
margin-bottom: .5rem;
}
.wp-block-heading h2,
.wp-block[data-type="core/heading"] h2,
h2.wp-block[data-type="core/heading"] {
font-size: 1.125rem;
padding-top: .4rem;
margin-bottom: .5rem;
}
.wp-block-heading h3,
.wp-block[data-type="core/heading"] h3,
h3.wp-block[data-type="core/heading"] {
font-size: 1rem;
padding-top: .4rem;
margin-bottom: .5rem;
}
.wp-block-heading h4,
.wp-block[data-type="core/heading"] h4,
@ -124,11 +176,15 @@
font-style: italic;
font-weight: normal;
color: #555758;
padding-top: .4rem;
margin-bottom: .5rem;
}
.wp-block-heading h5,
.wp-block[data-type="core/heading"] h5,
h5.wp-block[data-type="core/heading"] {
font-size: 0.875rem;
padding-top: .4rem;
margin-bottom: .5rem;
}
.wp-block-heading h5,
.wp-block[data-type="core/heading"] h5,
@ -137,6 +193,13 @@
font-style: italic;
font-weight: normal;
color: #555758;
padding-top: .4rem;
margin-bottom: .5rem;
}
p.block-editor-block-list__block.wp-block {
margin-top: 0.5rem;
margin-bottom: 1rem;
}
/* Links */
@ -170,11 +233,13 @@
}
.components-button.is-button.is-primary {
background-color: #298596;
background-color: var(--tainacan-color-default, #298596);
}
.components-button.is-button.is-default {
background: white;
border: 1px solid #555758;
color: #298596;
color: var(--tainacan-color-default, #298596);
}
.components-icon-button:hover:not(.is-default),
.components-icon-button:focus:not(.is-default),
@ -192,7 +257,10 @@
}
.wp-block-button__link {
background-color: #298596;
&:not(.has-background) {
background-color: #298596;
background-color: var(--tainacan-color-default, #298596);
}
border-radius: 6px;
font-size: 0.875rem;
padding: 6px 18px;
@ -200,7 +268,10 @@
.is-style-outline .wp-block-button__link {
background-color: white;
border: 1px solid #555758;
color: #298596;
&:not(.has-text-color) {
color: #298596;
color: var(--tainacan-color-default, #298596);
}
}
.is-style-squared .wp-block-button__link {
border-radius: 0px;
@ -262,8 +333,7 @@
[data-align="full"] .wp-block-cover__inner-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 8.3333333333%;
padding: 0 8.3333333333vw;
padding: 0 12.5%;
&>.wp-block {
max-width: 100%;
@ -271,6 +341,12 @@
}
}
/* Figcaption on image block */
.wp-block-embed figcaption,
.wp-block-image figcaption {
color: inherit;
}
/* Modal container */
.components-modal__content {
padding: 32px;
@ -282,7 +358,7 @@
height: 32px;
margin: 0 12px 32px 12px;
padding: 0;
border-bottom: 1px solid #298596;
border-bottom: 1px solid var(--tainacan-color-default, #298596);
.components-modal__header-heading,
h1 {
@ -360,7 +436,7 @@
font-family: 'Roboto', sans-serif;
}
.wp-block-quote:not(.is-style-large):not(.is-large) {
border-left: 2px solid #298596;
border-left: 2px solid var(--tainacan-color-default, #298596);
}
.wp-block-quote__citation {
font-weight: 500;
@ -372,15 +448,27 @@
/* Pullquote */
.wp-block-pullquote {
border-top: 2px solid #cbcbcb;
border-bottom: 2px solid #cbcbcb;
padding: 1rem 0;
&:not(.is-style-solid-color) {
border-top: 2px solid var(--tainacan-color-default, #298596);
border-bottom: 2px solid var(--tainacan-color-default, #298596);
}
padding: 0;
.block-library-pullquote__content.editor-rich-text p {
blockquote {
margin: 0;
padding: 2rem 8.3333333%;
}
.block-library-pullquote__content.editor-rich-text p,
.rich-text.block-editor-rich-text__editable p {
font-size: 1.375rem;
color: #298596;
font-weight: 500;
}
:not(.has-text-color) .block-library-pullquote__content.editor-rich-text p,
:not(.has-text-color) .rich-text.block-editor-rich-text__editable p {
color: #298596;
color: var(--tainacan-color-default, #298596);
}
.wp-block-pullquote__citation {
color: #555758;
font-size: 1rem;
@ -390,6 +478,28 @@
}
}
/* Separator */
.wp-block-separator {
&:not(.has-background-color) {
border-color: #298596;
border-color: var(--tainacan-color-default, #298596);
}
width: 50%;
max-width: 300px;
&.is-style-wide {
width: 100%;
}
&.is-style-dots {
&:not(.has-background-color)::before {
color: #298596;
color: var(--tainacan-color-default, #298596);
}
&::before {
font-weight: 600;
}
}
}
/* Pre */
.wp-block-preformatted pre {
color: #555758;
@ -401,6 +511,7 @@
/* Code */
.wp-block-code textarea {
color: #298596;
color: var(--tainacan-color-default, #298596);
}
/* Tables */
@ -460,12 +571,14 @@
.wp-block-group.tainacan-group-heading {
.wp-block-heading {
color: #298596 !important;
color: var(--tainacan-color-default, #298596) !important;
}
h1:not(.has-text-color),
h2:not(.has-text-color),
h3:not(.has-text-color),
h4:not(.has-text-color) {
color: #298596;
color: #298596 !important;
color: var(--tainacan-color-default, #298596);
}
h1.wp-block-heading,
h1:not(.has-huge-font-size):not(.has-large-font-size):not(.has-medium-font-size):not(.has-normal-font-size):not(.has-small-font-size) {
@ -493,6 +606,7 @@
margin-left: 0;
max-width: 200px;
border-color: #298596;
border-color: var(--tainacan-color-default, #298596);
}
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
border-width: 2px;

View File

@ -2,70 +2,173 @@
background: white;
padding: 3rem 0px 0px 0px !important; }
.block-editor-block-preview__content {
font-family: 'Roboto', sans-serif; }
.edit-post-visual-editor.editor-styles-wrapper,
.components-modal__screen-overlay {
font-family: 'Roboto', sans-serif !important;
/* Main column width */
/* Width of "wide" blocks */
/* Width of "full" blocks */
/* Columns */
/* Tainacan Interface does not force a margin between block elements */
/* Post title */
/* Resize containers also shouldn't add a margin */
/* Columns */
/* Heading */
/* Links */
/* Buttons */
/* Text input */
/* Labels */
/* Cover block */
/* Figcaption on image block */
/* Modal container */
/* Modal Header */
/* Checkboxes and Radio Buttons*/
/* Blockquote */
/* Pullquote */
/* Separator */
/* Pre */
/* Code */
/* Tables */
/* Tainacan Selection Modal */
/* Extra title group class, that can be added for styling special headings */ }
.edit-post-visual-editor.editor-styles-wrapper .has-carmine-color,
.components-modal__screen-overlay .has-carmine-color {
color: #8c442c; }
.edit-post-visual-editor.editor-styles-wrapper .has-carmine-background-color,
.components-modal__screen-overlay .has-carmine-background-color {
background-color: #8c442c; }
.edit-post-visual-editor.editor-styles-wrapper .has-cherry-color,
.components-modal__screen-overlay .has-cherry-color {
color: #A12B42; }
.edit-post-visual-editor.editor-styles-wrapper .has-cherry-background-color,
.components-modal__screen-overlay .has-cherry-background-color {
background-color: #A12B42; }
.edit-post-visual-editor.editor-styles-wrapper .has-mustard-color,
.components-modal__screen-overlay .has-mustard-color {
color: #754E24; }
.edit-post-visual-editor.editor-styles-wrapper .has-mustard-background-color,
.components-modal__screen-overlay .has-mustard-background-color {
background-color: #754E24; }
.edit-post-visual-editor.editor-styles-wrapper .has-mintgreen-color,
.components-modal__screen-overlay .has-mintgreen-color {
color: #255F56; }
.edit-post-visual-editor.editor-styles-wrapper .has-mintgreen-background-color,
.components-modal__screen-overlay .has-mintgreen-background-color {
background-color: #255F56; }
.edit-post-visual-editor.editor-styles-wrapper .has-darkturquoise-color,
.components-modal__screen-overlay .has-darkturquoise-color {
color: #205E6F; }
.edit-post-visual-editor.editor-styles-wrapper .has-darkturquoise-background-color,
.components-modal__screen-overlay .has-darkturquoise-background-color {
background-color: #205E6F; }
.edit-post-visual-editor.editor-styles-wrapper .has-turquoise-color,
.components-modal__screen-overlay .has-turquoise-color {
color: #185F6D; }
.edit-post-visual-editor.editor-styles-wrapper .has-turquoise-background-color,
.components-modal__screen-overlay .has-turquoise-background-color {
background-color: #185F6D; }
.edit-post-visual-editor.editor-styles-wrapper .has-blueheavenly-color,
.components-modal__screen-overlay .has-blueheavenly-color {
color: #1D5C86; }
.edit-post-visual-editor.editor-styles-wrapper .has-blueheavenly-background-color,
.components-modal__screen-overlay .has-blueheavenly-background-color {
background-color: #1D5C86; }
.edit-post-visual-editor.editor-styles-wrapper .has-purple-color,
.components-modal__screen-overlay .has-purple-color {
color: #4751a3; }
.edit-post-visual-editor.editor-styles-wrapper .has-purple-background-color,
.components-modal__screen-overlay .has-purple-background-color {
background-color: #4751a3; }
.edit-post-visual-editor.editor-styles-wrapper .has-violet-color,
.components-modal__screen-overlay .has-violet-color {
color: #955ba5; }
.edit-post-visual-editor.editor-styles-wrapper .has-violet-background-color,
.components-modal__screen-overlay .has-violet-background-color {
background-color: #955ba5; }
.edit-post-visual-editor.editor-styles-wrapper .editor-block-list__layout,
.edit-post-visual-editor.editor-styles-wrapper .block-editor-block-list__layout,
.components-modal__screen-overlay .editor-block-list__layout,
.components-modal__screen-overlay .block-editor-block-list__layout {
padding-left: 8.333333%;
padding-right: 8.333333%; }
padding-left: 8.3333333%;
padding-right: 8.3333333%; }
.edit-post-visual-editor.editor-styles-wrapper .editor-writing-flow__click-redirect,
.components-modal__screen-overlay .editor-writing-flow__click-redirect {
width: auto; }
.edit-post-visual-editor.editor-styles-wrapper .editor-inner-blocks,
.edit-post-visual-editor.editor-styles-wrapper .block-editor-inner-blocks,
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group__inner-container,
.edit-post-visual-editor.editor-styles-wrapper .wp-block-cover__inner-container > .wp-block,
.edit-post-visual-editor.editor-styles-wrapper .editor-inner-blocks > .editor-block-list__layout,
.edit-post-visual-editor.editor-styles-wrapper .block-editor-inner-blocks > .block-editor-block-list__layout,
.components-modal__screen-overlay .editor-inner-blocks,
.components-modal__screen-overlay .block-editor-inner-blocks,
.components-modal__screen-overlay .wp-block-group__inner-container,
.components-modal__screen-overlay .wp-block-cover__inner-container > .wp-block,
.components-modal__screen-overlay .editor-inner-blocks > .editor-block-list__layout,
.components-modal__screen-overlay .block-editor-inner-blocks > .block-editor-block-list__layout {
padding-left: 0;
padding-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group__inner-container,
.components-modal__screen-overlay .wp-block-group__inner-container {
padding-left: 0;
padding-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block,
.components-modal__screen-overlay .wp-block {
max-width: calc(1400px - 16.666666%); }
max-width: calc(1400px - 8.3333336%);
padding-left: 4.1666667%;
padding-right: 4.1666667%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-align="wide"],
.components-modal__screen-overlay .wp-block[data-align="wide"] {
max-width: 1400px; }
padding-left: 0;
padding-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-align="wide"] .wp-block-columns,
.components-modal__screen-overlay .wp-block[data-align="wide"] .wp-block-columns {
padding-left: 0;
padding-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"],
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-align="full"],
.components-modal__screen-overlay .block-editor-block-list__layout.is-root-container > .wp-block[data-align="full"],
.components-modal__screen-overlay .wp-block[data-align="full"] {
max-width: 120%;
width: 120%;
margin-left: -10%;
margin-right: -10%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns,
.components-modal__screen-overlay .wp-block-columns {
padding: 0; }
max-width: 122.5%;
width: 125.5%;
margin-left: -12.5%;
margin-right: -12.5%;
padding-left: 0;
padding-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .block-editor-block-list__block,
.components-modal__screen-overlay .block-editor-block-list__block {
margin-top: initial;
margin-bottom: initial; }
.edit-post-visual-editor.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper,
.edit-post-visual-editor.editor-styles-wrapper :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title,
.components-modal__screen-overlay .edit-post-visual-editor__post-title-wrapper,
.components-modal__screen-overlay :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title {
margin: 0 auto 5.35rem auto;
padding: 0;
max-width: calc(1400px - 4.1666667%);
width: calc(100% - 8.33333%);
border-bottom: 2px solid #298596;
border-bottom: 2px solid var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper > .wp-block,
.edit-post-visual-editor.editor-styles-wrapper :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title > .wp-block,
.components-modal__screen-overlay .edit-post-visual-editor__post-title-wrapper > .wp-block,
.components-modal__screen-overlay :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title > .wp-block {
margin: 0 !important;
padding: 0px; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block.editor-post-title__block,
.edit-post-visual-editor.editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
.components-modal__screen-overlay .wp-block.editor-post-title__block,
.components-modal__screen-overlay .editor-post-title__block .editor-post-title__input {
font-size: 1.25rem;
font-family: 'Roboto', sans-serif; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block.editor-post-title__block textarea,
.edit-post-visual-editor.editor-styles-wrapper .editor-post-title__block .editor-post-title__input textarea,
.components-modal__screen-overlay .wp-block.editor-post-title__block textarea,
.components-modal__screen-overlay .editor-post-title__block .editor-post-title__input textarea {
padding: 3px 6px;
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .block-library-spacer__resize-container,
.components-modal__screen-overlay .block-library-spacer__resize-container {
margin-bottom: initial; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child),
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="core/column"]:not(:last-child),
.components-modal__screen-overlay .wp-block-columns > .editor-inner-blocks > .editor-block-list__layout > [data-type="core/column"]:not(:last-child),
@ -88,38 +191,15 @@
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:first-child),
.components-modal__screen-overlay .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:first-child) {
padding-left: 2.0833333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:first-child),
.components-modal__screen-overlay .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:first-child) {
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:last-child),
.components-modal__screen-overlay .wp-block-columns > .wp-block-column[data-type="core/column"]:not(:last-child) {
padding-right: 2.0833333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns > .wp-block-column[data-type="core/column"] > .wp-block,
.components-modal__screen-overlay .wp-block-columns > .wp-block-column[data-type="core/column"] > .wp-block {
margin-left: 0;
margin-right: 0; }
.edit-post-visual-editor.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper,
.edit-post-visual-editor.editor-styles-wrapper :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title,
.components-modal__screen-overlay .edit-post-visual-editor__post-title-wrapper,
.components-modal__screen-overlay :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title {
margin: 0 auto 3em auto;
padding: 0;
max-width: 1400px;
border-bottom: 2px solid #298596; }
.edit-post-visual-editor.editor-styles-wrapper .edit-post-visual-editor__post-title-wrapper > .wp-block,
.edit-post-visual-editor.editor-styles-wrapper :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title > .wp-block,
.components-modal__screen-overlay .edit-post-visual-editor__post-title-wrapper > .wp-block,
.components-modal__screen-overlay :not(.edit-post-visual-editor__post-title-wrapper) > .editor-post-title > .wp-block {
margin: 0 14px !important; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block.editor-post-title__block,
.edit-post-visual-editor.editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
.components-modal__screen-overlay .wp-block.editor-post-title__block,
.components-modal__screen-overlay .editor-post-title__block .editor-post-title__input {
font-size: 1.25rem;
font-family: 'Roboto', sans-serif; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block.editor-post-title__block textarea,
.edit-post-visual-editor.editor-styles-wrapper .editor-post-title__block .editor-post-title__input textarea,
.components-modal__screen-overlay .wp-block.editor-post-title__block textarea,
.components-modal__screen-overlay .editor-post-title__block .editor-post-title__input textarea {
padding: 3px 6px;
color: #298596; }
margin-right: 0;
padding-right: 0;
padding-left: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h1,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h1,
.edit-post-visual-editor.editor-styles-wrapper h1.wp-block[data-type="core/heading"],
@ -127,21 +207,28 @@
.components-modal__screen-overlay .wp-block[data-type="core/heading"] h1,
.components-modal__screen-overlay h1.wp-block[data-type="core/heading"] {
font-size: 1.125rem;
color: #298596; }
color: #298596;
color: var(--tainacan-color-default, #298596);
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h2,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h2,
.edit-post-visual-editor.editor-styles-wrapper h2.wp-block[data-type="core/heading"],
.components-modal__screen-overlay .wp-block-heading h2,
.components-modal__screen-overlay .wp-block[data-type="core/heading"] h2,
.components-modal__screen-overlay h2.wp-block[data-type="core/heading"] {
font-size: 1.125rem; }
font-size: 1.125rem;
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h3,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h3,
.edit-post-visual-editor.editor-styles-wrapper h3.wp-block[data-type="core/heading"],
.components-modal__screen-overlay .wp-block-heading h3,
.components-modal__screen-overlay .wp-block[data-type="core/heading"] h3,
.components-modal__screen-overlay h3.wp-block[data-type="core/heading"] {
font-size: 1rem; }
font-size: 1rem;
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h4,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h4,
.edit-post-visual-editor.editor-styles-wrapper h4.wp-block[data-type="core/heading"],
@ -151,14 +238,18 @@
font-size: 1rem;
font-style: italic;
font-weight: normal;
color: #555758; }
color: #555758;
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h5,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h5,
.edit-post-visual-editor.editor-styles-wrapper h5.wp-block[data-type="core/heading"],
.components-modal__screen-overlay .wp-block-heading h5,
.components-modal__screen-overlay .wp-block[data-type="core/heading"] h5,
.components-modal__screen-overlay h5.wp-block[data-type="core/heading"] {
font-size: 0.875rem; }
font-size: 0.875rem;
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-heading h5,
.edit-post-visual-editor.editor-styles-wrapper .wp-block[data-type="core/heading"] h5,
.edit-post-visual-editor.editor-styles-wrapper h5.wp-block[data-type="core/heading"],
@ -168,7 +259,13 @@
font-size: 0.875rem;
font-style: italic;
font-weight: normal;
color: #555758; }
color: #555758;
padding-top: .4rem;
margin-bottom: .5rem; }
.edit-post-visual-editor.editor-styles-wrapper p.block-editor-block-list__block.wp-block,
.components-modal__screen-overlay p.block-editor-block-list__block.wp-block {
margin-top: 0.5rem;
margin-bottom: 1rem; }
.edit-post-visual-editor.editor-styles-wrapper a,
.components-modal__screen-overlay a {
text-decoration: none; }
@ -198,12 +295,14 @@
line-height: 1.2rem; }
.edit-post-visual-editor.editor-styles-wrapper .components-button.is-button.is-primary,
.components-modal__screen-overlay .components-button.is-button.is-primary {
background-color: #298596; }
background-color: #298596;
background-color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .components-button.is-button.is-default,
.components-modal__screen-overlay .components-button.is-button.is-default {
background: white;
border: 1px solid #555758;
color: #298596; }
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .components-icon-button:hover:not(.is-default),
.edit-post-visual-editor.editor-styles-wrapper .components-icon-button:focus:not(.is-default),
.edit-post-visual-editor.editor-styles-wrapper .components-icon-button:active:not(.is-default),
@ -224,15 +323,21 @@
border: 1px solid #555758 !important; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-button__link,
.components-modal__screen-overlay .wp-block-button__link {
background-color: #298596;
border-radius: 6px;
font-size: 0.875rem;
padding: 6px 18px; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-button__link:not(.has-background),
.components-modal__screen-overlay .wp-block-button__link:not(.has-background) {
background-color: #298596;
background-color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .is-style-outline .wp-block-button__link,
.components-modal__screen-overlay .is-style-outline .wp-block-button__link {
background-color: white;
border: 1px solid #555758;
color: #298596; }
border: 1px solid #555758; }
.edit-post-visual-editor.editor-styles-wrapper .is-style-outline .wp-block-button__link:not(.has-text-color),
.components-modal__screen-overlay .is-style-outline .wp-block-button__link:not(.has-text-color) {
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .is-style-squared .wp-block-button__link,
.components-modal__screen-overlay .is-style-squared .wp-block-button__link {
border-radius: 0px; }
@ -380,12 +485,16 @@
.components-modal__screen-overlay [data-align="full"] .wp-block-cover__inner-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 8.3333333333%;
padding: 0 8.3333333333vw; }
padding: 0 12.5%; }
.edit-post-visual-editor.editor-styles-wrapper [data-align="full"] .wp-block-cover__inner-container > .wp-block,
.components-modal__screen-overlay [data-align="full"] .wp-block-cover__inner-container > .wp-block {
max-width: 100%;
margin: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-embed figcaption,
.edit-post-visual-editor.editor-styles-wrapper .wp-block-image figcaption,
.components-modal__screen-overlay .wp-block-embed figcaption,
.components-modal__screen-overlay .wp-block-image figcaption {
color: inherit; }
.edit-post-visual-editor.editor-styles-wrapper .components-modal__content,
.components-modal__screen-overlay .components-modal__content {
padding: 32px;
@ -395,7 +504,7 @@
height: 32px;
margin: 0 12px 32px 12px;
padding: 0;
border-bottom: 1px solid #298596; }
border-bottom: 1px solid var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .components-modal__header .components-modal__header-heading,
.edit-post-visual-editor.editor-styles-wrapper .components-modal__header h1,
.components-modal__screen-overlay .components-modal__header .components-modal__header-heading,
@ -501,7 +610,7 @@
font-family: 'Roboto', sans-serif; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-quote:not(.is-style-large):not(.is-large),
.components-modal__screen-overlay .wp-block-quote:not(.is-style-large):not(.is-large) {
border-left: 2px solid #298596; }
border-left: 2px solid var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-quote__citation,
.components-modal__screen-overlay .wp-block-quote__citation {
font-weight: 500;
@ -511,14 +620,27 @@
color: #555758; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote,
.components-modal__screen-overlay .wp-block-pullquote {
border-top: 2px solid #cbcbcb;
border-bottom: 2px solid #cbcbcb;
padding: 1rem 0; }
padding: 0; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote:not(.is-style-solid-color),
.components-modal__screen-overlay .wp-block-pullquote:not(.is-style-solid-color) {
border-top: 2px solid var(--tainacan-color-default, #298596);
border-bottom: 2px solid var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote blockquote,
.components-modal__screen-overlay .wp-block-pullquote blockquote {
margin: 0;
padding: 2rem 8.3333333%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote .block-library-pullquote__content.editor-rich-text p,
.components-modal__screen-overlay .wp-block-pullquote .block-library-pullquote__content.editor-rich-text p {
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote .rich-text.block-editor-rich-text__editable p,
.components-modal__screen-overlay .wp-block-pullquote .block-library-pullquote__content.editor-rich-text p,
.components-modal__screen-overlay .wp-block-pullquote .rich-text.block-editor-rich-text__editable p {
font-size: 1.375rem;
color: #298596;
font-weight: 500; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote :not(.has-text-color) .block-library-pullquote__content.editor-rich-text p,
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote :not(.has-text-color) .rich-text.block-editor-rich-text__editable p,
.components-modal__screen-overlay .wp-block-pullquote :not(.has-text-color) .block-library-pullquote__content.editor-rich-text p,
.components-modal__screen-overlay .wp-block-pullquote :not(.has-text-color) .rich-text.block-editor-rich-text__editable p {
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-pullquote .wp-block-pullquote__citation,
.components-modal__screen-overlay .wp-block-pullquote .wp-block-pullquote__citation {
color: #555758;
@ -526,6 +648,24 @@
font-weight: normal;
font-style: italic;
text-transform: none; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-separator,
.components-modal__screen-overlay .wp-block-separator {
width: 50%;
max-width: 300px; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-separator:not(.has-background-color),
.components-modal__screen-overlay .wp-block-separator:not(.has-background-color) {
border-color: #298596;
border-color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-separator.is-style-wide,
.components-modal__screen-overlay .wp-block-separator.is-style-wide {
width: 100%; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-separator.is-style-dots:not(.has-background-color)::before,
.components-modal__screen-overlay .wp-block-separator.is-style-dots:not(.has-background-color)::before {
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-separator.is-style-dots::before,
.components-modal__screen-overlay .wp-block-separator.is-style-dots::before {
font-weight: 600; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-preformatted pre,
.components-modal__screen-overlay .wp-block-preformatted pre {
color: #555758;
@ -534,7 +674,8 @@
white-space: pre-line; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-code textarea,
.components-modal__screen-overlay .wp-block-code textarea {
color: #298596; }
color: #298596;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-table th,
.components-modal__screen-overlay .wp-block-table th {
border-bottom: 1px solid #cbcbcb;
@ -579,7 +720,8 @@
margin-right: 12px; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading .wp-block-heading,
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading .wp-block-heading {
color: #298596 !important; }
color: #298596 !important;
color: var(--tainacan-color-default, #298596) !important; }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h1:not(.has-text-color),
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h2:not(.has-text-color),
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h3:not(.has-text-color),
@ -588,7 +730,8 @@
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h2:not(.has-text-color),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h3:not(.has-text-color),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h4:not(.has-text-color) {
color: #298596; }
color: #298596 !important;
color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h1.wp-block-heading,
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading h1:not(.has-huge-font-size):not(.has-large-font-size):not(.has-medium-font-size):not(.has-normal-font-size):not(.has-small-font-size),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading h1.wp-block-heading,
@ -619,7 +762,8 @@
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide) {
margin-left: 0;
max-width: 200px;
border-color: #298596; }
border-color: #298596;
border-color: var(--tainacan-color-default, #298596); }
.edit-post-visual-editor.editor-styles-wrapper .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.components-modal__screen-overlay .wp-block-group.tainacan-group-heading hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
border-width: 2px;

File diff suppressed because one or more lines are too long

View File

@ -85,15 +85,23 @@ if ( ! function_exists( 'tainacan_setup' ) ) {
add_image_size( 'tainacan-interface-list-post', 300, 200, true );
add_image_size( 'tainacan-interface-item-attachments', 125, 125, true );
/**
* Gutenberg support
*/
$default_color = '#298596';
if (function_exists('tainacan_get_color_scheme')) {
$color_scheme = tainacan_get_color_scheme();
if ($color_scheme && $color_scheme[2]) {
$default_color = $color_scheme[2];
}
}
add_theme_support( 'editor-color-palette', array(
array(
'name' => __( 'Default', 'tainacan-interface' ),
'slug' => 'default',
'color' => '#298596',
'color' => $default_color
),
array(
'name' => __( 'Carmine', 'tainacan-interface' ),
@ -150,6 +158,33 @@ if ( ! function_exists( 'tainacan_setup' ) ) {
} // End if().
add_action( 'after_setup_theme', 'tainacan_setup' );
/**
* Passes the custom color to a css variable used on the theme-side editor style
*
*/
function tainacan_customize_editor_css() {
$default_color = '#298596';
if (function_exists('tainacan_get_color_scheme')) {
$color_scheme = tainacan_get_color_scheme();
if ($color_scheme && $color_scheme[2]) {
$default_color = $color_scheme[2];
}
}
?>
<style>
.editor-styles-wrapper {
--tainacan-color-default: <?php echo $color_scheme[2] ?>;
--tainacan-block-primary: <?php echo $color_scheme[2] ?>;
}
</style>
<?php
}
add_action( 'admin_head', 'tainacan_customize_editor_css');
/**
* Set the content width based on the theme's design and stylesheet.
*
@ -236,14 +271,17 @@ function tainacan_block_patterns_init() {
<div class="wp-block-cover alignfull has-default-background-color has-background-dim">
<div class="wp-block-cover__inner-container">
<!-- wp:spacer {"height": 24} -->
<div style="height:24px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"style":{"color":{"text":"#ffffff"}}} -->
<h2 class="has-text-color" style="color:#ffffff">' . esc_html__( 'Section title', 'tainacan-interface' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:spacer {"height": 16} -->
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:columns -->
<div class="wp-block-columns">
<!-- wp:columns {"style":{"color":{"text":"#ffffff"}}} -->
<div class="wp-block-columns has-text-color" style="color:#ffffff">
<!-- wp:column {"width":33.33} -->
<div class="wp-block-column" style="flex-basis:33.33%">
<!-- wp:image {"id":152274,"sizeSlug":"large"} -->
@ -265,6 +303,9 @@ function tainacan_block_patterns_init() {
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
<!-- wp:spacer {"height": 32} -->
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
</div>
<!-- /wp:cover -->',
@ -280,9 +321,11 @@ function tainacan_block_patterns_init() {
<!-- wp:cover {"customOverlayColor":"#01295c","align":"full"} -->
<div class="wp-block-cover alignfull has-background-dim" style="background-color:#01295c">
<div class="wp-block-cover__inner-container">
<!-- wp:columns -->
<div class="wp-block-columns">
<!-- wp:spacer {"height": 16} -->
<div style="height:16px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:columns {"style":{"color":{"text":"#ffffff"}}} -->
<div class="wp-block-columns has-text-color" style="color:#ffffff">
<!-- wp:column {"width":33.33} -->
<div class="wp-block-column" style="flex-basis:33.33%">
<!-- wp:image {"id":152274,"sizeSlug":"large"} -->
@ -450,8 +493,6 @@ function tainacan_editor_styles() {
// Adds Robot fonts to Gutenberg.
wp_enqueue_style( 'RobotoFonts', 'https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i' );
// Adds customizer colors to Gutenberg.
//wp_add_inline_style( 'tainacan-customizer-editor-style', tainacan_customizer_gutenberg_colors() );
}
add_action( 'enqueue_block_editor_assets', 'tainacan_editor_styles' );

View File

@ -1442,6 +1442,13 @@ function tainacan_get_color_scheme_css( $colors ) {
return <<<CSS
/* Color Scheme */
.has-default-color {
color: {$colors['tainacan_link_color']} !important;
}
.has-default-background-color {
background-color: {$colors['tainacan_link_color']} !important;
}
body a,
body a:hover,
.tainacan-title-page ul li a:hover,
@ -1467,12 +1474,12 @@ function tainacan_get_color_scheme_css( $colors ) {
}
.tainacan-list-post .blog-post .blog-content .blog-read,
.tainacan-list-post .blog-post .blog-content .blog-read:hover,
.tainacan-content .wp-block-button:not(.is-style-outline) a,
.tainacan-content .wp-block-button:not(.is-style-outline) a:hover {
.tainacan-content .wp-block-button:not(.is-style-outline):not(.has-background) a,
.tainacan-content .wp-block-button:not(.is-style-outline):not(.has-background) a:hover {
background-color: {$colors['tainacan_link_color']};
}
.tainacan-content .wp-block-button.is-style-outline a,
.tainacan-content .wp-block-button.is-style-outline a:hover {
.tainacan-content .wp-block-button.is-style-outline a:not(.has-text-color),
.tainacan-content .wp-block-button.is-style-outline a:hover:not(.has-text-color) {
color: {$colors['tainacan_link_color']} !important;
}
@ -1540,11 +1547,22 @@ function tainacan_get_color_scheme_css( $colors ) {
border-left-color: {$colors['tainacan_link_color']} !important;
}
/* Pullquote */
.wp-block-pullquote p {
/* Separator */
.wp-block-separator:not(.has-background-color) {
border-color: {$colors['tainacan_link_color']} !important;
}
.wp-block-separator.is-style-dots:not(.has-background-color)::before {
color: {$colors['tainacan_link_color']} !important;
}
/* Pullquote */
.wp-block-pullquote blockquote:not(.has-text-color) p {
color: {$colors['tainacan_link_color']} !important;
}
.wp-block-pullquote:not(.is-style-solid-color) {
border-color: {$colors['tainacan_link_color']} !important;
}
/* Code */
.wp-block-code code {
color: {$colors['tainacan_link_color']} !important;

File diff suppressed because one or more lines are too long