Enabling responsive features
Enable responsive CSS by including the proper meta tag within the of your document.
Media Queries
Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width
and max-width
.
- Modify the width of column in our grid
- Stack elements instead of float wherever necessary
- Resize headings and text to be more appropriate for devices
Label | Layout width | Column width | Gutter width |
---|
Large display | 1200px and up | 70px | 30px |
Default | 980px and up | 60px | 20px |
Portrait tablets | 768px and above | 42px | 20px |
Phones to tablets | 767px and below | Fluid columns, no fixed widths |
Phones | 480px and below | Fluid columns, no fixed widths |
Responsive Utility Class
For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.
| Extra small devices Phones (<768px) | Small devices Tablets (≥768px) | Medium devices Desktops (≥992px) | Large devices Desktops (≥1200px) |
---|
.visible-xs-* | Visible | Hidden | Hidden | Hidden |
---|
.visible-sm-* | Hidden | Visible | Hidden | Hidden |
---|
.visible-md-* | Hidden | Hidden | Visible | Hidden |
---|
.visible-lg-* | Hidden | Hidden | Hidden | Visible |
---|
.hidden-xs | Hidden | Visible | Visible | Visible |
---|
.hidden-sm | Visible | Hidden | Visible | Visible |
---|
.hidden-md | Visible | Visible | Hidden | Visible |
---|
.hidden-lg | Visible | Visible | Visible | Hidden |
---|
Print classes
Similar to the regular responsive classes, use these for toggling content for print.
Classes | Browser | Print |
---|
.visible-print-block
.visible-print-inline
.visible-print-inline-block | Hidden | Visible |
---|
.hidden-print | Visible | Hidden |
---|