Skip to content

Instantly share code, notes, and snippets.

View mortendk's full-sized avatar
🤠
git commit -m "yolo"

mortendk mortendk

🤠
git commit -m "yolo"
View GitHub Profile
@mortendk
mortendk / dabblet.css
Created December 28, 2011 12:28
css input checkbox
/**
* The first commented line is your dabblet’s title
*/
input[type=checkbox]{
position: absolute;
top: -9999px;
left: -9999px;
}
input[type=checkbox] ~ label { background:red;}
@mortendk
mortendk / dabblet.css
Created December 22, 2011 23:16
checkbox checked
/**
* checkbox checked
*/
div{display:inline-block;padding-top:100px}
label{ padding:15px; margin:50px; border-radius:10px; font-size:50px}
input[type=radio]{ position: absolute; top: -9999px; left: -9999px; }
input[type=radio] ~ label { background:red;}
input[type=radio]:checked ~ label { background:green;}
@mortendk
mortendk / cssdropdown-4levels.html
Created December 14, 2011 13:46
CSS Drop Down Menu 4 levels
<!doctype html>
<!--[if IE 7]> <html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="ie8" lang="en"> <![endif]-->
<head>
<title>CSS Drop Down Menu</title>
<style type="text/css" media="screen">
/* ------------------------------------------------------------------
Dropdown widget
@mortendk
mortendk / gist:1358113
Created November 11, 2011 14:26
book.theme.css
.book-navigation .menu {
border-top: 1px solid #D6D6D6;
padding: 1em 0 0 3em; /* LTR */
}
.book-navigation .page-links {
border-bottom: 1px solid #D6D6D6;
border-top: 1px solid #D6D6D6;
letter-spacing: -3px; /* removes the inline-block letter-spacing on the .page-links list elements */
margin: 0;
padding: 0.5em 0;