Skip to content

Commit 898a60e

Browse files
handymathis@gmail..comhandymathis@gmail..com
authored andcommitted
updated documentation
1 parent 5f27cfb commit 898a60e

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ Check out the easy to use documentation and play arround with it.
6868
- <a href="documentation/flex.md">Flex</a>
6969
- <a href="documentation/navbar.md">Navbar</a>
7070
- <a href="documentation/sidebar.md">Sidebar</a>
71+
- <a href="documentation/cards.md">Cards</a>
7172
- <a href="documentation/scripts.md">Scripts</a>

documentation/cards.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Card documentation
2+
3+
This part of the documentation will show you how to use the cards<br>
4+
of ChocolateCSS.
5+
6+
# Basic usage
7+
8+
Using the cards of ChocolateCSS is as easy as using the other components.
9+
10+
```html
11+
<div class="card-md card-dark">
12+
<div class="card-heading">Heading</div>
13+
<div class="card-body">
14+
Some example text.
15+
</div>
16+
</div>
17+
```
18+
19+
The other `div` tag defines the card. The main class `div-md`
20+
defines the size of the card.
21+
22+
There are three different card-sizes.
23+
24+
- `card-sm`
25+
- `card-md`
26+
- `card-lg`
27+
28+
<strong>NOTE:</strong> The size of the card changes, if you are resizing the window or using another device.
29+
30+
The `card-dark` defines the theme of the card. There are three different themes.
31+
32+
- `card-light`
33+
- `card-grey`
34+
- `card-dark`
35+
36+
37+
# Heading
38+
39+
Every card has its own heading. You can use it by putting following line of code into your main `card` div.
40+
41+
```html
42+
<div class="card-heading">Heading</div>
43+
```
44+
45+
The size of the heading depends on the size of the card.
46+
47+
48+
# Card body
49+
50+
The card body contains the main content of the card.
51+
52+
```html
53+
<div class="card-body">
54+
Card content
55+
</div>
56+
```

0 commit comments

Comments
 (0)