Beruflich Dokumente
Kultur Dokumente
One Site
to Rule
Them ALL!
28% of Internet
usage comes from a
mobile phone
20% of Google
searches are being
performed on a
mobile device
consider ...
1
2
5
4
and (max-device-width:
and (max-device-width:
and (max-device-width:
and (max-device-width:
and (max-device-width:
Rapid prototyping
Toggle menu
Originally from WordCamp Montreal 2013
vs.
Off-canvas menu
Adapting
Read: Responsive Navigation: Optimizing for Touch Across Devices by Luke Wroblewski
We do it in Sass
But, you can download everything in the
framework in simple, vanilla CSS and JS
http://foundation.zurb.com/develop/download.html
Git
Ruby 1.9+
NodeJS
Bower
Compass
Easy to hack
FoundationPress - http://foundationpress.olefredrik.com/
WP-Foundation - http://320press.com/wp-foundation/
JointsWP - http://jointswp.com/
Reactor - http://awtheme.com/
ZurbPress - http://zurbpress.wpprofs.com/
SCSS directory
Getting setup
style.css
/*
Theme Name: Theme Name
Description: Child theme for the Reverie
Author: Brendan & Brendan Inc.
Template: reverie-master
*/
/*
*
*
*
*
*
Getting setup
_settings.scss
//
// FOUNDATION SETTINGS
//
Load functions
// This is the default html and body font-size for the base rem value.
// $rem-base: 16px;
// Allows the use of rem-calc() or lower-bound() in your settings
@import "foundation/functions";
// Grid
// $include-html-grid-classes: $include-html-classes;
$row-width: rem-calc(1140);
$column-gutter: rem-calc(30);
Customize Foundation
Custom mixins
Foundation 5 Markup
page.php
Grid classes
Foundation 5 Markup
functions.php - a snippet using masonry
$recent_posts = new WP_Query( $args );
if ( $recent_posts ) { ?>
<div class="row full-row">
<?php while ( $recent_posts->have_posts() ) : $recent_posts->the_post();
$post_id = get_the_ID();
if ( get_the_post_thumbnail( $post_id ) ) { ?>
<div class="large-4 columns text-center pad-row">
<a class="fade" href="<?php the_permalink(); ?>">
! <?php the_post_thumbnail( 'masonry-thumbnail' ); ?>
<div class="row">
! <div class="large-12 columns tags-box">
! ! <p class="thumb-title"><?php the_title(); ?></p>
! ! <p class="thumb-tag"><?php the_tags(); ?></p>
! </div>
</div>
</a>
</div>
Credit @isotrope
Some Examples
Some Examples
Some Examples
Some Examples
http://www.thebrendans.com/events-workshops/
http://www.thebrendans.com/internships/
Thank You!
www.TheBrendans.com
www.KeepMarketingFun.com
@TheBrendans
www.facebook.com/thebrendans
@digibomb