General updates
This commit is contained in:
parent
7c5bfdc0d4
commit
05c8670de0
|
@ -1,8 +1,9 @@
|
|||
body {
|
||||
color: $base-colour;
|
||||
font-family: $base-font-stack;
|
||||
font-family: $base-font-family;
|
||||
@include font-size($base-font-size);
|
||||
line-height: $base-line-height;
|
||||
-webkit-text-size-adjust: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// -----------------------------------------------------------------------------
|
||||
// This file contains all @font-face declarations, if any.
|
||||
// -----------------------------------------------------------------------------
|
||||
/**
|
||||
* This file contains all @font-face declarations, if any.
|
||||
*/
|
|
@ -2,6 +2,10 @@
|
|||
* Blanket input styles for normalisation
|
||||
*/
|
||||
|
||||
*:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
|
@ -30,6 +34,11 @@ input[type="file"] {
|
|||
padding: ($base-spacing-unit / 4) ($base-spacing-unit / 2);
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
input[disabled] {
|
||||
background-color: whitesmoke;
|
||||
cursor: not-allowed;
|
||||
|
@ -45,6 +54,7 @@ textarea {
|
|||
min-height: ($base-spacing-unit * 4);
|
||||
overflow: auto;
|
||||
vertical-align: top;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -6,3 +6,14 @@ img {
|
|||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Responsive images
|
||||
*/
|
||||
|
||||
.is-fluid {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
.alert {
|
||||
padding: $base-spacing-unit;
|
||||
margin-bottom: $base-spacing-unit;
|
||||
border: 1px solid transparent;
|
||||
> p,
|
||||
> ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
> p + p {
|
||||
margin-top: $base-spacing-unit;
|
||||
}
|
||||
&.alert--success {
|
||||
color: $success-colour;
|
||||
border-color: $success-colour;
|
||||
}
|
||||
&.alert--info {
|
||||
color: $info-colour;
|
||||
border-color: $info-colour;
|
||||
}
|
||||
&.alert--warning {
|
||||
color: $warning-colour;
|
||||
border-color: $warning-colour;
|
||||
}
|
||||
&.alert--danger {
|
||||
color: $danger-colour;
|
||||
border-color: $danger-colour;
|
||||
}
|
||||
}
|
|
@ -5,6 +5,11 @@
|
|||
display: inline-block;
|
||||
padding: ($base-spacing-unit / 4) $base-spacing-unit;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
width: auto;
|
||||
transition: all .5s;
|
||||
&::-moz-focus-inner {
|
||||
|
@ -17,6 +22,11 @@
|
|||
color: $brand-colour;
|
||||
border: 1px solid $brand-colour;
|
||||
}
|
||||
.is-disabled,
|
||||
&:disabled {
|
||||
pointer-events: none;
|
||||
opacity: .65;
|
||||
}
|
||||
}
|
||||
|
||||
.btn--inverse {
|
||||
|
@ -33,6 +43,9 @@
|
|||
.btn--block {
|
||||
display: block;
|
||||
width: 100%;
|
||||
+ .btn--block {
|
||||
margin-top: $base-spacing-unit / 4;
|
||||
}
|
||||
}
|
||||
|
||||
.btn--link {
|
||||
|
|
|
@ -1,10 +1,25 @@
|
|||
/**
|
||||
* Base values
|
||||
* Colours
|
||||
*/
|
||||
|
||||
$base-colour: #444;
|
||||
$base-background-colour: #fff;
|
||||
$base-font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
|
||||
$brand-colour: #444; // Example
|
||||
$success-colour: #5CB85C;
|
||||
$info-colour: $brand-colour;
|
||||
$warning-colour: #F0AD4E;
|
||||
$danger-colour: #D9534F;
|
||||
|
||||
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
|
||||
$sans-serif-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
$serif-font-family: Georgia, "Times New Roman", Times, serif;
|
||||
$base-font-family: $sans-serif-font-family;
|
||||
|
||||
$base-font-size: 16;
|
||||
$base-line-height: 1.5;
|
||||
$base-spacing-unit: ($base-font-size * $base-line-height) * 1px;
|
||||
|
@ -36,7 +51,7 @@ $grid-gutter: $base-spacing-unit;
|
|||
|
||||
|
||||
/**
|
||||
* Custom variables
|
||||
* Components
|
||||
*/
|
||||
|
||||
$brand-colour: #444; // Example
|
||||
$border-radius: 3px;
|
|
@ -2,6 +2,7 @@
|
|||
* Clearing and floating
|
||||
*/
|
||||
|
||||
.alignleft,
|
||||
.float-left {
|
||||
float: left;
|
||||
img & {
|
||||
|
@ -9,7 +10,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.alignright,
|
||||
.float-right {
|
||||
float: right;
|
||||
img & {
|
||||
|
@ -17,7 +18,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.aligncenter,
|
||||
.float-center {
|
||||
display: block;
|
||||
margin: {
|
||||
|
@ -39,15 +40,15 @@
|
|||
* Text aligments
|
||||
*/
|
||||
|
||||
.align-left {
|
||||
.align-text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
.align-text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.align-center {
|
||||
.align-text-center {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,29 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Custom functions / External files
|
||||
*/
|
||||
|
||||
require get_template_directory() . '/functions/example.php';
|
||||
|
||||
|
||||
/**
|
||||
* Add support for useful stuff
|
||||
*/
|
||||
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_theme_support( 'post-formats', ['post'] );
|
||||
add_theme_support( 'custom-header' );
|
||||
add_theme_support( 'custom-background' );
|
||||
add_post_type_support( 'page', 'excerpt' );
|
||||
if ( function_exists( 'add_theme_support' ) )
|
||||
{
|
||||
// Add Thumbnail Theme Support
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_image_size( 'custom-size', 700, 200, true );
|
||||
|
||||
// Add Support for post formats
|
||||
add_theme_support( 'post-formats', ['post'] );
|
||||
add_post_type_support( 'page', 'excerpt' );
|
||||
|
||||
// Localisation Support
|
||||
load_theme_textdomain( 'barebones', get_template_directory() . '/languages' );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
@ -31,19 +45,20 @@ remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
|
|||
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
|
||||
remove_action( 'wp_print_styles', 'print_emoji_styles' );
|
||||
|
||||
function barebones_remove_comments_rss( $for_comments ) {
|
||||
function barebones_remove_comments_rss( $for_comments )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' );
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* jQuery the right way
|
||||
*/
|
||||
|
||||
function barebones_scripts() {
|
||||
function barebones_scripts()
|
||||
{
|
||||
/*
|
||||
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
||||
*/
|
||||
|
@ -52,7 +67,7 @@ function barebones_scripts() {
|
|||
wp_deregister_script( 'jquery' );
|
||||
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js', false, '2.1.4', true );
|
||||
wp_enqueue_script( 'jquery' );
|
||||
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/scripts.min.js', ['jquery'], null, true );
|
||||
wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/script.min.js', ['jquery'], null, true );
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'barebones_scripts' );
|
||||
|
@ -63,18 +78,21 @@ add_action( 'wp_enqueue_scripts', 'barebones_scripts' );
|
|||
* Nav menus
|
||||
*/
|
||||
|
||||
if ( function_exists( 'register_nav_menus' ) ) {
|
||||
if ( function_exists( 'register_nav_menus' ) )
|
||||
{
|
||||
register_nav_menus([
|
||||
'header' => 'Header',
|
||||
'footer' => 'Footer'
|
||||
]);
|
||||
}
|
||||
|
||||
function barebones_nav_menu_args( $args = '' ) {
|
||||
function barebones_nav_menu_args( $args = '' )
|
||||
{
|
||||
$args['container'] = false;
|
||||
$args['container_class'] = false;
|
||||
$args['menu_id'] = false;
|
||||
$args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
|
@ -86,14 +104,16 @@ add_filter( 'wp_nav_menu_args', 'barebones_nav_menu_args' );
|
|||
* Email
|
||||
*/
|
||||
|
||||
function barebones_mail_from( $email ) {
|
||||
function barebones_mail_from( $email )
|
||||
{
|
||||
return get_option( 'admin_email' );
|
||||
}
|
||||
|
||||
add_filter( 'wp_mail_from', 'barebones_mail_from' );
|
||||
|
||||
|
||||
function barebones_mail_from_name( $name ) {
|
||||
function barebones_mail_from_name( $name )
|
||||
{
|
||||
return get_bloginfo( 'name' );
|
||||
}
|
||||
|
||||
|
@ -105,8 +125,10 @@ add_filter( 'wp_mail_from_name', 'barebones_mail_from_name' );
|
|||
* Shortcodes ([button] shortcode included)
|
||||
*/
|
||||
|
||||
function button_shortcode( $atts, $content = null ) {
|
||||
function button_shortcode( $atts, $content = null )
|
||||
{
|
||||
$atts['class'] = $atts['class'] ? $atts['class'] : 'btn';
|
||||
|
||||
return '<a class="' . $atts['class'] . '" href="' . $atts['link'] . '">' . $content . '</a>';
|
||||
}
|
||||
|
||||
|
@ -118,27 +140,30 @@ add_shortcode( 'button', 'button_shortcode' );
|
|||
* TinyMCE
|
||||
*/
|
||||
|
||||
function barebones_mce_buttons_2( $buttons ) {
|
||||
function barebones_mce_buttons_2( $buttons )
|
||||
{
|
||||
array_unshift( $buttons, 'styleselect' );
|
||||
$buttons[] = 'hr';
|
||||
|
||||
return $buttons;
|
||||
}
|
||||
|
||||
add_filter( 'mce_buttons_2', 'barebones_mce_buttons_2' );
|
||||
|
||||
|
||||
function barebones_tiny_mce_before_init( $settings ) {
|
||||
function barebones_tiny_mce_before_init( $settings )
|
||||
{
|
||||
$style_formats = [
|
||||
/*
|
||||
* Example
|
||||
*
|
||||
[
|
||||
'title' => '',
|
||||
'selector' => '',
|
||||
'classes' => ''
|
||||
] */
|
||||
// [
|
||||
// 'title' => '',
|
||||
// 'selector' => '',
|
||||
// 'classes' => ''
|
||||
// ]
|
||||
];
|
||||
|
||||
$settings['style_formats'] = json_encode( $style_formats );
|
||||
$settings['style_formats_merge'] = true;
|
||||
|
||||
return $settings;
|
||||
}
|
||||
|
||||
|
@ -150,15 +175,9 @@ add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
|
|||
* Get image URL for whatever size.
|
||||
*/
|
||||
|
||||
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = []) {
|
||||
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [])
|
||||
{
|
||||
$image = wp_get_attachment_image_src( $id, $size, $attrs );
|
||||
|
||||
return $image[0];
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Custom functions / External files
|
||||
*/
|
||||
|
||||
require_once( 'functions/example.php' );
|
|
@ -1 +1,3 @@
|
|||
<?php
|
||||
|
||||
//
|
|
@ -1,10 +1,10 @@
|
|||
var elixir = require('laravel-elixir');
|
||||
|
||||
// The assets path
|
||||
// Assets path
|
||||
elixir.config.assetsPath = 'assets';
|
||||
|
||||
// Run elixir tasks
|
||||
elixir(function(mix) {
|
||||
mix.sass('barebones.scss', 'styles.css')
|
||||
.scripts(['script.js'], 'js/scripts.min.js');
|
||||
mix.sass('barebones.scss', 'style.css')
|
||||
.scripts(['script.js'], 'js/script.min.js');
|
||||
});
|
|
@ -7,7 +7,6 @@
|
|||
<title><?php wp_title( '' ); ?></title>
|
||||
<link rel="dns-prefetch" href="//google-analytics.com">
|
||||
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>">
|
||||
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/img/favicon.png">
|
||||
<?php wp_head(); ?>
|
||||
<!--[if lt IE 10]>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
// var $ = require('jquery');
|
||||
|
||||
(function() {
|
||||
|
||||
|
||||
|
||||
})($);
|
||||
//# sourceMappingURL=script.min.js.map
|
|
@ -1,2 +0,0 @@
|
|||
!function(){}($);
|
||||
//# sourceMappingURL=scripts.min.js.map
|
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
|
@ -0,0 +1,664 @@
|
|||
/**
|
||||
Theme Name: Barebones
|
||||
Theme URI: http://github.com/benchmarkstudios/barebones
|
||||
Author: Benchmark
|
||||
*/
|
||||
/**
|
||||
* Colours
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* Breakpoints
|
||||
*/
|
||||
/**
|
||||
* Grid
|
||||
*/
|
||||
/**
|
||||
* Components
|
||||
*/
|
||||
/*
|
||||
* Media query to respond to a minimum size (mobile first)
|
||||
*/
|
||||
/*
|
||||
* Media query to respond to a maximum size
|
||||
*/
|
||||
/*
|
||||
* Output font size in px/rem
|
||||
*/
|
||||
/*
|
||||
* Placeholder mixin for <input>
|
||||
*/
|
||||
/**
|
||||
* Clearfix
|
||||
*/
|
||||
/**
|
||||
* Default variables and helper mixins
|
||||
*/
|
||||
/**
|
||||
* Space between columns
|
||||
*/
|
||||
/**
|
||||
* Max width of container
|
||||
*/
|
||||
/**
|
||||
* Number of total columns
|
||||
*/
|
||||
/**
|
||||
* Breakpoints
|
||||
*/
|
||||
/**
|
||||
* Grid loop mixin
|
||||
*/
|
||||
/**
|
||||
* Clearfix
|
||||
*/
|
||||
/**
|
||||
* Grid scaffolding
|
||||
*/
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px; }
|
||||
.container:before,
|
||||
.container:after {
|
||||
content: " ";
|
||||
display: table; }
|
||||
.container:after {
|
||||
clear: both; }
|
||||
|
||||
.row {
|
||||
list-style: none;
|
||||
margin-left: -24px; }
|
||||
.row:before,
|
||||
.row:after {
|
||||
content: " ";
|
||||
display: table; }
|
||||
.row:after {
|
||||
clear: both; }
|
||||
.row.row--gutterless {
|
||||
margin-left: 0; }
|
||||
|
||||
.col {
|
||||
float: left;
|
||||
padding-left: 24px;
|
||||
box-sizing: border-box; }
|
||||
|
||||
.row--gutterless .col {
|
||||
padding-left: 0; }
|
||||
|
||||
/**
|
||||
* Columns generator
|
||||
*/
|
||||
@media only screen and (min-width: 1200px) {
|
||||
.col--lg-offset-0 {
|
||||
margin-left: 0%; }
|
||||
.col--lg-1 {
|
||||
width: 8.33333%; }
|
||||
.col--lg-offset-1 {
|
||||
margin-left: 8.33333%; }
|
||||
.col--lg-2 {
|
||||
width: 16.66667%; }
|
||||
.col--lg-offset-2 {
|
||||
margin-left: 16.66667%; }
|
||||
.col--lg-3 {
|
||||
width: 25%; }
|
||||
.col--lg-offset-3 {
|
||||
margin-left: 25%; }
|
||||
.col--lg-4 {
|
||||
width: 33.33333%; }
|
||||
.col--lg-offset-4 {
|
||||
margin-left: 33.33333%; }
|
||||
.col--lg-5 {
|
||||
width: 41.66667%; }
|
||||
.col--lg-offset-5 {
|
||||
margin-left: 41.66667%; }
|
||||
.col--lg-6 {
|
||||
width: 50%; }
|
||||
.col--lg-offset-6 {
|
||||
margin-left: 50%; }
|
||||
.col--lg-7 {
|
||||
width: 58.33333%; }
|
||||
.col--lg-offset-7 {
|
||||
margin-left: 58.33333%; }
|
||||
.col--lg-8 {
|
||||
width: 66.66667%; }
|
||||
.col--lg-offset-8 {
|
||||
margin-left: 66.66667%; }
|
||||
.col--lg-9 {
|
||||
width: 75%; }
|
||||
.col--lg-offset-9 {
|
||||
margin-left: 75%; }
|
||||
.col--lg-10 {
|
||||
width: 83.33333%; }
|
||||
.col--lg-offset-10 {
|
||||
margin-left: 83.33333%; }
|
||||
.col--lg-11 {
|
||||
width: 91.66667%; }
|
||||
.col--lg-offset-11 {
|
||||
margin-left: 91.66667%; }
|
||||
.col--lg-12 {
|
||||
width: 100%; }
|
||||
.col--lg-offset-12 {
|
||||
margin-left: 100%; } }
|
||||
|
||||
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
||||
.col--md-offset-0 {
|
||||
margin-left: 0%; }
|
||||
.col--md-1 {
|
||||
width: 8.33333%; }
|
||||
.col--md-offset-1 {
|
||||
margin-left: 8.33333%; }
|
||||
.col--md-2 {
|
||||
width: 16.66667%; }
|
||||
.col--md-offset-2 {
|
||||
margin-left: 16.66667%; }
|
||||
.col--md-3 {
|
||||
width: 25%; }
|
||||
.col--md-offset-3 {
|
||||
margin-left: 25%; }
|
||||
.col--md-4 {
|
||||
width: 33.33333%; }
|
||||
.col--md-offset-4 {
|
||||
margin-left: 33.33333%; }
|
||||
.col--md-5 {
|
||||
width: 41.66667%; }
|
||||
.col--md-offset-5 {
|
||||
margin-left: 41.66667%; }
|
||||
.col--md-6 {
|
||||
width: 50%; }
|
||||
.col--md-offset-6 {
|
||||
margin-left: 50%; }
|
||||
.col--md-7 {
|
||||
width: 58.33333%; }
|
||||
.col--md-offset-7 {
|
||||
margin-left: 58.33333%; }
|
||||
.col--md-8 {
|
||||
width: 66.66667%; }
|
||||
.col--md-offset-8 {
|
||||
margin-left: 66.66667%; }
|
||||
.col--md-9 {
|
||||
width: 75%; }
|
||||
.col--md-offset-9 {
|
||||
margin-left: 75%; }
|
||||
.col--md-10 {
|
||||
width: 83.33333%; }
|
||||
.col--md-offset-10 {
|
||||
margin-left: 83.33333%; }
|
||||
.col--md-11 {
|
||||
width: 91.66667%; }
|
||||
.col--md-offset-11 {
|
||||
margin-left: 91.66667%; }
|
||||
.col--md-12 {
|
||||
width: 100%; }
|
||||
.col--md-offset-12 {
|
||||
margin-left: 100%; } }
|
||||
|
||||
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
||||
.col--sm-offset-0 {
|
||||
margin-left: 0%; }
|
||||
.col--sm-1 {
|
||||
width: 8.33333%; }
|
||||
.col--sm-offset-1 {
|
||||
margin-left: 8.33333%; }
|
||||
.col--sm-2 {
|
||||
width: 16.66667%; }
|
||||
.col--sm-offset-2 {
|
||||
margin-left: 16.66667%; }
|
||||
.col--sm-3 {
|
||||
width: 25%; }
|
||||
.col--sm-offset-3 {
|
||||
margin-left: 25%; }
|
||||
.col--sm-4 {
|
||||
width: 33.33333%; }
|
||||
.col--sm-offset-4 {
|
||||
margin-left: 33.33333%; }
|
||||
.col--sm-5 {
|
||||
width: 41.66667%; }
|
||||
.col--sm-offset-5 {
|
||||
margin-left: 41.66667%; }
|
||||
.col--sm-6 {
|
||||
width: 50%; }
|
||||
.col--sm-offset-6 {
|
||||
margin-left: 50%; }
|
||||
.col--sm-7 {
|
||||
width: 58.33333%; }
|
||||
.col--sm-offset-7 {
|
||||
margin-left: 58.33333%; }
|
||||
.col--sm-8 {
|
||||
width: 66.66667%; }
|
||||
.col--sm-offset-8 {
|
||||
margin-left: 66.66667%; }
|
||||
.col--sm-9 {
|
||||
width: 75%; }
|
||||
.col--sm-offset-9 {
|
||||
margin-left: 75%; }
|
||||
.col--sm-10 {
|
||||
width: 83.33333%; }
|
||||
.col--sm-offset-10 {
|
||||
margin-left: 83.33333%; }
|
||||
.col--sm-11 {
|
||||
width: 91.66667%; }
|
||||
.col--sm-offset-11 {
|
||||
margin-left: 91.66667%; }
|
||||
.col--sm-12 {
|
||||
width: 100%; }
|
||||
.col--sm-offset-12 {
|
||||
margin-left: 100%; } }
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.col--xs-offset-0 {
|
||||
margin-left: 0%; }
|
||||
.col--xs-1 {
|
||||
width: 8.33333%; }
|
||||
.col--xs-offset-1 {
|
||||
margin-left: 8.33333%; }
|
||||
.col--xs-2 {
|
||||
width: 16.66667%; }
|
||||
.col--xs-offset-2 {
|
||||
margin-left: 16.66667%; }
|
||||
.col--xs-3 {
|
||||
width: 25%; }
|
||||
.col--xs-offset-3 {
|
||||
margin-left: 25%; }
|
||||
.col--xs-4 {
|
||||
width: 33.33333%; }
|
||||
.col--xs-offset-4 {
|
||||
margin-left: 33.33333%; }
|
||||
.col--xs-5 {
|
||||
width: 41.66667%; }
|
||||
.col--xs-offset-5 {
|
||||
margin-left: 41.66667%; }
|
||||
.col--xs-6 {
|
||||
width: 50%; }
|
||||
.col--xs-offset-6 {
|
||||
margin-left: 50%; }
|
||||
.col--xs-7 {
|
||||
width: 58.33333%; }
|
||||
.col--xs-offset-7 {
|
||||
margin-left: 58.33333%; }
|
||||
.col--xs-8 {
|
||||
width: 66.66667%; }
|
||||
.col--xs-offset-8 {
|
||||
margin-left: 66.66667%; }
|
||||
.col--xs-9 {
|
||||
width: 75%; }
|
||||
.col--xs-offset-9 {
|
||||
margin-left: 75%; }
|
||||
.col--xs-10 {
|
||||
width: 83.33333%; }
|
||||
.col--xs-offset-10 {
|
||||
margin-left: 83.33333%; }
|
||||
.col--xs-11 {
|
||||
width: 91.66667%; }
|
||||
.col--xs-offset-11 {
|
||||
margin-left: 91.66667%; }
|
||||
.col--xs-12 {
|
||||
width: 100%; }
|
||||
.col--xs-offset-12 {
|
||||
margin-left: 100%; } }
|
||||
|
||||
* {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
font: inherit;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
html {
|
||||
background-color: white;
|
||||
font-size: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-ms-text-size-adjust: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-rendering: optimizeLegibility; }
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
button {
|
||||
color: inherit;
|
||||
display: inline-block; }
|
||||
input[disabled],
|
||||
select[disabled],
|
||||
textarea[disabled],
|
||||
button[disabled] {
|
||||
cursor: not-allowed; }
|
||||
|
||||
button {
|
||||
cursor: pointer; }
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0; }
|
||||
table th,
|
||||
table td {
|
||||
text-align: left; }
|
||||
|
||||
.sr-only {
|
||||
font-size: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
width: 0; }
|
||||
|
||||
@media only screen and (min-width: 1200px) {
|
||||
.visible-lg {
|
||||
display: block !important; } }
|
||||
|
||||
@media only screen and (min-width: 1200px) {
|
||||
.hidden-lg {
|
||||
display: none !important; } }
|
||||
|
||||
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
||||
.visible-md {
|
||||
display: block !important; } }
|
||||
|
||||
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
||||
.hidden-md {
|
||||
display: none !important; } }
|
||||
|
||||
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
||||
.visible-sm {
|
||||
display: block !important; } }
|
||||
|
||||
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
||||
.hidden-sm {
|
||||
display: none !important; } }
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.visible-xs {
|
||||
display: block !important; } }
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.hidden-xs {
|
||||
display: none !important; } }
|
||||
|
||||
/**
|
||||
* Clearing and floating
|
||||
*/
|
||||
.alignleft,
|
||||
.float-left {
|
||||
float: left; }
|
||||
img .alignleft,
|
||||
img .float-left {
|
||||
margin-right: 24px; }
|
||||
|
||||
.alignright,
|
||||
.float-right {
|
||||
float: right; }
|
||||
img .alignright,
|
||||
img .float-right {
|
||||
margin-left: 24px; }
|
||||
|
||||
.aligncenter,
|
||||
.float-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto; }
|
||||
img .aligncenter,
|
||||
img .float-center {
|
||||
margin-bottom: 24px; }
|
||||
|
||||
/**
|
||||
* Text aligments
|
||||
*/
|
||||
.align-text-left {
|
||||
text-align: left; }
|
||||
|
||||
.align-text-right {
|
||||
text-align: right; }
|
||||
|
||||
.align-text-center {
|
||||
text-align: right; }
|
||||
|
||||
/**
|
||||
* Elements visibility
|
||||
*/
|
||||
.visible-on-mobile {
|
||||
display: none !important; }
|
||||
@media screen and (max-width: 767px) {
|
||||
.visible-on-mobile {
|
||||
display: block !important; } }
|
||||
|
||||
.visible-on-tablet {
|
||||
display: none !important; }
|
||||
@media screen and (max-width: 992px) {
|
||||
.visible-on-tablet {
|
||||
display: block !important; } }
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
.visible-on-desktop {
|
||||
display: none !important; } }
|
||||
|
||||
body {
|
||||
color: #444;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
-webkit-text-size-adjust: none; }
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
hr,
|
||||
ul,
|
||||
ol,
|
||||
dl,
|
||||
address {
|
||||
margin-bottom: 24px; }
|
||||
|
||||
/**
|
||||
* Basic styles for links
|
||||
*/
|
||||
a {
|
||||
color: #444;
|
||||
text-decoration: none; }
|
||||
a:hover {
|
||||
color: #444;
|
||||
text-decoration: underline; }
|
||||
|
||||
/**
|
||||
* Rulers
|
||||
*/
|
||||
hr {
|
||||
background-color: #444;
|
||||
height: 1px; }
|
||||
|
||||
/**
|
||||
* This file contains all @font-face declarations, if any.
|
||||
*/
|
||||
img {
|
||||
max-width: 100%;
|
||||
vertical-align: top; }
|
||||
img[width],
|
||||
img[height] {
|
||||
max-width: none; }
|
||||
|
||||
/**
|
||||
* Responsive images
|
||||
*/
|
||||
.is-fluid {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto; }
|
||||
|
||||
/**
|
||||
* Blanket input styles for normalisation
|
||||
*/
|
||||
*:focus {
|
||||
outline: 0; }
|
||||
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
background-color: #fff;
|
||||
border: solid 1px #444;
|
||||
border-radius: 0;
|
||||
color: #444;
|
||||
line-height: 36px;
|
||||
height: 36px;
|
||||
padding: 0 12px;
|
||||
width: 100%; }
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
line-height: normal;
|
||||
height: auto;
|
||||
width: auto; }
|
||||
|
||||
input[type="file"] {
|
||||
line-height: normal;
|
||||
height: auto;
|
||||
padding: 6px 12px; }
|
||||
|
||||
input[type="submit"] {
|
||||
border-radius: 0; }
|
||||
|
||||
input[disabled] {
|
||||
background-color: whitesmoke;
|
||||
cursor: not-allowed; }
|
||||
|
||||
select {
|
||||
line-height: normal;
|
||||
padding: 0;
|
||||
padding-left: 12px; }
|
||||
|
||||
textarea {
|
||||
min-height: 96px;
|
||||
overflow: auto;
|
||||
vertical-align: top;
|
||||
resize: vertical; }
|
||||
|
||||
/**
|
||||
* Form utility classes
|
||||
*/
|
||||
.form--inline .form__group {
|
||||
display: inline-block; }
|
||||
|
||||
.checkbox,
|
||||
.radio {
|
||||
display: block;
|
||||
padding-left: 24px; }
|
||||
.checkbox.inline,
|
||||
.radio.inline {
|
||||
display: inline-block; }
|
||||
.checkbox > input,
|
||||
.radio > input {
|
||||
float: left;
|
||||
margin-left: -24px;
|
||||
margin-top: 4px; }
|
||||
|
||||
.form__group {
|
||||
display: block;
|
||||
margin-bottom: 24px; }
|
||||
|
||||
.form__label {
|
||||
display: block;
|
||||
margin-bottom: 12px; }
|
||||
|
||||
/**
|
||||
* Input Group
|
||||
*
|
||||
* Allows for prepend/append of elements
|
||||
* (such as icons) on an input.
|
||||
*/
|
||||
.input-group {
|
||||
position: relative; }
|
||||
.input-group > input {
|
||||
padding: 0 48px; }
|
||||
.input-group .input-group__addon {
|
||||
line-height: 36px;
|
||||
height: 36px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
width: 36px; }
|
||||
.input-group .input-group__addon:first-child {
|
||||
left: 0; }
|
||||
.input-group .input-group__addon:last-child {
|
||||
right: 0; }
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: bold; }
|
||||
|
||||
small {
|
||||
font-size: .75em; }
|
||||
|
||||
.btn {
|
||||
background-color: #444;
|
||||
color: #fff;
|
||||
border: 1px solid transparent;
|
||||
display: inline-block;
|
||||
padding: 6px 24px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
-ms-touch-action: manipulation;
|
||||
touch-action: manipulation;
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
width: auto;
|
||||
transition: all 0.5s; }
|
||||
.btn::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0; }
|
||||
.btn:hover {
|
||||
text-decoration: none;
|
||||
background-color: #fff;
|
||||
color: #444;
|
||||
border: 1px solid #444; }
|
||||
.btn .is-disabled,
|
||||
.btn:disabled {
|
||||
pointer-events: none;
|
||||
opacity: .65; }
|
||||
|
||||
.btn--inverse {
|
||||
background-color: #fff;
|
||||
color: #444;
|
||||
border: 1px solid #444; }
|
||||
.btn--inverse:hover {
|
||||
background-color: #444;
|
||||
color: #fff;
|
||||
border: 1px solid transparent; }
|
||||
|
||||
.btn--block {
|
||||
display: block;
|
||||
width: 100%; }
|
||||
.btn--block + .btn--block {
|
||||
margin-top: 6px; }
|
||||
|
||||
.btn--link {
|
||||
background-color: transparent;
|
||||
color: #444; }
|
||||
|
||||
.nav {
|
||||
list-style: none;
|
||||
margin: 0; }
|
||||
.nav > li {
|
||||
display: inline-block;
|
||||
margin-right: 24px; }
|
||||
.nav > li:last-child {
|
||||
margin-right: 0; }
|
||||
.nav > li > a {
|
||||
display: block; }
|
||||
|
||||
/*# sourceMappingURL=style.css.map */
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Template Name: Demo page template
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
||||
?>
|
||||
|
||||
<main class="main" role="main">
|
||||
<div class="container">
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article <?php post_class(); ?>>
|
||||
|
||||
<header role="heading">
|
||||
<h3 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
|
||||
<p class="post__date"><time><?php echo human_time_diff( strtotime( $post->post_date ) ) . ' ' . __( 'ago' ); ?></time></p>
|
||||
<p class="post__comments"><?php comments_popup_link( __( 'No comments yet' ), __( '1 comment' ), __( '% comments' ) ); ?></p>
|
||||
</header>
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
</article>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php get_footer(); ?>
|
Loading…
Reference in New Issue