Skip to content

Instantly share code, notes, and snippets.

View markmichon's full-sized avatar

Mark Michon markmichon

View GitHub Profile
@markmichon
markmichon / dabblet.css
Created March 31, 2013 22:41
Border meetings with border-box
/* Border meetings with border-box */
.border-box {
box-sizing: border-box;
width: 200px;
height: 200px;
background-color: #ccc;
border-right: 5px solid black;
border-bottom: 10px solid green;
margin-bottom:10px;
@markmichon
markmichon / style.scss
Created March 9, 2013 07:31
A CodePen by Mark Michon.
@import "compass";
.mega-header h1 {
font-size: $h3-size;
margin-bottom: $half-spacing-unit;
@include media-query(500px) {
font-size:$bigger;
}
@include media-query(700px) {
font-size:$h2-size;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@markmichon
markmichon / gist:3004746
Created June 27, 2012 15:17
Shades of Black
#212121 Dark Black
#353535 Black
#2B2A29 Black
#444751 Black
#A2A3A8 Grey
@markmichon
markmichon / dabblet.css
Created June 26, 2012 01:17
Hidden Content with :target
/**
* Hidden Content with :target
*/
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
ul {
span {
margin: 50px;
font: bold 5em/1.5 Futura;
background: #ccc;
color: #fff;
border-radius: 15%;
padding: 0 .2em;
box-shadow: 0 0 10px #222;
}
@markmichon
markmichon / gist:2777431
Created May 23, 2012 20:02
Useful Github Commands
//Git Commands
# NOTES: Lines starting with // or # are comments and should not be typed into terminal. Please be careful of your spelling, spacing, and case before initiating a command in terminal.
//Standards Commands to push to github (in order)
git add .
# adds all files and folders that contain files to be commited
git status
# shows what changes are going to be commited
@markmichon
markmichon / gist:2777224
Created May 23, 2012 19:23
HTML: Basic Page Structure
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="initial-scale=1.0, width=device-width"/>
<link rel="stylesheet" href="css/style.css">
</head>
@markmichon
markmichon / gist:2509192
Created April 27, 2012 13:25
HTML: Viewport meta tag
<meta name="viewport" content="initial-scale=1.0, width=device-width"/>
@markmichon
markmichon / gist:2483208
Created April 24, 2012 20:05
CSS: HTML5 BP CSS Template
/*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================