// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or 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> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
This file contains hidden or 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
| <!-- Mobile meta & links --> | |
| <!-- Reference | |
| Custom Icon and Image Creation Guidelines: | |
| http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
| Configuring Web Applications: | |
| http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |
This file contains hidden or 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
| //Proposed Susy syntax to create "The Fonmon" asymmetric grid layout. http://gridsetapp.com/specs/fonmon.php?gridset=show | |
| $total-columns: 5; | |
| $column-width: 200px, 96px, 96px, 96px, 200px; | |
| // could use relative units: 1, 1 would be 50/50%. 1, 2 would be 33/66%, 1, 1, 1 would be 33/33/33% | |
| $columns: column padding, column padding, column padding, column padding, …; //suggested multi dimensional syntax | |
| $gutter-width: 30px; |
This file contains hidden or 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
| // http://compass-style.org/reference/compass/helpers/sprites/ | |
| @mixin get-sprite($map, $sprite, $repeat: no-repeat, $height: true, $width: true) | |
| //http://compass-style.org/reference/compass/helpers/sprites/#sprite-file | |
| $sprite-image: sprite-file($map, $sprite) | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-url | |
| $sprite-map: sprite-url($map) | |
| // http://compass-style.org/reference/compass/helpers/sprites/#sprite-position |
This file contains hidden or 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
| <% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } %> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <% pages.each do |p| %> | |
| <url> | |
| <loc>http://youdomain.com/<%=p.destination_path.gsub('/index.html','')%></loc> | |
| <priority>0.7</priority> | |
| </url> | |
| <% end %> | |
| </urlset> |
This file contains hidden or 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
| remove_file 'Gemfile' | |
| create_file 'Gemfile' | |
| add_source "http://rubygems.org" | |
| gem 'rails', '~> 3.2.8' | |
| gem 'jquery-rails' | |
| if yes?('PostgreSQL on development?') | |
| gem 'pg' |
This file contains hidden or 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
| @mixin icon-sprite-2x($sprite) { | |
| $sprites: sprite-map("icon/*.png"); | |
| text-indent: -9999px !important; | |
| @include icon-sprite($sprite); | |
| background-position: 0 round(nth(sprite-position($sprites, $sprite), 2) / 2); | |
| height: image-height(sprite-file($sprites, $sprite)) / 2; | |
| width: image-width(sprite-file($sprites, $sprite)) / 2; | |
| background-size: (image-width(sprite-path($icon-sprites)) / 2) auto; | |
| .ie & { | |
| background-image: image-url("icon-1x/#{$sprite}.png") !important; |
This file contains hidden or 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
| @mixin background-2x($background, $file: 'png'){ | |
| $image: #{$background+"."+$file}; | |
| $image2x: #{$background+"2x."+$file}; | |
| background: image-url($image) no-repeat; | |
| @media (min--moz-device-pixel-ratio: 1.3), | |
| (-o-min-device-pixel-ratio: 2.6/2), | |
| (-webkit-min-device-pixel-ratio: 1.3), | |
| (min-device-pixel-ratio: 1.3), | |
| (min-resolution: 1.3dppx){ |
This file contains hidden or 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
| @include handhelds { | |
| table.responsive { | |
| width: 100%; | |
| thead { | |
| display: none; | |
| } | |
| tr { | |
| display: block; | |
| } | |
| td, th { |