Skip to content

Commit

Permalink
Gutenberg optimization and more
Browse files Browse the repository at this point in the history
* Gutenberg optimization updates
* Fixed issue with header video not working on home template
* Updated flexslider.js script
* Updated recommended plugins
* Allow date range to be displayed
* Past tour dates now display
* Conditional style fixes
* General cleanup
  • Loading branch information
itsdavidmorgan committed Nov 30, 2018
1 parent 0dd319d commit e32affd
Show file tree
Hide file tree
Showing 12 changed files with 465 additions and 810 deletions.
14 changes: 12 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Music Lite ===

Version: 1.2.2
Version: 1.3
Contributors: organicthemes, itsdavidmorgan
Tags: blog, portfolio, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, custom-logo, featured-images, featured-image-header, flexible-header, full-width-template, translation-ready, sticky-post, threaded-comments, editor-style, theme-options, footer-widgets
Requires at least: 4.8
Tested up to: 4.9.2
Tested up to: 5.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -48,6 +48,16 @@ Music Lite is distributed under the terms of the GNU GPL

== Changelog ==

== 1.3 ==
* Gutenberg optimization updates
* Fixed issue with header video not working on home template
* Updated flexslider.js script
* Updated recommended plugins
* Allow date range to be displayed
* Past tour dates now display
* Conditional style fixes
* General cleanup

== 1.2.2 ==
* Fixed issue of custom admin submenu link overwriting other links

Expand Down
2 changes: 1 addition & 1 deletion content/loop-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</div>

<!-- END .page-holder -->
</article>
</article>

<?php if ( comments_open() || '0' != get_comments_number() ) comments_template(); ?>

Expand Down
29 changes: 10 additions & 19 deletions content/loop-tour-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,20 @@

<?php
$wp_query = new WP_Query( array(
'post_type' => 'tour-date',
'suppress_filters' => 0,
'posts_per_page' => 4,
'orderby' => 'meta_value',
'meta_key' => 'tour_date_info_timestamp',
'order' => 'ASC',
'meta_query' => array(array(
'key' => 'tour_date_info_timestamp',
'value' => strtotime( '-5 days' ),
'compare' => '>',
'type' => 'NUMERIC',
),
),
'post_type' => 'tour-date',
'suppress_filters' => 0,
'posts_per_page' => 4,
'order' => 'ASC',
));

if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post();

$previous_date = organic_cc_tour_date_get_meta( 'tour_date_info_timestamp' ) < strtotime( '-1 days' ) ? true : false;
$tour_date = organic_cc_tour_date_get_meta( 'tour_date_info_date' );
$tour_date_time = organic_cc_tour_date_get_meta( 'tour_date_info_time' );
$tour_date_venue = organic_cc_tour_date_get_meta( 'tour_date_info_venue' );
$previous_date = organic_cc_tour_date_get_meta( 'tour_date_info_timestamp' ) < strtotime( '-1 days' ) ? true : false;
$tour_date = organic_cc_tour_date_get_meta( 'tour_date_info_date' );
$tour_date_time = organic_cc_tour_date_get_meta( 'tour_date_info_time' );
$tour_date_venue = organic_cc_tour_date_get_meta( 'tour_date_info_venue' );
$tour_date_venue_url = organic_cc_tour_date_get_meta( 'tour_date_info_venue_ticketing_url' );
$tour_date_location = organic_cc_tour_date_get_meta( 'tour_date_info_location_city_state_province_country_etc_' );
$tour_date_location = organic_cc_tour_date_get_meta( 'tour_date_info_location_city_state_province_country_etc_' );
?>

<!-- BEGIN .tour-date-->
Expand Down Expand Up @@ -67,4 +58,4 @@
<?php endwhile; ?>
<?php endif; ?>

<?php wp_reset_postdata(); ?>
<?php wp_reset_query(); ?>
186 changes: 186 additions & 0 deletions css/gutenberg.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
/************************************************
Gutenberg Editor
************************************************/

body.block-editor-page .edit-post-visual-editor .editor-post-title__block,
body.block-editor-page .edit-post-visual-editor .editor-default-block-appender,
body.block-editor-page .edit-post-visual-editor .editor-block-list__block {
max-width: 760px;
}
body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="wide"] {
max-width: 920px;
}
body.block-editor-page .edit-post-visual-editor .editor-block-list__block[data-align="full"] {
max-width: none;
}

/* Body */

.mce-content-body,
.editor-rich-text__tinymce {
color: rgba(0, 0, 0, 0.7);
font-family: 'Roboto';
font-size: 1rem;
line-height: 1.65;
}
.edit-post-visual-editor h1.editor-rich-text__tinymce,
.edit-post-visual-editor h2.editor-rich-text__tinymce,
.edit-post-visual-editor h3.editor-rich-text__tinymce,
.edit-post-visual-editor h4.editor-rich-text__tinymce,
.edit-post-visual-editor h5.editor-rich-text__tinymce,
.edit-post-visual-editor h6.editor-rich-text__tinymce,
.editor-post-title__block .editor-post-title__input {
color: #000000;
font-family: 'Oswald';
font-weight: 400;
line-height: 1.1;
text-transform: uppercase;
word-wrap: break-word;
}
.editor-post-title__block .editor-post-title__input {
text-align: center;
}
.edit-post-visual-editor h1.editor-rich-text__tinymce,
.editor-post-title__block .editor-post-title__input {
font-size: 3.2rem;
}
.edit-post-visual-editor h2.editor-rich-text__tinymce {
font-size: 2.8rem;
}
.edit-post-visual-editor h3.editor-rich-text__tinymce {
font-size: 2.4rem;
}
.edit-post-visual-editor h4.editor-rich-text__tinymce {
font-size: 2rem;
}
.edit-post-visual-editor h5.editor-rich-text__tinymce {
font-size: 1.6rem;
}
.edit-post-visual-editor h6.editor-rich-text__tinymce {
font-size: 1.3rem;
}
.edit-post-visual-editor .wp-block-code {
color: #666666;
font-family: Courier, sans-serif;
line-height: 1.4;
margin: 24px 0px;
padding: 12px;
border: 2px solid rgba(0, 0, 0, 0.24);
box-shadow: inset 0px 0px 6px rgba(0, 0, 0, 0.12);
box-sizing: border-box;
border-radius: 3px;
}

/* Blockquotes */

blockquote.wp-block-quote {
margin: 24px 0px;
padding: 12px 18px;
border-left: 2px solid rgba(0, 0, 0, 0.12);
}
blockquote.wp-block-quote:not(.is-large):not(.is-style-large) {
padding-left: 18px;
border-left: 2px solid rgba(0, 0, 0, 0.12);
}
blockquote.wp-block-quote .editor-rich-text__tinymce p {
font-size: 130%;
line-height: 1.5;
}
blockquote.wp-block-quote cite,
blockquote.wp-block-quote footer,
blockquote.wp-block-quote .wp-block-quote__citation {
display: block;
color: rgba(0, 0, 0, 0.4);
font-size: 0.85rem;
margin-top: 12px;
}
blockquote.wp-block-quote cite::before,
blockquote.wp-block-quote footer::before,
blockquote.wp-block-quote .wp-block-quote__citation::before {
content: '— '
}

/* Tables */

.edit-post-visual-editor table {
width: 100%;
margin: 24px 0px;
padding: 0px;
border-collapse: collapse;
border-spacing: 0;
}
.edit-post-visual-editor table thead,
.edit-post-visual-editor table tfoot {
border: 1px solid #dddddd;
border: 1px solid rgba(0, 0, 0, 0.12);
}
.edit-post-visual-editor table thead th,
.edit-post-visual-editor table tfoot td {
border: none;
}
.edit-post-visual-editor table th {
font-size: 1.2rem;
margin: 0px;
padding: 12px;
border: 1px solid #dddddd;
border: 1px solid rgba(0, 0, 0, 0.12);
box-sizing: border-box;
}
.edit-post-visual-editor table td {
padding: 12px;
margin: 0px;
border: 1px solid #dddddd;
border: 1px solid rgba(0, 0, 0, 0.12);
box-sizing: border-box;
}
.edit-post-visual-editor table .wp-block-table__cell-content {
padding: 0px;
}
.edit-post-visual-editor table.wp-block-table.is-style-stripes {
border-collapse: collapse;
}
.edit-post-visual-editor table.wp-block-table.is-style-stripes td {
border: 1px solid #dddddd;
border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Theme Styles */

.wp-block-image {
max-width: none;
margin: 16px auto;
padding: 0px;
}
.wp-block-image figcaption {
width: 100%;
}
.wp-block-gallery .blocks-gallery-item {
margin-left: 0px;
margin-right: 0px;
padding: 0px;
}
.wp-block-gallery .blocks-gallery-image {
margin-left: 0px;
margin-right: 0px;
}
.wp-block-gallery .blocks-gallery-image figcaption,
.wp-block-gallery .blocks-gallery-item figcaption {
box-sizing: border-box;
}
.wp-block-cover-image {
margin: 16px auto;
padding: 24px 0px;
}
.wp-block-cover-image.has-background-dim,
.wp-block-cover-image.has-background-dim h2 {
color: #ffffff;
}
.wp-block-button {
position: relative;
text-align: center;
box-sizing: border-box;
}
.wp-block-button.alignwide a {
display: block;
position: relative;
}
22 changes: 19 additions & 3 deletions css/style-conditionals.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,20 @@
.music-lite-bg-dark .headline {
color: #ffffff;
}
.music-lite-bg-dark, .music-lite-bg-dark p, .music-lite-bg-dark blockquote {
.music-lite-bg-dark, .music-lite-bg-dark p, .music-lite-bg-dark figcaption,
.music-lite-bg-dark cite, .music-lite-bg-dark blockquote {
color: rgba(255, 255, 255, 0.8);
}
.music-lite-bg-dark blockquote {
border-color: rgba(255, 255, 255, 1);
border-color: rgba(255, 255, 255, 1) !important;
}
.music-lite-bg-light h1, .music-lite-bg-light h2, .music-lite-bg-light h3,
.music-lite-bg-light h4, .music-lite-bg-light h5, .music-lite-bg-light h6,
.music-lite-bg-dark .wp-block-organic-profile-block h3,
.music-lite-bg-light .headline {
color: #000000;
}
.music-lite-bg-light, .music-lite-bg-light p, .music-lite-bg-light blockquote {
.music-lite-bg-light, .music-lite-bg-light p, .music-lite-bg-light cite, .music-lite-bg-light blockquote, .music-lite-bg-dark .wp-block-organic-profile-block p {
color: rgba(0, 0, 0, 0.6);
}
.music-lite-bg-light blockquote {
Expand Down Expand Up @@ -295,6 +297,20 @@
.music-lite-desc-inactive #masthead {
display: none;
}
.page.music-sidebar-inactive .alignfull,
.single.music-sidebar-inactive .alignfull {
width: 100vw;
left: calc(-50vw + 50%);
margin-left: 0px;
margin-right: 0px;
}
.page.music-sidebar-inactive .alignwide,
.single.music-sidebar-inactive .alignwide {
width: calc(100% + 120px);
left: -60px;
margin-left: 0px;
margin-right: 0px;
}

/* Elements */

Expand Down
Loading

0 comments on commit e32affd

Please sign in to comment.