Skip to content

Commit

Permalink
tons of updates, sticky header, footer, colors/fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
bak11004 committed Mar 3, 2016
1 parent f6d7451 commit 1d47e8f
Show file tree
Hide file tree
Showing 18 changed files with 202 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"

# Network
config.vm.network "forwarded_port", guest: 80, host: 9000
config.vm.network "forwarded_port", guest: 80, host: 9800
config.vm.network "private_network", ip: "#{private_ip}"

# Shared folders
Expand Down
Binary file added www/wp-content/themes/ation2016/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions www/wp-content/themes/ation2016/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$context = Timber::get_context();
$context['posts'] = Timber::get_posts();
$context['foo'] = 'bar';
$context['login_link'] = wp_login_url();
$templates = array( 'index.twig' );
if ( is_home() ) {
array_unshift( $templates, 'home.twig' );
Expand Down
1 change: 1 addition & 0 deletions www/wp-content/themes/ation2016/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"gulp-plumber": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.2",
"jshint": "^2.9.1"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion www/wp-content/themes/ation2016/src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
jQuery( document ).ready( function( $ ) {

// Meow
// Applies sticky class to header when scrolling past first pixel
$(window).scroll( function() {
if ( $(this).scrollTop() > 1 ) {
$('header').addClass("sticky");
} else {
$('header').removeClass("sticky");
}
});

});
14 changes: 14 additions & 0 deletions www/wp-content/themes/ation2016/src/styles/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
footer {
border-top: 1px solid $light-grey;
font-family: $header-font;
ul.footer-links {
list-style-type: none;
margin-left: 0;
li {
display: inline-block;
color: $grey;
font-family: inherit;
padding-right: 20px;
}
}
}
59 changes: 55 additions & 4 deletions www/wp-content/themes/ation2016/src/styles/components/_header.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,57 @@
.admin-bar {
header {
top: 32px;
}
}
header {
.header-logo {
max-width: 300px;
display: block;
}
position: fixed;
color: $orange;
width: 100%;
text-align: center;
font-size: 25px;
height: $header-height;
line-height: $header-height;
background: white;
transition: all 0.3s ease, box-shadow 0s ease;
top:0;
&.sticky {
font-size: 15px;
height: $header-height-sticky;
line-height: $header-height-sticky;
//text-align: left;
-webkit-box-shadow: -1px 2px 10px -1px $grey;
-moz-box-shadow: -1px 2px 10px -1px $grey;
box-shadow: -1px 2px 10px -1px $grey;
.header-logo {
img {
max-height: $header-height-sticky - 20px;
}
}
}

.header-logo {
display: block;
padding-left: 20px;
padding-top: 10px;
padding-bottom: 10px;
img {
max-height: $header-height-sticky;
transition: all 0.3s ease;
}
}

nav {
ul {
list-style-type: none;
margin: 0;
li {
display: inline-block;
font-family: $header-font;
padding-right: 20px;
a {
color: $orange;
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
section#content {
margin-top:$header-height;
}
22 changes: 19 additions & 3 deletions www/wp-content/themes/ation2016/src/styles/site.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
$orange: orange;
/* Color */
$orange: #ff7200;
$grey: #a8a8a8;
$light-grey: #eeeeee;
$white: white;

/* Type */
@import url(https://fonts.googleapis.com/css?family=Lato:300,400,400italic,700);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,300,400italic);
$header-font: 'Source Sans Pro', sans-serif;
$body-font: 'Times New Roman', serif;

/* Header */
$header-height: 100px;
$header-height-sticky: 70px;

@import 'type/typography';

@import 'components/header';
@import 'components/mainsection';
@import 'components/footer';

@import 'utility/images';

.menu {
color: $orange;
body {
background-color: $white;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
$header-font: 'Arial', sans-serif;
$body-font: 'Times New Roman', serif;

h1, h2, h3, h4, h5, h6 {
font-family: $header-font;
}

p, li, span {
font-family: $body-font;
}

#content {
p, li, span {
font-size: 18px;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion www/wp-content/themes/ation2016/static/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
jQuery( document ).ready( function( $ ) {

// Meow
// Applies sticky class to header when scrolling past first pixel
$(window).scroll( function() {
if ( $(this).scrollTop() > 1 ) {
$('header').addClass("sticky");
} else {
$('header').removeClass("sticky");
}
});

});
4 changes: 2 additions & 2 deletions www/wp-content/themes/ation2016/static/scripts/main.min.js

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

70 changes: 64 additions & 6 deletions www/wp-content/themes/ation2016/static/styles/site.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,75 @@
/* Color */
/* Type */
@import url(https://fonts.googleapis.com/css?family=Lato:300,400,400italic,700);
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,300,400italic);
/* Header */
h1, h2, h3, h4, h5, h6 {
font-family: "Arial", sans-serif; }
font-family: "Source Sans Pro", sans-serif; }

p, li, span {
font-family: "Times New Roman", serif; }

header .header-logo {
max-width: 300px;
display: block; }
#content p, #content li, #content span {
font-size: 18px; }

.admin-bar header {
top: 32px; }

header {
position: fixed;
color: #ff7200;
width: 100%;
text-align: center;
font-size: 25px;
height: 100px;
line-height: 100px;
background: white;
transition: all 0.3s ease, box-shadow 0s ease;
top: 0; }
header.sticky {
font-size: 15px;
height: 70px;
line-height: 70px;
box-shadow: -1px 2px 10px -1px #a8a8a8; }
header.sticky .header-logo img {
max-height: 50px; }
header .header-logo {
display: block;
padding-left: 20px;
padding-top: 10px;
padding-bottom: 10px; }
header .header-logo img {
max-height: 70px;
transition: all 0.3s ease; }
header nav ul {
list-style-type: none;
margin: 0; }
header nav ul li {
display: inline-block;
font-family: "Source Sans Pro", sans-serif;
padding-right: 20px; }
header nav ul li a {
color: #ff7200; }

section#content {
margin-top: 100px; }

footer {
border-top: 1px solid #eeeeee;
font-family: "Source Sans Pro", sans-serif; }
footer ul.footer-links {
list-style-type: none;
margin-left: 0; }
footer ul.footer-links li {
display: inline-block;
color: #a8a8a8;
font-family: inherit;
padding-right: 20px; }

img {
max-width: 100%;
display: block;
height: auto; }

.menu {
color: orange; }
body {
background-color: white; }
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.

4 changes: 2 additions & 2 deletions www/wp-content/themes/ation2016/templates/base.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<body class="{{body_class}}" data-template="base.twig">
<header class="header" >
{% block header %}
<div class="wrapper row">
<div class="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" />
<img src="{{theme.path}}/static/images/ation-logo-02-02.png" alt="ATION Digital Media" />
</a>
</div>
<nav id="nav-main" class="nav-main col-xs-12 col-sm-6" role="navigation">
Expand Down
17 changes: 16 additions & 1 deletion www/wp-content/themes/ation2016/templates/footer.twig
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
Copyright {{"now"|date('Y')}}
<div class="container">
<div class="row">
<ul class="footer-links col-sm-12 col-md-6">
<li>&copy; -ATION Digital Media Agency</li>
<li><a href="http://dmd.uconn.edu/">Digital Media &amp; Design</a></li>
<li><a href="{{login_link}}">Login</a></li>
</ul>
<ul class="footer-links social col-sm-12 col-md-6">
<li><a href="https://vimeo.com/ation">Vimeo</a></li>
<li><a href="https://www.facebook.com/ATIONDM/">Facebook</a></li>
<li><a href="https://twitter.com/ATIONDM">Twitter</a></li>
<li><a href="https://www.instagram.com/ationdm/">Instagram</a></li>
<li><a href="https://www.pinterest.com/ATIONDM/">Pinterest</a></li>
</ul>
</div>
</div>

0 comments on commit 1d47e8f

Please sign in to comment.