-
Notifications
You must be signed in to change notification settings - Fork 0
/
chip.html
168 lines (156 loc) · 7.15 KB
/
chip.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!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 - Chip</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">
Chips
</h2>
<p>You can style an element like a Casebook chip with the class <code class="cb-inline-code">.cb-chip</code>.
By default this will be styled like the standard chip variant.</p>
<p>Add a color to the chip by adding <code class="cb-inline-code">.cb-active</code>, <code
class="cb-inline-code">.cb-alert</code>, <code class="cb-inline-code">.cb-caution</code>, <code
class="cb-inline-code">.cb-neutral-ocean</code>, <code class="cb-inline-code">.cb-neutral-heather</code>, or
<code class="cb-inline-code">.cb-neutral-patina</code> to its classes.</p>
<div class="cb-margin-default-vertical cb-flex cb-gap-dense cb-flex-wrap-wrap">
<div class="cb-chip">
Chip
</div>
<div class="cb-chip cb-active">
Active chip
</div>
<div class="cb-chip cb-alert">
Alert chip
</div>
<div class="cb-chip cb-caution">
Caution chip
</div>
<div class="cb-chip cb-neutral-ocean">
Neutral ocean chip
</div>
<div class="cb-chip cb-neutral-heather">
Neutral heather chip
</div>
<div class="cb-chip cb-neutral-patina">
Neutral patina chip
</div>
</div>
<div class="cb-code-block-container">
<pre><div class="cb-chip">Chip</div>
<div class="cb-chip cb-active">Active chip</div>
<div class="cb-chip cb-alert">Alert chip</div>
<div class="cb-chip cb-caution">Caution chip</div>
<div class="cb-chip cb-neutral-ocean">Neutral ocean chip</div>
<div class="cb-chip cb-neutral-heather">Neutral heather chip</div>
<div class="cb-chip cb-neutral-patina">Neutral patina chip</div></pre>
</div>
<h3 id="outlined" class="cb-h6 cb-margin-bottom-large cb-margin-top-large">Outlined chips</h3>
<p>Make a chip outlined by adding the class <code class="cb-inline-code">.cb-outlined</code></p>
<div class="cb-margin-default-vertical cb-flex cb-gap-dense cb-flex-wrap-wrap">
<div class="cb-chip cb-outlined">
Outlined chip
</div>
<div class="cb-outlined cb-chip cb-active">
Active outlined chip
</div>
<div class="cb-outlined cb-chip cb-alert">
Alert outlined chip
</div>
<div class="cb-outlined cb-chip cb-caution">
Caution outlined chip
</div>
<div class="cb-outlined cb-chip cb-neutral-ocean">
Neutral ocean outlined chip
</div>
<div class="cb-outlined cb-chip cb-neutral-heather">
Neutral heather outlined chip
</div>
<div class="cb-outlined cb-chip cb-neutral-patina">
Neutral patina outlined chip
</div>
</div>
<div class="cb-code-block-container">
<pre><div class="cb-chip cb-outlined">Outlined chip</div>
<div class="cb-outlined cb-chip cb-active">Active outlined chip</div>
<div class="cb-outlined cb-chip cb-alert">Alert outlined chip</div>
<div class="cb-outlined cb-chip cb-caution">Caution outlined chip</div>
<div class="cb-outlined cb-chip cb-neutral-ocean">Neutral ocean outlined chip</div>
<div class="cb-outlined cb-chip cb-neutral-heather">Neutral heather outlined chip</div>
<div class="cb-outlined cb-chip cb-neutral-patina">Neutral patina outlined chip</div></pre>
</div>
<h3 id="compact" class="cb-h6 cb-margin-bottom-large cb-margin-top-large">Compact chips</h3>
<p>Make a chip compact by adding the class <code class="cb-inline-code">.cb-compact</code></p>
<div class="cb-margin-default-vertical cb-flex cb-gap-dense cb-flex-wrap-wrap">
<div class="cb-chip cb-compact">
Compact chip
</div>
<div class="cb-chip cb-active cb-compact">
Active compact chip
</div>
<div class="cb-chip cb-alert cb-compact">
Alert compact chip
</div>
<div class="cb-chip cb-caution cb-compact">
Caution compact chip
</div>
<div class="cb-chip cb-neutral-ocean cb-compact">
Neutral ocean compact chip
</div>
<div class="cb-chip cb-neutral-heather cb-compact">
Neutral heather compact chip
</div>
<div class="cb-chip cb-neutral-patina cb-compact">
Neutral patina compact chip
</div>
</div>
<div class="cb-margin-default-vertical cb-flex cb-gap-dense cb-flex-wrap-wrap">
<div class="cb-chip cb-compact cb-outlined">
Compact outlined chip
</div>
<div class="cb-chip cb-active cb-compact cb-outlined">
Active compact outlined chip
</div>
<div class="cb-chip cb-alert cb-compact cb-outlined">
Alert compact outlined chip
</div>
<div class="cb-chip cb-caution cb-compact cb-outlined">
Caution compact outlined chip
</div>
<div class="cb-chip cb-neutral-ocean cb-compact cb-outlined">
Neutral ocean compact outlined chip
</div>
<div class="cb-chip cb-neutral-heather cb-compact cb-outlined">
Neutral heather compact outlined chip
</div>
<div class="cb-chip cb-neutral-patina cb-compact cb-outlined">
Neutral patina compact outlined chip
</div>
</div>
<div class="cb-code-block-container">
<pre
class="cb-caption cb-monospace fullwidth cb-no-margin"><div class="cb-chip cb-compact">Compact chip</div>
<div class="cb-chip cb-active cb-compact">Active compact chip</div>
<div class="cb-chip cb-alert cb-compact">Alert compact chip</div>
<div class="cb-chip cb-caution cb-compact">Caution compact chip</div>
<div class="cb-chip cb-neutral-ocean cb-compact">Neutral ocean compact chip</div>
<div class="cb-chip cb-neutral-heather cb-compact">Neutral heather compact chip</div>
<div class="cb-chip cb-neutral-patina cb-compact">Neutral patina compact chip</div>
<div class="cb-chip cb-compact cb-outlined">Compact outlined chip</div>
<div class="cb-chip cb-active cb-compact cb-outlined">Active compact outlined chip</div>
<div class="cb-chip cb-alert cb-compact cb-outlined">Alert compact outlined chip</div>
<div class="cb-chip cb-caution cb-compact cb-outlined">Caution compact outlined chip</div>
<div class="cb-chip cb-neutral-ocean cb-compact cb-outlined">Neutral ocean compact outlined chip</div>
<div class="cb-chip cb-neutral-heather cb-compact cb-outlined">Neutral heather compact outlined chip</div>
<div class="cb-chip cb-neutral-patina cb-compact cb-outlined">Neutral patina compact outlined chip</div></pre>
</div>
</main>
</body>
</html>