Introduction
Build fast and responsive websites with Dation CSS. Getting started is really quick and easy. Just copy and the below code in the head of your html document
Ideally the above link should be the top most link among your css links so that you can override it according to your taste by putting your custom css below it.
Avatar
Image avatars can be created by adding avatar
class to the <img>
element
You can change the size of the avatar with the height
and width
CSS
properties.
For perfectly rounded images make sure that height and width of the image are equal.
Badge
Badges can be created by adding badge
and top/bottom
class to the element.
Badge on Icons
Adding a class top
to a <div>
will make the badge go on top relative to
the icon.
Badge on Avatars
Adding a class bottom
to a <div>
will make the badge go tp bottom
relative to the avatar. This is useful to show if a user is online or not
In addition to the badge
class, adding classes online
or offline
will change the color of the badges as shown above.
Card
A card is a content container. Every card should have a card
class. Dation provides you with
different types of cards.
Classic Card
To add a classic card, add card-classic
class along with the card
class.
Modern Card
Modern cards have cureved edges which gives a modern look. Adding card-modern
class along
with card
will give you a modern card. Adding shadow
to the card will give it
a shadow.
Text Card
These are text only cards without any images. Adding card-text
along with card
class will give you text card.
Heading
Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur quibusdam voluptatum assumenda, est tempore quasi qui dolorum autem exercitationem perspiciatis aspernatur fuga minima. Facilis, repellendus! Odio, laboriosam nulla. Aut, explicabo!
Images
Images are an essential part for any website. Adding img
class will make them responsive. If
you want round images, add avatar
class. For perfectly round images make sure the height
and width of the image are same.
Textbox
Textbox are used to take input from the user. Adding input-text
class to the
<input>
element will give you a modern and responsive textbox