├── screenshot.png ├── languages ├── readme.txt └── monostack.pot ├── .editorconfig ├── template-parts ├── content-search.php ├── content-page.php ├── content-none.php └── content.php ├── js ├── skip-link-focus-fix.js ├── customizer.js ├── syntax-highlighting.js └── navigation.js ├── single.php ├── 404.php ├── page.php ├── inc ├── template-functions.php ├── jetpack.php ├── customizer.php ├── custom-header.php └── template-tags.php ├── assets └── images │ └── github-mark.svg ├── archive.php ├── search.php ├── README.md ├── footer.php ├── index.php ├── header.php ├── comments.php ├── readme.txt ├── css └── blocks.css ├── functions.php ├── LICENSE └── style.css /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mapk/monostack/HEAD/screenshot.png -------------------------------------------------------------------------------- /languages/readme.txt: -------------------------------------------------------------------------------- 1 | Place your theme language files in this directory. 2 | 3 | Please visit the following links to learn more about translating WordPress themes: 4 | 5 | https://make.wordpress.org/polyglots/teams/ 6 | https://developer.wordpress.org/themes/functionality/localization/ 7 | https://developer.wordpress.org/reference/functions/load_theme_textdomain/ 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | # WordPress Coding Standards 5 | # https://make.wordpress.org/core/handbook/coding-standards/ 6 | 7 | root = true 8 | 9 | [*] 10 | charset = utf-8 11 | end_of_line = lf 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | indent_style = tab 15 | 16 | [*.yml] 17 | indent_style = space 18 | indent_size = 2 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | -------------------------------------------------------------------------------- /template-parts/content-search.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', esc_url( get_permalink() ) ), '' ); ?> 15 | 16 | 17 | 20 | 21 |
22 |
23 | -------------------------------------------------------------------------------- /js/skip-link-focus-fix.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File skip-link-focus-fix.js. 3 | * 4 | * Helps with accessibility for keyboard only users. 5 | * 6 | * Learn more: https://git.io/vWdr2 7 | */ 8 | ( function() { 9 | var isIe = /(trident|msie)/i.test( navigator.userAgent ); 10 | 11 | if ( isIe && document.getElementById && window.addEventListener ) { 12 | window.addEventListener( 'hashchange', function() { 13 | var id = location.hash.substring( 1 ), 14 | element; 15 | 16 | if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 17 | return; 18 | } 19 | 20 | element = document.getElementById( id ); 21 | 22 | if ( element ) { 23 | if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 24 | element.tabIndex = -1; 25 | } 26 | 27 | element.focus(); 28 | } 29 | }, false ); 30 | } 31 | } )(); 32 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | '← %title', 21 | 'next_text' => '%title →', 22 | ) ); 23 | 24 | // If comments are open or we have at least one comment, load up the comment template. 25 | if ( comments_open() || get_comments_number() ) : 26 | comments_template(); 27 | endif; 28 | 29 | endwhile; // End of the loop. 30 | ?> 31 | 32 |
33 | 34 | 11 | 12 |
13 | 14 |
15 | 18 | 19 |
20 |

21 | 22 | 25 | 26 |
27 |
28 | 29 |
30 | 31 | 16 | 17 |
18 | 19 | 31 | 32 |
33 | 34 | '; 30 | } 31 | } 32 | add_action( 'wp_head', 'monostack_pingback_header' ); 33 | -------------------------------------------------------------------------------- /assets/images/github-mark.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /template-parts/content-page.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); ?> 15 |
16 | 17 |
18 | '', 24 | ) ); 25 | ?> 26 |
27 | 28 | "', '"', false ) 33 | ), 34 | '' 36 | ); ?> 37 |
38 | -------------------------------------------------------------------------------- /js/customizer.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File customizer.js. 3 | * 4 | * Theme Customizer enhancements for a better user experience. 5 | * 6 | * Contains handlers to make Theme Customizer preview reload changes asynchronously. 7 | */ 8 | 9 | ( function( $ ) { 10 | 11 | // Site title and description. 12 | wp.customize( 'blogname', function( value ) { 13 | value.bind( function( to ) { 14 | $( '.site-title a' ).text( to ); 15 | } ); 16 | } ); 17 | wp.customize( 'blogdescription', function( value ) { 18 | value.bind( function( to ) { 19 | $( '.site-description' ).text( to ); 20 | } ); 21 | } ); 22 | 23 | // Header text color. 24 | wp.customize( 'header_textcolor', function( value ) { 25 | value.bind( function( to ) { 26 | if ( 'blank' === to ) { 27 | $( '.site-title, .site-description' ).css( { 28 | 'clip': 'rect(1px, 1px, 1px, 1px)', 29 | 'position': 'absolute' 30 | } ); 31 | } else { 32 | $( '.site-title, .site-description' ).css( { 33 | 'clip': 'auto', 34 | 'position': 'relative' 35 | } ); 36 | $( '.site-title a, .site-description' ).css( { 37 | 'color': to 38 | } ); 39 | } 40 | } ); 41 | } ); 42 | } )( jQuery ); 43 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | 16 | 17 | 23 | 24 | 44 | 45 |
46 | 47 | 11 | 12 |
13 | 14 | 16 | 17 | 23 | 24 | 44 | 45 |
46 | 47 | 13 | 14 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /js/syntax-highlighting.js: -------------------------------------------------------------------------------- 1 | 2 | // Highlight words in text. 3 | 4 | ( spec => { 5 | 6 | const prepositions = valuesToRegex( monostack_prepositions ); 7 | const conjunctions = valuesToRegex( monostack_conjunctions ); 8 | const pronouns = valuesToRegex( monostack_pronouns ); 9 | 10 | function preg_quote (str, delimiter) { 11 | // @see http://locutus.io/php/preg_quote/ 12 | return ( str + '' ).replace( new RegExp( '[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + ( delimiter || '' ) + '-]', 'g'), '\\$&' ); 13 | } 14 | 15 | function valuesToRegex( arr ) { 16 | return new RegExp( `^(${ arr.map( preg_quote ).join( '|' ) })$`, 'i' ); 17 | } 18 | 19 | function highlight( node ) { 20 | node.innerHTML = node.innerHTML.split( ' ' ).map( word => { 21 | if ( prepositions.test( word ) ) { 22 | return `${ word }`; 23 | } else if ( conjunctions.test( word ) ) { 24 | return `${ word }`; 25 | } else if ( pronouns.test( word ) ) { 26 | return `${ word }`; 27 | } 28 | return word; 29 | } ).join( ' ' ); 30 | } 31 | 32 | document.querySelectorAll( '.hentry .entry-content' ).forEach( content => { 33 | content.querySelectorAll( '*' ).forEach( highlight ); 34 | highlight( content ); 35 | } ); 36 | 37 | } ).call( this ); 38 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 16 | 17 |
18 | 19 | 23 |
24 |

25 |
26 | 27 | 49 | 50 |
51 | 52 | 11 | 12 |
13 | 16 | 17 |
18 | 20 | 21 |

Get started here.', 'monostack' ), 26 | array( 27 | 'a' => array( 28 | 'href' => array(), 29 | ), 30 | ) 31 | ), 32 | esc_url( admin_url( 'post-new.php' ) ) 33 | ); 34 | ?>

35 | 36 | 37 | 38 |

39 | 43 | 44 |

45 | 49 |
50 |
51 | -------------------------------------------------------------------------------- /inc/jetpack.php: -------------------------------------------------------------------------------- 1 | 'main', 21 | 'render' => 'monostack_infinite_scroll_render', 22 | 'footer' => 'page', 23 | ) ); 24 | 25 | // Add theme support for Responsive Videos. 26 | add_theme_support( 'jetpack-responsive-videos' ); 27 | 28 | // Add theme support for Content Options. 29 | add_theme_support( 'jetpack-content-options', array( 30 | 'post-details' => array( 31 | 'stylesheet' => 'monostack-style', 32 | 'date' => '.posted-on', 33 | 'categories' => '.cat-links', 34 | 'tags' => '.tags-links', 35 | 'author' => '.byline', 36 | 'comment' => '.comments-link', 37 | ), 38 | ) ); 39 | } 40 | add_action( 'after_setup_theme', 'monostack_jetpack_setup' ); 41 | 42 | /** 43 | * Custom render function for Infinite Scroll. 44 | */ 45 | function monostack_infinite_scroll_render() { 46 | while ( have_posts() ) { 47 | the_post(); 48 | if ( is_search() ) : 49 | get_template_part( 'template-parts/content', 'search' ); 50 | else : 51 | get_template_part( 'template-parts/content', get_post_format() ); 52 | endif; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /template-parts/content.php: -------------------------------------------------------------------------------- 1 | 11 | 12 |
> 13 |
14 | ', '' ); 17 | else : 18 | the_title( '

', '

' ); 19 | endif; 20 | 21 | if ( 'post' === get_post_type() ) : ?> 22 | 25 | 27 |
28 | 29 | 30 |
31 | "%s"', 'monostack' ), 36 | array( 37 | 'span' => array( 38 | 'class' => array(), 39 | ), 40 | ) 41 | ), 42 | get_the_title() 43 | ) ); 44 | 45 | wp_link_pages( array( 46 | 'before' => '', 48 | ) ); 49 | ?> 50 |
51 | 52 | 55 | 56 | ' . get_the_excerpt() . '

'; 58 | endif; ?> 59 | 60 |
61 | -------------------------------------------------------------------------------- /inc/customizer.php: -------------------------------------------------------------------------------- 1 | get_setting( 'blogname' )->transport = 'postMessage'; 15 | $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 16 | $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 17 | 18 | if ( isset( $wp_customize->selective_refresh ) ) { 19 | $wp_customize->selective_refresh->add_partial( 'blogname', array( 20 | 'selector' => '.site-title a', 21 | 'render_callback' => 'monostack_customize_partial_blogname', 22 | ) ); 23 | $wp_customize->selective_refresh->add_partial( 'blogdescription', array( 24 | 'selector' => '.site-description', 25 | 'render_callback' => 'monostack_customize_partial_blogdescription', 26 | ) ); 27 | } 28 | } 29 | add_action( 'customize_register', 'monostack_customize_register' ); 30 | 31 | /** 32 | * Render the site title for the selective refresh partial. 33 | * 34 | * @return void 35 | */ 36 | function monostack_customize_partial_blogname() { 37 | bloginfo( 'name' ); 38 | } 39 | 40 | /** 41 | * Render the site tagline for the selective refresh partial. 42 | * 43 | * @return void 44 | */ 45 | function monostack_customize_partial_blogdescription() { 46 | bloginfo( 'description' ); 47 | } 48 | 49 | /** 50 | * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 51 | */ 52 | function monostack_customize_preview_js() { 53 | wp_enqueue_script( 'monostack-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); 54 | } 55 | add_action( 'customize_preview_init', 'monostack_customize_preview_js' ); 56 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | section and everything up until
6 | * 7 | * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 | * 9 | * @package monostack 10 | */ 11 | ?> 12 | 13 | > 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | > 23 |
24 | 25 | 53 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 22 | 23 |
24 | 25 | 28 |

29 | ' . get_the_title() . '' 36 | ); 37 | } else { 38 | printf( // WPCS: XSS OK. 39 | /* translators: 1: comment count number, 2: title. */ 40 | esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'monostack' ) ), 41 | number_format_i18n( $comment_count ), 42 | '' . get_the_title() . '' 43 | ); 44 | } 45 | ?> 46 |

47 | 48 | 49 | 50 |
    51 | 'ol', 54 | 'short_ping' => true, 55 | ) ); 56 | ?> 57 |
58 | 59 | 63 |

64 | 71 | 72 |
73 | -------------------------------------------------------------------------------- /inc/custom-header.php: -------------------------------------------------------------------------------- 1 | 8 | * 9 | * @link https://developer.wordpress.org/themes/functionality/custom-headers/ 10 | * 11 | * @package monostack 12 | */ 13 | 14 | /** 15 | * Set up the WordPress core custom header feature. 16 | * 17 | * @uses monostack_header_style() 18 | */ 19 | function monostack_custom_header_setup() { 20 | add_theme_support( 'custom-header', apply_filters( 'monostack_custom_header_args', array( 21 | 'default-image' => '', 22 | 'default-text-color' => '000000', 23 | 'width' => 1000, 24 | 'height' => 250, 25 | 'flex-height' => true, 26 | 'wp-head-callback' => 'monostack_header_style', 27 | ) ) ); 28 | } 29 | add_action( 'after_setup_theme', 'monostack_custom_header_setup' ); 30 | 31 | if ( ! function_exists( 'monostack_header_style' ) ) : 32 | /** 33 | * Styles the header image and text displayed on the blog. 34 | * 35 | * @see monostack_custom_header_setup(). 36 | */ 37 | function monostack_header_style() { 38 | $header_text_color = get_header_textcolor(); 39 | 40 | /* 41 | * If no custom options for text are set, let's bail. 42 | * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). 43 | */ 44 | if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { 45 | return; 46 | } 47 | 48 | // If we get this far, we have custom styles. Let's do this. 49 | ?> 50 | 70 | %2$s'; 16 | if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { 17 | $time_string = ''; 18 | } 19 | 20 | $time_string = sprintf( $time_string, 21 | esc_attr( get_the_date( 'c' ) ), 22 | esc_html( get_the_date() ), 23 | esc_attr( get_the_modified_date( 'c' ) ), 24 | esc_html( get_the_modified_date() ) 25 | ); 26 | 27 | $byline = sprintf( 28 | /* translators: %s: post author. */ 29 | esc_html_x( 'by %s', 'post author', 'monostack' ), 30 | '' . esc_html( get_the_author() ) . '' 31 | ); 32 | 33 | echo '' . $time_string . ''; // WPCS: XSS OK. 34 | 35 | } 36 | endif; 37 | 38 | if ( ! function_exists( 'monostack_entry_footer' ) ) : 39 | /** 40 | * Prints HTML with meta information for the categories, tags and comments. 41 | */ 42 | function monostack_entry_footer() { 43 | // Hide category and tag text for pages. 44 | if ( 'post' === get_post_type() ) { 45 | /* translators: used between list items, there is a space after the comma */ 46 | $categories_list = get_the_category_list( esc_html__( ', ', 'monostack' ) ); 47 | if ( $categories_list ) { 48 | /* translators: 1: list of categories. */ 49 | printf( '' . esc_html__( 'Posted in %1$s', 'monostack' ) . '', $categories_list ); // WPCS: XSS OK. 50 | } 51 | 52 | /* translators: used between list items, there is a space after the comma */ 53 | $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'monostack' ) ); 54 | if ( $tags_list ) { 55 | /* translators: 1: list of tags. */ 56 | printf( '' . esc_html__( 'Tagged %1$s', 'monostack' ) . '', $tags_list ); // WPCS: XSS OK. 57 | } 58 | } 59 | 60 | if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 61 | echo ''; 62 | comments_popup_link( 63 | sprintf( 64 | wp_kses( 65 | /* translators: %s: post title */ 66 | __( 'Leave a Comment on %s', 'monostack' ), 67 | array( 68 | 'span' => array( 69 | 'class' => array(), 70 | ), 71 | ) 72 | ), 73 | get_the_title() 74 | ) 75 | ); 76 | echo ''; 77 | } 78 | 79 | edit_post_link( 80 | sprintf( 81 | wp_kses( 82 | /* translators: %s: Name of current post. Only visible to screen readers */ 83 | __( 'Edit %s', 'monostack' ), 84 | array( 85 | 'span' => array( 86 | 'class' => array(), 87 | ), 88 | ) 89 | ), 90 | get_the_title() 91 | ), 92 | '', 93 | '' 94 | ); 95 | } 96 | endif; 97 | -------------------------------------------------------------------------------- /js/navigation.js: -------------------------------------------------------------------------------- 1 | /** 2 | * File navigation.js. 3 | * 4 | * Handles toggling the navigation menu for small screens and enables TAB key 5 | * navigation support for dropdown menus. 6 | */ 7 | ( function() { 8 | var container, button, menu, links, i, len; 9 | 10 | container = document.getElementById( 'site-navigation' ); 11 | if ( ! container ) { 12 | return; 13 | } 14 | 15 | button = container.getElementsByTagName( 'button' )[0]; 16 | if ( 'undefined' === typeof button ) { 17 | return; 18 | } 19 | 20 | menu = container.getElementsByTagName( 'ul' )[0]; 21 | 22 | // Hide menu toggle button if menu is empty and return early. 23 | if ( 'undefined' === typeof menu ) { 24 | button.style.display = 'none'; 25 | return; 26 | } 27 | 28 | menu.setAttribute( 'aria-expanded', 'false' ); 29 | if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { 30 | menu.className += ' nav-menu'; 31 | } 32 | 33 | button.onclick = function() { 34 | if ( -1 !== container.className.indexOf( 'toggled' ) ) { 35 | container.className = container.className.replace( ' toggled', '' ); 36 | button.setAttribute( 'aria-expanded', 'false' ); 37 | menu.setAttribute( 'aria-expanded', 'false' ); 38 | } else { 39 | container.className += ' toggled'; 40 | button.setAttribute( 'aria-expanded', 'true' ); 41 | menu.setAttribute( 'aria-expanded', 'true' ); 42 | } 43 | }; 44 | 45 | // Get all the link elements within the menu. 46 | links = menu.getElementsByTagName( 'a' ); 47 | 48 | // Each time a menu link is focused or blurred, toggle focus. 49 | for ( i = 0, len = links.length; i < len; i++ ) { 50 | links[i].addEventListener( 'focus', toggleFocus, true ); 51 | links[i].addEventListener( 'blur', toggleFocus, true ); 52 | } 53 | 54 | /** 55 | * Sets or removes .focus class on an element. 56 | */ 57 | function toggleFocus() { 58 | var self = this; 59 | 60 | // Move up through the ancestors of the current link until we hit .nav-menu. 61 | while ( -1 === self.className.indexOf( 'nav-menu' ) ) { 62 | 63 | // On li elements toggle the class .focus. 64 | if ( 'li' === self.tagName.toLowerCase() ) { 65 | if ( -1 !== self.className.indexOf( 'focus' ) ) { 66 | self.className = self.className.replace( ' focus', '' ); 67 | } else { 68 | self.className += ' focus'; 69 | } 70 | } 71 | 72 | self = self.parentElement; 73 | } 74 | } 75 | 76 | /** 77 | * Toggles `focus` class to allow submenu access on tablets. 78 | */ 79 | ( function( container ) { 80 | var touchStartFn, i, 81 | parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' ); 82 | 83 | if ( 'ontouchstart' in window ) { 84 | touchStartFn = function( e ) { 85 | var menuItem = this.parentNode, i; 86 | 87 | if ( ! menuItem.classList.contains( 'focus' ) ) { 88 | e.preventDefault(); 89 | for ( i = 0; i < menuItem.parentNode.children.length; ++i ) { 90 | if ( menuItem === menuItem.parentNode.children[i] ) { 91 | continue; 92 | } 93 | menuItem.parentNode.children[i].classList.remove( 'focus' ); 94 | } 95 | menuItem.classList.add( 'focus' ); 96 | } else { 97 | menuItem.classList.remove( 'focus' ); 98 | } 99 | }; 100 | 101 | for ( i = 0; i < parentLink.length; ++i ) { 102 | parentLink[i].addEventListener( 'touchstart', touchStartFn, false ); 103 | } 104 | } 105 | }( container ) ); 106 | } )(); 107 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Monostack === 2 | 3 | Contributors: mapk 4 | Tags: blog, translation-ready, custom-background, custom-colors, custom-logo, footer-widgets, full-width-template, rtl-language-support, threaded-comments, one-column 5 | 6 | Requires at least: 4.0 7 | Tested up to: 5.1 8 | Stable tag: 2.0.4 9 | License: GNU General Public License v2 (GPLv2) or later 10 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 | 12 | == Description == 13 | 14 | Monostack is a Gutenberg-ready WordPress theme that brings the beauty of code editors to the frontend. With a strong focus on typography and color, Monostack highlights specific grammar much like syntax highlighting does in code editors. Monostack is named after the "monospace" font stack used throughout the theme. 15 | 16 | Based on [Underscores](http:underscores.me/) and the [Gutenberg Starter Theme](https://github.com/WordPress/gutenberg-starter-theme) which uses the [GPL 2 License](https://github.com/WordPress/gutenberg-starter-theme/blob/master/LICENSE), Monostack is designed and further developed by [Mark Uraine](https://markuraine.com/) and [Ernesto Mendez](https://profiles.wordpress.org/mendezcode/). 17 | 18 | == Installation == 19 | 20 | 1. In your admin panel, go to Appearance > Themes and click the Add New button. 21 | 2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now. 22 | 3. Click Activate to use your new theme right away. 23 | 24 | == Frequently Asked Questions == 25 | 26 | = What does "Gutenberg-ready" mean? = 27 | 28 | "Gutenberg-ready" is a way to indicate that this theme supports the Gutenberg plugin and the usage of blocks in the new editor. There are no sidebars in this theme and widgets are not recommended since they will all eventually be blocks anyways. Monostack takes advantage of the 100% width layout for Gutenberg blocks to work correctly. 29 | 30 | = Does this theme support any plugins? = 31 | 32 | Monostack includes support for Infinite Scroll in Jetpack. It also works best with the Gutenberg plugin. 33 | 34 | = Is there a problem with IE 11? = 35 | 36 | Yes. I use CSS variables which are not supported in IE. I also use ES6 (ie. arrow functions and includes) which are also not supported in IE. 37 | 38 | == Changelog == 39 | 40 | = 2.0.4 = 41 | * Added the ability to use custom excerpts. 42 | 43 | = 2.0.3 = 44 | * Updated the .site-title styles so that it displays correctly across all screens. 45 | 46 | = 2.0.2 = 47 | * Updated some styling for the preformatted and code blocks. Tested with 5.0. 48 | 49 | = 2.0.1 = 50 | * Added Ernesto Mendez to the readme.txt file for his excellent dev work. 51 | 52 | = 2.0 = 53 | * A big version jump due to a refactor of the syntax highlighting code. Using regex now and adapted fully for translations. There is still a minor issue with text at the end of sentences not being highlighted. 54 | 55 | = 1.2.1 = 56 | * Removed the rtl.css file since I'm not using it. 57 | 58 | = 1.2 = 59 | * Using wp_localize_script() to help translate the js file. Removed the $posted_on from the functions.php file and replaced with $time_string instead. 60 | 61 | = 1.0.5 = 62 | * Removed '_s' from language file, and fixed the default color for the Customizer to match the theme's background color. Removed custom header from functions.php file. 63 | 64 | = 1.0.4 = 65 | * Updated name of language file to reflect theme name. 66 | 67 | = 1.0.3 = 68 | * Updated for Gutenberg color palette when utilizing background and text colors with Gutenberg selectors. 69 | 70 | = 1.0.2 = 71 | * Updated CSS adding styling to all Gutenberg default blocks. 72 | 73 | = 1.0.1 = 74 | * Updated screenshot.png to align with WordPress.org guidelines. 75 | 76 | = 1.0 = 77 | * Initial release 78 | 79 | == Credits == 80 | 81 | * Based on Underscores http://underscores.me/, (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html) 82 | * normalize.css http://necolas.github.io/normalize.css/, (C) 2012-2016 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT) 83 | -------------------------------------------------------------------------------- /languages/monostack.pot: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2017 Automattic 2 | # This file is distributed under the GNU General Public License v2 or later. 3 | msgid "" 4 | msgstr "" 5 | "Project-Id-Version: monostack 2.0.4\n" 6 | "Report-Msgid-Bugs-To: https://wordpress.org/tags/monostack\n" 7 | "POT-Creation-Date: 2016-12-23 16:00+0100\n" 8 | "MIME-Version: 1.0\n" 9 | "Content-Type: text/plain; charset=UTF-8\n" 10 | "Content-Transfer-Encoding: 8bit\n" 11 | "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n" 12 | "Last-Translator:\n" 13 | "Language-Team: LANGUAGE \n" 14 | "X-Generator: grunt-wp-i18n 0.5.4\n" 15 | 16 | #: 404.php:17 17 | msgid "Oops! That page can’t be found." 18 | msgstr "" 19 | 20 | #: 404.php:21 21 | msgid "" 22 | "It looks like nothing was found at this location. Maybe try one of the " 23 | "links below or a search?" 24 | msgstr "" 25 | 26 | #: 404.php:30 27 | msgid "Most Used Categories" 28 | msgstr "" 29 | 30 | #: 404.php:47 31 | #. translators: %1$s: smiley 32 | msgid "Try looking in the monthly archives. %1$s" 33 | msgstr "" 34 | 35 | #: comments.php:34 36 | #. translators: 1: title. 37 | msgid "One thought on “%1$s”" 38 | msgstr "" 39 | 40 | #: comments.php:67 41 | msgid "Comments are closed." 42 | msgstr "" 43 | 44 | #: footer.php:18 45 | msgid "https://wordpress.org/" 46 | msgstr "" 47 | 48 | #: footer.php:20 49 | #. translators: %s: CMS name, i.e. WordPress. 50 | msgid "Proudly powered by %s" 51 | msgstr "" 52 | 53 | #: footer.php:25 54 | #. translators: 1: Theme name, 2: Theme author. 55 | msgid "Theme: %1$s by %2$s." 56 | msgstr "" 57 | 58 | #: functions.php:47 59 | msgid "Primary" 60 | msgstr "" 61 | 62 | #: functions.php:105 63 | msgid "Sidebar" 64 | msgstr "" 65 | 66 | #: functions.php:107 67 | msgid "Add widgets here." 68 | msgstr "" 69 | 70 | #: header.php:24 71 | msgid "Skip to content" 72 | msgstr "" 73 | 74 | #: header.php:45 75 | msgid "Primary Menu" 76 | msgstr "" 77 | 78 | #: inc/template-tags.php:52 79 | #. translators: used between list items, there is a space after the comma 80 | msgid ", " 81 | msgstr "" 82 | 83 | #: inc/template-tags.php:55 84 | #. translators: 1: list of categories. 85 | msgid "Posted in %1$s" 86 | msgstr "" 87 | 88 | #: inc/template-tags.php:62 89 | #. translators: 1: list of tags. 90 | msgid "Tagged %1$s" 91 | msgstr "" 92 | 93 | #: inc/template-tags.php:72 94 | #. translators: %s: post title 95 | msgid "Leave a Comment on %s" 96 | msgstr "" 97 | 98 | #: inc/template-tags.php:89 template-parts/content-page.php:35 99 | #. translators: %s: Name of current post. Only visible to screen readers 100 | msgid "Edit %s" 101 | msgstr "" 102 | 103 | #: search.php:21 104 | #. translators: %s: search query. 105 | msgid "Search Results for: %s" 106 | msgstr "" 107 | 108 | #: template-parts/content-none.php:14 109 | msgid "Nothing Found" 110 | msgstr "" 111 | 112 | #: template-parts/content-none.php:25 113 | #. translators: 1: link to WP admin new post page. 114 | msgid "Ready to publish your first post? Get started here." 115 | msgstr "" 116 | 117 | #: template-parts/content-none.php:38 118 | msgid "" 119 | "Sorry, but nothing matched your search terms. Please try again with some " 120 | "different keywords." 121 | msgstr "" 122 | 123 | #: template-parts/content-none.php:44 124 | msgid "" 125 | "It seems we can’t find what you’re looking for. Perhaps " 126 | "searching can help." 127 | msgstr "" 128 | 129 | #: template-parts/content-page.php:22 template-parts/content.php:45 130 | msgid "Pages:" 131 | msgstr "" 132 | 133 | #: template-parts/content.php:34 134 | #. translators: %s: Name of current post. Only visible to screen readers 135 | msgid "Continue reading \"%s\"" 136 | msgstr "" 137 | 138 | #. Theme Name of the plugin/theme 139 | msgid "monostack" 140 | msgstr "" 141 | 142 | #. Theme URI of the plugin/theme 143 | msgid "https://github.com/mapk/monostack" 144 | msgstr "" 145 | 146 | #. Description of the plugin/theme 147 | msgid "" 148 | "Monostack is a Gutenberg-ready WordPress theme that brings the beauty of code editors to the frontend. With a strong focus on typography and color, Monostack highlights specific grammar much like syntax highlighting does in code editors. Monostack is named after the monospace font stacks used throughout the theme." 149 | msgstr "" 150 | 151 | #. Author of the plugin/theme 152 | msgid "Mark Uraine" 153 | msgstr "" 154 | 155 | #. Author URI of the plugin/theme 156 | msgid "http://markuraine.com" 157 | msgstr "" 158 | 159 | #: comments.php:40 160 | #. translators: 1: comment count number, 2: title. 161 | msgctxt "comments title" 162 | msgid "%1$s thought on “%2$s”" 163 | msgid_plural "%1$s thoughts on “%2$s”" 164 | msgstr[0] "" 165 | msgstr[1] "" 166 | 167 | #: inc/template-tags.php:29 168 | #. translators: %s: post date. 169 | msgctxt "post date" 170 | msgid "Posted on %s" 171 | msgstr "" 172 | 173 | #: inc/template-tags.php:35 174 | #. translators: %s: post author. 175 | msgctxt "post author" 176 | msgid "by %s" 177 | msgstr "" 178 | 179 | #: inc/template-tags.php:59 180 | #. translators: used between list items, there is a space after the comma 181 | msgctxt "list item separator" 182 | msgid ", " 183 | msgstr "" 184 | -------------------------------------------------------------------------------- /css/blocks.css: -------------------------------------------------------------------------------- 1 | .entry-content > * { 2 | margin: 1rem auto; 3 | max-width: 600px; 4 | padding-left: 1rem; 5 | padding-right: 1rem; 6 | } 7 | 8 | .entry-content > .alignwide { 9 | max-width: 1100px; 10 | text-align: center; 11 | } 12 | 13 | .entry-content > .alignfull { 14 | margin: 1rem 0; 15 | max-width: 100%; 16 | } 17 | 18 | .entry-content ul, 19 | .entry-content ol { 20 | margin: 1rem auto; 21 | max-width: 600px; 22 | list-style-position: outside; 23 | } 24 | 25 | .wp-block-video video { 26 | max-width: 600px; 27 | } 28 | 29 | .wp-block-image img { 30 | display: block; 31 | } 32 | 33 | .wp-block-image.alignleft, 34 | .wp-block-image.alignright { 35 | width: 100% 36 | } 37 | 38 | .wp-block-image.alignfull img { 39 | width: 100vw; 40 | } 41 | 42 | .wp-block-gallery:not(.components-placeholder) { 43 | margin: 1rem auto; 44 | } 45 | 46 | .wp-block-cover-text p { 47 | padding: 1rem 14px; 48 | } 49 | 50 | ul.wp-block-latest-posts.alignwide, 51 | ul.wp-block-latest-posts.alignfull, 52 | ul.wp-block-latest-posts.is-grid.alignwide, 53 | ul.wp-block-latest-posts.is-grid.alignwide { 54 | padding: 0 14px; 55 | } 56 | 57 | .wp-block-table { 58 | display: block; 59 | overflow-x: auto; 60 | } 61 | 62 | .wp-block-table { 63 | border-collapse: collapse; 64 | width: 100% 65 | } 66 | 67 | .wp-block-table tbody { 68 | box-sizing: content-box; 69 | } 70 | 71 | .wp-block-table td, .wp-block-table th { 72 | border: none; 73 | border-bottom: 1px dashed var(--color_muted); 74 | border-right: 1px dashed var(--color_muted); 75 | padding: .5em; 76 | } 77 | 78 | .entry-content li { 79 | margin-left: 2rem; 80 | margin-bottom: 0.3rem; 81 | } 82 | 83 | .entry-content ul ul, 84 | .entry-content ol ol, 85 | .entry-content ul ol, 86 | .entry-content ol ul { 87 | margin: 0 auto; 88 | } 89 | 90 | .entry-content ul ul li, 91 | .entry-content ol ol li, 92 | .entry-content ul ol li, 93 | .entry-content ol ul li { 94 | margin-left: 0; 95 | } 96 | 97 | 98 | .wp-block-embed.type-video > .wp-block-embed__wrapper { 99 | position: relative; 100 | width: 100%; 101 | height: 0; 102 | padding-top: 56.25%; 103 | } 104 | 105 | .wp-block-embed.type-video > .wp-block-embed__wrapper > iframe { 106 | position: absolute; 107 | width: 100%; 108 | height: 100%; 109 | top: 0; 110 | left: 0; 111 | bottom: 0; 112 | right: 0; 113 | } 114 | 115 | .wp-block-quote:not(.is-large):not(.is-style-large){ 116 | border-left: none; 117 | } 118 | 119 | .wp-block-quote.is-large, .wp-block-quote.is-style-large { 120 | margin: 1rem auto; 121 | padding: 0; 122 | } 123 | 124 | .wp-block-quote.is-large cite, .wp-block-quote.is-style-large cite { 125 | display: block; 126 | position: relative; 127 | left: 0; 128 | } 129 | 130 | .wp-block-quote cite { 131 | color: var(--color_muted); 132 | font-size: 0.8rem; 133 | margin-top: 0; 134 | position: absolute; 135 | left: 3rem; 136 | font-style: inherit; 137 | bottom: -0.2rem; 138 | } 139 | 140 | .wp-block-pullquote { 141 | border-top: 1px dashed var(--color_muted); 142 | border-bottom: 1px dashed var(--color_muted); 143 | padding-top: 1rem; 144 | padding-bottom: 1rem; 145 | } 146 | 147 | .wp-block-pullquote>p:first-child { 148 | margin-top: 0; 149 | } 150 | 151 | .wp-block-pullquote > p:before, 152 | .wp-block-pullquote > p:after { 153 | content: ""; 154 | } 155 | 156 | .wp-block-pullquote cite { 157 | color: var(--color_muted); 158 | font-style: inherit; 159 | text-transform: inherit; 160 | } 161 | 162 | .wp-block-separator { 163 | border: none; 164 | border-bottom: 1px dashed var(--color_muted); 165 | margin: 3rem auto; 166 | overflow: visible; 167 | position: relative; 168 | } 169 | 170 | hr.wp-block-separator.is-style-wide:before { 171 | color: var(--color_muted); 172 | content: "//"; 173 | left: -2rem; 174 | position: absolute; 175 | top: -1rem; 176 | } 177 | 178 | .wp-block-button__link:not(.has-text-color), 179 | .wp-block-button__link:not(.has-text-color):active, 180 | .wp-block-button__link:not(.has-text-color):focus, 181 | .wp-block-button__link:not(.has-text-color):hover, 182 | .wp-block-file a.wp-block-file__button, 183 | .wp-block-file a.wp-block-file__button:active, 184 | .wp-block-file a.wp-block-file__button:focus, 185 | .wp-block-file a.wp-block-file__button:hover { 186 | color: var(--color_background); 187 | } 188 | 189 | .wp-block-button__link:not(.has-background), 190 | .wp-block-button__link:not(.has-background):active, 191 | .wp-block-button__link:not(.has-background):focus, 192 | .wp-block-button__link:not(.has-background):hover, 193 | .wp-block-file a.wp-block-file__button, 194 | .wp-block-file a.wp-block-file__button:active, 195 | .wp-block-file a.wp-block-file__button:focus, 196 | .wp-block-file a.wp-block-file__button:hover { 197 | background-color: var(--color_action); 198 | } 199 | 200 | .wp-block-button .wp-block-button__link, 201 | .wp-block-file a.wp-block-file__button { 202 | border-radius: 0; 203 | font-size: 0.8rem; 204 | letter-spacing: 1px; 205 | line-height: 1.8; 206 | opacity: 1; 207 | text-transform: uppercase; 208 | } 209 | 210 | .wp-block-button .wp-block-button__link:hover, 211 | .wp-block-file a.wp-block-file__button:hover { 212 | box-shadow: 0 2px 8px rgba(0,0,0,0.5); 213 | opacity: 1; 214 | position: relative; 215 | top: -1px; 216 | } 217 | 218 | .wp-block-code { 219 | border: none; 220 | border-radius: 0; 221 | color: var(--color_text); 222 | } 223 | 224 | p.wp-block-subhead { 225 | font-style: normal; 226 | opacity: 1; 227 | text-transform: uppercase; 228 | } 229 | 230 | .wp-block-categories ul { 231 | padding-left: 0; 232 | padding-right: 0; 233 | } 234 | 235 | @media screen and (min-width: 768px) { 236 | .wp-block-cover-text p { 237 | padding: 1rem 0; 238 | } 239 | 240 | .wp-block-quote:not(.is-large):not(.is-style-large) { 241 | padding-left: 0; 242 | } 243 | 244 | .entry-content > * { 245 | padding-left: 0px; 246 | padding-right: 0px; 247 | } 248 | 249 | } 250 | 251 | /*-------------------------------------------------------------- 252 | # Block Color Palette Colors 253 | --------------------------------------------------------------*/ 254 | .has-highlight-color { 255 | color: #363948; 256 | } 257 | 258 | .has-highlight-background-color { 259 | background-color: #363948; 260 | } 261 | 262 | .has-dark-grey-color { 263 | color: #282A36; 264 | } 265 | 266 | .has-dark-grey-background-color { 267 | background-color: #282A36; 268 | } 269 | 270 | .has-muted-color { 271 | color: #8492B1; 272 | } 273 | 274 | .has-muted-background-color { 275 | background-color: #8492B1; 276 | } 277 | 278 | .has-light-grey-color { 279 | color: #f7f7f7; 280 | } 281 | 282 | .has-light-grey-background-color { 283 | background-color: #f7f7f7; 284 | } 285 | 286 | .has-blue-color { 287 | color: #6BE5FD; 288 | } 289 | 290 | .has-blue-background-color { 291 | background-color: #6BE5FD; 292 | } 293 | 294 | .has-pink-color { 295 | color: #FF79C0; 296 | } 297 | 298 | .has-pink-background-color { 299 | background-color: #FF79C0; 300 | } 301 | 302 | .has-green-color { 303 | color: #50FA78; 304 | } 305 | 306 | .has-green-background-color { 307 | background-color: #50FA78; 308 | } 309 | 310 | .has-purple-color { 311 | color: #BD93F2; 312 | } 313 | 314 | .has-purple-background-color { 315 | background-color: #BD93F2; 316 | } -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | tag in the document head, and expect WordPress to 34 | * provide it for us. 35 | */ 36 | add_theme_support( 'title-tag' ); 37 | 38 | /* 39 | * Enable support for Post Thumbnails on posts and pages. 40 | * 41 | * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ 42 | */ 43 | add_theme_support( 'post-thumbnails' ); 44 | 45 | // This theme uses wp_nav_menu() in one location. 46 | register_nav_menus( array( 47 | 'menu-1' => esc_html__( 'Primary', 'monostack' ), 48 | ) ); 49 | 50 | /* 51 | * Switch default core markup for search form, comment form, and comments 52 | * to output valid HTML5. 53 | */ 54 | add_theme_support( 'html5', array( 55 | 'search-form', 56 | 'comment-form', 57 | 'comment-list', 58 | 'gallery', 59 | 'caption', 60 | ) ); 61 | 62 | // Set up the WordPress core custom background feature. 63 | add_theme_support( 'custom-background', apply_filters( '_s_custom_background_args', array( 64 | 'default-color' => '282A36', 65 | 'default-image' => '', 66 | ) ) ); 67 | 68 | // Add theme support for selective refresh for widgets. 69 | add_theme_support( 'customize-selective-refresh-widgets' ); 70 | 71 | /** 72 | * Add support for core custom logo. 73 | * 74 | * @link https://codex.wordpress.org/Theme_Logo 75 | */ 76 | add_theme_support( 'custom-logo', array( 77 | 'height' => 250, 78 | 'width' => 250, 79 | 'flex-width' => true, 80 | 'flex-height' => true, 81 | ) ); 82 | 83 | // Adding support for core block visual styles. 84 | add_theme_support( 'wp-block-styles' ); 85 | 86 | // Add support for full and wide align images. 87 | add_theme_support( 'align-wide' ); 88 | 89 | // Add support for custom color scheme. 90 | add_theme_support( 'editor-color-palette', array( 91 | array( 92 | 'name' => __( 'Highlight', 'monostack' ), 93 | 'slug' => 'highlight', 94 | 'color' => '#363948', 95 | ), 96 | array( 97 | 'name' => __( 'Dark Grey', 'monostack' ), 98 | 'slug' => 'dark-grey', 99 | 'color' => '#282A36', 100 | ), 101 | array( 102 | 'name' => __( 'Muted', 'monostack' ), 103 | 'slug' => 'muted', 104 | 'color' => '#8492B1', 105 | ), 106 | array( 107 | 'name' => __( 'Light Grey', 'monostack' ), 108 | 'slug' => 'light-grey', 109 | 'color' => '#f7f7f7', 110 | ), 111 | array( 112 | 'name' => __( 'Blue', 'monostack' ), 113 | 'slug' => 'blue', 114 | 'color' => '#6BE5FD', 115 | ), 116 | array( 117 | 'name' => __( 'Pink', 'monostack' ), 118 | 'slug' => 'pink', 119 | 'color' => '#FF79C0', 120 | ), 121 | array( 122 | 'name' => __( 'Green', 'monostack' ), 123 | 'slug' => 'green', 124 | 'color' => '#50FA78', 125 | ), 126 | array( 127 | 'name' => __( 'Purple', 'monostack' ), 128 | 'slug' => 'purple', 129 | 'color' => '#BD93F2', 130 | ), 131 | ) ); 132 | 133 | /** 134 | * Register widget area. 135 | * 136 | * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar 137 | */ 138 | function monostack_widgets_init() { 139 | register_sidebar( array( 140 | 'name' => __( 'Footer Widget', 'monostack' ), 141 | 'id' => 'footer-sidebar', 142 | 'description' => __( 'Add widgets here to appear in your footer on all pages.', 'monostack' ), 143 | 'before_widget' => '
', 144 | 'after_widget' => '
', 145 | 'before_title' => '

', 146 | 'after_title' => '

', 147 | ) ); 148 | } 149 | add_action( 'widgets_init', 'monostack_widgets_init' ); 150 | } 151 | endif; 152 | add_action( 'after_setup_theme', 'monostack_setup' ); 153 | 154 | /** 155 | * Set the content width in pixels, based on the theme's design and stylesheet. 156 | * 157 | * Priority 0 to make it available to lower priority callbacks. 158 | * 159 | * @global int $content_width 160 | */ 161 | function monostack_content_width() { 162 | $GLOBALS['content_width'] = apply_filters( 'monostack_content_width', 640 ); 163 | } 164 | add_action( 'after_setup_theme', 'monostack_content_width', 0 ); 165 | 166 | /** 167 | * Register Google Fonts 168 | */ 169 | function monostack_fonts_url() { 170 | $fonts_url = ''; 171 | 172 | /* 173 | *Translators: If there are characters in your language that are not 174 | * supported by Noto Serif, translate this to 'off'. Do not translate 175 | * into your own language. 176 | */ 177 | $notoserif = esc_html_x( 'on', 'Noto Serif font: on or off', 'monostack' ); 178 | 179 | if ( 'off' !== $notoserif ) { 180 | $font_families = array(); 181 | $font_families[] = 'Noto Serif:400,400italic,700,700italic'; 182 | 183 | $query_args = array( 184 | 'family' => urlencode( implode( '|', $font_families ) ), 185 | 'subset' => urlencode( 'latin,latin-ext' ), 186 | ); 187 | 188 | $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); 189 | } 190 | 191 | return $fonts_url; 192 | 193 | } 194 | 195 | /** 196 | * Enqueue scripts and styles. 197 | */ 198 | function monostack_scripts() { 199 | wp_enqueue_style( 'gutenbergbase-style', get_stylesheet_uri() ); 200 | 201 | wp_enqueue_style( 'monostackblocks-style', get_template_directory_uri() . '/css/blocks.css' ); 202 | 203 | wp_enqueue_style( 'monostack-fonts', monostack_fonts_url() ); 204 | 205 | wp_enqueue_script( 'monostack-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); 206 | 207 | if ( !is_404() ) { 208 | wp_enqueue_script( 'monostack-syntax-highlighting', get_template_directory_uri() . '/js/syntax-highlighting.js', array(), '20180816', true ); 209 | 210 | wp_localize_script( 'monostack-syntax-highlighting', 'monostack_pronouns', array( 211 | __( 'I', 'monostack' ), 212 | __( 'we', 'monostack' ), 213 | __( 'me', 'monostack' ), 214 | __( 'us', 'monostack' ), 215 | __( 'you', 'monostack' ), 216 | __( 'she', 'monostack' ), 217 | __( 'he', 'monostack' ), 218 | __( 'her', 'monostack' ), 219 | __( 'him', 'monostack' ), 220 | __( 'they', 'monostack' ), 221 | __( 'them', 'monostack' ), 222 | __( 'it', 'monostack' ), 223 | __( 'that', 'monostack' ), 224 | __( 'which', 'monostack' ), 225 | __( 'who', 'monostack' ), 226 | __( 'whom', 'monostack' ), 227 | __( 'whose', 'monostack' ), 228 | __( 'whichever', 'monostack' ), 229 | __( 'whoever', 'monostack' ), 230 | __( 'whomever', 'monostack' ), 231 | __( 'this', 'monostack' ), 232 | __( 'these', 'monostack' ), 233 | __( 'that', 'monostack' ), 234 | __( 'those', 'monostack' ), 235 | __( 'anybody', 'monostack' ), 236 | __( 'anyone', 'monostack' ), 237 | __( 'anything', 'monostack' ), 238 | __( 'each', 'monostack' ), 239 | __( 'either', 'monostack' ), 240 | __( 'everyone', 'monostack' ), 241 | __( 'everybody', 'monostack' ), 242 | __( 'everything', 'monostack' ), 243 | __( 'nobody', 'monostack' ), 244 | __( 'neither', 'monostack' ), 245 | __( 'no one', 'monostack' ), 246 | __( 'nothing', 'monostack' ), 247 | __( 'somebody', 'monostack' ), 248 | __( 'one', 'monostack' ), 249 | __( 'someone', 'monostack' ), 250 | __( 'something', 'monostack' ), 251 | __( 'few', 'monostack' ), 252 | __( 'many', 'monostack' ), 253 | __( 'both', 'monostack' ), 254 | __( 'several', 'monostack' ), 255 | __( 'any', 'monostack' ), 256 | __( 'all', 'monostack' ), 257 | __( 'some', 'monostack' ), 258 | __( 'most', 'monostack' ), 259 | __( 'none', 'monostack' ), 260 | __( 'myself', 'monostack' ), 261 | __( 'yourself', 'monostack' ), 262 | __( 'ourselves', 'monostack' ), 263 | __( 'yourselves', 'monostack' ), 264 | __( 'herself', 'monostack' ), 265 | __( 'himself', 'monostack' ), 266 | __( 'themselves', 'monostack' ), 267 | __( 'itself', 'monostack' ), 268 | __( 'who', 'monostack' ), 269 | __( 'what', 'monostack' ), 270 | __( 'which', 'monostack' ), 271 | __( 'whose', 'monostack' ), 272 | __( 'whom', 'monostack' ), 273 | ) ); 274 | 275 | wp_localize_script( 'monostack-syntax-highlighting', 'monostack_conjunctions', array( 276 | __( 'for', 'monostack' ), 277 | __( 'and', 'monostack' ), 278 | __( 'nor', 'monostack' ), 279 | __( 'but', 'monostack' ), 280 | __( 'or', 'monostack' ), 281 | __( 'yet', 'monostack' ), 282 | __( 'so', 'monostack' ), 283 | __( 'either', 'monostack' ), 284 | __( 'neither', 'monostack' ), 285 | __( 'not only', 'monostack' ), 286 | __( 'but also', 'monostack' ), 287 | __( 'both', 'monostack' ), 288 | __( 'whether', 'monostack' ), 289 | __( 'although', 'monostack' ), 290 | __( 'though', 'monostack' ), 291 | __( 'even though', 'monostack' ), 292 | __( 'as much as', 'monostack' ), 293 | __( 'as long as', 'monostack' ), 294 | __( 'as soon as', 'monostack' ), 295 | __( 'because', 'monostack' ), 296 | __( 'since', 'monostack' ), 297 | __( 'so that', 'monostack' ), 298 | __( 'in order that', 'monostack' ), 299 | __( 'if', 'monostack' ), 300 | __( 'les', 'monostack' ), 301 | __( 'est', 'monostack' ), 302 | __( 'even if', 'monostack' ), 303 | __( 'that', 'monostack' ), 304 | __( 'unless', 'monostack' ), 305 | __( 'until', 'monostack' ), 306 | __( 'when', 'monostack' ), 307 | __( 'where', 'monostack' ), 308 | ) ); 309 | 310 | wp_localize_script( 'monostack-syntax-highlighting', 'monostack_prepositions', array( 311 | __( 'about', 'monostack' ), 312 | __( 'beside', 'monostack' ), 313 | __( 'near', 'monostack' ), 314 | __( 'to', 'monostack' ), 315 | __( 'above', 'monostack' ), 316 | __( 'between', 'monostack' ), 317 | __( 'of', 'monostack' ), 318 | __( 'towards', 'monostack' ), 319 | __( 'across', 'monostack' ), 320 | __( 'beyond', 'monostack' ), 321 | __( 'off', 'monostack' ), 322 | __( 'under', 'monostack' ), 323 | __( 'after', 'monostack' ), 324 | __( 'by', 'monostack' ), 325 | __( 'on', 'monostack' ), 326 | __( 'underneath', 'monostack' ), 327 | __( 'against', 'monostack' ), 328 | __( 'despite', 'monostack' ), 329 | __( 'onto', 'monostack' ), 330 | __( 'unlike', 'monostack' ), 331 | __( 'along', 'monostack' ), 332 | __( 'down', 'monostack' ), 333 | __( 'opposite', 'monostack' ), 334 | __( 'until', 'monostack' ), 335 | __( 'among', 'monostack' ), 336 | __( 'during', 'monostack' ), 337 | __( 'out', 'monostack' ), 338 | __( 'up', 'monostack' ), 339 | __( 'around', 'monostack' ), 340 | __( 'except', 'monostack' ), 341 | __( 'outside', 'monostack' ), 342 | __( 'upon', 'monostack' ), 343 | __( 'as', 'monostack' ), 344 | __( 'for', 'monostack' ), 345 | __( 'over', 'monostack' ), 346 | __( 'via', 'monostack' ), 347 | __( 'at', 'monostack' ), 348 | __( 'from', 'monostack' ), 349 | __( 'past', 'monostack' ), 350 | __( 'with', 'monostack' ), 351 | __( 'before', 'monostack' ), 352 | __( 'in', 'monostack' ), 353 | __( 'round', 'monostack' ), 354 | __( 'within', 'monostack' ), 355 | __( 'behind', 'monostack' ), 356 | __( 'inside', 'monostack' ), 357 | __( 'since', 'monostack' ), 358 | __( 'without', 'monostack' ), 359 | __( 'below', 'monostack' ), 360 | __( 'into', 'monostack' ), 361 | __( 'than', 'monostack' ), 362 | __( 'beneath', 'monostack' ), 363 | __( 'like', 'monostack' ), 364 | __( 'through', 'monostack' ), 365 | ) ); 366 | } 367 | 368 | wp_enqueue_script( 'monostack-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); 369 | 370 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 371 | wp_enqueue_script( 'comment-reply' ); 372 | } 373 | } 374 | add_action( 'wp_enqueue_scripts', 'monostack_scripts' ); 375 | 376 | /** 377 | * Custom template tags for this theme. 378 | */ 379 | require get_template_directory() . '/inc/template-tags.php'; 380 | 381 | /** 382 | * Functions which enhance the theme by hooking into WordPress. 383 | */ 384 | require get_template_directory() . '/inc/template-functions.php'; 385 | 386 | /** 387 | * Customizer additions. 388 | */ 389 | require get_template_directory() . '/inc/customizer.php'; 390 | 391 | /** 392 | * Load Jetpack compatibility file. 393 | */ 394 | if ( defined( 'JETPACK__VERSION' ) ) { 395 | require get_template_directory() . '/inc/jetpack.php'; 396 | } 397 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Monostack 3 | Theme URI: https://github.com/mapk/monostack/ 4 | Author: Mark Uraine 5 | Author URI: https://markuraine.com 6 | Description: Monostack is a Gutenberg-ready WordPress theme that brings the beauty of code editors to the frontend. With a strong focus on typography and color, Monostack highlights specific grammar much like syntax highlighting does in code editors. Monostack is named after the "monospace" font stacks used throughout the theme. 7 | Version: 2.0.4 8 | License: GNU General Public License v2 or later 9 | License URI: LICENSE 10 | Text Domain: monostack 11 | Tags: blog, translation-ready, custom-background, custom-colors, custom-logo, footer-widgets, full-width-template, rtl-language-support, threaded-comments, one-column 12 | 13 | This theme, like WordPress, is licensed under the GPL. 14 | Use it to make something cool, have fun, and share what you've learned with others. 15 | 16 | Monostack is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc. 17 | Underscores is distributed under the terms of the GNU GPL v2 or later. 18 | 19 | Monostack is built upon the Gutenberg Starter Theme https://github.com/WordPress/gutenberg-starter-theme. 20 | The Gutenberg Starter Theme is distributed under the terms of the GNU GPL v2 or later. 21 | 22 | Normalizing styles have been helped along thanks to the fine work of 23 | Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/ 24 | */ 25 | /*-------------------------------------------------------------- 26 | >>> TABLE OF CONTENTS: 27 | ---------------------------------------------------------------- 28 | # Normalize 29 | # Color variables 30 | # Typography 31 | # Elements 32 | # Forms 33 | # Navigation 34 | ## Links 35 | ## Menus 36 | # Accessibility 37 | # Alignments 38 | # Widgets 39 | # Content 40 | ## Posts and pages 41 | ## Error 404 42 | ## Various page titles 43 | ## Comments 44 | # Infinite scroll 45 | # Media 46 | ## Captions 47 | ## Galleries 48 | --------------------------------------------------------------*/ 49 | /*-------------------------------------------------------------- 50 | # Normalize 51 | --------------------------------------------------------------*/ 52 | html { 53 | font-family: sans-serif; 54 | -webkit-text-size-adjust: 100%; 55 | -ms-text-size-adjust: 100%; 56 | } 57 | 58 | body { 59 | margin: 0; 60 | } 61 | 62 | article, 63 | aside, 64 | details, 65 | figcaption, 66 | figure, 67 | footer, 68 | header, 69 | main, 70 | menu, 71 | nav, 72 | section, 73 | summary { 74 | display: block; 75 | } 76 | 77 | audio, 78 | canvas, 79 | progress, 80 | video { 81 | display: inline-block; 82 | vertical-align: baseline; 83 | } 84 | 85 | audio:not([controls]) { 86 | display: none; 87 | height: 0; 88 | } 89 | 90 | [hidden], 91 | template { 92 | display: none; 93 | } 94 | 95 | a { 96 | background-color: transparent; 97 | } 98 | 99 | a:active, 100 | a:hover { 101 | outline: 0; 102 | } 103 | 104 | abbr[title] { 105 | border-bottom: 1px dotted; 106 | } 107 | 108 | b, 109 | strong { 110 | font-weight: bold; 111 | } 112 | 113 | dfn { 114 | font-style: italic; 115 | } 116 | 117 | h1 { 118 | font-size: 2.44em; 119 | margin: 0.67em 0; 120 | line-height: 1.4; 121 | } 122 | 123 | h2 { 124 | font-size: 1.95em; 125 | line-height: 1.4; 126 | } 127 | 128 | h3 { 129 | font-size: 1.56em; 130 | line-height: 1.4; 131 | } 132 | 133 | h4 { 134 | font-size: 1.25em; 135 | line-height: 1.5; 136 | } 137 | 138 | h5 { 139 | font-size: 1em; 140 | } 141 | 142 | h6 { 143 | font-size: 0.8em; 144 | } 145 | 146 | mark { 147 | background: #ff0; 148 | color: #000; 149 | } 150 | 151 | small { 152 | font-size: 80%; 153 | } 154 | 155 | sub, 156 | sup { 157 | font-size: 75%; 158 | line-height: 0; 159 | position: relative; 160 | vertical-align: baseline; 161 | } 162 | 163 | sup { 164 | top: -0.5em; 165 | } 166 | 167 | sub { 168 | bottom: -0.25em; 169 | } 170 | 171 | img { 172 | border: 0; 173 | } 174 | 175 | svg:not(:root) { 176 | overflow: hidden; 177 | } 178 | 179 | figure { 180 | margin: 1em 40px; 181 | } 182 | 183 | hr { 184 | box-sizing: content-box; 185 | height: 0; 186 | } 187 | 188 | pre { 189 | overflow: auto; 190 | } 191 | 192 | code, 193 | kbd, 194 | pre, 195 | samp { 196 | font-family: monospace, monospace; 197 | font-size: 1em; 198 | } 199 | 200 | button, 201 | input, 202 | optgroup, 203 | select, 204 | textarea { 205 | color: inherit; 206 | font: inherit; 207 | margin: 0; 208 | } 209 | 210 | button { 211 | overflow: visible; 212 | } 213 | 214 | button, 215 | select { 216 | text-transform: none; 217 | } 218 | 219 | button, 220 | html input[type="button"], 221 | input[type="reset"], 222 | input[type="submit"] { 223 | -webkit-appearance: button; 224 | cursor: pointer; 225 | } 226 | 227 | button[disabled], 228 | html input[disabled] { 229 | cursor: default; 230 | } 231 | 232 | button::-moz-focus-inner, 233 | input::-moz-focus-inner { 234 | border: 0; 235 | padding: 0; 236 | } 237 | 238 | input { 239 | line-height: normal; 240 | } 241 | 242 | input[type="checkbox"], 243 | input[type="radio"] { 244 | box-sizing: border-box; 245 | padding: 0; 246 | } 247 | 248 | input[type="number"]::-webkit-inner-spin-button, 249 | input[type="number"]::-webkit-outer-spin-button { 250 | height: auto; 251 | } 252 | 253 | input[type="search"]::-webkit-search-cancel-button, 254 | input[type="search"]::-webkit-search-decoration { 255 | -webkit-appearance: none; 256 | } 257 | 258 | fieldset { 259 | border: 1px solid #c0c0c0; 260 | margin: 0 2px; 261 | padding: 0.35em 0.625em 0.75em; 262 | } 263 | 264 | legend { 265 | border: 0; 266 | padding: 0; 267 | } 268 | 269 | textarea { 270 | overflow: auto; 271 | } 272 | 273 | optgroup { 274 | font-weight: bold; 275 | } 276 | 277 | table { 278 | border-collapse: collapse; 279 | border-spacing: 0; 280 | } 281 | 282 | td, 283 | th { 284 | padding: 0; 285 | } 286 | 287 | /*-------------------------------------------------------------- 288 | # Color variables 289 | --------------------------------------------------------------*/ 290 | :root { 291 | --color_background: #282A36; /* Background */ 292 | --color_muted: #8492B1; /* Muted */ 293 | --color_text: #f7f7f7; /* Text */ 294 | --color_heading: #ffffff; /* Headings */ 295 | --color_blue: #6BE5FD; /* Words: conjunctions */ 296 | --color_pink: #FF79C0; /* Words: prepositions */ 297 | --color_green: #50FA78; /* Words: pronouns */ 298 | --color_action: #BD93F2; /* Links and buttons */ 299 | --color_highlight: #363948; /* Browser selection highlight and pre/code backgrounds */ 300 | } 301 | 302 | /*-------------------------------------------------------------- 303 | # Typography 304 | --------------------------------------------------------------*/ 305 | body, 306 | button, 307 | input, 308 | select, 309 | optgroup, 310 | textarea { 311 | color: var(--color_text); 312 | font-family: "Space Mono", "Noto Mono", "Oxygen Mono", Courier, monospace; 313 | font-size: 16px; 314 | font-size: 1rem; 315 | line-height: 1.8; 316 | } 317 | 318 | select { 319 | background: var(--color_highlight); 320 | border: 1px dashed var(--color_muted); 321 | color: var(--color_muted); 322 | } 323 | 324 | h1, h2, h3, h4, h5, h6 { 325 | color: var(--color_heading); 326 | clear: both; 327 | font-family: Consolas, "Noto Mono", "Oxygen Mono", Courier, monospace; 328 | padding-top: 2rem; 329 | } 330 | 331 | .entry-title { 332 | line-height: 1.4; 333 | margin: 1rem 0; 334 | padding-top: 0; 335 | text-transform: uppercase; 336 | } 337 | 338 | article:not(:first-child) .entry-title { 339 | margin-top: 3rem; 340 | } 341 | 342 | .entry-header h1.entry-title { 343 | font-size: 2rem; 344 | } 345 | 346 | .comments-title { 347 | font-size: 1rem; 348 | } 349 | 350 | dfn, cite, em, i { 351 | font-style: italic; 352 | } 353 | 354 | .entry-content .highlight-conjunctions { 355 | color: var(--color_blue); 356 | } 357 | .entry-content .highlight-prepositions { 358 | color: var(--color_pink); 359 | } 360 | .entry-content .highlight-pronouns { 361 | color: var(--color_green); 362 | } 363 | 364 | .entry-content blockquote p span[class^="highlight-"], 365 | .entry-content figure figcaption span[class^="highlight-"] { 366 | color: var(--color_muted); 367 | } 368 | 369 | blockquote { 370 | position: relative; 371 | } 372 | 373 | blockquote p { 374 | color: var(--color_muted); 375 | margin: 0; 376 | padding: 0; 377 | position: relative; 378 | } 379 | blockquote p:before { 380 | content: ""; 388 | display: block; 389 | font-family: monospace; 390 | font-size: 13px; 391 | } 392 | 393 | address { 394 | margin: 0 0 1rem; 395 | } 396 | 397 | pre { 398 | font-family: Consolas, "Noto Mono", "Oxygen Mono", Courier, monospace; 399 | font-size: 0.8rem; 400 | line-height: 1.8; 401 | margin-bottom: 1rem; 402 | max-width: 100%; 403 | overflow: auto; 404 | padding: 1rem !important; 405 | } 406 | 407 | pre:not(.wp-block-code) { 408 | background: var(--color_highlight); 409 | } 410 | 411 | code, kbd, tt, var { 412 | background-color: var(--color_highlight); 413 | font-family: Consolas, "Noto Mono", "Oxygen Mono", Courier, monospace; 414 | font-size: 0.8rem; 415 | padding: 0.3rem 0.5rem; 416 | } 417 | 418 | abbr, acronym { 419 | border-bottom: 1px dotted var(--color_muted); 420 | cursor: help; 421 | } 422 | 423 | mark, ins { 424 | background: #fff9c0; 425 | color: var(--color_background); 426 | font-family: Consolas, "Noto Mono", "Oxygen Mono", Courier, monospace; 427 | font-size: 0.8rem; 428 | padding: 0.3rem 0.5rem; 429 | text-decoration: none; 430 | } 431 | 432 | big { 433 | font-size: 125%; 434 | } 435 | 436 | /*-------------------------------------------------------------- 437 | # Elements 438 | --------------------------------------------------------------*/ 439 | html, body { 440 | box-sizing: border-box; 441 | height: 100%; 442 | } 443 | 444 | *, 445 | *:before, 446 | *:after { 447 | /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ 448 | box-sizing: inherit; 449 | } 450 | 451 | body { 452 | background: var(--color_background); 453 | /* Fallback for when there is no custom background color defined. */ } 454 | 455 | ::selection { 456 | background: var(--color_highlight); 457 | color: var(--color_heading); 458 | } 459 | ::-moz-selection { 460 | background: var(--color_highlight); 461 | color: var(--color_heading); 462 | } 463 | 464 | blockquote, q { 465 | quotes: "" ""; } 466 | blockquote:before, blockquote:after, q:before, q:after { 467 | content: ""; } 468 | 469 | hr { 470 | border: 0; 471 | height: 1px; 472 | margin-bottom: 1rem; 473 | } 474 | 475 | ol:not(.comment-list):not(.children):not(.wp-block-latest-comments) { 476 | counter-reset:list-counter; 477 | list-style:none; 478 | text-indent: -1.4rem; 479 | } 480 | ol:not(.comment-list):not(.children):not(.wp-block-latest-comments) li { 481 | counter-increment:list-counter; 482 | } 483 | ol:not(.comment-list):not(.children):not(.wp-block-latest-comments) li::before { 484 | color: var(--color_muted); 485 | content:counter(list-counter) "/ "; 486 | font-size: 0.8rem; 487 | } 488 | 489 | dt { 490 | font-weight: bold; 491 | } 492 | 493 | dd { 494 | margin: 0 1rem 1rem; 495 | } 496 | 497 | img { 498 | height: auto; 499 | /* Make sure images are scaled correctly. */ 500 | max-width: 100%; 501 | /* Adhere to container width. */ 502 | /*margin: 1rem 0;*/ 503 | } 504 | 505 | figure { 506 | margin: 1rem 0; 507 | /* Extra wide images within figure tags don't overflow the content area. */ 508 | } 509 | 510 | table { 511 | border: 1px dashed var(--color_muted); 512 | margin: 0 0 1rem; 513 | width: 100%; 514 | } 515 | 516 | th { 517 | background-color: var(--color_highlight); 518 | font-weight: normal; 519 | } 520 | 521 | td, th { 522 | border: 1px dashed var(--color_muted); 523 | padding: 5px; 524 | } 525 | 526 | /*-------------------------------------------------------------- 527 | # Forms 528 | --------------------------------------------------------------*/ 529 | button, 530 | input[type="button"], 531 | input[type="reset"], 532 | input[type="submit"] { 533 | background: var(--color_action); 534 | border: none; 535 | color: var(--color_background); 536 | font-family: Consolas, "Noto Mono", "Oxygen Mono", Courier, monospace; 537 | font-size: 0.8rem; 538 | letter-spacing: 1px; 539 | line-height: 1.8; 540 | padding: 5px 1em; 541 | position: relative; 542 | text-transform: uppercase; 543 | vertical-align: top; 544 | height: 35px; 545 | } 546 | 547 | button:hover, 548 | input[type="button"]:hover, 549 | input[type="reset"]:hover, 550 | input[type="submit"]:hover { 551 | box-shadow: 0 2px 8px rgba(0,0,0,0.5); 552 | top: -1px; 553 | } 554 | 555 | input[type="text"], 556 | input[type="email"], 557 | input[type="url"], 558 | input[type="password"], 559 | input[type="search"], 560 | input[type="number"], 561 | input[type="tel"], 562 | input[type="range"], 563 | input[type="date"], 564 | input[type="month"], 565 | input[type="week"], 566 | input[type="time"], 567 | input[type="datetime"], 568 | input[type="datetime-local"], 569 | input[type="color"], 570 | textarea { 571 | background-color: var(--color_highlight); 572 | border: 1px dashed var(--color_muted); 573 | color: var(--color_heading); 574 | padding: 0 0.3rem; 575 | } 576 | 577 | input[type="text"], 578 | input[type="email"], 579 | input[type="url"], 580 | input[type="password"], 581 | input[type="search"], 582 | input[type="number"], 583 | input[type="tel"], 584 | input[type="range"], 585 | input[type="date"], 586 | input[type="month"], 587 | input[type="week"], 588 | input[type="time"], 589 | input[type="datetime"], 590 | input[type="datetime-local"], 591 | input[type="color"] { 592 | height: 35px; 593 | } 594 | 595 | input[type="text"]:focus, 596 | input[type="email"]:focus, 597 | input[type="url"]:focus, 598 | input[type="password"]:focus, 599 | input[type="search"]:focus, 600 | input[type="number"]:focus, 601 | input[type="tel"]:focus, 602 | input[type="range"]:focus, 603 | input[type="date"]:focus, 604 | input[type="month"]:focus, 605 | input[type="week"]:focus, 606 | input[type="time"]:focus, 607 | input[type="datetime"]:focus, 608 | input[type="datetime-local"]:focus, 609 | input[type="color"]:focus, 610 | textarea:focus { 611 | color: var(--color_heading); 612 | } 613 | 614 | input[type="text"]::placeholder, 615 | input[type="email"]::placeholder, 616 | input[type="url"]::placeholder, 617 | input[type="password"]::placeholder, 618 | input[type="search"]::placeholder, 619 | input[type="number"]::placeholder, 620 | input[type="tel"]::placeholder, 621 | input[type="range"]::placeholder, 622 | input[type="date"]::placeholder, 623 | input[type="month"]::placeholder, 624 | input[type="week"]::placeholder, 625 | input[type="time"]::placeholder, 626 | input[type="datetime"]::placeholder, 627 | input[type="datetime-local"]::placeholder, 628 | input[type="color"]::placeholder, 629 | textarea::placeholder { 630 | color: var(--color_muted); 631 | } 632 | 633 | textarea { 634 | width: 100%; 635 | } 636 | 637 | label { 638 | display: block; 639 | font-size: 0.8rem; 640 | } 641 | 642 | .search-form label { 643 | display: inline-block; 644 | } 645 | 646 | /*-------------------------------------------------------------- 647 | # Navigation 648 | --------------------------------------------------------------*/ 649 | /*-------------------------------------------------------------- 650 | ## Links 651 | --------------------------------------------------------------*/ 652 | a, 653 | .hentry a span[class^="highlight-"] { 654 | color: var(--color_action); 655 | } 656 | 657 | a:visited, 658 | .hentry a:visited span[class^="highlight-"] { 659 | color: var(--color_action); 660 | } 661 | 662 | a:not(.has-text-color):not(.has-background):hover, 663 | a:not(.has-text-color):not(.has-background):focus, 664 | a:not(.has-text-color):not(.has-background):active, 665 | .hentry a:not(.has-text-color):not(.has-background):hover span[class^="highlight-"] { 666 | background-color: var(--color_action); 667 | color: var(--color_background); 668 | text-decoration: none; 669 | } 670 | 671 | a:focus { 672 | outline: thin dotted; 673 | } 674 | 675 | a:hover, a:active { 676 | outline: 0; 677 | } 678 | 679 | /*-------------------------------------------------------------- 680 | ## Menus 681 | --------------------------------------------------------------*/ 682 | .main-navigation { 683 | clear: both; 684 | display: block; 685 | margin: 0 auto; 686 | max-width: 600px; 687 | } 688 | 689 | .main-navigation ul { 690 | display: none; 691 | list-style: none; 692 | margin: 0; 693 | padding: 0; 694 | } 695 | 696 | .main-navigation ul ul { 697 | background-color: var(--color_highlight); 698 | box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); 699 | float: left; 700 | position: absolute; 701 | top: 100%; 702 | left: -999em; 703 | z-index: 99999; 704 | text-align: left; 705 | } 706 | 707 | .main-navigation ul ul ul { 708 | left: -999em; 709 | top: 0; 710 | } 711 | 712 | .main-navigation ul ul li:hover > ul, 713 | .main-navigation ul ul li.focus > ul { 714 | left: 100%; 715 | } 716 | 717 | .main-navigation ul ul a { 718 | line-height: 1.4; 719 | padding: 0.5rem 1rem; 720 | width: 200px; 721 | } 722 | 723 | .main-navigation ul li:hover > ul, 724 | .main-navigation ul li.focus > ul { 725 | display: block; 726 | left: auto; 727 | } 728 | 729 | .main-navigation li { 730 | position: relative; 731 | } 732 | 733 | .main-navigation li:hover { 734 | background-color: var(--color_action) !important; 735 | color: var(--color_background); 736 | text-decoration: none; 737 | } 738 | 739 | .main-navigation li:hover > a { 740 | color: var(--color_background); 741 | text-decoration: none; 742 | } 743 | 744 | .main-navigation li.current_page_item { 745 | background-color: var(--color_highlight); 746 | } 747 | 748 | .main-navigation li.current_page_item a { 749 | text-decoration: none; 750 | } 751 | 752 | .main-navigation li:first-child { 753 | margin-left: 0; 754 | padding-left: 0; 755 | } 756 | 757 | .main-navigation a { 758 | display: block; 759 | } 760 | 761 | .menu-toggle { 762 | padding: 0 1rem; 763 | } 764 | 765 | @media screen and (max-width: 37.5em) { 766 | /* Small menu. */ 767 | .menu-toggle, 768 | .main-navigation.toggled ul { 769 | display: block; 770 | margin: 0 1rem; 771 | } 772 | 773 | .main-navigation ul > li > a { 774 | padding: 0.3rem 1rem; 775 | } 776 | } 777 | 778 | @media screen and (min-width: 37.5em) { 779 | .menu-toggle { 780 | display: none; 781 | } 782 | .main-navigation ul { 783 | display: flex; 784 | justify-content: space-between; 785 | flex-wrap: wrap; 786 | } 787 | 788 | .main-navigation ul.nav-menu > li > a { 789 | padding: 3px 1rem; 790 | height: 35px; 791 | } 792 | 793 | .main-navigation a { 794 | padding: 0 1rem; 795 | } 796 | } 797 | 798 | .site-main .comment-navigation, 799 | .site-main .posts-navigation, 800 | .site-main .post-navigation { 801 | border-bottom: 1px dashed var(--color_muted); 802 | border-top: 1px dashed var(--color_muted); 803 | margin: 3rem auto; 804 | max-width: 600px; 805 | overflow: hidden; 806 | padding-bottom: 3rem; 807 | padding-top: 3rem; 808 | } 809 | 810 | .nav-links { 811 | display: flex; 812 | } 813 | 814 | .comment-navigation .nav-previous, 815 | .posts-navigation .nav-previous, 816 | .post-navigation .nav-previous { 817 | width: 50%; 818 | flex: 1 0 50%; 819 | } 820 | 821 | .comment-navigation .nav-next, 822 | .posts-navigation .nav-next, 823 | .post-navigation .nav-next { 824 | text-align: end; 825 | flex: 1 0 50%; 826 | } 827 | 828 | /*-------------------------------------------------------------- 829 | # Accessibility 830 | --------------------------------------------------------------*/ 831 | /* Text meant only for screen readers. */ 832 | .screen-reader-text { 833 | clip: rect(1px, 1px, 1px, 1px); 834 | position: absolute !important; 835 | height: 1px; 836 | width: 1px; 837 | overflow: hidden; 838 | word-wrap: normal !important; 839 | /* Many screen reader and browser combinations announce broken words as they would appear visually. */ 840 | } 841 | 842 | .screen-reader-text:focus { 843 | background-color: var(--color_action); 844 | border-radius: 3px; 845 | box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); 846 | clip: auto !important; 847 | color: var(--color_background); 848 | display: block; 849 | font-size: 0.8rem; 850 | font-size: 0.875rem; 851 | height: auto; 852 | left: 5px; 853 | line-height: normal; 854 | padding: 15px 23px 14px; 855 | text-decoration: none; 856 | top: 5px; 857 | width: auto; 858 | z-index: 100000; 859 | /* Above WP toolbar. */ 860 | } 861 | 862 | /* Do not show the outline on the skip link target. */ 863 | #primary[tabindex="-1"]:focus { 864 | outline: 0; 865 | } 866 | 867 | /*-------------------------------------------------------------- 868 | # Alignments 869 | --------------------------------------------------------------*/ 870 | .alignleft, 871 | .alignright { 872 | max-width: 600px !important; /* Let's work to make this !important unnecessary */ 873 | } 874 | 875 | .alignleft img, 876 | .alignright img, 877 | .alignleft figcaption, 878 | .alignright figcaption { 879 | max-width: 50%; 880 | width: 50%; 881 | } 882 | 883 | .alignleft figcaption { 884 | clear: left; 885 | } 886 | 887 | .alignright figcaption { 888 | clear: right; 889 | } 890 | 891 | .alignleft img, 892 | .alignleft figcaption { 893 | float: left; 894 | margin-right: 1rem; 895 | } 896 | 897 | .alignright img, 898 | .alignright figcaption { 899 | float: right; 900 | margin-left: 1rem; 901 | } 902 | 903 | .aligncenter { 904 | clear: both; 905 | display: block; 906 | margin-left: auto; 907 | margin-right: auto; 908 | } 909 | 910 | /*-------------------------------------------------------------- 911 | # Widgets 912 | --------------------------------------------------------------*/ 913 | .widget-area { 914 | width: 25%; 915 | } 916 | 917 | .widget { 918 | border-bottom: 1px dashed var(--color_muted); 919 | margin: 0 0 1rem; 920 | padding-bottom: 1rem; 921 | } 922 | 923 | .widget select { 924 | max-width: 100%; 925 | } 926 | 927 | /*-------------------------------------------------------------- 928 | # Content 929 | --------------------------------------------------------------*/ 930 | #page { 931 | margin: 0 auto; 932 | max-width: 100%; 933 | min-height: 100%; 934 | position: relative; 935 | } 936 | 937 | .site-header { 938 | margin-bottom: 3rem; 939 | } 940 | 941 | .site-branding { 942 | margin: 0 auto; 943 | max-width: 600px; 944 | padding: 2rem 1rem; 945 | } 946 | 947 | .site-title { 948 | color: var(--color_muted); 949 | font-family: "Space Mono", "Noto Mono", "Oxygen Mono", Courier, monospace; 950 | font-size: 1rem; 951 | font-weight: inherit; 952 | line-height: 1.8; 953 | margin: 1rem auto; 954 | padding: 0; 955 | position: relative; 956 | } 957 | 958 | .site-title a, .site-title a:visited { 959 | color: inherit; 960 | text-decoration: none; 961 | } 962 | 963 | .site-title a:hover { 964 | background-color: transparent; 965 | } 966 | 967 | .site-description { 968 | color: var(--color_muted); 969 | font-weight: inherit; 970 | line-height: 1.4; 971 | position: relative; 972 | word-wrap: break-word; 973 | } 974 | 975 | .site-title:before, .site-description:before { 976 | content:"// "; 977 | left: -2rem; 978 | position: absolute; 979 | } 980 | 981 | .site-main { 982 | padding: 0 0 calc(2rem + 100px); 983 | } 984 | 985 | .site-footer { 986 | bottom: 0; 987 | height: 100px; 988 | position: absolute; 989 | width: 100%; 990 | } 991 | 992 | .site-footer .site-info { 993 | color: var(--color_muted); 994 | margin: 0 auto; 995 | position: relative; 996 | } 997 | 998 | .site-footer .site-info p:before, 999 | .site-footer .search-form:before { 1000 | content:"// "; 1001 | left: -2rem; 1002 | position: absolute; 1003 | } 1004 | 1005 | @media screen and (min-width: 664px) { 1006 | .site-branding, 1007 | .site-navigation { 1008 | padding-left: 0; 1009 | padding-right: 0; 1010 | } 1011 | } 1012 | 1013 | /*-------------------------------------------------------------- 1014 | ## Posts and pages 1015 | --------------------------------------------------------------*/ 1016 | .sticky { 1017 | display: block; 1018 | } 1019 | 1020 | .updated:not(.published) { 1021 | display: none; 1022 | } 1023 | 1024 | .page-content, 1025 | .entry-content, 1026 | .entry-summary { 1027 | margin: 1rem 0 0; 1028 | } 1029 | 1030 | .page-links { 1031 | clear: both; 1032 | margin: 0 0 1rem; 1033 | } 1034 | 1035 | .entry-header, 1036 | .entry-header + p, 1037 | .page-header, 1038 | .entry-footer, 1039 | .site-info, 1040 | .post-navigation, 1041 | .page-navigation, 1042 | .comments-area, 1043 | .not-found .page-content, 1044 | .search .entry-summary { 1045 | margin: 1rem auto; 1046 | padding-left: 1rem; 1047 | padding-right: 1rem; 1048 | max-width: 600px; 1049 | } 1050 | 1051 | .entry-header .wp-post-image { 1052 | margin-bottom: 1rem; 1053 | } 1054 | 1055 | .entry-header .posted-on { 1056 | color: var(--color_muted); 1057 | font-size: 0.8rem; 1058 | } 1059 | 1060 | .entry-footer span{ 1061 | margin-right: 1rem; 1062 | } 1063 | 1064 | .entry-footer{ 1065 | color: var(--color_muted); 1066 | font-size: 0.8rem; 1067 | padding-bottom: 3rem; 1068 | } 1069 | 1070 | @media screen and (min-width: 664px) { 1071 | .entry-header, 1072 | .entry-header + p, 1073 | .page-header, 1074 | .entry-footer, 1075 | .site-info, 1076 | .post-navigation, 1077 | .page-navigation, 1078 | .comments-area, 1079 | .not-found .page-content, 1080 | .search .entry-summary { 1081 | padding-left: 0; 1082 | padding-right: 0; 1083 | } 1084 | } 1085 | 1086 | /*-------------------------------------------------------------- 1087 | ## Error 404 1088 | --------------------------------------------------------------*/ 1089 | .error404 { 1090 | background-color: #ff4c4c; 1091 | color: var(--color_background); 1092 | } 1093 | 1094 | .error404 .nav-menu > li > a, 1095 | .error404 footer a, 1096 | .error404 .site-description, 1097 | .error404 .site-title, 1098 | .error404 h1, 1099 | .error404 .site-info { 1100 | color: var(--color_background); 1101 | } 1102 | 1103 | .error404 input[type="search"] { 1104 | background-color: transparent; 1105 | border: 1px dashed var(--color_highlight); 1106 | } 1107 | 1108 | .error404 input[type="search"]::placeholder { 1109 | color: var(--color_background); 1110 | } 1111 | 1112 | /*-------------------------------------------------------------- 1113 | ## Various page titles 1114 | --------------------------------------------------------------*/ 1115 | .search .page-title, .archive.category .page-title, .archive.author .page-title { 1116 | color: var(--color_green); 1117 | font-family: "Space Mono", "Noto Mono", "Oxygen Mono", Courier, monospace; 1118 | font-size: 1rem; 1119 | font-weight: normal; 1120 | padding-top: 0; 1121 | } 1122 | 1123 | /*-------------------------------------------------------------- 1124 | ## Comments 1125 | --------------------------------------------------------------*/ 1126 | .comment-list { 1127 | font-size: 0.8rem; 1128 | list-style: none; 1129 | padding: 0; 1130 | } 1131 | 1132 | .comment-list li { 1133 | margin-top: 1rem; 1134 | } 1135 | 1136 | /*.comment-list li + li { 1137 | padding-left: 40px; 1138 | }*/ 1139 | 1140 | .comment-list a { 1141 | text-decoration: none; 1142 | } 1143 | 1144 | ol.children { 1145 | list-style: none; 1146 | } 1147 | 1148 | .comment-author .says { 1149 | display: none; 1150 | } 1151 | 1152 | .comment-author img { 1153 | float: left; 1154 | margin: 10px 8px 0 0; 1155 | } 1156 | 1157 | .comment-author .fn { 1158 | font-size: 1rem; 1159 | } 1160 | 1161 | .comment-content, 1162 | .reply { 1163 | color: var(--color_muted); 1164 | padding-left: 40px; 1165 | } 1166 | 1167 | .comment-content a { 1168 | word-wrap: break-word; 1169 | } 1170 | 1171 | .bypostauthor { 1172 | display: block; 1173 | } 1174 | 1175 | .comment-respond { 1176 | font-size: 0.8rem; 1177 | } 1178 | 1179 | /*-------------------------------------------------------------- 1180 | # Infinite scroll 1181 | --------------------------------------------------------------*/ 1182 | /* Globally hidden elements when Infinite Scroll is supported and in use. */ 1183 | .infinite-scroll .posts-navigation, 1184 | .infinite-scroll.neverending .site-footer { 1185 | /* Theme Footer (when set to scrolling) */ 1186 | display: none; 1187 | } 1188 | 1189 | /* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ 1190 | .infinity-end.neverending .site-footer { 1191 | display: block; 1192 | } 1193 | 1194 | /*-------------------------------------------------------------- 1195 | # Media 1196 | --------------------------------------------------------------*/ 1197 | .page-content .wp-smiley, 1198 | .entry-content .wp-smiley, 1199 | .comment-content .wp-smiley { 1200 | border: none; 1201 | margin-bottom: 0; 1202 | margin-top: 0; 1203 | padding: 0; 1204 | } 1205 | 1206 | /* Make sure embeds and iframes fit their containers. */ 1207 | embed, 1208 | iframe, 1209 | object { 1210 | max-width: 100%; 1211 | } 1212 | 1213 | /* Make sure logo link wraps around logo image. */ 1214 | .custom-logo-link { 1215 | display: inline-block; 1216 | } 1217 | 1218 | figcaption { 1219 | color: var(--color_muted); 1220 | font-size: 0.8rem; 1221 | text-align: left; 1222 | } 1223 | 1224 | /*-------------------------------------------------------------- 1225 | ## Captions 1226 | --------------------------------------------------------------*/ 1227 | .wp-caption { 1228 | margin-bottom: 1.5em; 1229 | max-width: 100%; 1230 | } 1231 | 1232 | .wp-caption img[class*="wp-image-"] { 1233 | display: block; 1234 | margin-left: auto; 1235 | margin-right: auto; 1236 | } 1237 | 1238 | .wp-caption .wp-caption-text { 1239 | margin: 0.8075em 0; 1240 | } 1241 | 1242 | .wp-caption-text { 1243 | text-align: center; 1244 | } 1245 | 1246 | /*-------------------------------------------------------------- 1247 | ## Galleries 1248 | --------------------------------------------------------------*/ 1249 | .gallery { 1250 | margin-bottom: 1.5em; 1251 | } 1252 | 1253 | .gallery-item { 1254 | display: inline-block; 1255 | text-align: center; 1256 | vertical-align: top; 1257 | width: 100%; 1258 | } 1259 | 1260 | .gallery-columns-2 .gallery-item { 1261 | max-width: 50%; 1262 | } 1263 | 1264 | .gallery-columns-3 .gallery-item { 1265 | max-width: 33.3333333333%; 1266 | } 1267 | 1268 | .gallery-columns-4 .gallery-item { 1269 | max-width: 25%; 1270 | } 1271 | 1272 | .gallery-columns-5 .gallery-item { 1273 | max-width: 20%; 1274 | } 1275 | 1276 | .gallery-columns-6 .gallery-item { 1277 | max-width: 16.6666666667%; 1278 | } 1279 | 1280 | .gallery-columns-7 .gallery-item { 1281 | max-width: 14.2857142857%; 1282 | } 1283 | 1284 | .gallery-columns-8 .gallery-item { 1285 | max-width: 12.5%; 1286 | } 1287 | 1288 | .gallery-columns-9 .gallery-item { 1289 | max-width: 11.1111111111%; 1290 | } 1291 | 1292 | .gallery-caption { 1293 | display: block; 1294 | } 1295 | --------------------------------------------------------------------------------