Skip to content

Instantly share code, notes, and snippets.

View aarongustafson's full-sized avatar
👋
he/him/his

Aaron Gustafson aarongustafson

👋
he/him/his
View GitHub Profile
<link rel="stylesheet" href="/c/d.min.css">
<link rel="stylesheet" href="/c/a.min.css" media="only screen">
@supports (display: flex) {
.project--minipromo[data-imaged] {
display: flex;
flex-wrap: none;
padding: 0;
}
.project--minipromo[data-imaged] picture {
flex: 0 1 50%;
margin-right: 1.375rem;
}
main {
padding: 0 .5em;
}
@media (min-width: 20em) {
main {
padding: 0 1.375rem;
}
}
#intro {
/* Basic styles for IE6 */
}
/* More styles here */
body[id=css-zen-garden] #intro {
/* Advanced styles for everyone else */
}
*:-o-prefocus {
color: blue;
}
code {
font-size: 1.6875rem;
}
*:-o-prefocus,
code {
font-size: inherit;
}
a:link, a:visited {
color: #046;
border-bottom: 1px dotted;
border-bottom-color: rgba(0, 68, 102, 0.25);
}
@aarongustafson
aarongustafson / autocomplete.html
Last active September 1, 2016 16:24
Code samples from Building in 10k: Markup for Accessibility, Clarity, and Affordance
<label for="n">What’s your name?</label>
<input id="n" name="n"
required aria-required="true"
autocorrect="off" autocapitalize="words"
placeholder="Sir Tim Berners Lee"
autocomplete="name"
>
@aarongustafson
aarongustafson / aria-label.html
Last active April 11, 2016 19:18
The Web Should Just Work for Everyone - code samples from my Edge Web Summit talk
<nav class="global-navigation" role="navigation"
aria-label="main navigation">
</nav>
@aarongustafson
aarongustafson / better-labels.html
Last active December 13, 2018 17:00
Code samples from my EnhanceConf 2016 talk
<label for="first_name">What’s your first name?</label>
<input name="first_name" id="first_name">