This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The show classes */ | |
.show-for-small /* Visible up to 768px */ | |
.show-for-medium-down /* Visible from 1280px down */ | |
.show-for-medium /* Visible between 768px and 1280px */ | |
.show-for-medium-up /* Visible from 1280px up */ | |
.show-for-large-down /* Visible from 1440px down */ | |
.show-for-large /* Visible between 1280px and 1440px */ | |
.show-for-large-up /* Visible from 1440px up */ | |
/* The hide classes */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Sections Markup in Foundation 4 --> | |
<div class="section-container vertical-nav" data-section> | |
<section class="section"> | |
<p class="title"><a href="#panel1">Section 1</a></p> | |
<div class="content" data-slug="panel1"> | |
<ul class="side-nav"> | |
<li><a href="#">Link 1</a></li> | |
<li><a href="#">Link 2</a></li> | |
<li><a href="#">Link 3</a></li> | |
<li class="divider"></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Block grid syntax for Foundation 4 --> | |
<ul class="small-block-grid-2 large-block-grid-4"> | |
<li><img src="path/to/image"></li> | |
<li><img src="path/to/image"></li> | |
<li><img src="path/to/image"></li> | |
<li><img src="path/to/image"></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Foundation 4 Grid --> | |
<div class="row"> | |
<div class="small-2 large-4 columns">...</div> | |
<div class="small-4 large-4 columns">...</div> | |
<div class="small-6 large-4 columns">...</div> | |
</div> | |
<!-- Offsets in 4 --> | |
<div class="row"> | |
<div class="small-2 columns">...</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Set the viewport width to device width for mobile --> | |
<meta name="viewport" content="width=device-width" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/normalize.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Foundation 4 Grid Test</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<!-- Disregard these styles, they are for giving rows and columns a temporary BG color for better visibility --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row { width: $rowWidth; max-width: 100%; min-width: $screenSmall; margin: 0 auto; | |
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2)); } | |
&.collapse { | |
.column, .columns { padding: 0; } | |
} | |
.row { width: auto; max-width: none; min-width: 0; margin: 0 (-($columnGutter/2)); | |
&.collapse { margin: 0; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SCSS for placeholder classes | |
%fancy-container { | |
@include box-shadow(0 0 10px rgba(0,0,0,0.2)); | |
@include border-radius(4px); | |
background: #eee; | |
border: solid 1px #ddd; | |
} | |
%fancier-container { | |
@include box-shadow(0 0 10px rgba(20,20,150,0.1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="twelve columns"> | |
<!-- Navigation --> | |
<ul class="nav-bar"> | |
<li class="active"><a href="#">Nav Item 1</a></li> | |
<li><a href="#">Nav Item 2</a></li> | |
<li><a href="#">Nav Item 3</a></li> | |
</ul> |