Skip to content

Instantly share code, notes, and snippets.

@badlydrawnrob
Created February 6, 2013 01:15
Show Gist options
  • Save badlydrawnrob/4719351 to your computer and use it in GitHub Desktop.
Save badlydrawnrob/4719351 to your computer and use it in GitHub Desktop.
Less: Basic scaffolding
//
//
// Scaffolding
// ====================================================================
// Body resets
// --------------------------------------------------------------------
html {
font-size: 62.5%;
}
body {
margin: 0;
}
// Reset fonts for revelant elements
body,
input,
button,
select,
textarea {
color: @gray-dark;
font-size: @font-size-base;
font-family: @font-family-base;
line-height: @line-height-base;
}
// Links
// --------------------------------------------------------------------
a {
color: @link-color;
text-decoration: none;
}
a:hover {
color: @link-color-hover;
text-decoration: underline;
}
a:focus {
.tab-focus();
}
// Images
// --------------------------------------------------------------------
img {
// Responsive images (ensure images don't scale beyond their parents)
max-width: 100%; // Part 1: Set a maxium relative to the parent
width: auto\9; // IE8 need help adjusting responsive images
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
// Match vertical alignment with other comment elements
vertical-align: middle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment