-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.html
292 lines (292 loc) · 14 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/prism.css" />
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<nav class="nav-top fixed-top bg-dark text-light">
<div class="nav-brand">
<div class="nav-item">
FOX_CSS
</div>
</div>
<div class="nav-menu">
<div class="nav-left">
<a href="index.html" class="nav-item">Home</a>
<div class="dropdown-hover">
<div class="nav-item dropdown-toggle">Elements</div>
<div
class="dropdown-menu bg-dark"
aria-labelledby="dropdownMenuButton"
>
<a class="nav-item" href="button.html">Buttons</a>
<a class="nav-item" href="alert.html">Alerts</a>
</div>
</div>
<div class="dropdown-hover">
<div class="nav-item dropdown-toggle">Components</div>
<div
class="dropdown-menu bg-dark"
aria-labelledby="dropdownMenuButton"
>
<a class="nav-item" href="form.html">Forms</a>
<a class="nav-item" href="card.html">Cards</a>
<a class="nav-item" href="nav.html">Nav</a>
</div>
</div>
</div>
<div class="nav-right">
<div class="nav-item">
<button class="btn">Button</button>
</div>
</div>
</div>
</nav>
<div class="flexwrap mfixed-top padded">
<div class="flexwrap-col flexgrow">
<article class="intro">
<div class="intro-title">Cards</div>
<div class="intro-subtitle">FOX_CSS card work in a similar way to Bootstrap cards. With multiple variant and options that act like puzzle pieces.</div>
</article>
<h2>Example</h2>
<div class="example">
<div class="demo">
<div class="card" style="width: 300px;">
<div class="card-media">
<img
src="https://cdn.shortpixel.ai/client/q_glossy,ret_img,w_800/https://www.testingxperts.com/wp-content/uploads/2019/02/placeholder-img.jpg"
alt=""
/>
</div>
<div class="card-body">
<h4 class="card-title">Card with Media</h4>
<p class="card-text">
You can also embed media at the top of the cards.
</p>
</div>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card" style="width: 300px;">
<div class="card-media">
<img
src="https://cdn.shortpixel.ai/client/q_glossy,ret_img,w_800/https://www.testingxperts.com/wp-content/uploads/2019/02/placeholder-img.jpg"
alt=""
/>
</div>
<div class="card-body">
<h4 class="card-title">Card with Media</h4>
<p class="card-text">
You can also embed media at the top of the cards.
</p>
</div>
</div>
</code></pre>
</div>
</div>
<h2>Content Types</h2>
<h3>Card Body</h3>
<div class="example">
<div class="demo">
<div class="card">
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card">
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
</div>
</code></pre>
</div>
</div>
<h3>Titles</h3>
<div class="example">
<div class="demo">
<div class="card" style="width: 300px;">
<div class="card-body">
<h4 class="card-title">Card Title</h4>
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card" style="width: 300px;">
<div class="card-body">
<h4 class="card-title">...</h4>
<p class="card-text">...</p>
</div>
<div class="card-footer">
<!-- using this without 'card-footer-item' will cause the text to be left aligned. -->
<div class="card-footer-item">...</div>
</div>
</div>
</code></pre>
</div>
</div>
<h3>Images</h3>
<div class="example">
<div class="demo">
<div class="card" style="width: 300px;">
<div class="card-media">
<img
src="https://cdn.shortpixel.ai/client/q_glossy,ret_img,w_800/https://www.testingxperts.com/wp-content/uploads/2019/02/placeholder-img.jpg"
alt=""
/>
</div>
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card" style="width: 300px;">
<div class="card-media">
<img
src="..."
alt=""
/>
</div>
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
</div>
</code></pre>
</div>
</div>
<h3>Headers and Footers</h3>
<div class="example">
<div class="demo">
<div class="card" style="width: 300px;">
<div class="card-header">
<p class="card-header-title">Header</p>
</div>
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
<div class="card-footer">
Some footer text.
</div>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card" style="width: 300px;">
<div class="card-header">
<p class="card-header-title">Header</p>
</div>
<div class="card-body">
<p class="card-text">
The quick brown fox jumps over the lazy dog.
</p>
</div>
<div class="card-footer">
Some footer text.
</div>
</div>
</code></pre>
</div>
</div>
<h2>List Groups</h2>
<div class="example">
<div class="demo">
<div class="card" style="width: 300px;">
<div class="card-header">
<p class="card-header-title">List Card</p>
</div>
<ul class="list-group">
<a href="index.html" class="list-group-item">
Card
</a>
<ul class="list-group-item flexwrap-col">
<a href="index.html" class="list-group-item">
Dropdown
</a>
<a href="index.html" class="list-group-item">
<span class="list-group-item-sub">drop item 1</span>
</a>
<a href="index.html" class="list-group-item">
<span class="list-group-item-sub">drop item 2</span>
</a>
</ul>
<a href="form.html" class="list-group-item">
Form
</a>
<a href="nav.html" class="list-group-item">
Navigation
</a>
</ul>
</div>
</div>
<div class="code">
<pre><code class="language-html">
<div class="card" style="width: 300px;">
<div class="card-header">
<p class="card-header-title">List Card</p>
</div>
<ul class="list-group">
<a href="index.html" class="list-group-item">
Card
</a>
<ul class="list-group-item flexwrap-col">
<a href="index.html" class="list-group-item">
Dropdown
</a>
<a href="index.html" class="list-group-item">
<span class="list-group-item-sub">drop item 1</span>
</a>
<a href="index.html" class="list-group-item">
<span class="list-group-item-sub">drop item 2</span>
</a>
</ul>
<a href="form.html" class="list-group-item">
Form
</a>
<a href="nav.html" class="list-group-item">
Navigation
</a>
</ul>
</div>
</code></pre>
</div>
</div>
</div>
<div class="toc" id="ToC">
</div>
</div>
<script src="js/dropdown.js"></script>
<script src="js/toc.js"></script>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/prism.js"></script>
<script>
document.querySelectorAll('code').forEach(function(element) {
element.innerHTML = element.innerHTML
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''');
});
</script>
</body>
</html>