Normalize
Responsive provides lots of building blocks that are specifically designed to speed up your development by boilerplating common components from normalized styles.
The base CSS for this comes from Normalize.css; an open-source project by Nicolas Gallagher and Jonathan Neal.
Normalize.css is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements. It's a modern, HTML5-ready, alternative to the traditional CSS reset.
Typography
Responsive does not add any additional styles to basic typographical elements such as <p/>
. Header tags and other elements conform to cross-browser normalized standards.
Header Element | Default Dimensions |
---|---|
h1 element |
|
h2 element |
|
h3 element |
|
h4 element |
|
h5 element |
|
h6 element |
|
<hr/>
elements have been tweaked slightly though to allow developers to more easily style them. For example:
Responsive also adds some light styling to code driven elements. See Code for examples of that styling.
Inline Typographical Elements
q element
exampleinside
a q element
s element example
small element example
span element example
strong element example
sub element example
sup element example
u element example
var element
example
cite element example
del element example
dfn element and dfn element with title examples
em element example
i element example
ins element example
mark element example
abbr
example
ruby example
Responsive helpers.
These helpers allow you to toggle the visibility of elements as the viewport scales. Em values are calculated at the browser body default of 16px = 1em.
Visible Example: Green means visible
< 48em
.visible-xs
< 48em
.visible-xs
48em to 62em
.visible-s
48em to 62em
.visible-s
62em to 75em
.visible-m
62em to 75em
.visible-m
> 75em
.visible-l
> 75em
.visible-l
Hidden Example: Red means hidden
< 48em
.hidden-xs
< 48em
.hidden-xs
48em to 62em
.hidden-s
48em to 62em
.hidden-s
62em to 75em
.hidden-m
62em to 75em
.hidden-m
> 75em
.hidden-l
> 75em
.hidden-l
Extra Helpers
These extra utility classes help you perform common tasks.
.clearfix
- Contain floats without resorting to using presentational markup.
.push-left
- Floats an element to the far left of its parent container.
.push-right
- Floats an element to the far right of its parent container.
.hidden
- Hides an element from both screen-readers and browsers.
.visuallyhidden
- Hides an element visually, but has it available for screen readers.
.invisible
- Hides an element visually and from screen readers, but maintain layout.
.ir
- Hides an elements text so that a background image can be used instead. Useful for logos.
.block
- Changes an elements display style to block.
.inline-block
- Changes an elements display style to inline-block.
.inline
- Changes an elements display style to inline.
.fade-out
- Changes an elements opacity to 0 fading it out with a CSS animation.
.fade-in
- Changes an elements opacity to 1 fading it in with a CSS animation.