-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcard.html
More file actions
119 lines (115 loc) · 3.26 KB
/
card.html
File metadata and controls
119 lines (115 loc) · 3.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>µCSS — Card</title>
<link rel="stylesheet" href="../dist/mu.css">
</head>
<body>
<main class="container">
<hgroup>
<h1>Card</h1>
<p>Colored cards using <code><article></code> with optional header and footer.</p>
</hgroup>
<p><a href="index.html">← Back to examples</a></p>
<p><button class="btn btn-sm btn-secondary" onclick="document.documentElement.dataset.theme = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark'">Toggle dark mode</button></p>
<section>
<h2>All 11 color variants</h2>
<div class="row">
<div class="col-12 col-md-6">
<article class="card-primary">
<header>Primary</header>
Card body with primary accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-secondary">
<header>Secondary</header>
Card body with secondary accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-tertiary">
<header>Tertiary</header>
Card body with tertiary accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-contrast">
<header>Contrast</header>
Card body with contrast accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-success">
<header>Success</header>
Card body with success accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-info">
<header>Info</header>
Card body with info accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-warning">
<header>Warning</header>
Card body with warning accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-error">
<header>Error</header>
Card body with error accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-accent">
<header>Accent</header>
Card body with accent accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-pop">
<header>Pop</header>
Card body with pop accent.
<footer>Card footer</footer>
</article>
</div>
<div class="col-12 col-md-6">
<article class="card-spark">
<header>Spark</header>
Card body with spark accent.
<footer>Card footer</footer>
</article>
</div>
</div>
</section>
<section>
<h2>Body only</h2>
<article class="card-info">
<p>A simple card with content only, no header or footer.</p>
</article>
</section>
<section>
<h2>Default card (no color)</h2>
<article>
<header>Standard card</header>
This card uses the default <code><article></code> styling without any color class.
<footer>Footer</footer>
</article>
</section>
</main>
</body>
</html>