Turns a standard list into a block list; very useful for touch interfaces. Improvements welcome.
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
| /** | |
| * box-shadow vs filter: drop-shadow 2 | |
| */ | |
| body { | |
| background: #ddd; | |
| font: 16px/1 sans-serif; | |
| margin: 50px; | |
| } |
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
| @import compass | |
| $icons: sprite-map("icons/*.png") | |
| $icons-hd: sprite-map("icons-hd/*.png") | |
| i | |
| background: $icons | |
| display: inline-block | |
| @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
| +background-size(image-width(sprite-path($icons)) auto) |
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
| require "jammit" | |
| module Jekyll | |
| class JammitGenerator < Generator | |
| safe true | |
| def generate(site) | |
| jammit_config = site.config["jammit_config"] || "_assets.yml" | |
| jammit_base_dir = site.config["jammit_base_dir"] || File.join(".", site.config["source"]) | |
| jammit_output_dir = site.config["jammit_output_dir"] || "assets" |
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 { |
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
| // custom post type | |
| add_action('init', 'portfolio_register'); | |
| function portfolio_register() { | |
| $labels = array( | |
| 'name' => __('My Portfolio', 'post type general name'), | |
| 'singular_name' => __('Portfolio Item', 'post type singular name'), | |
| 'add_new' => __('Add New', 'portfolio item'), |
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
| # ============================================================================== | |
| # REQUIRED 3RD PARTY COMPASS EXTENSIONS | |
| # ============================================================================== | |
| require 'susy' | |
| # ============================================================================== | |
| # COMPASS PROJECT CONFIGURATION | |
| # ============================================================================== | |
| # Can be `:stand_alone` or `:rails`. Defaults to `:stand_alone`. |
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
| $gutter: 10px; | |
| $grid-unit: 60px; | |
| %clearfix { | |
| *zoom: 1; | |
| &:after { | |
| content: "\0020"; | |
| display: block; | |
| height: 0; | |
| clear: both; |
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
| html { | |
| font: 100%/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif; } | |
| h1, .h1 { | |
| font-size: 4em; | |
| line-height: 1.5em; | |
| margin: 0.5em 0; } | |
| h2, .h2 { | |
| font-size: 3em; |
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
| /** | |
| * Text masking — The SVG way | |
| */ | |
| svg { | |
| width: 6em; height: 1.5em; | |
| font: 900 500%/1.2 'Arial Black', sans-serif; | |
| } | |
| text { fill: url(#wood); } |