@tabler/core 1.0.0-beta23 → 1.0.0-beta24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/css/demo.css +2 -2
- package/dist/css/demo.min.css +2 -2
- package/dist/css/demo.rtl.css +2 -2
- package/dist/css/demo.rtl.min.css +2 -2
- package/dist/css/tabler-flags.css +2 -2
- package/dist/css/tabler-flags.min.css +2 -2
- package/dist/css/tabler-flags.rtl.css +2 -2
- package/dist/css/tabler-flags.rtl.min.css +2 -2
- package/dist/css/tabler-marketing.css +4751 -0
- package/dist/css/tabler-marketing.min.css +9 -0
- package/dist/css/tabler-marketing.rtl.css +4751 -0
- package/dist/css/tabler-marketing.rtl.min.css +9 -0
- package/dist/css/tabler-payments.css +2 -2
- package/dist/css/tabler-payments.min.css +2 -2
- package/dist/css/tabler-payments.rtl.css +2 -2
- package/dist/css/tabler-payments.rtl.min.css +2 -2
- package/dist/css/tabler-socials.css +2 -2
- package/dist/css/tabler-socials.min.css +2 -2
- package/dist/css/tabler-socials.rtl.css +2 -2
- package/dist/css/tabler-socials.rtl.min.css +2 -2
- package/dist/css/tabler-vendors.css +23 -18
- package/dist/css/tabler-vendors.min.css +3 -3
- package/dist/css/tabler-vendors.rtl.css +23 -18
- package/dist/css/tabler-vendors.rtl.min.css +3 -3
- package/dist/css/tabler.css +1296 -1505
- package/dist/css/tabler.min.css +4 -4
- package/dist/css/tabler.rtl.css +1296 -1505
- package/dist/css/tabler.rtl.min.css +4 -4
- package/dist/js/demo-theme.js +2 -2
- package/dist/js/demo-theme.min.js +2 -2
- package/dist/js/demo.js +2 -2
- package/dist/js/demo.min.js +2 -2
- package/dist/js/tabler.esm.js +2 -2
- package/dist/js/tabler.esm.min.js +2 -2
- package/dist/js/tabler.js +2 -2
- package/dist/js/tabler.min.js +2 -2
- package/docs/illustrations/introduction/contents.mdx +77 -0
- package/docs/illustrations/introduction/customization.mdx +0 -11
- package/docs/illustrations/introduction/license.mdx +22 -0
- package/docs/ui/components/alerts.mdx +38 -114
- package/docs/ui/components/badges.mdx +57 -75
- package/docs/ui/components/charts.mdx +13 -23
- package/docs/ui/components/countup.mdx +73 -43
- package/docs/ui/components/dropzone.mdx +37 -6
- package/docs/ui/components/icons.mdx +49 -11
- package/docs/ui/components/inline-player.mdx +28 -2
- package/docs/ui/components/modals.mdx +40 -10
- package/docs/ui/components/offcanvas.mdx +55 -0
- package/docs/ui/components/placeholder.mdx +16 -17
- package/docs/ui/components/range-slider.mdx +0 -1
- package/docs/ui/components/statuses.mdx +12 -0
- package/docs/ui/components/steps.mdx +59 -17
- package/docs/ui/components/tinymce.mdx +0 -1
- package/docs/ui/components/vector-maps.mdx +170 -0
- package/docs/ui/forms/form-elements.mdx +0 -1
- package/docs/ui/getting-started/browser-support.mdx +8 -2
- package/docs/ui/getting-started/how-to-contribute.mdx +96 -0
- package/docs/ui/getting-started/installation.mdx +67 -0
- package/docs/ui/getting-started/license.mdx +30 -0
- package/docs/ui/layout/navbars.mdx +106 -0
- package/docs/ui/layout/navs-tabls.mdx +187 -0
- package/docs/ui/layout/page-layouts.mdx +8 -5
- package/docs/ui/utilities/borders.mdx +67 -48
- package/docs/ui/utilities/cursors.mdx +20 -50
- package/docs/ui/utilities/interactions.mdx +2 -2
- package/docs/ui/utilities/margins.mdx +234 -0
- package/docs/ui/utilities/vertical-align.mdx +66 -0
- package/docs/ui/utilities/visually-hidden.mdx +12 -0
- package/package.json +7 -5
- package/src/scss/_utilities-marketing.scss +209 -0
- package/src/scss/_utilities.scss +5 -9
- package/src/scss/_variables-marketing.scss +0 -0
- package/src/scss/_variables.scss +55 -18
- package/src/scss/layout/_animations.scss +2 -1
- package/src/scss/layout/_navbar.scss +0 -1
- package/src/scss/marketing/_browser.scss +67 -0
- package/src/scss/marketing/_core.scss +8 -0
- package/src/scss/marketing/_filters.scss +0 -0
- package/src/scss/marketing/_hero.scss +69 -0
- package/src/scss/marketing/_pricing.scss +111 -0
- package/src/scss/marketing/_sections.scss +124 -0
- package/src/scss/marketing/_shape.scss +31 -0
- package/src/scss/mixins/_mixins.scss +2 -2
- package/src/scss/tabler-marketing.scss +13 -0
- package/src/scss/tabler-vendors.scss +1 -0
- package/src/scss/ui/_buttons.scss +7 -7
- package/src/scss/ui/_images.scss +4 -0
- package/src/scss/ui/_lists.scss +11 -15
- package/src/scss/utils/_colors.scss +1 -1
- package/src/scss/vendor/_dropzone.scss +3 -3
- package/src/scss/vendor/_typed.scss +4 -0
- package/docs/ui/getting-started/development.mdx +0 -32
package/dist/js/demo-theme.js
CHANGED
package/dist/js/demo.js
CHANGED
package/dist/js/demo.min.js
CHANGED
package/dist/js/tabler.esm.js
CHANGED
package/dist/js/tabler.js
CHANGED
package/dist/js/tabler.min.js
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Contents
|
|
3
|
+
description: Explore Tabler Illustrations folder structure
|
|
4
|
+
summary: The Tabler Illustrations package is thoughtfully structured to provide designers and developers with an array of high-quality assets. This guide explores the various folders and their contents, helping users make the most of these resources.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The Tabler Illustrations package offers a wide range of visual assets designed to meet the needs of modern web and graphic design. These illustrations are not only aesthetically pleasing but also highly versatile, supporting various formats and themes for seamless integration into different projects.
|
|
8
|
+
|
|
9
|
+
## Folder Structure
|
|
10
|
+
|
|
11
|
+
Once downloaded, unzip the compressed folder and you’ll see something like this:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
tabler-illustrations/
|
|
15
|
+
├── eps/
|
|
16
|
+
| ├── dark/
|
|
17
|
+
| └── light/
|
|
18
|
+
├── figma/
|
|
19
|
+
├── pdf/
|
|
20
|
+
| ├── dark/
|
|
21
|
+
| └── light/
|
|
22
|
+
├── png/
|
|
23
|
+
| ├── dark/
|
|
24
|
+
| └── light/
|
|
25
|
+
├── png-background/
|
|
26
|
+
| ├── dark/
|
|
27
|
+
| └── light/
|
|
28
|
+
├── svg/
|
|
29
|
+
| ├── dark/
|
|
30
|
+
| └── light/
|
|
31
|
+
├── svg-css-autodark/
|
|
32
|
+
└── svg-css-variables/
|
|
33
|
+
├── dark/
|
|
34
|
+
└── light/
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Understanding the File Structure in Tabler Illustrations
|
|
38
|
+
|
|
39
|
+
The **Tabler Illustrations** package is organized into a clear and efficient folder structure to streamline the use of its high-quality assets. Below is a breakdown of its key directories:
|
|
40
|
+
|
|
41
|
+
### 1. Vector Files: `eps/`
|
|
42
|
+
This folder contains EPS files for scalable vector illustrations.
|
|
43
|
+
- `dark/`: Dark-themed illustrations.
|
|
44
|
+
- `light/`: Light-themed illustrations.
|
|
45
|
+
|
|
46
|
+
### 2. Design File: `figma/`
|
|
47
|
+
This folder contains a Figma file, perfect for designers who work directly in Figma.
|
|
48
|
+
|
|
49
|
+
### 3. Document Files: `pdf/`
|
|
50
|
+
This folder contains PDF files, ideal for print or presentation use.
|
|
51
|
+
- `dark/`: Dark-themed illustrations.
|
|
52
|
+
- `light/`: Light-themed illustrations.
|
|
53
|
+
|
|
54
|
+
### 4. Transparent Images: `png/`
|
|
55
|
+
This folder stores PNG files with transparent backgrounds at 1600 × 1200px resolution.
|
|
56
|
+
- `dark/`: Dark-themed illustrations.
|
|
57
|
+
- `light/`: Light-themed illustrations.
|
|
58
|
+
|
|
59
|
+
### 5. Background Images: `png-background/`
|
|
60
|
+
This folder contains PNG files with a dark background for enhanced contrast.
|
|
61
|
+
- `dark/`: Dark-themed illustrations.
|
|
62
|
+
- `light/`: Light-themed illustrations.
|
|
63
|
+
|
|
64
|
+
### 6. Scalable Vector Graphics: `svg/`
|
|
65
|
+
This folder includes SVG files for scalable and customizable vector graphics.
|
|
66
|
+
- `dark/`: Dark-themed illustrations.
|
|
67
|
+
- `light/`: Light-themed illustrations.
|
|
68
|
+
|
|
69
|
+
### 7. Adaptive Graphics: `svg-css-autodark/`
|
|
70
|
+
This folder contains SVG files prepared to automatically adjust their colors based on user settings, providing a dynamic and adaptive visual experience.
|
|
71
|
+
|
|
72
|
+
### 8. Themed Graphics: `svg-css-variables/`
|
|
73
|
+
This folder contains SVG files using CSS variables for flexible theming.
|
|
74
|
+
- `dark/`: Dark-themed illustrations.
|
|
75
|
+
- `light/`: Light-themed illustrations.
|
|
76
|
+
|
|
77
|
+
This structure ensures easy access to various formats and themes, making Tabler Illustrations a versatile tool for developers and designers alike.
|
|
@@ -206,7 +206,6 @@ Tabler Illustrations uses `--tblr-primary` as a fallback color if `--tblr-illust
|
|
|
206
206
|
</svg>
|
|
207
207
|
</div>
|
|
208
208
|
</div>
|
|
209
|
-
|
|
210
209
|
<div class="row g-2">
|
|
211
210
|
<div class="col-auto">
|
|
212
211
|
<label class="form-colorinput">
|
|
@@ -269,7 +268,6 @@ Tabler Illustrations uses `--tblr-primary` as a fallback color if `--tblr-illust
|
|
|
269
268
|
</label>
|
|
270
269
|
</div>
|
|
271
270
|
</div>
|
|
272
|
-
|
|
273
271
|
<script>
|
|
274
272
|
document.querySelectorAll('.form-colorinput-input').forEach((input) => {
|
|
275
273
|
input.addEventListener('change', (event) => {
|
|
@@ -329,11 +327,9 @@ Illustration change theme based on the user's system preferences or `data-bs-the
|
|
|
329
327
|
|
|
330
328
|
```html
|
|
331
329
|
<html data-bs-theme="dark">
|
|
332
|
-
|
|
333
330
|
<body>
|
|
334
331
|
<svg>...</svg>
|
|
335
332
|
</body>
|
|
336
|
-
|
|
337
333
|
</html>
|
|
338
334
|
```
|
|
339
335
|
|
|
@@ -346,25 +342,20 @@ Look at the example below to see how the illustration changes based on the user'
|
|
|
346
342
|
fill: black;
|
|
347
343
|
opacity: 0.07;
|
|
348
344
|
}
|
|
349
|
-
|
|
350
345
|
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-boy-girl-b {
|
|
351
346
|
fill: #1A2030;
|
|
352
347
|
}
|
|
353
|
-
|
|
354
348
|
:where(.theme-dark, [data-bs-theme="dark"]) .tblr-illustrations-boy-girl-c {
|
|
355
349
|
fill: #454C5E;
|
|
356
350
|
}
|
|
357
|
-
|
|
358
351
|
@media (prefers-color-scheme: dark) {
|
|
359
352
|
.tblr-illustrations-boy-girl-a {
|
|
360
353
|
fill: black;
|
|
361
354
|
opacity: 0.07;
|
|
362
355
|
}
|
|
363
|
-
|
|
364
356
|
.tblr-illustrations-boy-girl-b {
|
|
365
357
|
fill: #1A2030;
|
|
366
358
|
}
|
|
367
|
-
|
|
368
359
|
.tblr-illustrations-boy-girl-c {
|
|
369
360
|
fill: #454C5E;
|
|
370
361
|
}
|
|
@@ -422,7 +413,6 @@ Look at the example below to see how the illustration changes based on the user'
|
|
|
422
413
|
</label>
|
|
423
414
|
</div>
|
|
424
415
|
</div>
|
|
425
|
-
|
|
426
416
|
<script>
|
|
427
417
|
const toggleTheme = (theme) => {
|
|
428
418
|
if (theme === 'dark') {
|
|
@@ -431,7 +421,6 @@ Look at the example below to see how the illustration changes based on the user'
|
|
|
431
421
|
document.documentElement.setAttribute('data-bs-theme', 'light');
|
|
432
422
|
}
|
|
433
423
|
}
|
|
434
|
-
|
|
435
424
|
document.querySelectorAll('.form-check-input').forEach((input) => {
|
|
436
425
|
input.addEventListener('change', (e) => {
|
|
437
426
|
console.log(e.target.value);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tabler Illustrations License
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Codecalm.net grants you an on-going, non-exclusive license to use the Tabler Illustrations.
|
|
6
|
+
|
|
7
|
+
The license grants permission to one individual (the Licensee) to access and use the Tabler Illustrations.
|
|
8
|
+
|
|
9
|
+
## What You Can Do with Tabler Illustrations
|
|
10
|
+
|
|
11
|
+
* Use the Tabler Illustrations to create unlimited End Products.
|
|
12
|
+
* Modify the Tabler Illustrations to create derivative Tabler Illustrations. Those Tabler Illustrations are subject to this license.
|
|
13
|
+
* Use the Tabler Illustrations to create unlimited End Products for unlimited Clients.
|
|
14
|
+
* Use the Tabler Illustrations to create End Products where the End Product is sold to End Users.
|
|
15
|
+
|
|
16
|
+
## What You Cannot Do with Tabler Illustrations
|
|
17
|
+
|
|
18
|
+
* Use the Tabler Illustrations to create End Products that are designed to allow an End User to build their own End Products using the Tabler Illustrations or derivatives of the Tabler Illustrations.
|
|
19
|
+
* Re-distribute the Tabler Illustrations or derivatives of the Tabler Illustrations separately from an End Product, neither in code or as design assets.
|
|
20
|
+
* Share your access to the Tabler Illustrations with any other individuals.
|
|
21
|
+
* Use the Tabler Illustrations to create End Products that are open source and freely available to End Users.
|
|
22
|
+
* Use the Tabler Illustrations to produce anything that may be deemed by Codecalm.net, in their sole and absolute discretion, to be competitive or in conflict with the business of Codecalm.net
|
|
@@ -9,7 +9,7 @@ description: Alert messages for user notifications.
|
|
|
9
9
|
|
|
10
10
|
Depending on the information you need to convey, you can use one of the following types of alert messages - **success**, **info**, **warning** or **danger**. Using the right type of alert modal will help draw users' attention to the message and prompt them to take action.
|
|
11
11
|
|
|
12
|
-
```html example vertical
|
|
12
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
13
13
|
<div class="alert alert-success" role="alert">
|
|
14
14
|
<h4 class="alert-title">Wow! Everything worked!</h4>
|
|
15
15
|
<div class="text-secondary">Your account has been saved!</div>
|
|
@@ -39,7 +39,7 @@ Depending on the information you need to convey, you can use one of the followin
|
|
|
39
39
|
|
|
40
40
|
Add a link to your alert message to redirect users to the details they need to complete or additional information they should read.
|
|
41
41
|
|
|
42
|
-
```html example vertical
|
|
42
|
+
```html example vertical background="surface" columns={2} centered
|
|
43
43
|
<div class="alert alert-danger m-0">
|
|
44
44
|
This is a danger alert — <a href="#" class="alert-link">check it out</a>!
|
|
45
45
|
</div>
|
|
@@ -49,7 +49,7 @@ Add a link to your alert message to redirect users to the details they need to c
|
|
|
49
49
|
|
|
50
50
|
Add the `x` close button to make an alert modal dismissible. Thanks to that, your alert modal will disappear only once the user closes it.
|
|
51
51
|
|
|
52
|
-
```html example
|
|
52
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
53
53
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
54
54
|
<div class="d-flex">
|
|
55
55
|
<div>
|
|
@@ -137,7 +137,24 @@ Add the `x` close button to make an alert modal dismissible. Thanks to that, you
|
|
|
137
137
|
|
|
138
138
|
Add an icon to your alert modal to make it more user-friendly and help users easily identify the message.
|
|
139
139
|
|
|
140
|
-
```html
|
|
140
|
+
```html
|
|
141
|
+
<div class="alert alert-success" role="alert">
|
|
142
|
+
<div class="d-flex">
|
|
143
|
+
<div>
|
|
144
|
+
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
145
|
+
<svg>...</svg>
|
|
146
|
+
</div>
|
|
147
|
+
<div>
|
|
148
|
+
<h4 class="alert-title">Wow! Everything worked!</h4>
|
|
149
|
+
<div class="text-secondary">Your account has been saved!</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
To see how the icon affects the alert modal, look at the example below.
|
|
156
|
+
|
|
157
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
141
158
|
<div class="alert alert-success" role="alert">
|
|
142
159
|
<div class="d-flex">
|
|
143
160
|
<div>
|
|
@@ -201,66 +218,17 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
201
218
|
</div>
|
|
202
219
|
```
|
|
203
220
|
|
|
204
|
-
|
|
205
|
-
<div class="alert alert-success" role="alert">
|
|
206
|
-
<div class="d-flex">
|
|
207
|
-
<div>
|
|
208
|
-
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
209
|
-
<svg>...</svg>
|
|
210
|
-
</div>
|
|
211
|
-
<div>
|
|
212
|
-
<h4 class="alert-title">Wow! Everything worked!</h4>
|
|
213
|
-
<div class="text-secondary">Your account has been saved!</div>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
</div>
|
|
217
|
-
<div class="alert alert-info" role="alert">
|
|
218
|
-
<div class="d-flex">
|
|
219
|
-
<div>
|
|
220
|
-
<!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
|
|
221
|
-
<svg>...</svg>
|
|
222
|
-
</div>
|
|
223
|
-
<div>
|
|
224
|
-
<h4 class="alert-title">Did you know?</h4>
|
|
225
|
-
<div class="text-secondary">Here is something that you might like to know.</div>
|
|
226
|
-
</div>
|
|
227
|
-
</div>
|
|
228
|
-
</div>
|
|
229
|
-
<div class="alert alert-warning" role="alert">
|
|
230
|
-
<div class="d-flex">
|
|
231
|
-
<div>
|
|
232
|
-
<!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
|
|
233
|
-
<svg>...</svg>
|
|
234
|
-
</div>
|
|
235
|
-
<div>
|
|
236
|
-
<h4 class="alert-title">Uh oh, something went wrong</h4>
|
|
237
|
-
<div class="text-secondary">Sorry! There was a problem with your request.</div>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
</div>
|
|
241
|
-
<div class="alert alert-danger" role="alert">
|
|
242
|
-
<div class="d-flex">
|
|
243
|
-
<div>
|
|
244
|
-
<!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
|
|
245
|
-
<svg>...</svg>
|
|
246
|
-
</div>
|
|
247
|
-
<div>
|
|
248
|
-
<h4 class="alert-title">I'm so sorry…</h4>
|
|
249
|
-
<div class="text-secondary">Your account has been deleted and can't be restored.</div>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
```
|
|
221
|
+
|
|
254
222
|
|
|
255
223
|
## Alert with avatar
|
|
256
224
|
|
|
257
225
|
Add an avatar to your alert modal to make it more personalized.
|
|
258
226
|
|
|
259
|
-
```html example
|
|
227
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
260
228
|
<div class="alert alert-success" role="alert">
|
|
261
229
|
<div class="d-flex">
|
|
262
230
|
<div>
|
|
263
|
-
<span class="avatar
|
|
231
|
+
<span class="avatar me-3" style="background-image: url(/static/samples/avatars/039m.jpg)"></span>
|
|
264
232
|
</div>
|
|
265
233
|
<div>
|
|
266
234
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
@@ -270,7 +238,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
270
238
|
<div class="alert alert-info" role="alert">
|
|
271
239
|
<div class="d-flex">
|
|
272
240
|
<div>
|
|
273
|
-
<span class="avatar
|
|
241
|
+
<span class="avatar me-3">JL</span>
|
|
274
242
|
</div>
|
|
275
243
|
<div>
|
|
276
244
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
@@ -280,7 +248,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
280
248
|
<div class="alert alert-warning" role="alert">
|
|
281
249
|
<div class="d-flex">
|
|
282
250
|
<div>
|
|
283
|
-
<span class="avatar
|
|
251
|
+
<span class="avatar me-3" style="background-image: url(/static/samples/avatars/035f.jpg)"></span>
|
|
284
252
|
</div>
|
|
285
253
|
<div>
|
|
286
254
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
@@ -290,7 +258,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
290
258
|
<div class="alert alert-danger" role="alert">
|
|
291
259
|
<div class="d-flex">
|
|
292
260
|
<div>
|
|
293
|
-
<span class="avatar
|
|
261
|
+
<span class="avatar me-3" style="background-image: url(/static/samples/avatars/056f.jpg)"></span>
|
|
294
262
|
</div>
|
|
295
263
|
<div>
|
|
296
264
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
|
|
@@ -303,7 +271,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
303
271
|
|
|
304
272
|
Add primary and secondary buttons to your alert modals if you want users to take a particular action based on the information included in the modal message.
|
|
305
273
|
|
|
306
|
-
```html example
|
|
274
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
307
275
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
308
276
|
<h3 class="mb-1">Some Title</h3>
|
|
309
277
|
<p>Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.</p>
|
|
@@ -346,7 +314,15 @@ Add primary and secondary buttons to your alert modals if you want users to take
|
|
|
346
314
|
|
|
347
315
|
If you want your alert to be really eye-catching, you can add a class `alert-important`.
|
|
348
316
|
|
|
349
|
-
```html
|
|
317
|
+
```html
|
|
318
|
+
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
319
|
+
...
|
|
320
|
+
</div>
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
Look at the example below to see how the important alert affects the alert modal.
|
|
324
|
+
|
|
325
|
+
```html example vertical background="surface" columns={2} centered separated
|
|
350
326
|
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
351
327
|
<div class="d-flex">
|
|
352
328
|
<div>
|
|
@@ -356,8 +332,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
356
332
|
</svg>
|
|
357
333
|
</div>
|
|
358
334
|
<div>
|
|
359
|
-
|
|
360
|
-
<div class="text-secondary">Your account has been saved!</div>
|
|
335
|
+
Wow! Everything worked!
|
|
361
336
|
</div>
|
|
362
337
|
</div>
|
|
363
338
|
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
@@ -378,54 +353,3 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
378
353
|
</div>
|
|
379
354
|
```
|
|
380
355
|
|
|
381
|
-
```html
|
|
382
|
-
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
383
|
-
<div class="d-flex">
|
|
384
|
-
<div>
|
|
385
|
-
<!-- SVG icon from http://tabler.io/icons/icon/check -->
|
|
386
|
-
<svg>...</svg>
|
|
387
|
-
</div>
|
|
388
|
-
<div>
|
|
389
|
-
Your account has been saved!
|
|
390
|
-
</div>
|
|
391
|
-
</div>
|
|
392
|
-
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
393
|
-
</div>
|
|
394
|
-
<div class="alert alert-important alert-info alert-dismissible" role="alert">
|
|
395
|
-
<div class="d-flex">
|
|
396
|
-
<div>
|
|
397
|
-
<!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
|
|
398
|
-
<svg>...</svg>
|
|
399
|
-
</div>
|
|
400
|
-
<div>
|
|
401
|
-
Here is something that you might like to know.
|
|
402
|
-
</div>
|
|
403
|
-
</div>
|
|
404
|
-
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
405
|
-
</div>
|
|
406
|
-
<div class="alert alert-important alert-warning alert-dismissible" role="alert">
|
|
407
|
-
<div class="d-flex">
|
|
408
|
-
<div>
|
|
409
|
-
<!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
|
|
410
|
-
<svg>...</svg>
|
|
411
|
-
</div>
|
|
412
|
-
<div>
|
|
413
|
-
Sorry! There was a problem with your request.
|
|
414
|
-
</div>
|
|
415
|
-
</div>
|
|
416
|
-
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
417
|
-
</div>
|
|
418
|
-
<div class="alert alert-important alert-danger alert-dismissible" role="alert">
|
|
419
|
-
<div class="d-flex">
|
|
420
|
-
<div>
|
|
421
|
-
<!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
|
|
422
|
-
<svg>...</svg>
|
|
423
|
-
</div>
|
|
424
|
-
<div>
|
|
425
|
-
Your account has been deleted and can't be restored.
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
<a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
|
|
429
|
-
</div>
|
|
430
|
-
```
|
|
431
|
-
|