Skip to content

Commit

Permalink
Merge pull request #13 from INN/3780-largo-0.6.4
Browse files Browse the repository at this point in the history
3780 largo 0.6.4
  • Loading branch information
benlk authored Aug 14, 2019
2 parents e727aef + 8565383 commit 80fd0d5
Show file tree
Hide file tree
Showing 14 changed files with 153 additions and 82 deletions.
2 changes: 1 addition & 1 deletion wp-content/themes/largo
Submodule largo updated from 8373ee to c41d85
85 changes: 44 additions & 41 deletions wp-content/themes/wisconsinwatch/css/child.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wp-content/themes/wisconsinwatch/css/child.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-content/themes/wisconsinwatch/css/child.min.css

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions wp-content/themes/wisconsinwatch/css/editor-styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions wp-content/themes/wisconsinwatch/css/editor-styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions wp-content/themes/wisconsinwatch/css/editor-styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion wp-content/themes/wisconsinwatch/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ function wcij_includes() {
}
add_action( 'after_setup_theme', 'wcij_includes', 10 ); // must run after function Largo() which runs with priority 10


/**
* Enqueue editor styles
*/
function wcij_editor_styles() {
$suffix = ( LARGO_DEBUG )? '' : '.min';
add_editor_style( 'css/child' . $suffix . '.css' );
}
add_action( 'after_setup_theme', 'wcij_editor_styles', 15 ); // running at 15 so it comes after Gutenberg's styles

/**
* Include compiled style.css
*/
Expand Down Expand Up @@ -85,7 +95,7 @@ function largo_child_enqueue() {
'largo-child',
get_stylesheet_directory_uri() . '/js/largo-child.js',
array('jquery'),
'20180207'
filemtime( get_stylesheet_directory() . '/js/largo-child.js' )
);
}
add_action( 'wp_enqueue_scripts', 'largo_child_enqueue' );
Expand Down
1 change: 1 addition & 0 deletions wp-content/themes/wisconsinwatch/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = function(grunt) {

var CSS_LESS_FILES = {
'css/child.css': 'less/style.less',
'css/editor-styles.css': 'less/editor-styles.less'
};

grunt.initConfig({
Expand Down
2 changes: 2 additions & 0 deletions wp-content/themes/wisconsinwatch/less/editor-styles.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'vars.less';
@import 'typography.less';
36 changes: 0 additions & 36 deletions wp-content/themes/wisconsinwatch/less/legacy-css.less
Original file line number Diff line number Diff line change
@@ -1,35 +1,3 @@
body {
font-family: 'freight-text-pro', Georgia, serif;
font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'minion-pro', Georgia, serif;
font-weight: 600;
}
h5.top-tag,
h5.top-date,
.sidebar2 h5,
.widgettitle,
.byline,
.sticky-footer-container h4,
.global-nav,
.navbar,
#topics-bar ul,
#supplementary ul.menu,
#supplementary p,
#site-footer .widget_text h5,
#boilerplate,
p.wp-caption-text,
p.wp-media-credit,
#dark-top p,
.widget.largo-series-posts,
.widget.largo-series-posts p,
.widget p,
.widget ul,
.single-post .sidebar2 {
font-family: @sans;
letter-spacing: 0.035em;
}
#dark-top {
letter-spacing: 0.065em;
}
Expand Down Expand Up @@ -95,10 +63,6 @@ body.normal.page .hero {
.single-post .hero {
background-color: #fff;
}
p.intro,
p.wp-caption-text {
font-style: normal;
}
.entry-content p.wp-media-credit {
font-size: 13px;
}
Expand Down
1 change: 1 addition & 0 deletions wp-content/themes/wisconsinwatch/less/style.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'legacy-css.less';
@import 'vars.less';
@import 'typography.less';
@import 'header.less';
@import 'forms.less';
@import 'trust-project.less';
Expand Down
39 changes: 39 additions & 0 deletions wp-content/themes/wisconsinwatch/less/typography.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
h5.top-tag,
h5.top-date,
.sidebar2 h5,
.widgettitle,
.byline,
.sticky-footer-container h4,
.global-nav,
.navbar,
#topics-bar ul,
#supplementary ul.menu,
#supplementary p,
#site-footer .widget_text h5,
#boilerplate,
p.wp-caption-text,
p.wp-media-credit,
.wp-block-gallery figcaption,
.wp-block-image figcaption,
#dark-top p,
.widget.largo-series-posts,
.widget.largo-series-posts p,
.widget p,
.widget ul,
.single-post .sidebar2 {
font-family: @sans;
letter-spacing: 0.035em;
}
body {
font-family: 'freight-text-pro', Georgia, serif;
font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'minion-pro', Georgia, serif;
font-weight: 600;
}
p.intro,
p.wp-caption-text,
.wp-block-image figcaption {
font-style: normal;
}
2 changes: 1 addition & 1 deletion wp-content/themes/wisconsinwatch/series-split.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php
if ( $opt['show_series_byline'] )
echo '<h5 class="byline">' . largo_byline( false ) . '</h5>';
echo '<h5 class="byline">' . largo_byline( false , null, get_the_ID() ) . '</h5>';
if ( $opt['show_sharebar'] )
largo_post_social_links();
?>
Expand Down

0 comments on commit 80fd0d5

Please sign in to comment.