Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Last active May 7, 2017 21:51
Show Gist options
  • Save 2ndkauboy/360b29f20f43297fe7835718b3dc459e to your computer and use it in GitHub Desktop.
Save 2ndkauboy/360b29f20f43297fe7835718b3dc459e to your computer and use it in GitHub Desktop.
<?php
/**
* Enqueue the styles from parent and child theme
*/
function twentyfifteen_flexbox_grid_parent_theme_enqueue_styles() {
wp_enqueue_style( 'twentyfifteen-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'twentyfifteen-flexbox-grid-style',
get_stylesheet_directory_uri() . '/style.css',
array( 'twentyfifteen-style' )
);
}
add_action( 'wp_enqueue_scripts', 'twentyfifteen_flexbox_grid_parent_theme_enqueue_styles' );
/*
Theme Name: TwentyFifteen Flexbox Grid
Theme URI: https://gist.github.com/2ndkauboy/360b29f20f43297fe7835718b3dc459e
Description: Twentyfifteen child theme.
Author: Bernhard Kau
Author URI: https://kau-boys.de
Template: twentyfifteen
Version: 0.1.0
*/
@media screen and (min-width: 38.75em) {
.home .site-main {
padding-left: 7.6923%;
padding-right: 7.6923%;
}
.home .site-main {
display: flex;
flex-wrap: wrap;
margin: auto -2%;
}
.home .site-main > article {
flex: 1 0 200px;
margin: 0 2% 5%;
display: flex;
flex-direction: column;
}
.home .site-main > article footer {
margin-top: auto;
}
}
@media screen and (min-width: 59.6875em) {
.home .site-main {
padding-left: 8.3333%;
padding-right: 8.3333%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment