Skip to content

Instantly share code, notes, and snippets.

Avatar

Karl Dawson kddawson

View GitHub Profile
@kddawson
kddawson / gist:5553558
Created May 10, 2013
SCSS: Mixin link pseudo states
View gist:5553558
// Provide contrasting color for all link states
// See http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast
@mixin link-pseudos($col,$col2,$col3) {
&:link {
color: $col;
text-decoration: none;
}
&:visited {
color: $col;
@kddawson
kddawson / markup.html
Created Aug 15, 2012
A CSS3 nav ribbon sans images
View markup.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Multicelldesign CSS Ribbon</title>
<!-- Don't forget to add an HTML5 polyfill for IE -->
</head>
<body>
<div class="wrapper">
<nav role="navigation" aria-label="main menu">