NOTE: This page assumes you’ve got a basic understanding of HTML tags — if you want to learn HTML, here are some guides: Intro to HTML + Basic HTML tags
CSS classes are a way to apply pre-defined styles and features to HTML tags. You use most of Baseline’s components by adding CSS classes to your code.
You can add CSS classes by viewing your HTML, which might look something like this:
<p>This is a sample paragraph.</p>
and then, if you wanted to make the text bigger, you could add a “text-large” class like this:
<p class="text-large">This is a sample paragraph.</p>
Note: all button classes require the core “button” class in addition to any extra modifying classes. For example:
<a class="button button-small">Sample</a>
Class Name | Example |
---|---|
button button-small | Smaller button |
button | Normal Button |
button arrow-right | Button w/ arrow |
button button-large | Larger button |
button button-primary | Primary button |
Baseline’s column system loosely follows a 10-column grid, with the ability to use different columns configurations on different screen sizes.
Desktop computers, laptops, large tablets (more than 900 pixels wide)
desktop-column-1, desktop-column-2, desktop-column-3, desktop-column-4, desktop-column-5, desktop-column-6, desktop-column-7, desktop-column-8, desktop-column-9, desktop-column-10
(25%) desktop-column-2_5, (75%) desktop-column-7_5
(33%) desktop-column-3_3, (66%) desktop-column-6_6
Medium and small tablets, large mobile phones (720–900 pixels wide)
tablet-column-2_5, tablet-column-3, tablet-column-3_3, tablet-column-4, tablet-column-5, tablet-column-6, tablet-column-6_6, tablet-column-7, tablet-column-7_5, tablet-column-10
Medium and small mobile phones (less than 720 pixels wide)
mobile-column-2_5, mobile-column-3_3, mobile-column-5, mobile-column-6_6, mobile-column-7_5, mobile-column-10
Deprecated Column Classes
Columns for large screens
Desktop computers, laptops, large tablets (more than 900 pixels wide)
c1, c2, c3, c4, c5, c6, c7, c8, c9, c10
c2_5, c7_5
c3_3, c6_6Columns for medium screens
Medium and small tablets, large mobile phones (720–900 pixels wide)
ct2_5, ct3_3, ct4, ct5, ct6, ct6_6, ct7_5, ct10
Columns for small screens
Medium and small mobile phones (less than 720 pixels wide)
cm2_5, cm3_3, cm5, cm6_6, cm7_5, cm10
Note: Most section classes must be applied directly to superpage sections to have an effect.
title-section,
title-section-60
Makes a superpage section the whole height of the browser window, and vertically centers the content within it. Useful for sections that need to make a big visual impact (like titles).
expando
expando-big
Turns a whole superpage section into an expando.