Skip to content

Instantly share code, notes, and snippets.

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
label{
display: block;
margin: 10px 0;
background-color: rgba(255, 0, 0, 0.3)
}
@lucasmazza
lucasmazza / dabblet.css
Created February 6, 2014 20:45
Untitled
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;
}
@lucasmazza
lucasmazza / dabblet.css
Created January 28, 2014 15:12
Untitled
p {
font-family: -apple-system-font, Roboto, Lucida Grande;
}
@lucasmazza
lucasmazza / dabblet.css
Created January 21, 2014 19:45
Untitled
.foo {
width: 270px;
height: 80px;
float: left;
background-color: white;
margin: 10px;
box-shadow: 3px 4px 1px 4px rgba(0,0,0,1);
}
@lucasmazza
lucasmazza / dabblet.css
Created September 20, 2013 17:57
Untitled
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; }
@lucasmazza
lucasmazza / dabblet.css
Created August 23, 2013 13:40
Untitled
span {
animation: bounce 0.7s infinite ease;
position: relative;
font-size: 3em;
}
@keyframes bounce {
0% {
opacity: 1;
top: 0;
div {
height: 100px;
width: 320px;
font-size: 2em;
text-align: center;
line-height: 100px;
margin: 10px;
float: left;
font-family: Arial;
}
div {
height: 100px;
width: 320px;
font-size: 2em;
text-align: center;
line-height: 100px;
margin: 10px;
float: left;
font-family: Arial;
}