Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Jump to:

Table of Contents
maxLevel3
minLevel2
stylenone

Columns

Inspired by by bootstrap columns.

It uses a 12-column layout.

The built-in columns are fairly simple, but more complex layouts can be achieved by customizing your column widths & nesting columns.

Example:

<div

...

class=

...

"sights-row">     <div class="sights-col-3">Content A</div>

...

 

...

 

...

<div

...

class=

...

"sights-col-

...

4">Content B</div>

...

 

...

 

...

<div

...

class=

...

"sights-col-

...

5">Content C</div>

...

</div>

...

Would achieve a layout like this:
a three column layout. column a is the smallest, b is a little larger, and c is the largestImage Removed

...

As long as the numbers in a row add up to 12, any combination is fine.

For example:

<div

...

class="sights-row">

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

<div

...

class="sights-col-1">...</div>

...

</div>

...


Will produce:a 12 column layout, each column is equal widthImage Removed

...

To make something approximating a table layout, you can use multiple rows.

For example:

<div

...

class="sights-row">

...

<div

...

class="sights-col-2">...</div>

...

<div

...

class="sights-col-5">...</div>

...

<div

...

class="sights-col-5">...</div>

...

</div>

...

<div

...

class="sights-row">

...

<div

...

class="sights-col-2">...</div>

...

<div

...

class="sights-col-5">...</div>

...

<div

...

class="sights-col-5">...</div>

...

</div>

...

<div

...

class="sights-row">

...

<div

...

class="sights-col-2">...</div>

...

<div

...

class="sights-col-5">...</div>

...

<div

...

class="sights-col-5">...</div>

...

</div>

...


Will produce:layout with three columns and three rowsImage Removed

...


Margin and Padding Utilities

...

<div class="sights-m-5">sights-m-5-content</div> — 2.5rem (40px) margin on all sides

Will produce:examples of layout using the 5 margin utility classesImage Removed

...

Margin on particular sides

...

<div class="sights-p-5">...</div> — 2.5rem (40px) padding on all sides

Will produce:examples of a layout using the 5 padding utility classesImage Removed

...

Padding on particular sides

...

When applied to the columns or the media object, the column or media object will stack the contents of the columns on top of each other, when on a small sized screen. This is applied to the columns & the media object by default.

For example:


<div

...

class="sights-row

...

sights-responsive">

...

<div

...

class="sights-col-6

...

sights-p-1">

...

Column

...

#1

...

</div>

...

<div

...

class="sights-col-6

...

sights-p-1">

...

Column

...

#2

...

</div>

...

</div>

...


Will produce, on a large screen (desktop):Two column layout on a desktop screen. The columns are side by side.Image Removed

...


Small screen (mobile phone):Two column layout on a mobile screen. The columns are stacked on on top of the other.Image Removed

...

Callout Box

Just a simple box. Defaults to a gray background. Best used with the padding classes and the background color classes.

...

<div class="sights-callout-box">...</div>

Will produce:a standard gray callout boxImage Removed

...

Remove external link icon

...

<a class="sights-no-icon" href="https://www.umbc.edu" target="_blank>...</a>


This is an override for when you have a link that is set to open in a new window. It can be applied to any containing element (a <div> would work) or the <a> tag itself.

...

<a class="sights-no-icon" href="https://www.umbc.edu" target="_blank" rel="noopener">UMBC</a>


Will produce:Image Removed

...

Vertical Centering


This is for the columns & media object.

Adding this class to the outermost <div class="sights-row"> will cause all the items inside to be vertically centered.

For example:

<div

...

class="sights-row

...

sights-responsive

...

sights-vertical-center">

...

<div

...

class="sights-col-6

...

sights-p-1">

...

Column

...

#1

...

</div>

...

<div

...

class="sights-col-6

...

sights-p-1">

...

<div

...

class="sights-callout-box

...

sights-p-4">

...

Our

...

UMBC

...

community

...

is

...

committed

...

to

...

helping

...

you

...

achieve

...

excellence

...

as

...

a

...

student

...

and

...

beyond.

...

Whether

...

breaking

...

boundaries

...

in

...

the

...

classroom

...

and

...

the

...

lab,

...

or

...

stretching

...

your

...

limits

...

on

...

stage

...

or

...

the

...

playing

...

field,

...

Retrievers

...

are

...

in

...

it

...

#UMBCTogether.

...

</div>

...

</div>

...

</div>

Will produce:A two column layout, the left-most column appears vertically centered next to the larger right column.Image Removed

...

Background Colors

1-5, getting darker as it goes. The text color and link color will automatically be selected to be color contrast compliant.

For example:

<div

...

class="sights-bg-teal-1">...</div>

...

<div

...

class="sights-bg-teal-2">...</div>

...

<div

...

class="sights-bg-teal-3">...</div>

...

<div

...

class="sights-bg-teal-4">...</div>

...


<div

...

class="sights-bg-gold-1">...</div>

...

<div

...

class="sights-bg-gold-2">...</div>

...

<div

...

class="sights-bg-gold-3">...</div>

...

<div

...

class="sights-bg-gold-4">...</div>

...


<div

...

class="sights-bg-red-1">...</div>

...

<div

...

class="sights-bg-red-2">...</div>

...

<div

...

class="sights-bg-red-3">...</div>

...

<div

...

class="sights-bg-red-4">...</div>

...


<div

...

class="sights-bg-gray-1">...</div>

...

<div

...

class="sights-bg-gray-2">...</div>

...

<div

...

class="sights-bg-gray-3">...</div>

...

<div

...

class="sights-bg-gray-4">...</div>

...

Panels with the various colors, showing the text and link contrast.Image Removed


...

This is primarily meant to be used with the callout boxes.

For example:

<div

...

class="sights-callout-box

...

sights-p-5

...

sights-bg-teal-2">...</div>

...

Will produce:a callout box with a teal background appliedImage Removed

...

Media object

Similar to a two-column layout, but ultimately designed for an image + text. The image can be any width, and the text column will take up the remaining room.an example of the media object layoutImage Removed

...

<div

...

class="sights-media-object">

...

<div

...

class="sights-media-wrapper">

...

Media

...

goes

...

here

...

</div>

...

<div

...

class="sights-media-body">

...

Media

...

body

...

</div>

...

</div>

...