File: /home/emeraldo/public_html/wp-content/themes/bright-mode/style.css
/*
Theme Name: Bright Mode
Theme URI: https://briangardner.com/themes/bright-mode/
Author: Brian Gardner
Author URI: https://briangardner.com/
Description: Bright Mode is a block theme for those who love modern design and vibrant colors. It is a work-in-progress and evolving, so follow along as we explore and update often. Coming soon are fresh patterns, new templates, and even variations. HINT: We are just getting started. There is a lot more on the way. Ka-chow!
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 5.6
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bright-mode
Bright Mode WordPress Theme, (C) 2022 Brian Gardner.
Bright Mode is distributed under the terms of the GNU GPL.
*/
/* Defaults
---------------------------------------------------------------------------- */
html {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
scroll-behavior: smooth;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-block-button__link {
transition: all 0.2s ease-in-out;
}
a,
a:focus,
a:hover {
text-decoration: underline;
text-decoration-thickness: 1px;
}
ol,
ul {
margin: 0;
padding: 0;
}
b,
strong {
font-weight: var(--wp--custom--font-weight--semi-bold);
}
blockquote {
margin: 0;
}
/*
* Alignment Styles - Originally from TT2.
* These rules are temporary, and should not
* be relied on or modified too heavily by
* themes or plugins that build on Bright Mode.
* These are meant to be a precursor to a
* global solution provided by the Block Editor.
*
* Relevant issues:
* https://github.com/WordPress/gutenberg/issues/35607
* https://github.com/WordPress/gutenberg/issues/35884
---------------------------------------------*/
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.is-root-container .has-no-background,
.wp-block-cover.alignfull,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-site-blocks {
padding-left: var(--wp--custom--spacing--outer);
padding-right: var(--wp--custom--spacing--outer);
}
.block-editor-block-list__layout.is-root-container > .alignfull,
.is-root-container > .wp-block-cover,
.is-root-container > .wp-block-group.has-background,
.is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container > .wp-block-template-part > .wp-block-group.has-background,
.is-root-container .has-no-background,
.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background {
margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
width: unset;
}
/*
* Add background color in site editor
* for visibility purposes.
---------------------------------------------*/
.is-root-container .has-no-background {
background-color: var(--wp--preset--color--main);
}
/* Blocks
---------------------------------------------------------------------------- */
/* Button
--------------------------------------------- */
input[type="button"],
input[type="submit"],
.wp-block-post-comments input[type=submit],
.wp-block-search__button {
border: 1px solid var(--wp--preset--color--main);
border-radius: 0;
background-color: var(--wp--preset--color--main);
color: var(--wp--preset--color--base);
cursor: pointer;
font-size: var(--wp--preset--font-size--small);
font-weight: var(--wp--custom--font-weight--medium);
padding: 10px 25px;
text-decoration: none;
white-space: normal;
width: auto;
}
input[type="button"]:focus,
input[type="button"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-search__button:focus,
.wp-block-search__button:hover {
background-color: transparent;
border: 1px solid var(--wp--preset--color--main);
color: var(--wp--preset--color--main);
text-decoration: none;
}
/* Button - Outline
--------------------------------------------- */
.wp-block-button.is-style-outline .wp-block-button__link {
background-color: transparent;
border: 1px solid;
border-color: currentColor;
color: var(--wp--preset--color--main);
padding: 12px 30px;
}
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
background-color: var(--wp--preset--color--main);
border-color: var(--wp--preset--color--main);
color: var(--wp--preset--color--base);
}
/* Button - Shadow Base
--------------------------------------------- */
.wp-block-button.is-style-shadow-base .wp-block-button__link {
background-color: transparent;
border: 1px solid;
border-color: currentColor;
box-shadow: 3px 3px var(--wp--preset--color--base);
color: var(--wp--preset--color--base);
padding: 12px 30px;
}
.wp-block-button.is-style-shadow-base .wp-block-button__link:focus,
.wp-block-button.is-style-shadow-base .wp-block-button__link:hover {
box-shadow: 5px 5px var(--wp--preset--color--base);
}
/* Button - Shadow Main
--------------------------------------------- */
.wp-block-button.is-style-shadow-main .wp-block-button__link {
background-color: transparent;
border: 1px solid;
border-color: currentColor;
box-shadow: 3px 3px var(--wp--preset--color--main);
color: var(--wp--preset--color--main);
padding: 12px 30px;
}
.wp-block-button.is-style-shadow-main .wp-block-button__link:focus,
.wp-block-button.is-style-shadow-main .wp-block-button__link:hover {
box-shadow: 5px 5px var(--wp--preset--color--main);
}
/* Calendar
--------------------------------------------- */
.wp-block-calendar table caption,
.wp-block-calendar table tbody {
color: var(--wp--preset--color--main);
}
.wp-block-calendar table th {
background-color: var(--wp--preset--color--main);
color: var(--wp--preset--color--base);
}
.wp-block-calendar tbody td,
.wp-block-calendar th {
border: 1px solid var(--wp--preset--color--main);
padding: 10px;
}
/* Caption
--------------------------------------------- */
.wp-block-embed figcaption,
.wp-block-gallery figcaption,
.wp-block-image figcaption,
.wp-block-table figcaption {
color: var(--wp--preset--color--main);
font-size: var(--wp--preset--font-size--small);
margin-bottom: 0;
margin-top: 10px;
text-align: center;
}
.wp-block-gallery figcaption {
margin-top: 0;
}
/* Code
--------------------------------------------- */
.wp-block-code {
border-color: var(--wp--preset--color--main);
}
.wp-block-code code {
overflow-wrap: normal;
overflow-x: scroll;
tab-size: 4;
white-space: pre !important;
}
*:not(.wp-block-code) > code,
kbd {
background-color: var(--wp--preset--color--main);
color: var(--wp--preset--color--base);
font-size: var(--wp--preset--font-size--small);
padding: 5px 8px;
position: relative;
top: -1px;
}
/*
* When inline code is selected, the Editor applies contextual styling. Since
* our code color is near white, we need to reset to the default text color.
*/
.rich-text:focus > code[data-rich-text-format-boundary],
.rich-text:focus > kbd[data-rich-text-format-boundary] {
color: currentColor;
}
/* Comments
--------------------------------------------- */
.page-template-page-wide .wp-block-comments-query-loop {
margin-top: 0 !important;
}
.wp-block-comment-template li {
margin-left: 0;
}
.wp-block-post-comments-form input:not([type=submit]),
.wp-block-post-comments-form textarea {
border-color: var(--wp--preset--color--main);
}
.wp-block-post-comments-form input[type=submit] {
border: 1px solid var(--wp--preset--color--main);
}
.wp-block-post-comments-form .form-submit {
margin-bottom: 0;
}
/* Cover
--------------------------------------------- */
.no-featured-image .wp-block-cover .wp-block-cover__background {
opacity: 1;
}
/* Group
--------------------------------------------- */
.wp-block-group.is-style-full-height {
align-items: center;
display: grid;
min-height: 100vh;
}
.wp-block-group.is-style-shadow {
box-shadow: 0 0 50px rgb(0 0 0 / 10%);
}
.wp-block-group.is-style-shadow-solid {
box-shadow: 3px 3px var(--wp--preset--color--main);
}
/* Heading
--------------------------------------------- */
h1.is-style-gradient,
h2.is-style-gradient,
h3.is-style-gradient,
h4.is-style-gradient {
background: var(--wp--preset--gradient--primary-secondary-tertiary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h1.is-style-gradient-primary-secondary,
h2.is-style-gradient-primary-secondary,
h3.is-style-gradient-primary-secondary,
h4.is-style-gradient-primary-secondary {
background: var(--wp--preset--gradient--primary-secondary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h1.is-style-gradient-secondary-tertiary,
h2.is-style-gradient-secondary-tertiary,
h3.is-style-gradient-secondary-tertiary,
h4.is-style-gradient-secondary-tertiary {
background: var(--wp--preset--gradient--secondary-tertiary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
h1.is-style-gradient-tertiary-primary,
h2.is-style-gradient-tertiary-primary,
h3.is-style-gradient-tertiary-primary,
h4.is-style-gradient-tertiary-primary {
background: var(--wp--preset--gradient--tertiary-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Image
--------------------------------------------- */
.wp-block-image.aligncenter {
margin-left: auto !important;
margin-right: auto !important;
}
.wp-block-image.alignleft {
margin-right: 30px !important;
}
.wp-block-image.alignright {
margin-left: 30px !important;
}
.wp-block-image.is-style-shadow {
box-shadow: 0 0 50px rgb(0 0 0 / 10%);
}
.wp-block-image.is-style-shadow-solid {
border: 1px solid var(--wp--preset--color--main);
box-shadow: 5px 5px var(--wp--preset--color--main);
}
/* List
--------------------------------------------- */
ol li:where(:not([class*='block'])),
ol li:where(.wp-block-list),
ul li:where(:not([class*='block'])),
ul li:where(.wp-block-list) {
margin-left: 30px;
}
.is-style-no-disc li {
list-style-type: none;
margin-left: 0;
}
/* Navigation
--------------------------------------------- */
.wp-block-navigation__responsive-container.is-menu-open {
background-color: var(--wp--preset--color--main) !important;
color: var(--wp--preset--color--base) !important;
padding: 35px var(--wp--custom--spacing--outer);
}
.wp-block-navigation__responsive-container.is-menu-open:before {
background-color: #ff00ff;
height: 100px;
}
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
border: 1px solid var(--wp--preset--color--base);
padding: 2px;
}
.wp-block-navigation:not([style*=text-decoration]) a,
.wp-block-navigation:not([style*=text-decoration]) a:focus,
.wp-block-navigation:not([style*=text-decoration]) a:hover {
text-decoration: none;
}
/* Navigation Submenu
--------------------------------------------- */
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
background-color: var(--wp--preset--color--main);
border: 1px solid var(--wp--preset--color--base);
color: var(--wp--preset--color--base);
min-width: 180px !important;
padding: 10px;
}
.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
padding: 2px 10px !important;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
box-shadow: 3px 3px var(--wp--preset--color--base);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
gap: 10px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
padding-top: 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
padding-left: 0;
padding-right: 0;
}
/* Paragraph
--------------------------------------------- */
p.has-background {
padding: 20px 30px;
}
/* Post Excerpt
--------------------------------------------- */
.wp-block-post-excerpt__excerpt {
margin-bottom: 10px;
}
/* Preformatted
--------------------------------------------- */
.wp-block-preformatted {
overflow-wrap: normal;
overflow-x: scroll;
white-space: pre;
}
/* Pullquote
--------------------------------------------- */
.wp-block-pullquote p,
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: var(--wp--preset--font-size--large);
line-height: var(--wp--custom--line-height--medium);
margin-bottom: 0;
}
.wp-block-pullquote cite {
display: block;
font-size: var(--wp--preset--font-size--small);
font-style: inherit;
margin-top: 10px;
text-transform: inherit;
}
/* Quote
--------------------------------------------- */
.wp-block-quote {
box-shadow: 5px 5px var(--wp--preset--color--main);
}
.wp-block-quote p:last-of-type {
margin-bottom: 0;
}
.wp-block-quote cite {
display: block;
font-size: var(--wp--preset--font-size--small);
font-style: inherit;
margin-top: 10px;
text-align: inherit;
}
.wp-block-quote.is-style-underline,
.wp-block-quote.is-style-underline-primary-secondary,
.wp-block-quote.is-style-underline-secondary-tertiary,
.wp-block-quote.is-style-underline-tertiary-primary {
border: none !important;
box-shadow: none;
padding: 0 !important;
}
.wp-block-quote.is-style-underline p {
background: var(--wp--preset--gradient--primary-secondary-tertiary);
}
.wp-block-quote.is-style-underline-primary-secondary p {
background: var(--wp--preset--gradient--primary-secondary);
}
.wp-block-quote.is-style-underline-secondary-tertiary p {
background: var(--wp--preset--gradient--secondary-tertiary);
}
.wp-block-quote.is-style-underline-tertiary-primary p {
background: var(--wp--preset--gradient--tertiary-primary);
}
.wp-block-quote.is-style-underline p,
.wp-block-quote.is-style-underline-primary-secondary p,
.wp-block-quote.is-style-underline-secondary-tertiary p,
.wp-block-quote.is-style-underline-tertiary-primary p {
background-position: 0 85%;
background-repeat: repeat-x;
background-size: 100% 10px;
font-size: var(--wp--preset--font-size--max-48);
font-weight: var(--wp--custom--font-weight--medium);
line-height: var(--wp--custom--line-height--one);
display: inline;
}
/* Separator
--------------------------------------------- */
.wp-block-separator,
.wp-block-separator.has-css-opacity {
opacity: 1;
}
.wp-block-separator:not(.is-style-dots),
.wp-block-separator.has-background:not(.is-style-dots) {
border-bottom: 1px solid currentColor;
height: 1px;
}
.wp-block-separator.is-style-dots:before {
font-family: inherit;
font-size: var(--wp--preset--font-size--large);
letter-spacing: 10px;
padding-left: 10px;
}
/* Site Title
--------------------------------------------- */
.wp-block-site-title a {
text-decoration: none;
}
/* Social Icons
--------------------------------------------- */
.wp-block-social-links.is-style-border-base .wp-block-social-link {
border: 1px solid var(--wp--preset--color--base);
}
.wp-block-social-links.is-style-border-main .wp-block-social-link {
border: 1px solid var(--wp--preset--color--main);
}
/* Table
--------------------------------------------- */
.wp-block-table.is-style-stripes {
border-bottom: none;
}
.wp-block-table table {
border-collapse: collapse;
}
.wp-block-table thead {
border-bottom: 3px solid var(--wp--preset--color--main);
}
.wp-block-table tfoot {
border-top: 3px solid var(--wp--preset--color--main);
}
.wp-block-table td,
.wp-block-table th,
.wp-block-table tr,
.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th,
.wp-block-table.is-style-stripes tr {
border: 1px solid var(--wp--preset--color--main);
}
.wp-block-table th {
font-weight: var(--wp--custom--font-weight--medium);
}
.wp-block-table td,
.wp-block-table th {
padding: 5px;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #eee;
}
/* Term Description
--------------------------------------------- */
.wp-block-term-description {
margin-top: 10px !important;
margin-bottom: 60px !important;
}
/* Custom
---------------------------------------------------------------------------- */
/* Forms
--------------------------------------------- */
input,
select,
textarea,
.wp-block-search__input {
background-color: var(--wp--preset--color--base);
border: 1px solid var(--wp--preset--color--main);
border-radius: 0;
color: var(--wp--preset--color--main);
font-family: var(--wp--preset--font-family--primary);
font-size: var(--wp--preset--font-size--medium);
font-weight: var(--wp--custom--font-weight--regular);
line-height: var(--wp--custom--line-height--body);
padding: 10px 20px;
width: 100%;
}
input[type="checkbox"],
input[type="image"],
input[type="radio"] {
width: auto;
}
input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
-webkit-appearance: none;
}
::placeholder {
color: var(--wp--preset--color--main);
font-size: var(--wp--preset--font-size--small);
opacity: 0.6;
}
.nf-field-container {
margin-bottom: 10px;
}
/* Experimental Styles
--------------------------------------------- */
/*
* Remove bottom margin when blocks are placed in container blocks that do not
* support blockGap (i.e. Column, Cover, Media & Text)
*/
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
.wp-block-image:last-child {
margin-bottom: 0;
}
.is-root-container h1 + *,
.is-root-container h2 + *,
.is-root-container h3 + *,
.is-root-container h4 + *,
.is-root-container h5 + *,
.is-root-container h6 + *,
.wp-block-post-content h1 + *,
.wp-block-post-content h2 + *,
.wp-block-post-content h3 + *,
.wp-block-post-content h4 + *,
.wp-block-post-content h5 + *,
.wp-block-post-content h6 + *,
.wp-block-query-title + * {
margin-top: 10px;
}
.wp-block-spacer + * {
margin-top: 0 !important;
}
/* Media Queries
---------------------------------------------------------------------------- */
@media only screen and (min-width: 800px) {
/* Navigation Link
--------------------------------------------- */
.wp-block-navigation-item.is-style-outline a {
padding: 5px 20px;
}
.wp-block-navigation-item.is-style-outline a {
border: 1px solid var(--wp--preset--color--base);
box-shadow: 3px 3px var(--wp--preset--color--base);
}
.wp-block-navigation-item.is-style-outline a:focus,
.wp-block-navigation-item.is-style-outline a:hover {
box-shadow: 5px 5px var(--wp--preset--color--base);
}
/* Pullquote
--------------------------------------------- */
.wp-block-pullquote.alignleft,
.wp-block-pullquote.alignright {
max-width: 300px;
}
.wp-block-pullquote.alignleft {
float: left;
margin-right: 30px !important;
}
.wp-block-pullquote.alignright {
float: right;
margin-left: 30px !important;
}
}