Skip to content

Commit

Permalink
bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
briankelleher committed Feb 21, 2016
1 parent 3c6b21d commit 855751a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions www/wp-content/themes/ation2016/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function add_to_twig( $twig ) {
}

function loadScripts() {
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/static/vendor/bootstrap.min.css' );
wp_enqueue_style( 'main', get_template_directory_uri() . '/static/styles/site.min.css' );
wp_enqueue_script( 'main', get_template_directory_uri() . '/static/scripts/main.min.js', array('jquery'), '1.0.0', true );
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.header-logo {
max-width: 300px;
display: block;
header {
.header-logo {
max-width: 300px;
display: block;
}
}
2 changes: 1 addition & 1 deletion www/wp-content/themes/ation2016/static/styles/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ h1, h2, h3, h4, h5, h6 {
p, li, span {
font-family: "Times New Roman", serif; }

.header-logo {
header .header-logo {
max-width: 300px;
display: block; }

Expand Down
4 changes: 2 additions & 2 deletions www/wp-content/themes/ation2016/static/styles/site.min.css

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

12 changes: 7 additions & 5 deletions www/wp-content/themes/ation2016/templates/base.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
<body class="{{body_class}}" data-template="base.twig">
<header class="header" >
{% block header %}
<div class="wrapper">
<a href="/" rel="home" class="header-logo">
<img src="{{theme.path}}/static/images/logo.png" alt="ATION Digital Media" />
</a>
<nav id="nav-main" class="nav-main" role="navigation">
<div class="wrapper row">
<div class="col-xs-12 col-sm-6">
<a href="/" rel="home" class="header-logo">
<img src="{{theme.path}}/static/images/logo.png" alt="ATION Digital Media" />
</a>
</div>
<nav id="nav-main" class="nav-main col-xs-12 col-sm-6" role="navigation">
{% include "menu.twig" with {'menu': menu.get_items} %}
</nav><!-- #nav -->
</div>
Expand Down

0 comments on commit 855751a

Please sign in to comment.