-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.html
88 lines (74 loc) · 3.27 KB
/
card.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DS in CSS - Card</title>
<link rel="shortcut icon" href="https://cdn.casebook.net/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="./css/styles.css">
</head>
<body class="cb-baseline">
<main class="cb-main">
<h1 class="cb-h4 cb-bolder"><a class="cb-link" href="./index.html">DS in CSS</a></h1>
<h2 class="cb-h5 cb-margin-bottom-large">
Cards
</h2>
<p>Style an element like a Casebook card with the class <code class="cb-inline-code">.cb-card</code>, and
make its first child a card header by giving it the class <code
class="cb-inline-code">.cb-card-header</code></p>
<div class="cb-card cb-margin-default">
<div class="cb-card-header">Card header</div>
<div>Greetings, I'm a card.</div>
</div>
<div
class="cb-code-block-container">
<pre><div class="cb-card cb-margin-default">
<div class="cb-card-header">Card header</div>
<div>Greetings, I'm a card.</div>
</div></pre>
</div>
<h3 id="header-border" class="cb-h6 cb-margin-bottom-large cb-margin-top-large">Card header with bottom border</h3>
<p>For a card header with a bottom border, add the class <code class="cb-inline-code">.cb-border</code> to
the card header</p>
<div class="cb-card cb-margin-default">
<div class="cb-card-header cb-border">Card header with border</div>
<div>Greetings, I'm a card.</div>
</div>
<div
class="cb-code-block-container">
<pre><div class="cb-card cb-margin-default">
<div class="cb-card-header cb-border">Card header with border</div>
<div>Greetings, I'm a card.</div>
</div></pre>
</div>
<h3 id="transparent" class="cb-h6 cb-margin-bottom-large cb-margin-top-large">Transparent card</h3>
<p>Make a card transparent by adding the class <code class="cb-inline-code">.cb-transparent</code> to the
card</p>
<div class="cb-card cb-margin-default cb-transparent">
<div class="cb-card-header cb-border">Card header with border inside a transparent card</div>
<div>Greetings, I'm a transparent card.</div>
</div>
<div
class="cb-code-block-container">
<pre><div class="cb-card cb-margin-default cb-transparent">
<div class="cb-card-header cb-border">Card header with border inside a transparent card</div>
<div>Greetings, I'm a transparent card.</div>
</div></pre>
</div>
<h3 id="summary" class="cb-h6 cb-margin-bottom-large cb-margin-top-large">Summary card</h3>
<p>Make a summary card by adding the class <code class="cb-inline-code">.cb-summary</code></p>
<div class="cb-card cb-summary cb-margin-default">
<div class="cb-card-header">Summary card</div>
<div>Greetings, I'm a summary card.</div>
</div>
<div
class="cb-code-block-container">
<pre><div class="cb-card cb-summary cb-margin-default">
<div class="cb-card-header">Summary card</div>
<div>Greetings, I'm a summary card.</div>
</div></pre>
</div>
</main>
</body>
</html>