Skip to content

Instantly share code, notes, and snippets.

View jmwhittaker's full-sized avatar

James Whittaker jmwhittaker

View GitHub Profile
@jmwhittaker
jmwhittaker / switch.html
Last active August 29, 2015 14:15
CSS Toggle switch
body {
background-color: #CED6DC;
}
.switch {
position: relative;
padding-bottom: 10px;
}
/* switch component */
@jmwhittaker
jmwhittaker / SassMeister-input-HTML.html
Last active August 29, 2015 14:07
Generated by SassMeister.com.
<div class="box box--blue u-padding-A--12">
<p class="u-text--16">Hello World</p>
</div>
<div class="box box--red u-padding-V--8">
<p class="u-text--10">Hello World</p>
</div>
@jmwhittaker
jmwhittaker / SassMeister-input.scss
Last active August 29, 2015 14:07
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$small6: 6;
$small7: 7;
$small8: 8;
$small9: 9;
.container {
font-family: helvetica, sans-serif;
padding-right:30px; /* Same padding as the img required */
}
.item {
display: inline-block;
text-align:left;
padding-right:30px; /* Same padding as the img required */
background:url( "http://www.lorempixel.com/30/30") no-repeat center right; /* set img as background & position */
@jmwhittaker
jmwhittaker / dabblet.css
Created September 10, 2014 11:37
Untitled
[st-text] {
font-family: helveticaNeue, helvetica;
font-size:14px;
color:blue;
}
[st-text~="fixed"] { font-size:8px }
[st-text~="fixed:18"] { font-size:18px }
[st-text~="fixed:11"] { font-size:11px }
[st-text~="red"] { color:red }
@jmwhittaker
jmwhittaker / jirastyle
Created July 15, 2014 16:31
Jira Board Style
.ghx-avatar .ghx-avatar-img {
width:42px;
height: 42px;
border-radius:2px;
}
.ghx-avatar {
position: absolute;
top: 5px;
right: 5px;
body, table td, select {
font-family: "Helvetica Neue", helvetica, sans-serif;
font-size: 28px;
color: #333 !important;
}
.screenHeader {
display: none !important;
}
@jmwhittaker
jmwhittaker / dabblet.css
Created June 9, 2014 15:34
Utility Methods
* {
box-sizing:border-box;
}
.multimedia-container {
width:528px;
border-radius:5px;
overflow:hidden;
height:264px;
/* Just for testing */
@jmwhittaker
jmwhittaker / dabblet.css
Created June 5, 2014 16:23
Utility Methods
* {
box-sizing:border-box;
}
.multimedia-container {
/* Size of container set via JS depending upon col width */
width:528px;
height:264px;
border-radius:5px;
@jmwhittaker
jmwhittaker / dabblet.css
Created June 3, 2014 13:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.badge {
position:absolute;
left:200px;
top:200px;
background:red;