- Python
- Inkscape (on command line path)
- ImageMagick
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
| class ProjectsController < ApplicationController | |
| def show | |
| respond_to do |format| | |
| format.html do |html| | |
| html.tablet # renders app/views/projects/show.html+tablet.erb | |
| html.phone { extra_setup; render ... } | |
| end | |
| end | |
| end | |
| end |
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
| label{ | |
| display: block; | |
| margin: 10px 0; | |
| background-color: rgba(255, 0, 0, 0.3) | |
| } |
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
| div { | |
| width: 80%; | |
| height: 900px; | |
| border: 1px solid #000; | |
| background-image: url(http://css-tricks.com/wp-content/csstricks-uploads/fullpagebackground.jpg); | |
| background-size: 100%; | |
| background-repeat: no-repeat; | |
| background-position: bottom; | |
| } |
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
| p { | |
| font-family: -apple-system-font, Roboto, Lucida Grande; | |
| } |
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
| .foo { | |
| width: 270px; | |
| height: 80px; | |
| float: left; | |
| background-color: white; | |
| margin: 10px; | |
| box-shadow: 3px 4px 1px 4px rgba(0,0,0,1); | |
| } |
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
| body { background-color: red; } | |
| img, div { position: absolute; top: 20px; left: 20px; } | |
| div { width: 160px; height: 160px; background-color: blue; } | |
| img { box-sizing: border-box; } | |
| img { border-bottom: 10px solid white; border-right: 10px solid white; } |
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
| span { | |
| animation: bounce 0.7s infinite ease; | |
| position: relative; | |
| font-size: 3em; | |
| } | |
| @keyframes bounce { | |
| 0% { | |
| opacity: 1; | |
| top: 0; |
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
| div { | |
| height: 100px; | |
| width: 320px; | |
| font-size: 2em; | |
| text-align: center; | |
| line-height: 100px; | |
| margin: 10px; | |
| float: left; | |
| font-family: Arial; | |
| } |
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
| div { | |
| height: 100px; | |
| width: 320px; | |
| font-size: 2em; | |
| text-align: center; | |
| line-height: 100px; | |
| margin: 10px; | |
| float: left; | |
| font-family: Arial; | |
| } |