Shawburn: Add Full Site Editing Support (#1650)

This commit is contained in:
Jacopo Tomasone 2019-11-12 12:31:26 +00:00 committed by GitHub
parent 7740ebaf7b
commit f1871fa4cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1107 additions and 311 deletions

View file

@ -99,6 +99,9 @@ if ( ! function_exists( 'shawburn_setup' ) ) :
),
)
);
// Enable Full Site Editing
add_theme_support( 'full-site-editing' );
}
endif;
add_action( 'after_setup_theme', 'shawburn_setup', 12 );

View file

@ -157,111 +157,6 @@ hr.wp-block-separator.is-style-wide,
}
}
/**
* Main Menu
*/
#site-navigation {
background-color: $color_primary_default;
order: 2;
text-align: center;
width: 100%;
&.main-navigation {
ul > li:hover > a,
ul > li.focus > a,
ul > li.current-menu-item > a {
background-color: $color_primary_hover;
}
ul {
text-align: inherit;
li {
text-align: left;
&:first-of-type {
> a {
padding-left: map-deep-get($config-global, "spacing", "unit");
}
}
&:last-of-type {
> a {
padding-right: map-deep-get($config-global, "spacing", "unit");
}
}
a {
padding: map-deep-get($config-global, "spacing", "unit");
text-decoration: none;
&:before,
&:after {
margin: 0;
}
}
}
@include media(mobile) {
li {
padding: 0;
}
&.main-menu > li:after {
color: $color_primary_hover;
content: "\2022";
display: inline;
font-size: map-deep-get($config-global, "font", "size", "sm");
line-height: 1;
padding: #{map-deep-get($config-global, "spacing", "unit")} #{0.5 * map-deep-get($config-global, "spacing", "unit")};
}
&.main-menu > li:last-child:after {
display: none;
}
}
ul {
background-color: $color_primary_default;
box-shadow: none;
}
}
.main-menu {
margin-left: 0;
margin-right: 0;
}
}
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: map-deep-get($config-global, "color", "primary", "default");
color: map-deep-get($config-global, "color", "background", "default");
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
&:active,
&:focus,
&:hover {
background: map-deep-get($config-global, "color", "primary", "hover");
color: map-deep-get($config-global, "color", "background", "default");
}
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid map-deep-get($config-global, "color", "background", "default");
@include media(mobile) {
border-top: 0;
}
}
/**
* Footer Menu
*/

View file

@ -0,0 +1,41 @@
@import "../../varia/sass/full-site-editing/editor";
@import 'site-navigation';
.fse-template-part {
.has-normal-font-size {
font-size: map-deep-get($config-global, "font", "size", "md");
}
.site-description {
@include font-family( map-deep-get($config-header, "branding", "description", "font", "family") );
}
.main-navigation {
text-transform: uppercase;
@extend #site-navigation;
.has-background > .main-menu.footer-menu {
padding: 0;
}
.has-text-color ul.main-menu > li:after {
color: inherit;
}
}
.wp-block-cover,
.wp-block-cover-image {
.site-title {
font-weight: #{map-deep-get($config-heading, "font", "weight")};
}
.has-background {
text-shadow: none;
}
}
}
.post-content__block {
margin-top: -36px;
}

View file

@ -18,12 +18,12 @@ $spacing_unit: map-deep-get($config-global, "spacing", "unit");
.main-navigation {
@extend #site-navigation;
& > div {
@include media(mobile) {
display: block;
}
.has-background > .main-menu.footer-menu {
padding: 0;
}
.has-text-color ul.main-menu > li:after {
color: inherit;
}
}
@include media(mobile-only) {

View file

@ -0,0 +1,107 @@
$color_primary_default: #{map-deep-get($config-global, "color", "primary", "default")};
$color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
/**
* Main Menu
*/
#site-navigation {
background-color: $color_primary_default;
order: 2;
text-align: center;
width: 100%;
&.main-navigation {
ul > li:hover > a,
ul > li.focus > a,
ul > li.current-menu-item > a {
background-color: $color_primary_hover;
}
ul {
text-align: inherit;
li {
text-align: left;
&:first-of-type {
> a {
padding-left: map-deep-get($config-global, "spacing", "unit");
}
}
&:last-of-type {
> a {
padding-right: map-deep-get($config-global, "spacing", "unit");
}
}
a {
padding: map-deep-get($config-global, "spacing", "unit");
text-decoration: none;
&:before,
&:after {
margin: 0;
}
}
}
@include media(mobile) {
li {
padding: 0;
}
&.main-menu > li:after {
color: $color_primary_hover;
content: "\2022";
display: inline;
font-size: map-deep-get($config-global, "font", "size", "sm");
line-height: 1;
padding: #{map-deep-get($config-global, "spacing", "unit")} #{0.5 * map-deep-get($config-global, "spacing", "unit")};
}
&.main-menu > li:last-child:after {
display: none;
}
}
ul {
background-color: $color_primary_default;
box-shadow: none;
}
}
.main-menu {
margin-left: 0;
margin-right: 0;
}
}
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: map-deep-get($config-global, "color", "primary", "default");
color: map-deep-get($config-global, "color", "background", "default");
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
&:active,
&:focus,
&:hover {
background: map-deep-get($config-global, "color", "primary", "hover");
color: map-deep-get($config-global, "color", "background", "default");
}
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid map-deep-get($config-global, "color", "background", "default");
@include media(mobile) {
border-top: 0;
}
}

View file

@ -38,3 +38,9 @@
.editor-post-title__input {
text-align: center;
}
/**
* Full Site Editing
* - Full Site Editing overrides
*/
@import "full-site-editing-editor";

View file

@ -10,7 +10,7 @@ License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Text Domain: shawburn
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles, full-site-editing
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
@ -88,3 +88,15 @@ Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
* Child Theme Extra Styles
*/
@import "extra-child-theme";
/**
* Site Navigation Styles
*/
@import "site-navigation";
/**
* Full Site Editing
* - Full Site Editing overrides
*/
@import "full-site-editing";

View file

@ -1,3 +1,4 @@
@charset "UTF-8";
/**
* These styles should be loaded by the Block Editor only
*/
@ -1009,3 +1010,500 @@ table th,
.editor-post-title__input {
text-align: center;
}
/**
* Full Site Editing
* - Full Site Editing overrides
*/
@media (min-width: 600px) {
.a8c-template-editor .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] .block-editor-block-list__layout .block-editor-block-list__block[data-align="full"] {
margin-left: 0;
margin-right: 0;
}
}
.template-block .fse-template-part {
padding: 16px;
}
@media only screen and (min-width: 560px) {
.template-block .fse-template-part {
padding: 32px 0;
}
}
.template-block .fse-template-part figure.fse-site-logo {
width: auto;
}
.fse-template-part .wp-block-cover .site-title,
.fse-template-part .wp-block-cover .site-description,
.fse-template-part .wp-block-cover-image .site-title,
.fse-template-part .wp-block-cover-image .site-description {
background: transparent;
color: inherit;
}
.fse-template-part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full] > .block-editor-block-list__block-edit figure.fse-site-logo {
width: auto;
}
.fse-template-part .main-navigation {
color: white;
}
.fse-template-part .main-navigation > div {
display: none;
}
.fse-template-part .main-navigation #toggle-menu {
display: inline-block;
margin: 0;
}
.fse-template-part .main-navigation #toggle:checked ~ div:not(.woocommerce-menu-container) {
display: block;
}
.fse-template-part .main-navigation #toggle:focus + #toggle-menu {
background-color: white;
outline: inherit;
text-decoration: underline;
}
.fse-template-part .main-navigation .dropdown-icon.close {
display: none;
}
.fse-template-part .main-navigation #toggle:checked + #toggle-menu .open {
display: none;
}
.fse-template-part .main-navigation #toggle:checked + #toggle-menu .close {
display: inline;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation > div {
display: inline-block;
}
.fse-template-part .main-navigation #toggle-menu {
display: none;
}
.fse-template-part .main-navigation > div > ul > li > ul {
display: none;
}
}
.fse-template-part .main-navigation > div > ul {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
max-width: none;
padding-left: 0;
position: relative;
/* Sub-menus Flyout */
}
.fse-template-part .main-navigation > div > ul ul {
padding-left: 0;
}
.fse-template-part .main-navigation > div > ul li {
display: block;
position: relative;
width: 100%;
z-index: 1;
}
.fse-template-part .main-navigation > div > ul li:hover, .fse-template-part .main-navigation > div > ul li[focus-within] {
cursor: pointer;
z-index: 99999;
}
.fse-template-part .main-navigation > div > ul li:hover, .fse-template-part .main-navigation > div > ul li:focus-within {
cursor: pointer;
z-index: 99999;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation > div > ul li {
display: inherit;
width: inherit;
/* Submenu display */
}
.fse-template-part .main-navigation > div > ul li:hover > ul,
.fse-template-part .main-navigation > div > ul li[focus-within] > ul,
.fse-template-part .main-navigation > div > ul li ul:hover,
.fse-template-part .main-navigation > div > ul li ul:focus {
visibility: visible;
opacity: 1;
display: block;
}
.fse-template-part .main-navigation > div > ul li:hover > ul,
.fse-template-part .main-navigation > div > ul li:focus-within > ul,
.fse-template-part .main-navigation > div > ul li ul:hover,
.fse-template-part .main-navigation > div > ul li ul:focus {
visibility: visible;
opacity: 1;
display: block;
}
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation > div > ul > li > a {
line-height: 1;
}
.fse-template-part .main-navigation > div > ul > li > a:before, .fse-template-part .main-navigation > div > ul > li > a:after {
content: '';
display: block;
height: 0;
width: 0;
}
.fse-template-part .main-navigation > div > ul > li > a:before {
margin-bottom: -0.12em;
}
.fse-template-part .main-navigation > div > ul > li > a:after {
margin-top: -0.11em;
}
.fse-template-part .main-navigation > div > ul > li:first-of-type > a {
padding-left: 0;
}
.fse-template-part .main-navigation > div > ul > li:last-of-type > a {
padding-right: 0;
}
}
.fse-template-part .main-navigation > div > ul > li > .sub-menu {
margin: 0;
position: relative;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation > div > ul > li > .sub-menu {
background: white;
box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
left: 0;
top: 100%;
min-width: max-content;
opacity: 0;
position: absolute;
transition: all 0.5s ease;
visibility: hidden;
}
}
.fse-template-part .main-navigation > div > ul > li > .sub-menu .sub-menu {
width: 100%;
}
.fse-template-part .main-navigation a {
color: white;
display: block;
font-family: "PT Sans", Arial, sans-serif;
font-family: var(--font-base, "PT Sans", Arial, sans-serif);
font-weight: 700;
padding: 8px 0;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation a {
padding: 16px;
}
}
.fse-template-part .main-navigation a:link, .fse-template-part .main-navigation a:visited {
color: white;
}
.fse-template-part .main-navigation a:hover {
color: white;
}
.fse-template-part .main-navigation .sub-menu {
list-style: none;
margin-left: 0;
/* Reset the counter for each UL */
counter-reset: nested-list;
}
.fse-template-part .main-navigation .sub-menu .menu-item a {
padding-top: 8px;
padding-bottom: 8px;
}
.fse-template-part .main-navigation .sub-menu .menu-item a::before {
/* Increment the dashes */
counter-increment: nested-list;
/* Insert dashes with spaces in between */
content: " " counters(nested-list, " ", none);
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation > div > ul > .menu-item-has-children > a::after {
content: "\00a0\25BC";
display: inline-block;
font-size: 0.69444rem;
height: inherit;
width: inherit;
}
}
.fse-template-part .main-navigation .hide-visually {
position: absolute !important;
clip: rect(1px, 1px, 1px, 1px);
padding: 0 !important;
border: 0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}
.fse-template-part body:not(.fse-enabled) .main-navigation a {
font-size: 0.83333rem;
}
.fse-template-part .main-navigation {
text-align: center;
/**
* Button Placeholder style
* - Since buttons appear in various blocks,
* lets use a placeholder to keep them all
* in-sync
*/
/**
* Onsale Placeholder style
* - Since buttons appear in various blocks,
* lets use a placeholder to keep them all
* in-sync
*/
}
.fse-template-part .main-navigation .alignwide, .fse-template-part .main-navigation .alignfull {
width: 100%;
}
.fse-template-part .main-navigation .button {
line-height: 1;
color: white;
cursor: pointer;
font-weight: 700;
font-family: "PT Sans", Arial, sans-serif;
font-family: var(--font-base, "PT Sans", Arial, sans-serif);
font-size: 0.83333rem;
background-color: #0C80A1;
border-radius: 4px;
border-width: 0;
padding: 16px 24px;
}
.fse-template-part .main-navigation .button:before, .fse-template-part .main-navigation .button:after {
content: '';
display: block;
height: 0;
width: 0;
}
.fse-template-part .main-navigation .button:before {
margin-bottom: -0.12em;
}
.fse-template-part .main-navigation .button:after {
margin-top: -0.11em;
}
.fse-template-part .main-navigation .button:hover, .fse-template-part .main-navigation .button:focus, .fse-template-part .main-navigation .has-focus.button {
color: white;
background-color: #085a72;
}
.fse-template-part .main-navigation .main-menu.footer-menu li a {
font-size: inherit;
}
.fse-template-part .main-navigation .main-menu.footer-menu li.menu-item-has-children > a::after {
font-size: 0.6em;
vertical-align: middle;
}
.fse-template-part .main-navigation .has-text-color > .main-menu.footer-menu > li > a {
color: inherit;
}
.fse-template-part .main-navigation .has-text-align-left > .main-menu.footer-menu {
justify-content: flex-start;
}
.fse-template-part .main-navigation .has-text-align-center > .main-menu.footer-menu {
justify-content: center;
}
.fse-template-part .main-navigation .has-text-align-right > .main-menu.footer-menu {
justify-content: flex-end;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 16px;
}
@media only screen and (min-width: 560px) {
.a8c-template-editor.fse-header .block-editor-block-list__layout > .block-editor-block-list__block.is-selected:first-child[data-align='full'] > .block-editor-block-list__block-edit > [data-block] {
margin-top: 14px;
}
.a8c-template-editor.fse-header .block-editor-block-list__layout > .block-editor-block-list__block:not(.is-selected):first-child[data-align='full'] > .block-editor-block-list__block-edit > [data-block] {
margin-top: 0;
}
}
.template-block .fse-header .block-editor-block-list__layout > .block-editor-block-list__block:first-child[data-align='full'] {
margin-top: -16px;
}
@media only screen and (min-width: 560px) {
.template-block .fse-header .block-editor-block-list__layout > .block-editor-block-list__block:first-child[data-align='full'] {
margin-top: -32px;
}
}
.post-content__block {
margin-bottom: 160px;
margin-top: 36px;
z-index: 20;
}
/**
* Main Menu
*/
#site-navigation, .fse-template-part .main-navigation {
background-color: #0C80A1;
order: 2;
text-align: center;
width: 100%;
}
#site-navigation.main-navigation ul > li:hover > a, .fse-template-part .main-navigation ul > li:hover > a,
#site-navigation.main-navigation ul > li.focus > a,
.fse-template-part .main-navigation ul > li.focus > a,
#site-navigation.main-navigation ul > li.current-menu-item > a,
.fse-template-part .main-navigation ul > li.current-menu-item > a {
background-color: #085a72;
}
#site-navigation.main-navigation ul, .fse-template-part .main-navigation ul {
text-align: inherit;
}
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
text-align: left;
}
#site-navigation.main-navigation ul li:first-of-type > a, .fse-template-part .main-navigation ul li:first-of-type > a {
padding-left: 16px;
}
#site-navigation.main-navigation ul li:last-of-type > a, .fse-template-part .main-navigation ul li:last-of-type > a {
padding-right: 16px;
}
#site-navigation.main-navigation ul li a, .fse-template-part .main-navigation ul li a {
padding: 16px;
text-decoration: none;
}
#site-navigation.main-navigation ul li a:before, .fse-template-part .main-navigation ul li a:before, #site-navigation.main-navigation ul li a:after, .fse-template-part .main-navigation ul li a:after {
margin: 0;
}
@media only screen and (min-width: 560px) {
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
padding: 0;
}
#site-navigation.main-navigation ul.main-menu > li:after, .fse-template-part .main-navigation ul.main-menu > li:after {
color: #085a72;
content: "\2022";
display: inline;
font-size: 0.83333rem;
line-height: 1;
padding: 16px 8px;
}
#site-navigation.main-navigation ul.main-menu > li:last-child:after, .fse-template-part .main-navigation ul.main-menu > li:last-child:after {
display: none;
}
}
#site-navigation.main-navigation ul ul, .fse-template-part .main-navigation ul ul {
background-color: #0C80A1;
box-shadow: none;
}
#site-navigation.main-navigation .main-menu, .fse-template-part .main-navigation .main-menu {
margin-left: 0;
margin-right: 0;
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: #0C80A1;
color: white;
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
}
.main-navigation #toggle:focus + #toggle-menu:active, .main-navigation #toggle:focus + #toggle-menu:focus, .main-navigation #toggle:focus + #toggle-menu:hover,
#toggle-menu:active,
#toggle-menu:focus,
#toggle-menu:hover {
background: #085a72;
color: white;
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid white;
}
@media only screen and (min-width: 560px) {
.main-navigation #toggle:checked ~ div {
border-top: 0;
}
}
.fse-template-part .has-normal-font-size {
font-size: 1.2rem;
}
.fse-template-part .site-description {
font-family: "PT Serif", Times, sans-serif;
font-family: var(--font-headings, "PT Serif", Times, sans-serif);
}
.fse-template-part .main-navigation {
text-transform: uppercase;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 0;
}
.fse-template-part .main-navigation .has-text-color ul.main-menu > li:after {
color: inherit;
}
.fse-template-part .wp-block-cover .site-title,
.fse-template-part .wp-block-cover-image .site-title {
font-weight: 400;
}
.fse-template-part .wp-block-cover .has-background,
.fse-template-part .wp-block-cover-image .has-background {
text-shadow: none;
}
.post-content__block {
margin-top: -36px;
}

View file

@ -11,7 +11,7 @@ License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Text Domain: shawburn
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles, full-site-editing
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
@ -3811,105 +3811,6 @@ hr.wp-block-separator.is-style-wide,
text-align: right;
}
/**
* Main Menu
*/
#site-navigation {
background-color: #0C80A1;
order: 2;
text-align: center;
width: 100%;
}
#site-navigation.main-navigation ul > li:hover > a,
#site-navigation.main-navigation ul > li.focus > a,
#site-navigation.main-navigation ul > li.current-menu-item > a {
background-color: #085a72;
}
#site-navigation.main-navigation ul {
text-align: inherit;
}
#site-navigation.main-navigation ul li {
text-align: right;
}
#site-navigation.main-navigation ul li:first-of-type > a {
padding-right: 16px;
}
#site-navigation.main-navigation ul li:last-of-type > a {
padding-left: 16px;
}
#site-navigation.main-navigation ul li a {
padding: 16px;
text-decoration: none;
}
#site-navigation.main-navigation ul li a:before, #site-navigation.main-navigation ul li a:after {
margin: 0;
}
@media only screen and (min-width: 560px) {
#site-navigation.main-navigation ul li {
padding: 0;
}
#site-navigation.main-navigation ul.main-menu > li:after {
color: #085a72;
content: "\2022";
display: inline;
font-size: 0.83333rem;
line-height: 1;
padding: 16px 8px;
}
#site-navigation.main-navigation ul.main-menu > li:last-child:after {
display: none;
}
}
#site-navigation.main-navigation ul ul {
background-color: #0C80A1;
box-shadow: none;
}
#site-navigation.main-navigation .main-menu {
margin-right: 0;
margin-left: 0;
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: #0C80A1;
color: white;
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
}
.main-navigation #toggle:focus + #toggle-menu:active, .main-navigation #toggle:focus + #toggle-menu:focus, .main-navigation #toggle:focus + #toggle-menu:hover,
#toggle-menu:active,
#toggle-menu:focus,
#toggle-menu:hover {
background: #085a72;
color: white;
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid white;
}
@media only screen and (min-width: 560px) {
.main-navigation #toggle:checked ~ div {
border-top: 0;
}
}
/**
* Footer Menu
*/
@ -4087,3 +3988,219 @@ table th,
.widget_rss .rss-date {
display: block;
}
/**
* Site Navigation Styles
*/
/**
* Main Menu
*/
#site-navigation, .fse-template-part .main-navigation {
background-color: #0C80A1;
order: 2;
text-align: center;
width: 100%;
}
#site-navigation.main-navigation ul > li:hover > a, .fse-template-part .main-navigation ul > li:hover > a,
#site-navigation.main-navigation ul > li.focus > a,
.fse-template-part .main-navigation ul > li.focus > a,
#site-navigation.main-navigation ul > li.current-menu-item > a,
.fse-template-part .main-navigation ul > li.current-menu-item > a {
background-color: #085a72;
}
#site-navigation.main-navigation ul, .fse-template-part .main-navigation ul {
text-align: inherit;
}
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
text-align: right;
}
#site-navigation.main-navigation ul li:first-of-type > a, .fse-template-part .main-navigation ul li:first-of-type > a {
padding-right: 16px;
}
#site-navigation.main-navigation ul li:last-of-type > a, .fse-template-part .main-navigation ul li:last-of-type > a {
padding-left: 16px;
}
#site-navigation.main-navigation ul li a, .fse-template-part .main-navigation ul li a {
padding: 16px;
text-decoration: none;
}
#site-navigation.main-navigation ul li a:before, .fse-template-part .main-navigation ul li a:before, #site-navigation.main-navigation ul li a:after, .fse-template-part .main-navigation ul li a:after {
margin: 0;
}
@media only screen and (min-width: 560px) {
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
padding: 0;
}
#site-navigation.main-navigation ul.main-menu > li:after, .fse-template-part .main-navigation ul.main-menu > li:after {
color: #085a72;
content: "\2022";
display: inline;
font-size: 0.83333rem;
line-height: 1;
padding: 16px 8px;
}
#site-navigation.main-navigation ul.main-menu > li:last-child:after, .fse-template-part .main-navigation ul.main-menu > li:last-child:after {
display: none;
}
}
#site-navigation.main-navigation ul ul, .fse-template-part .main-navigation ul ul {
background-color: #0C80A1;
box-shadow: none;
}
#site-navigation.main-navigation .main-menu, .fse-template-part .main-navigation .main-menu {
margin-right: 0;
margin-left: 0;
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: #0C80A1;
color: white;
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
}
.main-navigation #toggle:focus + #toggle-menu:active, .main-navigation #toggle:focus + #toggle-menu:focus, .main-navigation #toggle:focus + #toggle-menu:hover,
#toggle-menu:active,
#toggle-menu:focus,
#toggle-menu:hover {
background: #085a72;
color: white;
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid white;
}
@media only screen and (min-width: 560px) {
.main-navigation #toggle:checked ~ div {
border-top: 0;
}
}
/**
* Full Site Editing
* - Full Site Editing overrides
*/
.fse-template-part {
margin-bottom: 0;
margin-top: 0;
}
.fse-template-part .main-navigation .alignwide, .fse-template-part .main-navigation .alignfull {
width: 100%;
}
.fse-template-part .main-navigation .has-text-color > .main-menu.footer-menu > li > a {
color: inherit;
}
.fse-template-part .main-navigation .has-text-align-left > .main-menu.footer-menu {
justify-content: flex-start;
}
.fse-template-part .main-navigation .has-text-align-center > .main-menu.footer-menu {
justify-content: center;
}
.fse-template-part .main-navigation .has-text-align-right > .main-menu.footer-menu {
justify-content: flex-end;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 16px 0;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 16px;
}
}
.fse-template-part .main-navigation > div > .main-menu.footer-menu > .menu-item-has-children > a::after {
font-size: 0.6em;
vertical-align: middle;
}
.fse-header > *:first-child:not(.alignfull) {
margin-top: 21.312px;
}
@media only screen and (min-width: 560px) {
.fse-header > *:first-child:not(.alignfull) {
margin-top: 32px;
}
}
.fse-footer {
display: block;
}
.fse-footer .site-info {
margin-top: 21.312px;
margin-bottom: 21.312px;
text-align: center;
}
@media only screen and (min-width: 560px) {
.fse-footer .site-info {
margin-top: 32px;
margin-bottom: 32px;
}
}
.fse-enabled.home.page.hide-homepage-title .fse-header.entry-content {
padding-bottom: 32px;
}
@media only screen and (min-width: 560px) {
.fse-enabled.home.page.hide-homepage-title .fse-header.entry-content {
padding-bottom: 48px;
}
}
.fse-template-part .site-title + .site-description {
margin-top: 8px;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 0;
}
.fse-template-part .main-navigation .has-text-color ul.main-menu > li:after {
color: inherit;
}
@media only screen and (max-width: 559px) {
.fse-template-part {
max-width: calc( 100% - 32px);
}
.fse-template-part .main-navigation > div {
padding: 0 32px;
}
}
.fse-template-part .wp-block-cover .site-title a,
.fse-template-part .wp-block-cover-image .site-title a {
text-decoration: none;
}
.fse-template-part .wp-block-cover .has-background,
.fse-template-part .wp-block-cover-image .has-background {
text-shadow: none;
}

View file

@ -11,7 +11,7 @@ License: GNU General Public License v2 or later
License URI: LICENSE
Template: varia
Text Domain: shawburn
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready, auto-loading-homepage, jetpack-global-styles, full-site-editing
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
@ -3840,105 +3840,6 @@ hr.wp-block-separator.is-style-wide,
text-align: left;
}
/**
* Main Menu
*/
#site-navigation {
background-color: #0C80A1;
order: 2;
text-align: center;
width: 100%;
}
#site-navigation.main-navigation ul > li:hover > a,
#site-navigation.main-navigation ul > li.focus > a,
#site-navigation.main-navigation ul > li.current-menu-item > a {
background-color: #085a72;
}
#site-navigation.main-navigation ul {
text-align: inherit;
}
#site-navigation.main-navigation ul li {
text-align: left;
}
#site-navigation.main-navigation ul li:first-of-type > a {
padding-left: 16px;
}
#site-navigation.main-navigation ul li:last-of-type > a {
padding-right: 16px;
}
#site-navigation.main-navigation ul li a {
padding: 16px;
text-decoration: none;
}
#site-navigation.main-navigation ul li a:before, #site-navigation.main-navigation ul li a:after {
margin: 0;
}
@media only screen and (min-width: 560px) {
#site-navigation.main-navigation ul li {
padding: 0;
}
#site-navigation.main-navigation ul.main-menu > li:after {
color: #085a72;
content: "\2022";
display: inline;
font-size: 0.83333rem;
line-height: 1;
padding: 16px 8px;
}
#site-navigation.main-navigation ul.main-menu > li:last-child:after {
display: none;
}
}
#site-navigation.main-navigation ul ul {
background-color: #0C80A1;
box-shadow: none;
}
#site-navigation.main-navigation .main-menu {
margin-left: 0;
margin-right: 0;
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: #0C80A1;
color: white;
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
}
.main-navigation #toggle:focus + #toggle-menu:active, .main-navigation #toggle:focus + #toggle-menu:focus, .main-navigation #toggle:focus + #toggle-menu:hover,
#toggle-menu:active,
#toggle-menu:focus,
#toggle-menu:hover {
background: #085a72;
color: white;
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid white;
}
@media only screen and (min-width: 560px) {
.main-navigation #toggle:checked ~ div {
border-top: 0;
}
}
/**
* Footer Menu
*/
@ -4116,3 +4017,219 @@ table th,
.widget_rss .rss-date {
display: block;
}
/**
* Site Navigation Styles
*/
/**
* Main Menu
*/
#site-navigation, .fse-template-part .main-navigation {
background-color: #0C80A1;
order: 2;
text-align: center;
width: 100%;
}
#site-navigation.main-navigation ul > li:hover > a, .fse-template-part .main-navigation ul > li:hover > a,
#site-navigation.main-navigation ul > li.focus > a,
.fse-template-part .main-navigation ul > li.focus > a,
#site-navigation.main-navigation ul > li.current-menu-item > a,
.fse-template-part .main-navigation ul > li.current-menu-item > a {
background-color: #085a72;
}
#site-navigation.main-navigation ul, .fse-template-part .main-navigation ul {
text-align: inherit;
}
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
text-align: left;
}
#site-navigation.main-navigation ul li:first-of-type > a, .fse-template-part .main-navigation ul li:first-of-type > a {
padding-left: 16px;
}
#site-navigation.main-navigation ul li:last-of-type > a, .fse-template-part .main-navigation ul li:last-of-type > a {
padding-right: 16px;
}
#site-navigation.main-navigation ul li a, .fse-template-part .main-navigation ul li a {
padding: 16px;
text-decoration: none;
}
#site-navigation.main-navigation ul li a:before, .fse-template-part .main-navigation ul li a:before, #site-navigation.main-navigation ul li a:after, .fse-template-part .main-navigation ul li a:after {
margin: 0;
}
@media only screen and (min-width: 560px) {
#site-navigation.main-navigation ul li, .fse-template-part .main-navigation ul li {
padding: 0;
}
#site-navigation.main-navigation ul.main-menu > li:after, .fse-template-part .main-navigation ul.main-menu > li:after {
color: #085a72;
content: "\2022";
display: inline;
font-size: 0.83333rem;
line-height: 1;
padding: 16px 8px;
}
#site-navigation.main-navigation ul.main-menu > li:last-child:after, .fse-template-part .main-navigation ul.main-menu > li:last-child:after {
display: none;
}
}
#site-navigation.main-navigation ul ul, .fse-template-part .main-navigation ul ul {
background-color: #0C80A1;
box-shadow: none;
}
#site-navigation.main-navigation .main-menu, .fse-template-part .main-navigation .main-menu {
margin-left: 0;
margin-right: 0;
}
/**
* Mobile Menu
*/
.main-navigation #toggle:focus + #toggle-menu,
#toggle-menu {
background: #0C80A1;
color: white;
border-radius: 0;
text-align: center;
text-decoration: none;
width: 100%;
}
.main-navigation #toggle:focus + #toggle-menu:active, .main-navigation #toggle:focus + #toggle-menu:focus, .main-navigation #toggle:focus + #toggle-menu:hover,
#toggle-menu:active,
#toggle-menu:focus,
#toggle-menu:hover {
background: #085a72;
color: white;
}
.main-navigation #toggle:checked ~ div {
border-top: 2px solid white;
}
@media only screen and (min-width: 560px) {
.main-navigation #toggle:checked ~ div {
border-top: 0;
}
}
/**
* Full Site Editing
* - Full Site Editing overrides
*/
.fse-template-part {
margin-bottom: 0;
margin-top: 0;
}
.fse-template-part .main-navigation .alignwide, .fse-template-part .main-navigation .alignfull {
width: 100%;
}
.fse-template-part .main-navigation .has-text-color > .main-menu.footer-menu > li > a {
color: inherit;
}
.fse-template-part .main-navigation .has-text-align-left > .main-menu.footer-menu {
justify-content: flex-start;
}
.fse-template-part .main-navigation .has-text-align-center > .main-menu.footer-menu {
justify-content: center;
}
.fse-template-part .main-navigation .has-text-align-right > .main-menu.footer-menu {
justify-content: flex-end;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 16px 0;
}
@media only screen and (min-width: 560px) {
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 16px;
}
}
.fse-template-part .main-navigation > div > .main-menu.footer-menu > .menu-item-has-children > a::after {
font-size: 0.6em;
vertical-align: middle;
}
.fse-header > *:first-child:not(.alignfull) {
margin-top: 21.312px;
}
@media only screen and (min-width: 560px) {
.fse-header > *:first-child:not(.alignfull) {
margin-top: 32px;
}
}
.fse-footer {
display: block;
}
.fse-footer .site-info {
margin-top: 21.312px;
margin-bottom: 21.312px;
text-align: center;
}
@media only screen and (min-width: 560px) {
.fse-footer .site-info {
margin-top: 32px;
margin-bottom: 32px;
}
}
.fse-enabled.home.page.hide-homepage-title .fse-header.entry-content {
padding-bottom: 32px;
}
@media only screen and (min-width: 560px) {
.fse-enabled.home.page.hide-homepage-title .fse-header.entry-content {
padding-bottom: 48px;
}
}
.fse-template-part .site-title + .site-description {
margin-top: 8px;
}
.fse-template-part .main-navigation .has-background > .main-menu.footer-menu {
padding: 0;
}
.fse-template-part .main-navigation .has-text-color ul.main-menu > li:after {
color: inherit;
}
@media only screen and (max-width: 559px) {
.fse-template-part {
max-width: calc( 100% - 32px);
}
.fse-template-part .main-navigation > div {
padding: 0 32px;
}
}
.fse-template-part .wp-block-cover .site-title a,
.fse-template-part .wp-block-cover-image .site-title a {
text-decoration: none;
}
.fse-template-part .wp-block-cover .has-background,
.fse-template-part .wp-block-cover-image .has-background {
text-shadow: none;
}