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> | |
<p>These divs have white space between them.</p> | |
</div> | |
<div> | |
<p>Because html naturally creates whitespace on the line-breaks.</p> | |
</div> | |
<!-- with comments --> | |
<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
// top of the main file | |
// google fonts/external files must be imported in the root file. | |
@import url(http:/\/fonts.googleapis.com/css?family=Exo:100,200,300,400,500,600,700,800,900,300italic,400italic,500italic,600italic,700italic,800italic,900italic,200italic,100italic); | |
// @import source sans link from google fonts. |
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
require "bundler/capistrano" | |
server "96.126.100.112", :web, :app, :db, primary: true | |
set :application, "capteste" | |
set :user, "deployer" | |
set :deploy_to, "/home/#{user}/apps/#{application}" | |
set :deploy_via, :remote_cache | |
set :use_sudo, false | |
set :port, "3030" |
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
%fieldset | |
%span.checkbox-wrapper | |
%input{ :type=>"checkbox" } | |
%span | |
%label A Checkbox | |
%fieldset | |
%span.checkbox-wrapper | |
%input{ :type=>"checkbox", :checked=>"checked" } | |
%span |
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
%meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=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
// Or use this method... | |
// | |
// E[foo$="bar"] | |
// an E element whose "foo" attribute value ends exactly with the string "bar" | |
// | |
// http://www.w3.org/TR/css3-selectors/#attribute-selectors | |
a.category[href$="css/"] { | |
padding-left: 20px; | |
background: url('your-icon.png') left center no-repeat; |
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
$page-padding: 20px; | |
$mobile-page-padding: 10px; | |
#content { padding: $page-padding; } | |
@media only screen and (max-width: 599px) { | |
$page-padding: $mobile-page-padding; | |
#content { padding: $page-padding; } |
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
/* | |
* image loads on hover. | |
* users (think mobile) may experience a delay loading the image. | |
*/ | |
.class { | |
background-image: url('some-image'); | |
display: none; | |
} | |
.class:hover { display: block; } |
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
# line 42 of image_tag.rb | |
+++ "<span class=\"image-wrapper #{@img['class']}\"><img #{@img.collect {|k,v| "#{k}=\"#{v}\"" if v}.join(" ")}></span>" | |
--- "<img #{@img.collect {|k,v| "#{k}=\"#{v}\"" if v}.join(" ")}>" |
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> | |
<head> | |
<style> | |
body { | |
/* Replace your image in this spot. */ | |
background-image: url("yourimage.png"); | |
/* set a color here */ | |
background-color: #efefef; |