Insert anything you want inside this modal dialog.
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Ipsum II
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet luctus venenatis lectus magna. Facilisis gravida neque convallis a cras semper. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Erat imperdiet sed euismod nisi porta lorem.
Cirrus offers an extensive and growing library of components that can be easily integrated into any webpage. Have elegantly designed components ranging from cards to tabs right at your finger tips. Jump other sections from the jump menu at the top right.
Cards in Cirrus are designed to provide an easy and flexible way for developers to present data in an elegant fashion.
Deer
By Teddy Kelley
This is where the caption text will go. This text is contained in a content div and written in paragraphs with the same styling.
<div class="card">
<div class="card-container">
<div class="card-image" style="background-image: url(https://images.url.com)"></div>
<div class="title-container">
<p class="title">Deer</p><span class="subtitle">By Teddy Kelley</span>
</div>
</div>
<div class="content">
<p>This is where the caption text will go. This text is contained in a content div and written in paragraphs with the same styling.</p>
</div>
<div class="action-bar u-center">
<button class="btn">SHARE</button>
<button class="btn">LEARN MORE</button>
</div>
</div>
Card Outline
Below is a simple breakdown of how a standard card is structured. The card-image is wrapped inside the card-container with the title and subtitle nested inside the title-container.
Title
Subtitle
Text and other content is embedded in the content div here. Embed the card-image in the card-container above.
<a href="#">
<div class="card">
<div class="content">
<img src="https://maxcdn.icons8.com/Share/icon/Logos//chrome1600.png" class="level" id="projectlogo" />
<p id="projectname" class="title level">Google Chrome</p>
<p>Hello here is some text for this card wrapped inside a link.</p>
</div>
</div>
</a>
Animated Card
Cirrus also comes with different components that can interact differently such as this card design with a hover animation. Compared to the card above, the display for the avatar, title text, and buttons are all handled by the tile.
There are a couple of new and different classes to know about before using an animated card:
An animated card must have the slide-up class along with the card class.
To display an image, it is recommended to create a card-image div nested inside a card-container div.
Unlike the standard card above, the title and subtitle are placed in the mobile-title div below the card-container.
The content or text of the card is then placed inside a standard content div now with the card-body class.
Following the steps above, the resulting card should be similar to the one below.
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
<div class="card slide-up">
<div class="card-container">
<div class="card-image" style="background-image: url(https://unsplash.it/640/480?random&blur)"></div>
</div>
<div class="mobile-title">
<div class="content">
<div class="tile">
<div class="tile__container">
<p class="tile__title">Kangaroo Valley Safari</p>
<p class="tile__subtitle">By John Doe</p>
</div>
</div>
</div>
</div>
<div class="card-body content">
<p>Located two hours south of Sydney in the Southern Highland of New South Wales...</p>
</div>
<div class="card-footer content">
2 min. read 22 comments
</div>
</div>
Grouping Cards
Need to display multiple cards at once? Worried about having to resize each card? With Cirrus's grid system, you can specify how many cards will be used in each row and your cards will automatically adjust and fill each cell.
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Another card design with the same CSS, different structure.
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Kangaroo Valley Safari
By John Doe
Located two hours south of Sydney in the Southern Highland of New South Wales...
Equal Heights
Added
0.5.5
You may have noticed that the heights of the cards are not the same if the length of the content is different. To fix this, you can add the u-flex u-flex-column h-100 classes to card.
Note that this does not work with the card with the animated card above.
Before
Title
Subtitle
Text and other content is embedded in the content div here. Embed the card-image in the card-container above.
Title
Subtitle
Text and other content is embedded in the content div here. Embed the card-image in the card-container above.
Title
Subtitle
After
Title
Subtitle
Text and other content is embedded in the content div here. Embed the card-image in the card-container above.
Title
Subtitle
Text and other content is embedded in the content div here. Embed the card-image in the card-container above.
Title
Subtitle
Twitter Card
Below is an example that shows how you can use cards to create any design you want, including tweet cards from Twitter.
Tiles are the flexbox alternative to cards that tile child elements horizontally and more closely resemble horizontal cards in Android. These get displayed in card slide-up to show an avatar, text, or buttons.
Robert Downey Jr. shared a post from Stark Industries.
Robert shared: 'Stark Industries is proud to announce its brand new suit.'
23 minutes ago
Robert Downey Jr. shared a post from Stark Industries.
Robert shared: 'Stark Industries is proud to announce its brand new suit.'
23 minutes ago
<div class="tile">
<div class="tile__icon">
<figure class="avatar">
<img src="https://www.seoclerk.com/pics/319222-1IvI0s1421931178.png">
</figure>
</div>
<div class="tile__container">
<p class="tile__title u-no-margin">Robert Downey Jr. shared a post from <b>Stark Industries</b>.</p>
<p class="tile__subtitle u-no-margin">Robert shared: 'Stark Industries is proud to announce its brand new suit.'</p>
<span class="info">23 minutes ago</span>
<p class="tile__buttons u-no-margin">
<button class="btn-primary btn-tiny uppercase">View</button>
<button class="btn-tiny uppercase">Dismiss</button>
</p>
</div>
</div>
In the two examples above, the first one is your standard tile with the tile parent container and tile__container for other elements images, text, buttons, etc. The tile__buttons class could be used also to display buttons horizontally. The card tile at the bottom vertically aligns all elements to be vertically centered giving a more balanced appearance.
Robert Downey Jr. just poked you.
Poke him back or view on Facebook.
6 seconds ago
Polarity.exe
953KB / 1.1MB - 3 seconds...
Meeting Scheduled
You have a scheduled meeting in 1 hour.
If you require some extra padding around your avatar image, add the padded class to the avatar image.
Having the image cover a parent element or just being contained in it can be achived by using the img-cover and img-contain classes respectively. These are particularly helpful when the image or parent has a fixed height (below is an example with a fixed height of 350px).
Figures are simply containers for an images that would be positioned independently from the main flow of the page.
To add a caption and separate the image from the rest of the page, surround it with a figure tag with the fig class. This allows the image to span a given area while leaving space underneath it for a simple caption.
<figure class="fig">
<img src="img/yosemite-falls.png" />
<figcaption class="fig-caption u-text-center">
Yosemite Valley, United States
</figcaption>
</figure>
Videos
As for videos, responsiveness can be achieved by adding the media-stretch class to the parent div holding the video.
To change the aspect ratio of videos, Cirrus introduces modifiers rat-4-3 and rat-1-1 to change aspect ratios with the media-stretch class.
A useful class for styling user profile pictures. This is used within many other components including the tile. To provide some flexibility, Cirrus adds a data-text attribute to specify some text in place of an image if it is not available.
As with many other components in Cirrus, avatar comes with 4 other size modifiers including avatar--xsmall, avatar--small, avatar--large, and avatar--xlarge.
Modals makes prompts simple for any website or app.
Setting up a modal is quite simple. To start, create a div with the modal class anywhere on the page. The next crucial step is to specify an id that you will use to reference the modal dialog with (from a button for example).
For a close button, you must specify an id to change the closing behavior.
Modal dialogs come in 3 pre-defined sizes, each corresponding to small, medium, and large viewports using the modal-small, modal, and modal-large class selectors respectively.
Animations
Spice up your modal dialogs with a couple of animations.
Accessibility
To be complaint with WAI-ARIA Best Practices, you can easily include this snippet of JavaScript to close all dialogs when hitting the escape key.
A friendly way to notify users of updates or upcoming events.
The sever is currently taking a nap.
Come back in a few hours or press the refresh button.
<div class="placeholder">
<div class="placeholder-icon">
<span class="icon">
<i class="fa fa-wrapper fa-coffee x-large"></i>
</span>
</div>
<h6 class="placeholder-title">The sever is currently taking a nap.</h6>
<div class="placeholder-subtitle">Come back in a few hours or press the refresh button.</div>
<div class="placeholder-commands u-center">
<div class="btn-container">
<button class="btn-primary">Refresh</button>
</div>
<div class="btn-container">
<button>Home</button>
</div>
</div>
</div>
Outline
placeholder is the base class for this component.
placeholder-icon for displaying icons/glyphs
placeholder-title to show the main title.
place-subtitle provides extra context to the title.
placeholder-commands wraps around other controls like buttons or inputs.
Integrate FontAwesome glyphs into your tabs. Cirrus will automatically align the glyphs to the left or right depending if the glyph or text comes first.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Ipsum II
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet luctus venenatis lectus magna. Facilisis gravida neque convallis a cras semper. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Erat imperdiet sed euismod nisi porta lorem.
Normal Dialog
Max-width: 40rem
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Ipsum II
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet luctus venenatis lectus magna. Facilisis gravida neque convallis a cras semper. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Erat imperdiet sed euismod nisi porta lorem.
Large Dialog
Max-width: 60rem
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Ipsum II
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sit amet luctus venenatis lectus magna. Facilisis gravida neque convallis a cras semper. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Erat imperdiet sed euismod nisi porta lorem.
Dropdown Dialog
modal-animated--dropdown
<div class="modal modal-animated--dropdown" >
<!-- your content -->
</div>
Zoom In Dialog
modal-animated--zoom-in
<div class="modal modal-animated--zoom-in" >
<!-- your content -->
</div>
Zoom Out Dialog
modal-animated--zoom-out
<div class="modal modal-animated--zoom-out" >
<!-- your content -->
</div>