-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcomponents.html
More file actions
205 lines (205 loc) · 15 KB
/
components.html
File metadata and controls
205 lines (205 loc) · 15 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
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
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Chameleon - openSUSE Design System for Web</title><link href="https://static.opensuse.org/favicon-32.png" rel="icon" sizes="32x32" type="image/png"><link href="https://static.opensuse.org/favicon-48.png" rel="icon" sizes="48x48" type="image/png"><link href="https://static.opensuse.org/favicon-64.png" rel="icon" sizes="64x64" type="image/png"><link href="https://static.opensuse.org/favicon-96.png" rel="icon" sizes="96x96" type="image/png"><link href="https://static.opensuse.org/favicon-144.png" rel="icon" sizes="144x144" type="image/png"><link href="https://static.opensuse.org/favicon-192.png" rel="icon" sizes="192x192" type="image/png"><link href="./dist/css/chameleon.css" rel="stylesheet"><link href="./docs/css/doc.css" rel="stylesheet"></head><body class="d-flex flex-column" style="min-height:100vh;"><nav class="navbar navbar-expand-lg sticky-top"><a class="navbar-brand" href="./"><img src="https://static.opensuse.org/favicon.svg" width="30" height="30" class="d-inline-block align-top" alt="🦎" title="openSUSE">
Chameleon</a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse"><svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2.5 11.5A.5.5 0 0 1 3 11h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 3h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"></path></svg></button><div class="collapse navbar-collapse" id="navbar-collapse"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link" href="./">Home</a></li><li class="nav-item"><a class="nav-link" href="./elements.html">Elements</a></li><li class="nav-item"><a class="nav-link" href="./components.html">Components</a></li><li class="nav-item"><a class="nav-link" href="./changelog.html">Changelog</a></li><li class="nav-item"><a class="nav-link" href="https://github.com/openSUSE/chameleon">GitHub</a></li></ul></div><button class="navbar-toggler megamenu-toggler" type="button" data-toggle="collapse" data-target="#megamenu"><svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"></path></svg></button></nav><div class="megamenu collapse" id="megamenu"></div><div class="flex-fill py-5"><div class="container"><div class="row"><div class="col-lg-9 toc-scope"><h1>Components</h1><h2>Alerts</h2>
<div class="alert alert-success" role="alert">
A simple success alert with <a href="#" class="alert-link">an example link</a>
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert with <a href="#" class="alert-link">an example link</a>
</div>
<div class="alert alert-warning" role="alert">
<div class="alert-heading h5">Alert Title</div>
<p>A simple warning alert with <a href="#" class="alert-link">an example link</a></p>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
A simple info alert with <a href="#" class="alert-link">an example link</a>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<pre><code class="language-html"><div class="alert alert-success" role="alert">
A simple success alert with <a href="#" class="alert-link">an example link</a>
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert with <a href="#" class="alert-link">an example link</a>
</div>
<div class="alert alert-warning" role="alert">
<h5 class="alert-heading mb-0">Alert Title</h5>
A simple warning alert with <a href="#" class="alert-link">an example link</a>
</div>
<div class="alert alert-info alert-dismissible fade show" role="alert">
A simple info alert with <a href="#" class="alert-link">an example link</a>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
</code></pre>
<h2>Breadcrumbs</h2>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
<pre><code class="language-html"><nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
</code></pre>
<h2 id="buttons">Buttons</h2><p>Bootstrap provided several color variants of buttons. We don't recommend you
to use all of them. Instead, you should use as less variants as possible.</p><p>Only the following color variants are recommended:</p><h3 id="buttons-filled">Filled</h3><div class="my-3"><button class="btn btn-primary">Primary</button>
<button class="btn btn-secondary">Secondary</button>
<button class="btn btn-danger">Danger</button>
<button class="btn btn-link">Link</button></div><h3 id="buttons-bordered">Bordered</h3><h2 id="cards">Cards</h2><div class="row"><div class="col-md-4"><div class="card"><img class="card-img-top" src="https://source.unsplash.com/600x450"><div class="card-body"><h5 class="card-title no-toc">Card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></p><a class="btn btn-primary" href="#">Go somewhere</a></div></div></div><div class="col-md-4"><div class="card"><img class="card-img-top" src="https://source.unsplash.com/600x450"><div class="card-body"><h5 class="card-title no-toc">Card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></p><a class="btn btn-primary" href="#">Go somewhere</a></div></div></div><div class="col-md-4"><div class="card"><img class="card-img-top" src="https://source.unsplash.com/600x450"><div class="card-body"><h5 class="card-title no-toc">Card title</h5><p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p></p><a class="btn btn-primary" href="#">Go somewhere</a></div></div></div></div><h2>Dropdowns</h2>
<div class="dropdown my-3">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item active" href="#">Another action</a>
<a class="dropdown-item disabled" href="#">Something else here</a>
</div>
</div>
<pre><code class="language-html"><div class="dropdown">
<button
class="btn btn-secondary dropdown-toggle"
type="button"
id="dropdownMenuButton"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item active" href="#">Another action</a>
<a class="dropdown-item disabled" href="#">Something else here</a>
</div>
</div>
</code></pre>
<h2>Footer</h2>
<h3>With only copyright information</h3>
<footer class="footer">
<div class="container">
© 2011–2020 openSUSE contributors
</div>
</footer>
<hr>
<pre><code class="language-html"><footer class="footer">
<div class="container">
&copy; 2011&ndash;2020 openSUSE contributors
</div>
</footer>
</code></pre>
<h3>With links</h3>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-sm-6">
© 2011–2020 openSUSE contributors
</div>
<div class="col-sm-6 text-sm-right">
<ul class="list-inline mb-0">
<li class="list-inline-item"><a href="#">Source code</a></li>
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Support</a></li>
</ul>
</div>
</div>
</div>
</footer>
<hr>
<pre><code class="language-html"><footer class="footer">
<div class="container">
<div class="row">
<div class="col-sm-6">
&copy; 2011&ndash;2020 openSUSE contributors
</div>
<div class="col-sm-6 text-sm-right">
<ul class="list-inline mb-0">
<li class="list-inline-item"><a href="#">Source code</a></li>
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Support</a></li>
</ul>
</div>
</div>
</div>
</footer>
</code></pre>
<h2 id="inputs">Inputs</h2><p>Text, search, email, password inputs have the same appearance. They are just
single element components.</p><div class="mb-3"><input class="form-control mb-3" type="text" placeholder="Text input"><textarea class="form-control" placeholder="Textarea"></textarea></div><p>Selects, checkboxs, radio buttons and file inputs should use custom control.</p><div class="mb-3"><div class="custom-control custom-checkbox mb-3"><input class="custom-control-input" id="custom-check-1" type="checkbox" checked><label class="custom-control-label" for="custom-check-1">Checkbox 1</label></div><div class="custom-control custom-checkbox mb-3"><input class="custom-control-input" id="custom-check-2" type="checkbox"><label class="custom-control-label" for="custom-check-2">Checkbox 2</label></div><div class="custom-control custom-radio mb-3"><input class="custom-control-input" id="custom-radio-1" type="radio" name="custom-radio-1" value="1" checked><label class="custom-control-label" for="custom-radio-1">Radio button 1</label></div><div class="custom-control custom-radio mb-3"><input class="custom-control-input" id="custom-radio-2" type="radio" name="custom-radio-1" value="2"><label class="custom-control-label" for="custom-radio-2">Radio button 2</label></div><select class="custom-select mb-3"><option>gedit</option><option>emacs</option><option>kate</option><option selected>nano</option><option>vim</option></select><div class="custom-file"><input class="custom-file-input" id="custom-file-1" type="file"><label class="custom-file-label" for="custom-file-1">Choose file</label></div></div><h2>List Group</h2><p>Please don't use contextual classes.</p><ul class="list-group"><li class="list-group-item active">Cras justo odio</li><li class="list-group-item">Dapibus ac facilisis in</li><li class="list-group-item">Morbi leo risus</li><li class="list-group-item">Porta ac consectetur ac</li><li class="list-group-item">Vestibulum at eros</li></ul><h2>Modals</h2><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><div class="modal-title">Modal title</div><button class="close" data-dismiss="modal">×</button></div><div class="modal-body"><p>Modal body text goes here.</p></div><div class="modal-footer"><button class="btn btn-secondary" data-dismiss="modal">Close</button><button class="btn btn-primary">Save changes</button></div></div></div><h2>Tables</h2>
<div class="table-responsive">
<table class="table">
<caption>List of users</caption>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<pre><code class="language-html"><div class="table-responsive">
<table class="table">
<caption>
List of users
</caption>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
</code></pre>
</div><div class="toc-sidebar col-lg-3 d-none d-lg-block"><div class="toc"></div></div></div></div></div><footer class="footer"><div class="container">© 2017–2021 openSUSE contributors</div></footer><script src="./dist/js/jquery.slim.js"></script><script src="./dist/js/bootstrap.bundle.js"></script><script src="./dist/js/chameleon.js"></script><script src="./docs/js/doc.js"></script></body></html>