Skip to content

Instantly share code, notes, and snippets.

View aekaplan's full-sized avatar

Adam Kaplan aekaplan

View GitHub Profile
@aekaplan
aekaplan / gist:9276515
Last active August 29, 2015 13:56
@extend Sass Clearfix
.row {
@extend %clearfix;
}
@aekaplan
aekaplan / gist:2d6ff67a23c7e35fc1fb
Last active August 29, 2015 14:01
Button Styles
.button,
a.button,
button,
input[type="submit"],
input[type="button"] {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
@aekaplan
aekaplan / gist:cec5562b2a333c24e3d7
Last active August 29, 2015 14:13
Featured Work
<div class="column half">
<h4>Featured Work</h4>
<ul class="featured-work">
<li class="featured-work-item">
<a href="">Title</a>
<p>Description</p>
</li>
<li class="featured-work-item">
<a href="">Title</a>
@aekaplan
aekaplan / gist:5636802
Last active December 17, 2015 16:09
Inputs HTML
<form>
<input type="text" placeholder="Basic Input"></input>
<input type="text" placeholder="Error" class="error"></input>
<textarea placeholder="Text Area"></textarea>
</form>
@aekaplan
aekaplan / gist:5636900
Last active December 17, 2015 16:09
Inputs CSS
input[type="text"] {
background: #fff;
border: 1px solid #ddd;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #555;
display: block;
margin-bottom: 1em;
padding: 0.5em;
@aekaplan
aekaplan / gist:5640867
Last active December 17, 2015 16:39
Input Text SCSS
@mixin transition {
-moz-transition: 0.4s background, 0.4s border-color;
-webkit-transition: 0.4s background, 0.4s border-color;
transition: 0.4s background, 0.4s border-color;
}
@mixin border-radius {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
@aekaplan
aekaplan / gist:5645883
Created May 24, 2013 19:18
Label HTML
<form>
<label>First Name</label>
<input type="text" placeholder="Adam"></input>
<label>Last Name</label>
<input type="text" placeholder="Kaplan"></input>
</form>
@aekaplan
aekaplan / gist:5679711
Last active December 17, 2015 22:09
Pseudo-Classes 3 CSS
.timeline:before {
background: #ddd;
content: " ";
position: absolute;
top: 20px;
left: 31%;
bottom: 0;
width: 1px;
}
@aekaplan
aekaplan / gist:5679880
Last active December 17, 2015 22:09
Pseudo-Classes 2 CSS
ul.example li:before {
content: "★";
color: #d31742;
padding-right: 0.5em;
}
@aekaplan
aekaplan / gist:5680048
Last active December 17, 2015 22:09
Pseudo-Classes 4 CSS
.cf:before,
.cf:after {
content: " ";
display: table;
}
.cf:after {
clear: both;
}