-
Notifications
You must be signed in to change notification settings - Fork 32
.dcf-wrapper
The wrapper object applies left and right padding to the page to provide adequate whitespace.
.dcf-bleed
The bleed object forces content to extend beyond the confines of the wrapper object, filling the browser viewport.
.dcf-grid
The grid object lays out child elements in a grid of twelve columns. Why twelve? Twelve is divisible by two, three, four and six, making it ideal for dividing a grid into halves, thirds, fourths and sixths.
Grid-related object classes can be appended with the framework’s responsive suffixes (@sm
, @md
, @lg
and @xl
) to apply styles at the respective breakpoints.
.dcf-col-100%
Apply to a grid child element to define its column width as the full width of the grid. If you use any of the following column classes with responsive suffixes in your grid-based layout, you must also include .dcf-col-100%
. The grid will not automatically create a single column for your grid content.
.dcf-col-50%-start
Apply to a grid child element to define the column width as one-half of the grid and locate it on the left side, at the start of the grid’s tracks.
.dcf-col-50%-center
Apply to a grid child element to define the column width as one-half of the grid and locate it in the center of the grid’s tracks.
.dcf-col-50%-end
Apply to a grid child element to define the column width as one-half of the grid and locate it on the right side, at the end of the grid’s tracks.
.dcf-col-50%
Apply to a grid child element to define the column width as one-half of the grid and locate it anywhere on the grid’s tracks based on the position of its sibling grid columns.
.dcf-col-33%-start
Apply to a grid child element to define the column width as one-third of the grid and locate it on the left side, at the start of the grid’s tracks.
.dcf-col-33%-center
Apply to a grid child element to define the column width as one-third of the grid and locate it in the center of the grid’s tracks.
.dcf-col-33%-end
Apply to a grid child element to define the column width as one-third of the grid and locate it on the right side, at the end of the grid’s tracks.
.dcf-col-33%
Apply to a grid child element to define the column width as one-third of the grid and locate it anywhere on the grid’s tracks based on the position of its sibling grid columns.
.dcf-col-67%-start
Apply to a grid child element to define the column width as two-thirds of the grid and locate it on the left side, at the start of the grid’s tracks.
.dcf-col-67%-center
Apply to a grid child element to define the column width as two-thirds of the grid and locate it in the center of the grid’s tracks.
.dcf-col-67%-end
Apply to a grid child element to define the column width as two-thirds of the grid and locate it on the right side, at the end of the grid’s tracks.
.dcf-col-67%
Apply to a grid child element to define the column width as two-thirds of the grid and locate it anywhere on the grid’s tracks based on the position of its sibling grid columns.
.dcf-col-25%-start
Apply to a grid child element to define the column width as one-fourth of the grid and locate it on the left side, at the start of the grid’s tracks.
.dcf-col-25%-end
Apply to a grid child element to define the column width as one-fourth of the grid and locate it on the right side, at the end of the grid’s tracks.
.dcf-col-25%
Apply to a grid child element to define the column width as one-fourth of the grid and locate it anywhere on the grid’s tracks based on the position of its sibling grid columns.
.dcf-col-75%-start
Apply to a grid child element to define the column width as three-fourths of the grid and locate it on the left side, at the start of the grid’s tracks.
.dcf-col-75%-end
Apply to a grid child element to define the column width as three-fourths of the grid and locate it on the right side, at the end of the grid’s tracks.
.dcf-col-75%
Apply to a grid child element to define the column width as three-fourths of the grid and locate it anywhere on the grid’s tracks based on the position of its sibling grid columns.
Grids of equal-width columns can more easily be created using the following grid objects instead of applying classes to each and every grid column in the twelve-column grid.
.dcf-grid-full
The grid-full object lays out child elements in a single column grid.
.dcf-grid-halves
The grid-halves object lays out child elements in a grid of two equal-width columns.
.dcf-grid-thirds
The grid-thirds object lays out child elements in a grid of three equal-width columns.
.dcf-grid-fourths
The grid-fourths object lays out child elements in a grid of four equal-width columns.
Grids of five and six equal-width columns start at the @md
breakpoint because there is not enough horizontal space to reasonably accommodate most content in such narrow columns for widths below the @md
breakpoint.
.dcf-grid-fifths@md
The grid-fifths object lays out child elements in a grid of five equal-width columns for breakpoints greater than or equal to @md
. It must be suffixed with @md
, @lg
or @xl
.
.dcf-grid-sixths@md
The grid-sixths object lays out child elements in a grid of six equal-width columns for breakpoints greater than or equal to @md
. It must be suffixed with @md
, @lg
or @xl
.
.dcf-media
The media object consists of a single piece of media (e.g., photo, icon, video) located next to a block of text. The media object prevents the text from wrapping around the media.
.dcf-media-body
The media body is the block of text in the media object.
<div class="dcf-media">
<div class="dcf-mr-4">
<img src="https://placehold.co/100" alt="Placeholder image.">
</div>
<div class="dcf-media-body">
<p class="dcf-w-max-lg">Etiam porta sem malesuada magna mollis euismod. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec id elit non mi porta gravida at eget metus. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
</div>
</div>
.dcf-badge
This includes styles common to all badges and requires the addition of one of the following modifier classes to fully style a badge.
.dcf-badge-roundrect
Use this modifier for a badge with roundrect shape.
.dcf-badge-pill
Use this modifier for a badge with pill shape.
.dcf-blockquote
Like inline quotes (<q>
), the blockquote component automatically adds quotation marks—no need to add your own.
.dcf-attribution
To attribute the source of a quote, put the attribution in a <footer>
element with the dcf-attribution
class. It will automatically prepend an em dash (—
) followed by a thin space ( 
). If the attribution source comes from a creative work, it should be cited using the <cite>
element and italicized with the <i>
element to visually offset the title of the work from the rest of the attribution.
Buttons include the <button>
element, as well as form inputs (type="button"
and type="submit"
) and links styled to appear as buttons.
.dcf-btn
This includes styles common to all buttons and requires the addition of one of the following modifier classes to fully style a button.
.dcf-btn-primary
Use the primary modifier to give standard emphasis to a button.
.dcf-btn-secondary
Visually de-emphasize buttons by using the secondary modifier.
.dcf-btn-tertiary
Visually de-emphasize buttons by using the tertiary modifier.
.dcf-btn-inverse-primary
Use the inverse primary modifier to give standard emphasis to a button on a dark background.
.dcf-btn-inverse-secondary
Visually de-emphasize buttons on a dark background by using the inverse secondary modifier.
.dcf-btn-inverse-tertiary
Visually de-emphasize buttons on a dark background by using the inverse tertiary modifier.
.dcf-btn-icon
Button with an icon
<div class="dcf-d-flex dcf-flex-wrap dcf-gap-2">
<button class="dcf-btn dcf-btn-primary dcf-btn-icon" type="button">Primary Button
<svg class="dcf-fill-current" aria-hidden="true" focusable="false" height="16" width="16" viewBox="0 0 48 48">
<path d="M18 36a17.9 17.9 0 0 0 11.27-4l15.31 15.41a2 2 0 0 0 2.84-2.82L32.08 29.18A18 18 0 1 0 18 36zm0-32A14 14 0 1 1 4 18 14 14 0 0 1 18 4z"></path>
</svg>
</button>
<button class="dcf-btn dcf-btn-secondary dcf-btn-icon" type="button">Secondary Button
<svg class="dcf-fill-current" aria-hidden="true" focusable="false" height="16" width="16" viewBox="0 0 48 48">
<path d="M18 36a17.9 17.9 0 0 0 11.27-4l15.31 15.41a2 2 0 0 0 2.84-2.82L32.08 29.18A18 18 0 1 0 18 36zm0-32A14 14 0 1 1 4 18 14 14 0 0 1 18 4z"></path>
</svg>
</button>
<button class="dcf-btn dcf-btn-tertiary dcf-btn-icon" type="button">Tertiary Button
<svg class="dcf-fill-current" aria-hidden="true" focusable="false" height="16" width="16" viewBox="0 0 48 48">
<path d="M18 36a17.9 17.9 0 0 0 11.27-4l15.31 15.41a2 2 0 0 0 2.84-2.82L32.08 29.18A18 18 0 1 0 18 36zm0-32A14 14 0 1 1 4 18 14 14 0 0 1 18 4z"></path>
</svg>
</button>
</div>
.dcf-btn-group
Group two or more buttons together.
.dcf-input-switch
Style a radio input like a button inside a button group.
<form class="dcf-form" action="?" method="post">
<fieldset class="dcf-m-0 dcf-p-0 dcf-b-0">
<legend class="dcf-legend">Campus</legend>
<div class="dcf-form-group dcf-d-inline-flex dcf-flex-nowrap dcf-p-1 dcf-rounded dcf-b-1 dcf-b-solid unl-b-light-gray">
<div class="dcf-input-switch">
<input id="campus-city" name="campus" type="radio" value="city" checked>
<label for="campus-city">City</label>
</div>
<div class="dcf-input-switch">
<input id="campus-east" name="campus" type="radio" value="east">
<label for="campus-east">East</label>
</div>
<div class="dcf-input-switch">
<input id="campus-innovation" name="campus" type="radio" value="innovation">
<label for="campus-innovation">Innovation</label>
</div>
</div>
</fieldset>
</form>
.dcf-card
A card is a commonly-used design pattern that groups related content in a container that resembles a physical playing card.
.dcf-card-block
The card block provides padding for text inside the card. Card contents that need to span the full width (like an image) should be placed outside of the card block.
Optionally, a card can be turned into a link. However, there are usability and accessibility issues with simply wrapping a card with an <a>
. Instead, use the following classes and JavaScript to enable this functionality.
.dcf-card-as-link
Add to a card to turn the whole card into a link.
.dcf-card-link
The card needs a link defined to be used for the whole card. Apply this class to your source link.
<div class="dcf-card dcf-card-as-link dcf-d-flex dcf-flex-col dcf-bg-white">
<div class="dcf-card-block dcf-2nd">
<h3 class="dcf-txt-h4">Example Card</h3>
<p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.</p>
<a class="dcf-card-link dcf-btn dcf-btn-primary" href="https://www.unl.edu">Go to Home Page</a>
</div>
<img class="dcf-1st" src="https://placehold.co/800x600" alt="Placeholder image.">
</div>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('card-as-link');
}, false);
</script>
.dcf-pre
Retain code styling for multiple lines of code wrapped with <pre>
element.
.dcf-datepicker
This class is applied to the wrapper <div>
and is what the JavaScript targets to add functionality.
<form class="dcf-form" action="#" method="get">
<div class="dcf-datepicker">
<label for="sample-date">Date 2</label>
<input id="sample-date" type="text" name="sample-date">
</div>
</form>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('datepickers');
}, false);
</script>
.dcf-figcaption
Figures do not require any additional classes, but .dcf-figcaption
provides consistent styles for the <figcaption>
. It reduces the font-size
and lightens the text to help distinguish it from body copy. Use utility classes to add margins or padding as needed by the content in your <figure>
.
.dcf-form
Style a form and its children.
.dcf-form-group
Wrap groups of form elements (such as a label and input pair) to visually offset them from other form elements.
.dcf-form-controls-inline
At the small breakpoint, display labels and form controls inline (as space allows) instead of stacked.
.dcf-form-help
Formats help/description text that displays adjacent to a form element.
.dcf-required
Indicate that an adjacent form input is required to submit the form.
.dcf-input-checkbox
.dcf-input-radio
Wrap a checkbox or radio input and label pair for consistent cross-browser styling.
Unless you are using an input group with a button, labels should be placed above the corresponding text fields. Form fields and buttons should be presented in a left-aligned, single column layout so users aren't required to visually reorient themselves when scanning the form.
Use of Reset and Cancel buttons is discouraged.
.dcf-subhead
A subhead is smaller and slightly lighter in appearance than a heading.
.dcf-input-group
An input group prepends or appends text or a button to a text input. The form label must be placed outside of the input group. It can be vertically aligned with the input group by adding .dcf-flex
and .dcf-ai-center
to the input group’s parent element.
.dcf-input-group-addon
An add-on provides additional context for a text input in a form. It can be placed before and/or after the text input.
If a form consists of a single field and button, consider using an input group for a more compact layout.
<label for="dcf-input-group-button-input">Label</label>
<div class="dcf-input-group">
<input id="dcf-input-group-button-input">
<button class="dcf-btn dcf-btn-primary" type="submit">Submit</button>
</div>
.dcf-list-bare
This removes the left padding from a list and removes numbers from ordered lists or bullets from unordered lists.
.dcf-list-inline
Change the display of list items to inline-block
and add right margin to all but the last list item.
.dcf-modal
Each modal requires a unique id
which must also match the value of the data-opens-modal
attribute of any button(s) that will open the modal. This also functions as the overlay background of the open modal.
.dcf-modal-wrapper
This wrapper includes the modal header and modal content and excludes the modal overlay background.
.dcf-modal-header
The header contains the modal’s heading and the button to close the modal.
.dcf-modal-content
Modal content should be placed inside this <div>
.
.dcf-btn-toggle-modal
This button toggles a modal. Its data-toggles-modal
attribute value should match the id
of the target modal to toggle. The disabled
attribute must be included. If the JavaScript fails to load, modals are inoperable and the disabled attribute conveys to users the button’s disabled state. If/when the JavaScript loads, it will remove the disabled attribute.
.dcf-btn-close-modal
This button is located in the modal content and closes the currently open modal.
While developers can – and should – add classes to style modals as needed, at a minimum, a modal requires the following markup for functionality:
<button class="dcf-btn-toggle-modal" data-toggles-modal="my-unique-modal-id" type="button" disabled>Toggle Modal</button>
<div class="dcf-modal" id="my-unique-modal-id" hidden>
<div class="dcf-modal-wrapper">
<div class="dcf-modal-header">
<h2>Your modal heading</h2>
<button class="dcf-btn-close-modal">Close</button>
</div>
<div class="dcf-modal-content">
<!-- Modal content goes here -->
</div>
</div>
</div>
If a modal contains a video, the video will automatically pause playback when the modal is closed.
.dcf-notice
This includes styles common to all notices and requires one of the following modifier classes to fully style a notice.
.dcf-notice-info
This notice is for general informational content.
.dcf-notice-success
This notice signals completion of a successful action to a user.
.dcf-notice-warning
This notice should be used to warn users to proceed with caution.
.dcf-notice-danger
This notice indicates an error or dangerous content.
By default .dcf-header
and .dcf-main
don’t have position: relative
set so the overlay notices just appear at the top of the page. To reproduce: add the code to a notice
data-overlay="dcf-header"
This notice overlays the header.
data-overlay="dcf-main"
This notice overlays the main content.
<div class="dcf-notice dcf-notice-info" hidden>
<h2>Info</h2>
<div>This is additional information for this notice.</div>
</div>
<div class="dcf-notice dcf-notice-success" hidden>
<h2>Success!</h2>
<div>You've successfully completed an action.</div>
</div>
<div class="dcf-notice dcf-notice-warning" hidden>
<h2>Warning!</h2>
<div>Proceed with caution.</div>
</div>
<div class="dcf-notice dcf-notice-danger" hidden>
<h2>Danger!</h2>
<div>Uh-oh. Something wrong happened.</div>
</div>
<div class="dcf-notice dcf-notice-info" hidden data-overlay="dcf-header">
<h2>I'm Floating!</h2>
<div>This notice overlays the header.</div>
</div>
<div class="dcf-notice dcf-notice-success" hidden data-overlay="dcf-main">
<h2>Success!</h2>
<div>This notice overlays the maincontent.</div>
</div>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('notice');
}, false);
</script>
Pagination requires a minimal amount of code from the developer. JavaScript handles the output of all the necessary attributes for state management and accessibility. Because pagination is, by its nature, an ordered collection of links, be sure to use an ordered list instead of an unordered list.
.dcf-pagination
This class is applied to the <nav>
element and is what the JavaScript targets to add functionality.
.dcf-pagination-first
Adds a leftwards arrow to bar Unicode glyph before the button text.
.dcf-pagination-prev
Adds a leftwards arrow Unicode glyph before the button text.
.dcf-pagination-selected
.dcf-pagination-ellipsis
These two classes add padding around the text to match adjacent button padding.
.dcf-pagination-next
Adds a rightwards arrow Unicode glyph after the button text.
.dcf-pagination-last
Adds a rightwards arrow to bar Unicode glyph after the button text.
<nav class="dcf-pagination">
<ol class="dcf-list-bare dcf-list-inline">
<li><a class="dcf-pagination-first" href="#">First</a></li>
<li><a class="dcf-pagination-prev" href="#">Prev</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><span class="dcf-pagination-selected">3</span></li>
<li><span class="dcf-pagination-ellipsis">…</span></li>
<li><a class="dcf-pagination-next" href="#">Next</a></li>
<li><a class="dcf-pagination-last" href="#">Last</a></li>
</ol>
</nav>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('pagination');
}, false);
</script>
Popups can be configured to open content when the user clicks on – or, optionally, hovers over – a button. Popup content is displayed below the toggle button by default, but can be positioned on any side of the toggle button. Triangle-shaped points can optionally be added to popup content, and those points can be aligned to the start, center or end of the popup. No additional JavaScript is required to initialize popups. Because they are used in the Visit / Apply / Give links in the header, they are included by default in the framework.
.dcf-popup
This class is applied to the wrapper <div>
and is what the JavaScript targets to add functionality.
.dcf-btn-toggle-popup
This button toggles the display of a popup.
.dcf-popup-content
Popup content should be placed inside this <div>
.
.dcf-btn-close-popup
Placed inside the popup content, this optional button provides an additional method for closing the popup.
data-hover="true"
This optional data-*
attribute is placed on the <div class="dcf-popup">
and toggles a popup on hover in addition to button click.
data-point="true"
This optional data-*
attribute is placed on the <div class="dcf-popup">
and adds a (triangle) point to the popup content.
data-position="*"
This optional data-*
attribute is placed on the <div class="dcf-popup">
and positions the popup content on any side of the toggle button. Valid values are top
, right
, bottom
and left
. By default the popup is positioned to the bottom of the button.
data-alignment="*"
This optional data-*
attribute is placed on the <div class="dcf-popup">
and controls the position of the (triangle) point on the popup content. Valid values are start
, center
and end
.
<div class="dcf-popup" data-point="true">
<button class="dcf-btn dcf-btn-primary dcf-btn-toggle-popup">Toggle Popup</button>
<div class="dcf-popup-content dcf-w-12 dcf-pt-4 dcf-pr-5 dcf-pb-4 dcf-pl-5 dcf-rounded dcf-bg-overlay-dark unl-cream">
<p class="dcf-txt-xs">Maecenas sed diam eget risus varius blandit sit amet non magna. Nulla vitae elit libero, a pharetra augue.</p>
<button class="dcf-btn dcf-btn-secondary dcf-btn-close-popup">Close Popup</button>
</div>
</div>
Slideshows require a minimal amount of code from the developer. JavaScript handles the output of all the necessary attributes for state management and accessibility. Each slideshow requires a list of slides to be placed inside a wrapper <div>
. The list of slides may be either an ordered or unordered list, depending on your content. If your image requires a caption, use a <figcaption>
inside of a <figure>
(as shown in the sample code below). If your image doesn’t require a caption, do not use a <figure>
.
.dcf-slideshow
This class is applied to the wrapper <div>
and is what the JavaScript targets to add functionality.
<div class="dcf-slideshow">
<ul>
<li>
<figure>
<div class="dcf-ratio dcf-ratio-16x9 dcf-ratio-1x1@sm dcf-ratio-16x9@lg">
<img class="dcf-d-block dcf-ratio-child dcf-obj-fit-cover" src="https://placehold.co/640x360" alt="Placeholder image.">
</div>
<figcaption>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. <small class="dcf-txt-xs dcf-txt-nowrap">Illustration by Jane Doe</small></figcaption>
</figure>
</li>
<li>
<figure>
<div class="dcf-ratio dcf-ratio-16x9 dcf-ratio-1x1@sm dcf-ratio-16x9@lg">
<img class="dcf-d-block dcf-ratio-child dcf-obj-fit-cover" src="https://placehold.co/640x360" alt="Placeholder image.">
</div>
<figcaption>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. <small class="dcf-txt-xs dcf-txt-nowrap">Illustration by Jane Doe</small></figcaption>
</figure>
</li>
<li>
<div class="dcf-ratio dcf-ratio-16x9 dcf-ratio-1x1@sm dcf-ratio-16x9@lg">
<img class="dcf-d-block dcf-ratio-child dcf-obj-fit-cover" src="https://placehold.co/640x360" alt="Placeholder image.">
</div>
</li>
</ul>
</div>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('slideshows');
}, false);
</script>
Tables in the framework are optimized for readability by reducing unnecessary ornamentation and placing an emphasis on the content itself. Richard Rutter's article "Web Typography: Designing Tables to be Read, Not Looked At" (excerpted from his book, Web Typography) is an excellent resource on the subject.
.dcf-table
The table font-size
is slightly smaller than the body copy. Padding and borders are also added.
Note: A table must have a defined width for the .dcf-table-fixed
utility to work. Use a width utility class (e.g., .dcf-w-100%
) with .dcf-table-fixed
on your desired <table>
.
.dcf-table-bordered
The bordered table adds borders to all cells in the table.
.dcf-table-striped
The striped table adds a subtle background color to alternating rows in the table.
.dcf-table-responsive
Responsive table contents display “stacked” at narrow screen widths.
Wrap your table in a <div class="dcf-overflow-x-auto" tabindex="0">
.
Tabs require a minimal amount of code from the developer. JavaScript handles the output of all the necessary attributes for state management and accessibility. Each tab group requires a wrapper <div>
and a heading, which may be visually hidden if necessary. The list of tabs may be either an ordered or unordered list, depending on your content. The tab panels may be either <div>
s or <sections>
s, however <div>
s will suffice most of the time.
.dcf-tabs
This class is applied to the wrapper <div>
and is what the JavaScript targets to add functionality.
.dcf-tabs-responsive
This optional class can be added to stack tabs vertically at narrower viewport widths.
Be sure to give each tab panel a unique id and enter that same value in the corresponding tab’s href
.
The <script>
to initialize the tabs component is required only once per page, even if more than one tab group is included on the page.
<div class="dcf-tabs dcf-tabs-responsive">
<h3>Tab Group Example Using Unordered List and Divs</h3>
<ul>
<li><a href="#example-panel-1">Tab 1</a></li>
<li><a href="#example-panel-2">Tab 2</a></li>
<li><a href="#example-panel-3">Tab 3</a></li>
</ul>
<div id="example-panel-1">
<h4>Panel 1</h4>
<p>Vestibulum id ligula porta felis euismod semper. Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
</div>
<div id="example-panel-2">
<h4>Panel 2</h4>
<p>Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nulla vitae elit libero, a pharetra augue. Vestibulum id ligula porta felis euismod semper. Cras mattis consectetur purus sit amet fermentum.</p>
</div>
<div id="example-panel-3">
<h4>Panel 3</h4>
<p>Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Vestibulum id ligula porta felis euismod semper. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Nullam id dolor id nibh ultricies vehicula ut id elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
</div>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('tabs');
}, false);
</script>
.dcf-autoplay-video
This class must be applied to the parent element of all autoplay videos to add a toggle button to play/pause videos. When a user pauses an autoplay video, all autoplay videos on UNL sites will pause. Likewise, if a paused autoplay video is played, all autoplay videos will resume playing.
The autoplay
, muted
and playsinline
attributes are required on all autoplay <video>
elements. The loop
attribute is optional.
The <script>
to initialize the autoplay videos component is required only once per page, even if more than one video is included on the page.
<div class="dcf-autoplay-video dcf-ratio dcf-ratio-16x9">
<video class="dcf-ratio-child dcf-obj-fit-cover" poster="https://wdn.unl.edu/wdn/templates_4.1/examples/samplecontent/2015-first-fb-game-wooooo.jpg" autoplay loop muted playsinline>
<source src="https://wdn.unl.edu/wdn/templates_4.1/examples/samplecontent/2015-first-fb-game-fingers-crossed.mp4" type="video/mp4">
</video>
</div>
<script>
window.addEventListener('inlineJSReady', function() {
WDN.initializePlugin('autoplay-videos');
}, false);
</script>
Responsive suffixes (@sm
, @md
, @lg
and @xl
) may be added to the aspect ratio utilities to change the ratio of an item at various breakpoints. For example, dcf-ratio-16x9 dcf-ratio-4x3@md
will change the item’s 16×9 aspect ratio to 4×3 at the medium breakpoint.
Class | Description |
---|---|
.dcf-ratio |
apply an aspect ratio to an element and specify the ratio with one of the following classes |
.dcf-ratio-16x9 |
apply a 16×9 (landscape) aspect ratio to an element |
.dcf-ratio-9x16 |
apply a 9×16 (portrait) aspect ratio to an element |
.dcf-ratio-4x3 |
apply a 4×3 (landscape) aspect ratio to an element |
.dcf-ratio-3x4 |
apply a 3×4 (portrait) aspect ratio to an element |
.dcf-ratio-1x1 |
apply a 1×1 aspect ratio to an element |
.dcf-ratio-child |
child element contained within the aspect ratio |
<div class="dcf-ratio dcf-ratio-3x4 dcf-w-10 dcf-b-solid dcf-b-1 unl-b-light-gray">
<img class="dcf-ratio-child" src="https://placehold.co/100" alt="Placeholder image.">
</div>
Utility classes for background use the bg
notation.
Class | Description |
---|---|
.dcf-bg-transparent |
transparent background |
.dcf-bg-white |
white background |
.dcf-bg-overlay-dark |
dark, slightly transparent background |
.dcf-bg-overlay-light |
light, slightly transparent background |
Class | Declaration |
---|---|
.dcf-bg-center |
background-position: center |
.dcf-bg-top |
background-position: top |
.dcf-bg-right |
background-position: right |
.dcf-bg-right-top |
background-position: right top |
.dcf-bg-right-bottom |
background-position: right bottom |
.dcf-bg-bottom |
background-position: bottom |
.dcf-bg-left |
background-position: left |
.dcf-bg-left-top |
background-position: left top |
.dcf-bg-left-bottom |
background-position: left bottom |
Class | Declaration |
---|---|
.dcf-bg-no-repeat |
background-repeat: no-repeat |
.dcf-bg-repeat |
background-repeat: repeat |
.dcf-bg-repeat-x |
background-repeat: repeat-x |
.dcf-bg-repeat-y |
background-repeat: repeat-y |
Class | Declaration |
---|---|
.dcf-bg-contain |
background-size: contain |
.dcf-bg-cover |
background-size: cover |
Class | Declaration |
---|---|
.dcf-bg-none |
background: none |
Border style and border width classes must be used with border color to work.
Utility classes for border colors (all sides) use the b
notation.
Class | Declaration |
---|---|
.dcf-b-current |
border-color: currentColor |
.dcf-b-transparent |
border-color: transparent |
Utility classes for border-top-color
use the bt
notation.
Class | Declaration |
---|---|
.dcf-bt-current |
border-top-color: currentColor |
.dcf-bt-transparent |
border-top-color: transparent |
Utility classes for border-right-color
use the br
notation.
Class | Declaration |
---|---|
.dcf-br-current |
border-right-color: currentColor |
.dcf-br-transparent |
border-right-color: transparent |
Utility classes for border-bottom-color
use the bb
notation.
Class | Declaration |
---|---|
.dcf-bb-current |
border-bottom-color: currentColor |
.dcf-bb-transparent |
border-bottom-color: transparent |
Utility classes for border-left-color
use the bl
notation.
Class | Declaration |
---|---|
.dcf-bl-current |
border-left-color: currentColor |
.dcf-bl-transparent |
border-left-color: transparent |
Class | Description |
---|---|
.dcf-circle |
circle border radius |
.dcf-rounded |
rounded corners, all sides |
.dcf-rounded-top |
rounded top corners |
.dcf-rounded-right |
rounded right corners |
.dcf-rounded-bottom |
rounded bottom corners |
.dcf-rounded-left |
rounded left corners |
Border color (1, 2) and border width classes must be used with border color to work.
Utility classes for border style (all sides) use the b
notation.
Class | Declaration |
---|---|
.dcf-b-dotted |
border-style: dotted |
.dcf-b-solid |
border-style: solid |
Utility classes for border-top-style
use the bt
notation.
Class | Declaration |
---|---|
.dcf-bt-dotted |
border-top-style: dotted |
.dcf-bt-solid |
border-top-style: solid |
Utility classes for border-right-style
use the br
notation.
Class | Declaration |
---|---|
.dcf-br-dotted |
border-right-style: dotted |
.dcf-br-solid |
border-right-style: solid |
Utility classes for border-bottom-style
use the bb
notation.
Class | Declaration |
---|---|
.dcf-bb-dotted |
border-bottom-style: dotted |
.dcf-bb-solid |
border-bottom-style: solid |
Utility classes for border-left-style
use the bl
notation.
Class | Declaration |
---|---|
.dcf-bl-dotted |
border-left-style: dotted |
.dcf-bl-solid |
border-left-style: solid |
Border color (1, 2) and border style classes must be used with border color to work.
Utility classes for border width (all sides) use the b
notation.
Class | Declaration |
---|---|
.dcf-b-0 |
border-width: 0 |
.dcf-b-1 |
border-width: 1px |
.dcf-b-2 |
border-width: 2px |
.dcf-b-3 |
border-width: 3px |
Utility classes for border-top-width
use the bt
notation.
Class | Declaration |
---|---|
.dcf-bt-0 |
border-top-width: 0 |
.dcf-bt-1 |
border-top-width: 1px |
.dcf-bt-2 |
border-top-width: 2px |
.dcf-bt-3 |
border-top-width: 3px |
Utility classes for border-right-width
use the br
notation.
Class | Declaration |
---|---|
.dcf-br-0 |
border-right-width: 0 |
.dcf-br-1 |
border-right-width: 1px |
.dcf-br-2 |
border-right-width: 2px |
.dcf-br-3 |
border-right-width: 3px |
Utility classes for border-bottom-width
use the bb
notation.
Class | Declaration |
---|---|
.dcf-bb-0 |
border-bottom-width: 0 |
.dcf-bb-1 |
border-bottom-width: 1px |
.dcf-bb-2 |
border-bottom-width: 2px |
.dcf-bb-3 |
border-bottom-width: 3px |
Utility classes for border-left-width
use the bl
notation.
Class | Declaration |
---|---|
.dcf-bl-0 |
border-left-width: 0 |
.dcf-bl-1 |
border-left-width: 1px |
.dcf-bl-2 |
border-left-width: 2px |
.dcf-bl-3 |
border-left-width: 3px |
Utility classes for align-content
use the ac
notation.
Class | Declaration |
---|---|
.dcf-ac-flex-start |
align-content: flex-start |
.dcf-ac-flex-end |
align-content: flex-end |
.dcf-ac-center |
align-content: center |
.dcf-ac-stretch |
align-content: stretch |
.dcf-ac-around |
align-content: around |
.dcf-ac-between |
align-content: between |
.dcf-ac-evenly |
align-content: evenly |
.dcf-ac-start |
align-content: start |
.dcf-ac-end |
align-content: end |
Utility classes for align-items
use the ai
notation.
Class | Declaration |
---|---|
.dcf-ai-flex-start |
align-items: flex-start |
.dcf-ai-flex-end |
align-items: flex-end |
.dcf-ai-center |
align-items: center |
.dcf-ai-baseline |
align-items: baseline |
.dcf-ai-stretch |
align-items: stretch |
.dcf-ai-start |
align-items: start |
.dcf-ai-end |
align-items: end |
Utility classes for align-self
use the as
notation.
Class | Declaration |
---|---|
.dcf-as-auto |
align-self: auto |
.dcf-as-flex-start |
align-self: flex-start |
.dcf-as-flex-end |
align-self: flex-end |
.dcf-as-center |
align-self: center |
.dcf-as-baseline |
align-self: baseline |
.dcf-as-stretch |
align-self: stretch |
.dcf-as-start |
align-self: start |
.dcf-as-end |
align-self: end |
Utility classes for justify-content
use the jc
notation.
Class | Declaration |
---|---|
.dcf-jc-flex-start |
justify-content: flex-start |
.dcf-jc-flex-end |
justify-content: flex-end |
.dcf-jc-center |
justify-content: center |
.dcf-jc-stretch |
justify-content: stretch |
.dcf-jc-around |
justify-content: around |
.dcf-jc-between |
justify-content: between |
.dcf-jc-evenly |
justify-content: evenly |
.dcf-jc-start |
justify-content: start |
.dcf-jc-end |
justify-content: end |
Utility classes for justify-items
use the ji
notation.
Class | Declaration |
---|---|
.dcf-ji-center |
justify-items: center |
.dcf-ji-stretch |
justify-items: stretch |
.dcf-ji-start |
justify-items: start |
.dcf-ji-end |
justify-items: end |
Utility classes for justify-self
use the js
notation.
Class | Declaration |
---|---|
.dcf-js-center |
justify-self: center |
.dcf-js-stretch |
justify-self: stretch |
.dcf-js-start |
justify-self: start |
.dcf-js-end |
justify-self: end |
.dcf-inverse
Light color on dark background in light mode and dark color on light background (yes, light background) in dark mode. An example of this would be the selected date in the datepicker component. If light text on a dark background is desired in both light and dark modes, use .unl-cream
instead.
All CSS column utilities have a column-gap
of 3.16vw
(viewport width). Responsive suffixes (@sm
, @md
, @lg
, @xl
) can be added to target desired breakpoints.
Class | Description |
---|---|
.dcf-columns-1 |
Lay out content in one column. |
.dcf-columns-2 |
Lay out content in two equal width columns. |
.dcf-columns-3 |
Lay out content in three equal width columns. |
.dcf-columns-auto |
Lay out content in equal width columns, each with a minimum width of 17.76em . |
Class | Declaration or Description |
---|---|
.dcf-d-none |
display: none |
.dcf-d-none@screen |
display: none on screen, show when printed |
.dcf-d-block |
display: block |
.dcf-d-inline |
display: inline |
.dcf-d-inline-block |
display: inline-block |
.dcf-d-flex |
display: flex |
.dcf-d-inline-flex |
display: inline-flex |
.dcf-d-grid |
display: grid |
.dcf-d-inline-grid |
display: inline-grid |
.dcf-d-table |
display: table |
.dcf-d-table-cell |
display: table-cell |
Class | Declaration |
---|---|
.dcf-flex-col |
flex-direction: column |
.dcf-flex-col-rev |
flex-direction: column-reverse |
.dcf-flex-row |
flex-direction: row |
.dcf-flex-row-rev |
flex-direction: row-reverse |
Class | Declaration |
---|---|
.dcf-flex-wrap |
flex-wrap: wrap |
.dcf-flex-wrap-rev |
flex-wrap: wrap-reverse |
.dcf-flex-nowrap |
flex-wrap: nowrap |
Class | Declaration |
---|---|
.dcf-flex-none |
flex: none |
.dcf-flex-initial |
flex: initial |
.dcf-flex-auto |
flex: auto |
.dcf-flex-1 |
flex: 1 |
.dcf-flex-grow-1 |
flex-grow: 1 |
.dcf-flex-shrink-0 |
flex-shrink: 0 |
Class | Declaration or Description |
---|---|
.dcf-float-right |
float: right |
.dcf-float-left |
float: left |
.dcf-clear-right |
clear: right |
.dcf-clear-left |
clear: left |
.dcf-clear-both |
clear: both |
.dcf-clearfix |
force an element to self-clear its children |
Class | Declaration |
---|---|
.dcf-gap-1 |
gap: .42em |
.dcf-gap-2 |
gap: .56em |
.dcf-gap-3 |
gap: .75em |
.dcf-gap-4 |
gap: 1em |
.dcf-gap-5 |
gap: 1.33em |
.dcf-gap-6 |
gap: 1.78em |
.dcf-gap-7 |
gap: 2.37em |
.dcf-gap-8 |
gap: 3.16em |
.dcf-gap-9 |
gap: 4.21em |
.dcf-gap-10 |
gap: 5.62em |
Utility classes for column gap use the col-gap
notation. .dcf-col-gap-vw
should be your column-gap
of choice unless you have a specific use for the em-based options.
Class | Declaration |
---|---|
.dcf-col-gap-vw |
grid-column-gap: 3.16vw |
.dcf-col-gap-1 |
grid-column-gap: .42em |
.dcf-col-gap-2 |
grid-column-gap: .56em |
.dcf-col-gap-3 |
grid-column-gap: .75em |
.dcf-col-gap-4 |
grid-column-gap: 1em |
.dcf-col-gap-5 |
grid-column-gap: 1.33em |
.dcf-col-gap-6 |
grid-column-gap: 1.78em |
.dcf-col-gap-7 |
grid-column-gap: 2.37em |
.dcf-col-gap-8 |
grid-column-gap: 3.16em |
.dcf-col-gap-9 |
grid-column-gap: 4.21em |
.dcf-col-gap-10 |
grid-column-gap: 5.62em |
Utility classes for row gap use the row-gap
notation.
Class | Declaration |
---|---|
.dcf-row-gap-1 |
grid-row-gap: .42em |
.dcf-row-gap-2 |
grid-row-gap: .56em |
.dcf-row-gap-3 |
grid-row-gap: .75em |
.dcf-row-gap-4 |
grid-row-gap: 1em |
.dcf-row-gap-5 |
grid-row-gap: 1.33em |
.dcf-row-gap-6 |
grid-row-gap: 1.78em |
.dcf-row-gap-7 |
grid-row-gap: 2.37em |
.dcf-row-gap-8 |
grid-row-gap: 3.16em |
.dcf-row-gap-9 |
grid-row-gap: 4.21em |
.dcf-row-gap-10 |
grid-row-gap: 5.62em |
Utility classes for height use the h
notation.
Class | Declaration |
---|---|
.dcf-h-auto |
height: auto |
.dcf-h-0 |
height: 0 |
.dcf-h-1 |
height: .42em |
.dcf-h-2 |
height: .56em |
.dcf-h-3 |
height: .75em |
.dcf-h-4 |
height: 1em |
.dcf-h-5 |
height: 1.33em |
.dcf-h-6 |
height: 1.78em |
.dcf-h-7 |
height: 2.37em |
.dcf-h-8 |
height: 3.16em |
.dcf-h-9 |
height: 4.21em |
.dcf-h-10 |
height: 5.62em |
.dcf-h-11 |
height: 7.49em |
.dcf-h-12 |
height: 10em |
.dcf-h-25% |
height: 25% |
.dcf-h-50% |
height: 50% |
.dcf-h-75% |
height: 75% |
.dcf-h-100% |
height: 100% |
.dcf-h-100vh |
height: 100vw |
Utility classes for minimum height use the h-min
notation.
Class | Declaration |
---|---|
.dcf-h-min-0 |
min-height: 0 |
.dcf-h-min-100vh |
min-height: 100vh |
Utility classes for maximum height use the h-max
notation.
Class | Declaration |
---|---|
.dcf-h-max-0 |
max-height: 0 |
.dcf-h-max-100% |
max-height: 100% |
.dcf-h-max-100vh |
max-height: 100vh |
.dcf-h-max-inf |
max-height: 999vh |
Utility classes for width use the w
notation.
Class | Declaration |
---|---|
.dcf-w-auto |
width: auto |
.dcf-w-0 |
width: 0 |
.dcf-w-1 |
width: .42em |
.dcf-w-2 |
width: .56em |
.dcf-w-3 |
width: .75em |
.dcf-w-4 |
width: 1em |
.dcf-w-5 |
width: 1.33em |
.dcf-w-6 |
width: 1.78em |
.dcf-w-7 |
width: 2.37em |
.dcf-w-8 |
width: 3.16em |
.dcf-w-9 |
width: 4.21em |
.dcf-w-10 |
width: 5.62em |
.dcf-w-11 |
width: 7.49em |
.dcf-w-12 |
width: 10em |
.dcf-w-25% |
width: 25% |
.dcf-w-50% |
width: 50% |
.dcf-w-75% |
width: 75% |
.dcf-w-100% |
width: 100% |
.dcf-w-100vw |
width: 100vw |
Utility classes for minimum width use the w-min
notation.
Class | Declaration |
---|---|
.dcf-w-min-0 |
min-width: 0 |
Utility classes for maximum width use the w-max
notation.
Class | Declaration |
---|---|
.dcf-w-max-3xs |
max-width: 9.99rem |
.dcf-w-max-2xs |
max-width: 13.32rem |
.dcf-w-max-xs |
max-width: 17.76rem |
.dcf-w-max-sm |
max-width: 23.68rem |
.dcf-w-max-md |
max-width: 31.57rem |
.dcf-w-max-lg |
max-width: 42.09rem |
.dcf-w-max-xl |
max-width: 56.12rem |
.dcf-w-max-2xl |
max-width: 74.83rem |
.dcf-w-max-3xl |
max-width: 99.78rem |
.dcf-w-max-4xl |
max-width: 133.03rem |
.dcf-w-max-100% |
max-width: 100% |
.dcf-w-max-100vw |
max-width: 100vw |
Class | Description |
---|---|
.dcf-lazy-load |
lazy load images |
<div class="dcf-ratio dcf-ratio-16x9">
<picture>
<!-- AVIF images https://squoosh.app/ -->
<source
data-srcset="
https://www.unl.edu/images/path-to/image-sm.avif 320w,
https://www.unl.edu/images/path-to/image-md.avif 640w,
https://www.unl.edu/images/path-to/image-lg.avif 960w,
https://www.unl.edu/images/path-to/image-xl.avif 1280w"
srcset="data:,1w"
type="image/avif">
<!-- WebP images https://squoosh.app/, https://convertio.co/webp-converter/, https://www.onlineconverter.com/webp or https://image.online-convert.com/convert-to-webp -->
<source
data-srcset="
https://www.unl.edu/images/path-to/image-sm.webp 320w,
https://www.unl.edu/images/path-to/image-md.webp 640w,
https://www.unl.edu/images/path-to/image-lg.webp 960w,
https://www.unl.edu/images/path-to/image-xl.webp 1280w"
srcset="data:,1w"
type="image/webp">
<!-- JPG images https://squoosh.app/, https://imagecompressor.com/, https://compressor.io/ or https://www.jpegmini.com/ -->
<source
data-srcset="
https://www.unl.edu/images/path-to/image-sm.jpg 320w,
https://www.unl.edu/images/path-to/image-md.jpg 640w,
https://www.unl.edu/images/path-to/image-lg.jpg 960w,
https://www.unl.edu/images/path-to/image-xl.jpg 1280w"
srcset="data:,1w"
type="image/jpeg">
<img
class="dcf-ratio-child dcf-obj-fit-cover dcf-lazy-load"
height="720"
width="1280"
loading="lazy"
data-sizes=""
data-src="https://www.unl.edu/images/path-to/image-sm.jpg"
src="data:,"
alt="Really good alt text goes here.">
<noscript>
<img
class="dcf-ratio-child dcf-obj-fit-cover"
height="720"
width="1280"
src="https://www.unl.edu/images/path-to/image-sm.jpg"
alt="Really good alt text goes here.">
</noscript>
</picture>
</div>
AVIF and WebP images aren’t required, but they are recommended for improving your page performance. If using only JPEGs, use the following code:
<div class="dcf-ratio dcf-ratio-16x9">
<!-- JPG images https://squoosh.app/, https://imagecompressor.com/, https://compressor.io/ or https://www.jpegmini.com/ -->
<img
class="dcf-ratio-child dcf-obj-fit-cover dcf-lazy-load"
loading="lazy"
height="720"
width="1280"
data-sizes=""
data-srcset="
https://www.unl.edu/images/path-to/image-sm.jpg 320w,
https://www.unl.edu/images/path-to/image-md.jpg 640w,
https://www.unl.edu/images/path-to/image-lg.jpg 960w,
https://www.unl.edu/images/path-to/image-xl.jpg 1280w"
srcset="data:,1w"
data-src="https://www.unl.edu/images/path-to/image-sm.jpg"
src="data:,"
alt="Really good alt text goes here.">
<noscript>
<img
class="dcf-ratio-child dcf-obj-fit-cover"
height="720"
width="1280"
src="https://www.unl.edu/images/path-to/image-sm.jpg"
alt="Really good alt text goes here.">
</noscript>
</div>
Utility classes for margin (all sides) use the m
notation.
Class | Declaration |
---|---|
.dcf-m-auto |
margin: auto |
.dcf-m-0 |
margin: 0 |
.dcf-m-1 |
margin: .42em |
.dcf-m-2 |
margin: .56em |
.dcf-m-3 |
margin: .75em |
.dcf-m-4 |
margin: 1em |
.dcf-m-5 |
margin: 1.33em |
.dcf-m-6 |
margin: 1.78em |
.dcf-m-7 |
margin: 2.37em |
.dcf-m-8 |
margin: 3.16em |
.dcf-m-9 |
margin: 4.21em |
.dcf-m-10 |
margin: 5.62em |
.dcf-m-11 |
margin: 7.49em |
.dcf-m-12 |
margin: 10em |
Utility classes for margin top use the mt
notation.
Class | Declaration |
---|---|
.dcf-mt-auto |
margin-top: auto |
.dcf-mt-0 |
margin-top: 0 |
.dcf-mt-1 |
margin-top: .42em |
.dcf-mt-2 |
margin-top: .56em |
.dcf-mt-3 |
margin-top: .75em |
.dcf-mt-4 |
margin-top: 1em |
.dcf-mt-5 |
margin-top: 1.33em |
.dcf-mt-6 |
margin-top: 1.78em |
.dcf-mt-7 |
margin-top: 2.37em |
.dcf-mt-8 |
margin-top: 3.16em |
.dcf-mt-9 |
margin-top: 4.21em |
.dcf-mt-10 |
margin-top: 5.62em |
.dcf-mt-11 |
margin-top: 7.49em |
.dcf-mt-12 |
margin-top: 10em |
Utility classes for margin right use the mr
notation.
Class | Declaration |
---|---|
.dcf-mr-auto |
margin-right: auto |
.dcf-mr-0 |
margin-right: 0 |
.dcf-mr-1 |
margin-right: .42em |
.dcf-mr-2 |
margin-right: .56em |
.dcf-mr-3 |
margin-right: .75em |
.dcf-mr-4 |
margin-right: 1em |
.dcf-mr-5 |
margin-right: 1.33em |
.dcf-mr-6 |
margin-right: 1.78em |
.dcf-mr-7 |
margin-right: 2.37em |
.dcf-mr-8 |
margin-right: 3.16em |
.dcf-mr-9 |
margin-right: 4.21em |
.dcf-mr-10 |
margin-right: 5.62em |
.dcf-mr-11 |
margin-right: 7.49em |
.dcf-mr-12 |
margin-right: 10em |
Utility classes for margin bottom use the mb
notation.
Class | Declaration |
---|---|
.dcf-mb-auto |
margin-bottom: auto |
.dcf-mb-0 |
margin-bottom: 0 |
.dcf-mb-1 |
margin-bottom: .42em |
.dcf-mb-2 |
margin-bottom: .56em |
.dcf-mb-3 |
margin-bottom: .75em |
.dcf-mb-4 |
margin-bottom: 1em |
.dcf-mb-5 |
margin-bottom: 1.33em |
.dcf-mb-6 |
margin-bottom: 1.78em |
.dcf-mb-7 |
margin-bottom: 2.37em |
.dcf-mb-8 |
margin-bottom: 3.16em |
.dcf-mb-9 |
margin-bottom: 4.21em |
.dcf-mb-10 |
margin-bottom: 5.62em |
.dcf-mb-11 |
margin-bottom: 7.49em |
.dcf-mb-12 |
margin-bottom: 10em |
Utility classes for margin left use the ml
notation.
Class | Declaration |
---|---|
.dcf-ml-auto |
margin-left: auto |
.dcf-ml-0 |
margin-left: 0 |
.dcf-ml-1 |
margin-left: .42em |
.dcf-ml-2 |
margin-left: .56em |
.dcf-ml-3 |
margin-left: .75em |
.dcf-ml-4 |
margin-left: 1em |
.dcf-ml-5 |
margin-left: 1.33em |
.dcf-ml-6 |
margin-left: 1.78em |
.dcf-ml-7 |
margin-left: 2.37em |
.dcf-ml-8 |
margin-left: 3.16em |
.dcf-ml-9 |
margin-left: 4.21em |
.dcf-ml-10 |
margin-left: 5.62em |
.dcf-ml-11 |
margin-left: 7.49em |
.dcf-ml-12 |
margin-left: 10em |
Class | Declaration |
---|---|
.dcf-obj-fit-contain |
object-fit: contain |
.dcf-obj-fit-cover |
object-fit: cover |
.dcf-obj-fit-none |
object-fit: none |
Class | Declaration |
---|---|
.dcf-obj-top |
object-position: top |
.dcf-obj-right |
object-position: right |
.dcf-obj-bottom |
object-position: bottom |
.dcf-obj-left |
object-position: left |
.dcf-obj-right-top |
object-position: right top |
.dcf-obj-right-right |
object-position: right bottom |
.dcf-obj-left-bottom |
object-position: left bottom |
.dcf-obj-left-top |
object-position: left top |
Class | Declaration |
---|---|
.dcf-opacity-0 |
opacity: 0 |
.dcf-opacity-100% |
opacity: 100% |
Class | Declaration |
---|---|
.dcf-1st |
order: 1 |
.dcf-2nd |
order: 2 |
.dcf-3rd |
order: 3 |
Responsive suffixes (@sm
, @md
, @lg
, @xl
) can be used with the order utilities to adjust order at the desired breakpoints.
Class | Declaration |
---|---|
.dcf-overflow-visible |
overflow: visible |
.dcf-overflow-x-visible |
overflow-x: visible |
.dcf-overflow-y-visible |
overflow-y: visible |
.dcf-overflow-hidden |
overflow: hidden |
.dcf-overflow-x-hidden |
overflow-x: hidden |
.dcf-overflow-y-hidden |
overflow-y: hidden |
.dcf-overflow-auto |
overflow: auto |
.dcf-overflow-x-auto |
overflow-x: auto |
.dcf-overflow-y-auto |
overflow-y: auto |
.dcf-overflow-scroll |
overflow: scroll |
.dcf-overflow-x-scroll |
overflow-x: scroll |
.dcf-overflow-y-scroll |
overflow-y: scroll |
Utility classes for padding (all sides) use the p
notation.
Class | Declaration |
---|---|
.dcf-p-0 |
padding: 0 |
.dcf-p-1 |
padding: .42em |
.dcf-p-2 |
padding: .56em |
.dcf-p-3 |
padding: .75em |
.dcf-p-4 |
padding: 1em |
.dcf-p-5 |
padding: 1.33em |
.dcf-p-6 |
padding: 1.78em |
.dcf-p-7 |
padding: 2.37em |
.dcf-p-8 |
padding: 3.16em |
.dcf-p-9 |
padding: 4.21em |
.dcf-p-10 |
padding: 5.62em |
.dcf-p-11 |
padding: 7.49em |
.dcf-p-12 |
padding: 10em |
Utility classes for padding top use the pt
notation.
Class | Declaration |
---|---|
.dcf-pt-0 |
padding-top: 0 |
.dcf-pt-1 |
padding-top: .42em |
.dcf-pt-2 |
padding-top: .56em |
.dcf-pt-3 |
padding-top: .75em |
.dcf-pt-4 |
padding-top: 1em |
.dcf-pt-5 |
padding-top: 1.33em |
.dcf-pt-6 |
padding-top: 1.78em |
.dcf-pt-7 |
padding-top: 2.37em |
.dcf-pt-8 |
padding-top: 3.16em |
.dcf-pt-9 |
padding-top: 4.21em |
.dcf-pt-10 |
padding-top: 5.62em |
.dcf-pt-11 |
padding-top: 7.49em |
.dcf-pt-12 |
padding-top: 10em |
Utility classes for padding right use the pr
notation.
Class | Declaration |
---|---|
.dcf-pr-0 |
padding-right: 0 |
.dcf-pr-1 |
padding-right: .42em |
.dcf-pr-2 |
padding-right: .56em |
.dcf-pr-3 |
padding-right: .75em |
.dcf-pr-4 |
padding-right: 1em |
.dcf-pr-5 |
padding-right: 1.33em |
.dcf-pr-6 |
padding-right: 1.78em |
.dcf-pr-7 |
padding-right: 2.37em |
.dcf-pr-8 |
padding-right: 3.16em |
.dcf-pr-9 |
padding-right: 4.21em |
.dcf-pr-10 |
padding-right: 5.62em |
.dcf-pr-11 |
padding-right: 7.49em |
.dcf-pr-12 |
padding-right: 10em |
Utility classes for padding bottom use the pb
notation.
Class | Declaration |
---|---|
.dcf-pb-0 |
padding-bottom: 0 |
.dcf-pb-1 |
padding-bottom: .42em |
.dcf-pb-2 |
padding-bottom: .56em |
.dcf-pb-3 |
padding-bottom: .75em |
.dcf-pb-4 |
padding-bottom: 1em |
.dcf-pb-5 |
padding-bottom: 1.33em |
.dcf-pb-6 |
padding-bottom: 1.78em |
.dcf-pb-7 |
padding-bottom: 2.37em |
.dcf-pb-8 |
padding-bottom: 3.16em |
.dcf-pb-9 |
padding-bottom: 4.21em |
.dcf-pb-10 |
padding-bottom: 5.62em |
.dcf-pb-11 |
padding-bottom: 7.49em |
.dcf-pb-12 |
padding-bottom: 10em |
Utility classes for padding left use the pl
notation.
Class | Declaration |
---|---|
.dcf-pl-0 |
padding-left: 0 |
.dcf-pl-1 |
padding-left: .42em |
.dcf-pl-2 |
padding-left: .56em |
.dcf-pl-3 |
padding-left: .75em |
.dcf-pl-4 |
padding-left: 1em |
.dcf-pl-5 |
padding-left: 1.33em |
.dcf-pl-6 |
padding-left: 1.78em |
.dcf-pl-7 |
padding-left: 2.37em |
.dcf-pl-8 |
padding-left: 3.16em |
.dcf-pl-9 |
padding-left: 4.21em |
.dcf-pl-10 |
padding-left: 5.62em |
.dcf-pl-11 |
padding-left: 7.49em |
.dcf-pl-12 |
padding-left: 10em |
Class | Declaration |
---|---|
.dcf-static |
position: static |
.dcf-relative |
position: relative |
.dcf-absolute |
position: absolute |
.dcf-fixed |
position: fixed |
.dcf-sticky |
position: sticky |
Class | Declaration |
---|---|
.dcf-top-0 |
top: 0 |
.dcf-top-50% |
top: 50% |
.dcf-top-100% |
top: 100% |
.dcf-right-0 |
right: 0 |
.dcf-right-50% |
right: 50% |
.dcf-right-100% |
right: 100% |
.dcf-bottom-0 |
bottom: 0 |
.dcf-bottom-50% |
bottom: 50% |
.dcf-bottom-100% |
bottom: 100% |
.dcf-left-0 |
left: 0 |
.dcf-left-50% |
left: 50% |
.dcf-left-100% |
left: 100% |
Class | Declaration |
---|---|
.dcf-fill-current |
fill: currentColor |
.dcf-stroke-current |
stroke: currentColor |
Class | Declaration |
---|---|
.dcf-table-fixed |
table-layout: fixed |
A table must have a defined width for table-layout: fixed
to work. Use a width utility class (e.g., .dcf-w-100%
) with .dcf-table-fixed
on your desired <table>
.
Class | Declaration or Description |
---|---|
.dcf-txt-base |
font-size: 1rem |
.dcf-txt-3xs |
font-size: .56em |
.dcf-txt-2xs |
font-size: .63em |
.dcf-txt-xs |
font-size: .75em |
.dcf-txt-sm |
font-size: .84em |
.dcf-txt-md |
font-size: 1em |
.dcf-txt-lg |
font-size: 1.13em |
.dcf-txt-h6 |
font-size: 1.13em , equivalent to h6 font size |
.dcf-txt-h5 |
font-size: 1.33em , equivalent to h5 font size |
.dcf-txt-h4 |
font-size: 1.5em , equivalent to h4 font size |
.dcf-txt-h3 |
font-size: 1.78em , equivalent to h3 font size |
.dcf-txt-h2 |
font-size: 2em , equivalent to h2 font size |
.dcf-txt-h1 |
font-size: 2.37em , equivalent to h1 font size |
.dcf-txt-xl |
font-size: 2.67em |
.dcf-txt-2xl |
font-size: 3.16em |
.dcf-txt-3xl |
font-size: 4.21em |
.dcf-txt-4xl |
font-size: 4.74em |
.dcf-txt-5xl |
font-size: 5.62em |
.dcf-txt-6xl |
font-size: 6.32em |
Class | Declaration |
---|---|
.dcf-txt-center |
text-align: center |
.dcf-txt-left |
text-align: left |
.dcf-txt-right |
text-align: right |
Class | Declaration |
---|---|
.dcf-txt-baseline |
vertical-align: baseline |
.dcf-txt-top |
vertical-align: top |
.dcf-txt-middle |
vertical-align: middle |
.dcf-txt-bottom |
vertical-align: bottom |
.dcf-txt-text-top |
vertical-align: text-top |
.dcf-txt-text-bottom |
vertical-align: text-bottom |
Class | Declaration or Description |
---|---|
.dcf-txt-decor-none |
text-decoration: none |
.dcf-txt-decor-hover |
text-decoration: underline on :hover
|
Class | Declaration or Description |
---|---|
.dcf-txt-nowrap |
white-space: nowrap |
.dcf-word-wrap |
force long words or strings to hyphenate and wrap to a new line as needed |
.dcf-truncate |
truncate text with an ellipsis as needed |
Class | Declaration |
---|---|
.dcf-roman |
font-style: normal |
.dcf-italic |
font-style: italic |
Class | Declaration |
---|---|
.dcf-regular |
font-weight: normal |
.dcf-bold |
font-weight: bold |
.dcf-bolder |
font-weight: bolder |
Utility classes for line height use the lh
notation.
Class | Declaration |
---|---|
.dcf-lh-1 |
line-height: 1 |
.dcf-lh-2 |
line-height: 1.13 |
.dcf-lh-3 |
line-height: 1.33 |
.dcf-lh-4 |
line-height: 1.5 |
Class | Declaration |
---|---|
.dcf-capitalize |
text-transform: capitalize |
.dcf-lowercase |
text-transform: lowercase |
.dcf-uppercase |
text-transform: uppercase |
.dcf-case-reset |
text-transform: none |
Class | Declaration or Description |
---|---|
.dcf-invisible |
visibility: hidden |
.dcf-visible |
visibility: visible |
.dcf-sr-only |
visible for screen readers only |
Class | Declaration |
---|---|
.dcf-z-0 |
z-index: 0 |
.dcf-z-1 |
z-index: 1 |
.dcf-z-2 |
z-index: 2 |
Utility classes to apply background-blend-mode
to elements.
Class | Declaration |
---|---|
.unl-bg-multiply |
background-blend-mode: multiply |
.unl-bg-soft-light |
background-blend-mode: soft-light |
Utility classes for background colors use the bg
notation.
Class | Hex Color | Description |
---|---|---|
.unl-bg-scarlet |
#d00000
|
scarlet |
.unl-bg-cream |
#fefdfa
|
cream |
.unl-bg-cream@dark |
#fefdfa
|
cream in dark mode |
Use in infographics, charts and graphs. Do not flood!
Class | Hex Color | Description |
---|---|---|
.unl-bg-cerulean |
#42a7c6
|
cerulean |
.unl-bg-green |
#00784e
|
green |
.unl-bg-light-green |
#e7f1ea
|
light green |
.unl-bg-light-green@dark |
#e7f1ea
|
light green in dark mode |
.unl-bg-blue |
#007197
|
blue |
.unl-bg-light-blue |
#e7f0f0
|
light blue in dark mode |
.unl-bg-light-blue@dark |
#e7f0f0
|
light blue in dark mode |
.unl-bg-purple |
#b32d9c
|
purple |
.unl-bg-light-purple |
#f7eaf1
|
light purple |
.unl-bg-light-purple@dark |
#f7eaf1
|
light purple in dark mode |
.unl-bg-yellow |
#ffd74e
|
yellow |
.unl-bg-orange |
#f58a1f
|
orange |
Class | Hex Color | Description |
---|---|---|
.unl-bg-lightest-gray |
#f6f6f5
|
lightest gray |
.unl-bg-lightest-gray@dark |
#f6f6f5
|
lightest gray in dark mode |
.unl-bg-lighter-gray |
#ebebea
|
lighter gray |
.unl-bg-lighter-gray@dark |
#ebebea
|
lighter gray in dark mode |
.unl-bg-light-gray |
#e3e3e2
|
light gray |
.unl-bg-light-gray@dark |
#e3e3e2
|
light gray in dark mode |
.unl-bg-dark-gray |
#6b6b68
|
dark gray |
.unl-bg-darker-gray |
#424240
|
darker gray |
.unl-bg-darkest-gray |
#242423
|
darkest gray |
Utility classes for background images use the bg
notation. Illustrated patterns can be combined with the .unl-bg-soft-light
class which applies a soft light background blend mode to the image and allows for the pattern to be placed over any background color.
Class | Description |
---|---|
.unl-bg-grit |
grit background pattern |
.unl-bg-diagonal-gradients |
diagonal gradients background pattern |
.unl-bg-campus |
illustrated general campus background pattern |
.unl-bg-landmarks |
illustrated campus landmarks background pattern |
.unl-bg-majors |
illustrated academic majors background pattern |
Utility classes for border colors (all sides) use the b
notation.
Class | Hex Color | Description |
---|---|---|
.unl-b-scarlet |
#d00000
|
scarlet, all sides |
.unl-b-cream |
#fefdfa
|
cream, all sides |
.unl-b-lightest-gray |
#f6f6f5
|
lightest gray, all sides |
.unl-b-lighter-gray |
#ebebea
|
lighter gray, all sides |
.unl-b-light-gray |
#e3e3e2
|
light gray, all sides |
.unl-b-gray |
#c7c8ca
|
gray, all sides |
.unl-b-dark-gray |
#6b6b68
|
dark gray, all sides |
.unl-b-darker-gray |
#424240
|
darker gray, all sides |
.unl-b-darkest-gray |
#242423
|
darkest gray, all sides |
Utility classes for border-top
colors use the bt
notation.
Class | Hex Color | Description |
---|---|---|
.unl-bt-scarlet |
#d00000
|
scarlet, top |
.unl-bt-cream |
#fefdfa
|
cream, top |
.unl-bt-lightest-gray |
#f6f6f5
|
lightest gray, top |
.unl-bt-lighter-gray |
#ebebea
|
lighter gray, top |
.unl-bt-light-gray |
#e3e3e2
|
light gray, top |
.unl-bt-gray |
#c7c8ca
|
gray, top |
.unl-bt-dark-gray |
#6b6b68
|
dark gray, top |
.unl-bt-darker-gray |
#424240
|
darker gray, top |
.unl-bt-darkest-gray |
#242423
|
darkest gray, top |
Utility classes for border-right
colors use the br
notation.
Class | Hex Color | Description |
---|---|---|
.unl-br-scarlet |
#d00000
|
scarlet, right |
.unl-br-cream |
#fefdfa
|
cream, right |
.unl-br-lightest-gray |
#f6f6f5
|
lightest gray, right |
.unl-br-lighter-gray |
#ebebea
|
lighter gray, right |
.unl-br-light-gray |
#e3e3e2
|
light gray, right |
.unl-br-gray |
#c7c8ca
|
gray, right |
.unl-br-dark-gray |
#6b6b68
|
dark gray, right |
.unl-br-darker-gray |
#424240
|
darker gray, right |
.unl-br-darkest-gray |
#242423
|
darkest gray, right |
Utility classes for border-bottom
colors use the bb
notation.
Class | Hex Color | Description |
---|---|---|
.unl-bb-scarlet |
#d00000
|
scarlet, bottom |
.unl-bb-cream |
#fefdfa
|
cream, bottom |
.unl-bb-lightest-gray |
#f6f6f5
|
lightest gray, bottom |
.unl-bb-lighter-gray |
#ebebea
|
lighter gray, bottom |
.unl-bb-light-gray |
#e3e3e2
|
light gray, bottom |
.unl-bb-gray |
#c7c8ca
|
gray, bottom |
.unl-bb-dark-gray |
#6b6b68
|
dark gray, bottom |
.unl-bb-darker-gray |
#424240
|
darker gray, bottom |
.unl-bb-darkest-gray |
#242423
|
darkest gray, bottom |
Utility classes for border-left
colors use the bl
notation.
Class | Hex Color | Description |
---|---|---|
.unl-bl-scarlet |
#d00000
|
scarlet, left |
.unl-bl-cream |
#fefdfa
|
cream, left |
.unl-bl-lightest-gray |
#f6f6f5
|
lightest gray, left |
.unl-bl-lighter-gray |
#ebebea
|
lighter gray, left |
.unl-bl-light-gray |
#e3e3e2
|
light gray, left |
.unl-bl-gray |
#c7c8ca
|
gray, left |
.unl-bl-dark-gray |
#6b6b68
|
dark gray, left |
.unl-bl-darker-gray |
#424240
|
darker gray, left |
.unl-bl-darkest-gray |
#242423
|
darkest gray, left |
Add a box-shadow
to an element with .unl-box-shadow
Class | Hex Color | Description |
---|---|---|
.unl-scarlet |
#d00000
|
scarlet |
.unl-scarlet@dark |
#d00000
|
scarlet in dark mode |
.unl-cream |
#fefdfa
|
cream |
.unl-gray |
#c7c8ca
|
gray |
Class | Hex Color | Description |
---|---|---|
.unl-cerulean |
#42a7c6
|
cerulean |
.unl-green |
#00784e
|
green |
.unl-green@dark |
#00784e
|
green in dark mode |
.unl-light-green |
#e7f1ea
|
light green |
.unl-blue |
#007197
|
blue |
.unl-blue@dark |
#007197
|
blue in dark mode |
.unl-light-blue |
#e7f0f0
|
light blue |
.unl-purple |
#b32d9c
|
purple |
.unl-light-purple@dark |
#b32d9c
|
purple in dark mode |
.unl-light-purple |
#f7eaf1
|
light purple |
.unl-yellow |
#ffd74e
|
yellow |
.unl-orange |
#f58a1f
|
orange |
Class | Hex Color | Description |
---|---|---|
.unl-lightest-gray |
#f6f6f5
|
lightest gray |
.unl-lighter-gray |
#ebebea
|
lighter gray |
.unl-light-gray |
#e3e3e2
|
light gray |
.unl-dark-gray |
#6b6b68
|
dark gray |
.unl-dark-gray@dark |
#6b6b68
|
dark gray in dark mode |
.unl-darker-gray |
#424240
|
darker gray |
.unl-darker-gray@dark |
#424240
|
darker gray in dark mode |
.unl-darkest-gray |
#242423
|
darkest gray |
.unl-darkest-gray@dark |
#242423
|
darkest gray in dark mode |
Variable Name | Light Mode Value | Dark Mode Value |
---|---|---|
--bg-badge |
#6b6b68
|
#e3e3e2
|
--bg-body |
#fefdfa
|
#242423
|
--bg-brand-alpha |
#d00000
|
#d00000
|
--bg-brand-light-zeta |
#e7f1ea
|
#00784e
|
--bg-brand-light-eta |
#e7f0f0
|
#007197
|
--bg-brand-light-theta |
#f7eaf1
|
#b32d9c
|
--bg-btn-inverse-primary |
#ebebea
|
#ebebea
|
--bg-btn-inverse-secondary |
transparent |
transparent |
--bg-btn-inverse-tertiary |
transparent |
transparent |
--bg-btn-primary |
#d00000
|
#ebebea
|
--bg-btn-primary-hover |
#9d0000
|
#ffffff
|
--bg-btn-secondary |
#ffffff
|
transparent |
--bg-btn-secondary-tertiary-hover |
rgba(157,0,0,0.07) |
hsla(0,0%,100%,0.07) |
--bg-btn-tertiary |
transparent |
transparent |
--bg-card |
#fefdfa
|
#393937
|
--bg-code |
rgba(0,0,0,0.05) |
hsla(0,0%,100%,0.1) |
--bg-dialog |
#ffffff
|
#393937
|
--bg-input |
#ffffff
|
#1f1f1e
|
--bg-input-disabled |
#ebebea
|
#424240
|
--bg-input-group-addon |
#f6f6f5
|
#6b6b68
|
--bg-inverse |
#424240
|
#c7c8ca
|
--bg-kbd |
#000000
|
#000000
|
--bg-light-gray |
#e3e3e2
|
#333332
|
--bg-lighter-gray |
#ebebea
|
#2e2e2d
|
--bg-lightest-gray |
#f6f6f5
|
#292928
|
--bg-mark |
#ffff00
|
#ffff00
|
--bg-modal-header |
#fefdfa
|
#242423
|
--bg-modal-wrapper |
#fefdfa
|
#242423
|
--bg-overlay-dark |
rgba(36,36,35,0.94) |
rgba(0,0,0,0.94) |
--bg-overlay-light |
hsla(45,67%,99%,0.94) |
rgba(0,0,0,0.94) |
--bg-pre |
rgba(0,0,0,0.05) |
rgba(0,0,0,0.05) |
--bg-radio |
#424240
|
#c7c8ca
|
--bg-required |
transparent |
rgba(157,0,0,0.25) |
--bg-select-1 |
#ffffff
|
#1f1f1e
|
--bg-select-2 |
#ffffff
|
#1f1f1e
|
--bg-table-stripe |
#f6f6f5
|
#242423
|
--bg-tab-selected |
#ffffff
|
#393937
|
--bg-tabs-panel |
#ffffff
|
#393937
|
--bg-white |
#ffffff
|
#393937
|
--b |
#e3e3e2
|
#424240
|
--b-breadcrumb-arrow |
#c7c8ca
|
#c7c8ca
|
--b-btn-primary |
#d00000
|
#ebebea
|
--b-btn-primary-hover |
#9d0000
|
#ffffff
|
--b-btn-secondary |
currentColor |
currentColor |
--b-btn-tertiary |
transparent |
transparent |
--b-btn-inverse-primary |
#ebebea
|
#ebebea
|
--b-btn-inverse-secondary |
currentColor |
currentColor |
--b-btn-inverse-tertiary |
transparent |
transparent |
--b-checkmark |
#424240
|
#c7c8ca
|
--b-fieldset |
#e3e3e2
|
#c7c8ca
|
--b-input |
#c7c8ca
|
#6b6b68
|
--b-input-checked |
#424240
|
#c7c8ca
|
--b-input-focus |
#007197
|
#42a7c6
|
--b-input-group-addon |
#c7c8ca
|
#6b6b68
|
--b-input-hover |
#6b6b68
|
#c7c8ca
|
--b-light-gray |
#e3e3e2
|
#424240
|
--b-lighter-gray |
#ebebea
|
#424240
|
--b-lightest-gray |
#f6f6f5
|
#424240
|
--b-required |
transparent |
#9d0000
|
--b-table |
#e3e3e2
|
#424240
|
--b-tab |
#e3e3e2
|
#424240
|
--b-tabs-panel |
#e3e3e2
|
#424240
|
--active |
#9d0000
|
#a0d2e0
|
--badge |
#fefdfa
|
#242423
|
--brand-alpha |
#d00000
|
#f6f6f5
|
--body |
#424240
|
#c7c8ca
|
--brand-zeta |
#00784e
|
#e7f1ea
|
--brand-eta |
#007197
|
#e7f0f0
|
--brand-theta |
#b32d9c
|
#f7eaf1
|
--brand-iota |
#ffd74e
|
#ffd74e
|
--brand-kappa |
#f58a1f
|
#f58a1f
|
--btn-inverse-primary |
#d00000
|
#d00000
|
--btn-inverse-secondary |
#ebebea
|
#ebebea
|
--btn-inverse-tertiary |
#ebebea
|
#ebebea
|
--btn-primary |
#ffffff
|
#d00000
|
--btn-secondary |
#d00000
|
#ebebea
|
--btn-secondary-tertiary-hover |
#9d0000
|
#ffffff
|
--btn-tertiary |
#d00000
|
#ebebea
|
--caption |
#242423
|
#fefdfa
|
--code |
#5c5c59
|
#e1e2e3
|
--dark-gray |
#6b6b68
|
#e3e3e2
|
--darker-gray |
#424240
|
#ebebea
|
--darkest-gray |
#242423
|
#f6f6f5
|
--figcaption |
#6b6b68
|
#a4a4a1
|
--focus-outline |
#007197
|
#42a7c6
|
--form-help |
#6b6b68
|
#a4a4a1
|
--heading |
#242423
|
#fefdfa
|
--hover |
#9d0000
|
#a0d2e0
|
--input-group-addon |
#6b6b68
|
#a4a4a1
|
--inverse |
#fefdfa
|
#242423
|
--inverse-active |
#fefdfa
|
#242423
|
--inverse-hover |
#fefdfa
|
#242423
|
--inverse-link |
#fefdfa
|
#242423
|
--inverse-visited |
#fefdfa
|
#242423
|
--kbd |
#00ff00
|
#00ff00
|
--link |
#d00000
|
#71bdd3
|
--required |
#d00000
|
#fefdfa
|
--select |
#424240
|
#c7c8ca
|
--tab-selected |
#424240
|
|
--visited |
#9d0000
|
#a0d2e0
|
Class | Description |
---|---|
.unl-font-sans |
sans-serif font: Work Sans |
.unl-font-serif |
serif font: Source Serif (requires additional JavaScript) |
.unl-font-display |
display font: Liberator |
.unl-font-mono |
monospace system fonts stack |
Add frames to an element.
Class | Description |
---|---|
.unl-frame-circle |
Add a circular frame to an element |
.unl-frame-quad |
Add a quadrilateral (rectangular) frame to an element |
Code for legacy hero:
<!-- InstanceBeginEditable name="hero" -->
<div class="dcf-hero dcf-d-flex dcf-relative unl-hero-legacy unl-bg-darkest-gray">
<!-- InstanceEndEditable -->
<div class="dcf-hero-group-1">
<div class="dcf-breadcrumbs-wrapper">
<nav class="dcf-breadcrumbs" id="dcf-breadcrumbs" role="navigation" aria-label="breadcrumbs">
<!-- InstanceBeginEditable name="breadcrumbs" -->
<ol>
<li><a href="https://arts.unl.edu/music">Glenn Korff School of Music</a></li>
<li><a href="https://arts.unl.edu/music/beyond-classroom">Beyond the Classroom</a></li>
<li><span aria-current="page">Ensembles</span></li>
</ol>
<!-- InstanceEndEditable -->
</nav>
</div>
<header class="dcf-page-title" id="dcf-page-title">
<!-- InstanceBeginEditable name="pagetitle" -->
<p class="dcf-subhead unl-font-sans unl-cream">Overline lorem ipsum</p>
<h1 class="dcf-uppercase unl-cream">Undergraduate Page title</h1>
<p class="dcf-subhead dcf-mt-4 unl-font-sans unl-cream">Subhead lorem ipsum</p>
<!-- InstanceEndEditable -->
</header>
<!-- InstanceBeginEditable name="herogroup1" -->
<a class="dcf-mt-5 dcf-btn dcf-btn-inverse-primary" href="#">Button 1</a>
<a class="dcf-mt-5 dcf-btn dcf-btn-inverse-secondary" href="#">Button 2</a>
<!-- InstanceEndEditable -->
</div>
<!-- InstanceBeginEditable name="herogroup2" -->
<div class="dcf-hero-group-2 dcf-w-100% dcf-overflow-hidden">
<div class="dcf-h-100% dcf-w-100% dcf-relative">
<img
class="dcf-obj-fit-cover dcf-h-100% dcf-w-100% unl-legacy-hero-bg"
sizes="100vw"
srcset="https://placehold.co/640x360 640w,
https://placehold.co/1280x720 1280w,
https://placehold.co/1920x1080 1920w,
https://placehold.co/2560x1440 2560w"
src="data:image/gif;base64,R0lGODlhAQABAAAAADs="
alt="New students flow onto the field of Memorial Stadium during the annual Tunnel Walk.">
<small class="dcf-absolute dcf-pin-bottom dcf-pin-right dcf-pt-2 dcf-pr-4 dcf-pb-2 dcf-pl-4 dcf-txt-3xs unl-font-sans unl-cream unl-legacy-hero-caption">Photo by Craig Chandler</small>
</div>
</div>
<!-- InstanceEndEditable -->
</div>
Class | Declaration or Description |
---|---|
.unl-ls-0 |
letter-spacing: 0 |
.unl-ls-1 |
letter-spacing: .01em |
.unl-ls-2 |
letter-spacing: .06em |
.unl-ls-3 |
letter-spacing: .1em |
.unl-ls-h |
slightly tighter letter-spacing to match headings |
Class | Description |
---|---|
.unl-scroll-fx-fade-in |
fade from 0 to 1 opacity when scrolled into viewport |
.unl-scroll-fx-move-left |
move from right to left when scrolled into viewport |
.unl-scroll-fx-move-right |
move from left to right when scrolled into viewport |
.unl-scroll-fx-move-up |
move up when scrolled into viewport |
.unl-scroll-fx-children-fade-in |
fade from 0 to 1 opacity all direct children when scrolled into viewport |
All of the above classes require additional JavaScript to be included once on the page.
Class | Description |
---|---|
.dcf-d-none@print |
display none when printed |