@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
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Navs and tabs
|
|
3
|
+
summary: This guide covered the basics of creating different types of navigation bars and tabs, including horizontal, vertical, pill-shaped, and underline-styled navs.
|
|
4
|
+
description: "Essential guide to nav styles: tabs, pills, dropdowns, and more."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Navigation bars are essential components of modern web applications, providing users with intuitive ways to navigate between different sections and content. This guide explores various types of navigation bars and tabs that can be easily implemented using predefined classes in HTML and CSS. Each type serves specific use cases, from horizontal and vertical layouts to tabbed interfaces and dropdown menus. By utilizing these examples, developers can enhance the usability and aesthetics of their web projects.
|
|
8
|
+
|
|
9
|
+
## Horizontal nav
|
|
10
|
+
|
|
11
|
+
If you want to create a horizontal navigation bar, you can use the `.nav` class. The `.nav-item` class is used to style each item within the navigation bar, and `.nav-link` is applied to the links. The `.active` class highlights the current active link, while the `.disabled` class styles non-clickable links.
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<ul class="nav">
|
|
15
|
+
<li class="nav-item">
|
|
16
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
17
|
+
</li>
|
|
18
|
+
<li class="nav-item">
|
|
19
|
+
<a class="nav-link" href="#">Link</a>
|
|
20
|
+
</li>
|
|
21
|
+
<li class="nav-item">
|
|
22
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Look at the example below to see how the horizontal navigation bar is displayed.
|
|
28
|
+
|
|
29
|
+
```html example centered
|
|
30
|
+
<ul class="nav">
|
|
31
|
+
<li class="nav-item">
|
|
32
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
33
|
+
</li>
|
|
34
|
+
<li class="nav-item">
|
|
35
|
+
<a class="nav-link" href="#">Link</a>
|
|
36
|
+
</li>
|
|
37
|
+
<li class="nav-item">
|
|
38
|
+
<a class="nav-link" href="#">Link</a>
|
|
39
|
+
</li>
|
|
40
|
+
<li class="nav-item">
|
|
41
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Vertical nav
|
|
47
|
+
|
|
48
|
+
To create a vertical navigation bar, add the `.flex-column` class to the `.nav` element. This arranges the navigation items in a column instead of a row, making it suitable for sidebars or vertical menus.
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<ul class="nav flex-column">
|
|
52
|
+
...
|
|
53
|
+
</ul>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
There is an example below to see how the vertical navigation bar is displayed.
|
|
57
|
+
|
|
58
|
+
```html example centered
|
|
59
|
+
<ul class="nav flex-column">
|
|
60
|
+
<li class="nav-item">
|
|
61
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
62
|
+
</li>
|
|
63
|
+
<li class="nav-item">
|
|
64
|
+
<a class="nav-link" href="#">Link</a>
|
|
65
|
+
</li>
|
|
66
|
+
<li class="nav-item">
|
|
67
|
+
<a class="nav-link" href="#">Link</a>
|
|
68
|
+
</li>
|
|
69
|
+
<li class="nav-item">
|
|
70
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
71
|
+
</li>
|
|
72
|
+
</ul>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Tabs
|
|
76
|
+
|
|
77
|
+
To create a tabbed navigation interface, use the `.nav-tabs` class. This is ideal for displaying different content sections within a single interface, where each tab represents a section.
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<ul class="nav nav-tabs">
|
|
81
|
+
...
|
|
82
|
+
</ul>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Example below shows how the tabbed navigation interface is displayed.
|
|
86
|
+
|
|
87
|
+
```html example centered
|
|
88
|
+
<ul class="nav nav-tabs">
|
|
89
|
+
<li class="nav-item">
|
|
90
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
91
|
+
</li>
|
|
92
|
+
<li class="nav-item">
|
|
93
|
+
<a class="nav-link" href="#">Link</a>
|
|
94
|
+
</li>
|
|
95
|
+
<li class="nav-item">
|
|
96
|
+
<a class="nav-link" href="#">Link</a>
|
|
97
|
+
</li>
|
|
98
|
+
<li class="nav-item">
|
|
99
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
100
|
+
</li>
|
|
101
|
+
</ul>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Pills
|
|
105
|
+
|
|
106
|
+
For a pill-shaped navigation style, use the `.nav-pills` class. This is a great choice for a sleek, modern look, especially in interactive UI components.
|
|
107
|
+
|
|
108
|
+
```html example centered
|
|
109
|
+
<ul class="nav nav-pills">
|
|
110
|
+
<li class="nav-item">
|
|
111
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
112
|
+
</li>
|
|
113
|
+
<li class="nav-item">
|
|
114
|
+
<a class="nav-link" href="#">Link</a>
|
|
115
|
+
</li>
|
|
116
|
+
<li class="nav-item">
|
|
117
|
+
<a class="nav-link" href="#">Link</a>
|
|
118
|
+
</li>
|
|
119
|
+
<li class="nav-item">
|
|
120
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
121
|
+
</li>
|
|
122
|
+
</ul>
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Underline
|
|
126
|
+
|
|
127
|
+
To create a navigation bar with an underline effect for active links, use the `.nav-underline` class. This provides a clean and minimalistic style.
|
|
128
|
+
|
|
129
|
+
```html example centered
|
|
130
|
+
<ul class="nav nav-underline">
|
|
131
|
+
<li class="nav-item">
|
|
132
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
133
|
+
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a class="nav-link" href="#">Link</a>
|
|
136
|
+
</li>
|
|
137
|
+
<li class="nav-item">
|
|
138
|
+
<a class="nav-link" href="#">Link</a>
|
|
139
|
+
</li>
|
|
140
|
+
<li class="nav-item">
|
|
141
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
142
|
+
</li>
|
|
143
|
+
</ul>
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Tabs with Dropdown
|
|
147
|
+
|
|
148
|
+
You can enhance tabs by adding dropdown menus using the `.dropdown` class inside a `.nav-tabs` structure. This allows for additional options under a single tab, improving the navigation experience.
|
|
149
|
+
|
|
150
|
+
```html
|
|
151
|
+
<ul class="nav nav-tabs">
|
|
152
|
+
...
|
|
153
|
+
<li class="nav-item dropdown">
|
|
154
|
+
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">Dropdown</a>
|
|
155
|
+
<ul class="dropdown-menu">
|
|
156
|
+
...
|
|
157
|
+
</ul>
|
|
158
|
+
</li>
|
|
159
|
+
...
|
|
160
|
+
</ul>
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Example below shows how tabs with dropdown menus are displayed.
|
|
164
|
+
|
|
165
|
+
```html example centered height="15rem"
|
|
166
|
+
<ul class="nav nav-tabs">
|
|
167
|
+
<li class="nav-item">
|
|
168
|
+
<a class="nav-link active" aria-current="page" href="#">Active</a>
|
|
169
|
+
</li>
|
|
170
|
+
<li class="nav-item dropdown">
|
|
171
|
+
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">Dropdown</a>
|
|
172
|
+
<ul class="dropdown-menu">
|
|
173
|
+
<li><a class="dropdown-item" href="#">Action</a></li>
|
|
174
|
+
<li><a class="dropdown-item" href="#">Another action</a></li>
|
|
175
|
+
<li><a class="dropdown-item" href="#">Something else here</a></li>
|
|
176
|
+
<li><hr class="dropdown-divider"></li>
|
|
177
|
+
<li><a class="dropdown-item" href="#">Separated link</a></li>
|
|
178
|
+
</ul>
|
|
179
|
+
</li>
|
|
180
|
+
<li class="nav-item">
|
|
181
|
+
<a class="nav-link" href="#">Link</a>
|
|
182
|
+
</li>
|
|
183
|
+
<li class="nav-item">
|
|
184
|
+
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
|
|
185
|
+
</li>
|
|
186
|
+
</ul>
|
|
187
|
+
```
|
|
@@ -5,12 +5,14 @@ description: Learn to design dashboard layouts.
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<Callout>
|
|
8
|
-
Before you start with this section, make sure you have followed the [installation guideline](/docs/ui/getting-started/
|
|
8
|
+
Before you start with this section, make sure you have followed the [installation guideline](/docs/ui/getting-started/installation).
|
|
9
9
|
</Callout>
|
|
10
10
|
|
|
11
11
|
## Sample layout
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
To create a sample version of the dashboard, you can use the following code snippet. This code snippet will help you to create a dashboard layout with a header.
|
|
14
|
+
|
|
15
|
+
```html example fullpage resizable height="30rem" background="surface"
|
|
14
16
|
<div class="page">
|
|
15
17
|
<header class="navbar navbar-expand-sm navbar-light d-print-none">
|
|
16
18
|
<div class="container-xl">
|
|
@@ -19,7 +21,6 @@ description: Learn to design dashboard layouts.
|
|
|
19
21
|
<img src="https://preview.tabler.io/static/logo.svg" width="110" height="32" alt="Tabler" class="navbar-brand-image" />
|
|
20
22
|
</a>
|
|
21
23
|
</h1>
|
|
22
|
-
|
|
23
24
|
<div class="navbar-nav flex-row order-md-last">
|
|
24
25
|
<div class="nav-item">
|
|
25
26
|
<a href="#" class="nav-link d-flex lh-1 text-reset p-0">
|
|
@@ -66,10 +67,12 @@ description: Learn to design dashboard layouts.
|
|
|
66
67
|
|
|
67
68
|
## Sidebar layout
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
To create a sidebar layout, you can use the following code snippet. This code snippet will help you to create a sidebar layout with a header.
|
|
71
|
+
|
|
72
|
+
```html example fullpage resizable height="30rem" background="surface"
|
|
70
73
|
<div class="page">
|
|
71
74
|
<!-- Sidebar -->
|
|
72
|
-
<aside class="navbar navbar-vertical navbar-expand-sm
|
|
75
|
+
<aside class="navbar navbar-vertical navbar-expand-sm" data-bs-theme="dark">
|
|
73
76
|
<div class="container-fluid">
|
|
74
77
|
<button class="navbar-toggler" type="button">
|
|
75
78
|
<span class="navbar-toggler-icon"></span>
|
|
@@ -6,7 +6,17 @@ description: Style elements with border utilities.
|
|
|
6
6
|
|
|
7
7
|
## Border direction
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Borders can be applied to specific sides of an element using utility classes. This is particularly useful for styling individual sides of a box, such as highlighting the top border for emphasis or applying a separator between elements. Below are examples of how to set borders for each side of an element.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<div class="border">1</div>
|
|
13
|
+
<div class="border-top">2</div>
|
|
14
|
+
<div class="border-end">3</div>
|
|
15
|
+
<div class="border-bottom">4</div>
|
|
16
|
+
<div class="border-start">5</div>
|
|
17
|
+
<div class="border-x">6</div>
|
|
18
|
+
<div class="border-y">7</div>
|
|
19
|
+
```
|
|
10
20
|
|
|
11
21
|
```html example centered separated background="white"
|
|
12
22
|
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border">1</div>
|
|
@@ -18,25 +28,10 @@ The following border utilities classes will add border to any side of an element
|
|
|
18
28
|
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border-y">7</div>
|
|
19
29
|
```
|
|
20
30
|
|
|
21
|
-
```html
|
|
22
|
-
<div class="border">1</div>
|
|
23
|
-
<div class="border-top">2</div>
|
|
24
|
-
<div class="border-end">3</div>
|
|
25
|
-
<div class="border-bottom">4</div>
|
|
26
|
-
<div class="border-start">5</div>
|
|
27
|
-
<div class="border-x">6</div>
|
|
28
|
-
<div class="border-y">7</div>
|
|
29
|
-
```
|
|
30
31
|
|
|
31
32
|
## Border size
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
```html example centered separated background="white"
|
|
36
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border-0">1</div>
|
|
37
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border">2</div>
|
|
38
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border-wide">3</div>
|
|
39
|
-
```
|
|
34
|
+
Border size utilities allow you to control the thickness of borders, providing flexibility to suit different design needs. You can add no border, a standard border, or a wide border for a more prominent effect. These classes are especially useful for creating visual hierarchy or highlighting specific elements.
|
|
40
35
|
|
|
41
36
|
```html
|
|
42
37
|
<div class="border-0">1</div>
|
|
@@ -44,9 +39,24 @@ Below are the available border size utilities classes.
|
|
|
44
39
|
<div class="border-wide">3</div>
|
|
45
40
|
```
|
|
46
41
|
|
|
42
|
+
```html example centered separated background="white"
|
|
43
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border-0">1</div>
|
|
44
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border">2</div>
|
|
45
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border-wide">3</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
47
48
|
## Remove border
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
If you want to selectively remove borders from specific sides of an element, you can use border removal utilities. This feature simplifies styling tasks, such as creating a seamless connection between elements or achieving minimalistic designs.
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="border border-top-0">1</div>
|
|
54
|
+
<div class="border border-end-0">2</div>
|
|
55
|
+
<div class="border border-bottom-0">3</div>
|
|
56
|
+
<div class="border border-start-0">4</div>
|
|
57
|
+
<div class="border border-x-0">5</div>
|
|
58
|
+
<div class="border border-y-0">6</div>
|
|
59
|
+
```
|
|
50
60
|
|
|
51
61
|
```html example centered separated background="white"
|
|
52
62
|
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-top-0">1</div>
|
|
@@ -57,29 +67,10 @@ You can remove a border on a single side of an element by using the following bo
|
|
|
57
67
|
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-y-0">6</div>
|
|
58
68
|
```
|
|
59
69
|
|
|
60
|
-
```html
|
|
61
|
-
<div class="border border-top-0">1</div>
|
|
62
|
-
<div class="border border-end-0">2</div>
|
|
63
|
-
<div class="border border-bottom-0">3</div>
|
|
64
|
-
<div class="border border-start-0">4</div>
|
|
65
|
-
<div class="border border-x-0">5</div>
|
|
66
|
-
<div class="border border-y-0">6</div>
|
|
67
|
-
```
|
|
68
70
|
|
|
69
71
|
## Border color
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```html example centered separated background="white"
|
|
74
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-primary">1</div>
|
|
75
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-secondary">2</div>
|
|
76
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-success">3</div>
|
|
77
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-warning">4</div>
|
|
78
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-danger">5</div>
|
|
79
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-info">6</div>
|
|
80
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-dark">7</div>
|
|
81
|
-
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-light">8</div>
|
|
82
|
-
```
|
|
73
|
+
Customizing the border color helps to enhance the visual appeal and consistency of your design. With utility classes, you can easily apply specific colors to borders, allowing for greater flexibility in creating visually distinct sections.
|
|
83
74
|
|
|
84
75
|
```html
|
|
85
76
|
<div class="border border-primary">1</div>
|
|
@@ -92,19 +83,21 @@ You can set a border color of any side of an element by adding the following uti
|
|
|
92
83
|
<div class="border border-light">8</div>
|
|
93
84
|
```
|
|
94
85
|
|
|
95
|
-
## Border radius
|
|
96
|
-
|
|
97
|
-
You can set a border to any element by using the following utilities classes below.
|
|
98
|
-
|
|
99
86
|
```html example centered separated background="white"
|
|
100
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
101
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
102
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
103
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
104
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
105
|
-
<div class="d-flex align-items-center justify-content-center text-secondary
|
|
87
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-primary">1</div>
|
|
88
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-secondary">2</div>
|
|
89
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-success">3</div>
|
|
90
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-warning">4</div>
|
|
91
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-danger">5</div>
|
|
92
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-info">6</div>
|
|
93
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-dark">7</div>
|
|
94
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-5 h-5 bg-light border border-light">8</div>
|
|
106
95
|
```
|
|
107
96
|
|
|
97
|
+
## Border radius
|
|
98
|
+
|
|
99
|
+
Adding border radius gives elements smooth, rounded edges, which can make designs feel more modern and approachable. You can choose from various levels of rounding, including full circles, using the available utility classes.
|
|
100
|
+
|
|
108
101
|
```html
|
|
109
102
|
<div class="border rounded-0">1</div>
|
|
110
103
|
<div class="border rounded">2</div>
|
|
@@ -113,3 +106,29 @@ You can set a border to any element by using the following utilities classes bel
|
|
|
113
106
|
<div class="border rounded-3">5</div>
|
|
114
107
|
<div class="border rounded-circle">6</div>
|
|
115
108
|
```
|
|
109
|
+
|
|
110
|
+
```html example centered separated background="white"
|
|
111
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded-0">1</div>
|
|
112
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded">2</div>
|
|
113
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded-1">3</div>
|
|
114
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded-2">4</div>
|
|
115
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded-3">5</div>
|
|
116
|
+
<div class="d-flex align-items-center justify-content-center text-secondary w-6 h-6 bg-light border rounded-circle">6</div>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## Border opacity
|
|
121
|
+
|
|
122
|
+
You can adjust the opacity of borders to create subtle visual effects or to blend elements seamlessly into the background. By using border opacity utilities, you can control the transparency of borders, allowing for more creative and visually appealing designs. To change the opacity of a border, add the `border-opacity-*` class to the element.
|
|
123
|
+
|
|
124
|
+
```html
|
|
125
|
+
<div class="border border-success border-opacity-50">This is 50% opacity success border</div>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```html example
|
|
129
|
+
<div class="border border-success p-2 mb-2">This is default success border</div>
|
|
130
|
+
<div class="border border-success p-2 mb-2 border-opacity-75">This is 75% opacity success border</div>
|
|
131
|
+
<div class="border border-success p-2 mb-2 border-opacity-50">This is 50% opacity success border</div>
|
|
132
|
+
<div class="border border-success p-2 mb-2 border-opacity-25">This is 25% opacity success border</div>
|
|
133
|
+
<div class="border border-success p-2 border-opacity-10">This is 10% opacity success border</div>
|
|
134
|
+
```
|
|
@@ -24,56 +24,6 @@ Use one of the available cursor utilities depending on the action you want to in
|
|
|
24
24
|
- `.cursor-grab` - a cursor which shows that a user can grab an element
|
|
25
25
|
- `.cursor-grabbing` - a cursor which shows that a user is grabbing an element
|
|
26
26
|
|
|
27
|
-
```html example background="white" height="20rem" vcentered
|
|
28
|
-
<div class="row row-cards text-center">
|
|
29
|
-
<div class="col-2">
|
|
30
|
-
<div class="cursor-auto bg-light py-3">auto</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="col-2">
|
|
33
|
-
<div class="cursor-pointer bg-light py-3">pointer</div>
|
|
34
|
-
</div>
|
|
35
|
-
<div class="col-2">
|
|
36
|
-
<div class="cursor-move bg-light py-3">move</div>
|
|
37
|
-
</div>
|
|
38
|
-
<div class="col-2">
|
|
39
|
-
<div class="cursor-not-allowed bg-light py-3">not-allowed</div>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="col-2">
|
|
42
|
-
<div class="cursor-zoom-in bg-light py-3">zoom-in</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="col-2">
|
|
45
|
-
<div class="cursor-zoom-out bg-light py-3">zoom-out</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="col-2">
|
|
48
|
-
<div class="cursor-default bg-light py-3">default</div>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="col-2">
|
|
51
|
-
<div class="cursor-none bg-light py-3">none</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="col-2">
|
|
54
|
-
<div class="cursor-help bg-light py-3">help</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="col-2">
|
|
57
|
-
<div class="cursor-progress bg-light py-3">progress</div>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="col-2">
|
|
60
|
-
<div class="cursor-wait bg-light py-3">wait</div>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-2">
|
|
63
|
-
<div class="cursor-text bg-light py-3">text</div>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="col-2">
|
|
66
|
-
<div class="cursor-v-text bg-light py-3">vertical-text</div>
|
|
67
|
-
</div>
|
|
68
|
-
<div class="col-2">
|
|
69
|
-
<div class="cursor-grab bg-light py-3">grab</div>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="col-2">
|
|
72
|
-
<div class="cursor-grabbing bg-light py-3">grabbing</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
```
|
|
76
|
-
|
|
77
27
|
```html
|
|
78
28
|
<div class="cursor-auto">auto</div>
|
|
79
29
|
<div class="cursor-pointer">pointer</div>
|
|
@@ -91,3 +41,23 @@ Use one of the available cursor utilities depending on the action you want to in
|
|
|
91
41
|
<div class="cursor-grab">grab</div>
|
|
92
42
|
<div class="cursor-grabbing">grabbing</div>
|
|
93
43
|
```
|
|
44
|
+
|
|
45
|
+
The results can be seen in the example below.
|
|
46
|
+
|
|
47
|
+
```html example height="20rem" separated centered
|
|
48
|
+
<div class="cursor-auto bg-light p-3">auto</div>
|
|
49
|
+
<div class="cursor-pointer bg-light p-3">pointer</div>
|
|
50
|
+
<div class="cursor-move bg-light p-3">move</div>
|
|
51
|
+
<div class="cursor-not-allowed bg-light p-3">not-allowed</div>
|
|
52
|
+
<div class="cursor-zoom-in bg-light p-3">zoom-in</div>
|
|
53
|
+
<div class="cursor-zoom-out bg-light p-3">zoom-out</div>
|
|
54
|
+
<div class="cursor-default bg-light p-3">default</div>
|
|
55
|
+
<div class="cursor-none bg-light p-3">none</div>
|
|
56
|
+
<div class="cursor-help bg-light p-3">help</div>
|
|
57
|
+
<div class="cursor-progress bg-light p-3">progress</div>
|
|
58
|
+
<div class="cursor-wait bg-light p-3">wait</div>
|
|
59
|
+
<div class="cursor-text bg-light p-3">text</div>
|
|
60
|
+
<div class="cursor-v-text bg-light p-3">vertical-text</div>
|
|
61
|
+
<div class="cursor-grab bg-light p-3">grab</div>
|
|
62
|
+
<div class="cursor-grabbing bg-light p-3">grabbing</div>
|
|
63
|
+
```
|
|
@@ -8,7 +8,7 @@ description: Modify user interactions efficiently.
|
|
|
8
8
|
|
|
9
9
|
Change the way in which the content is selected when the user interacts with it.
|
|
10
10
|
|
|
11
|
-
```html example
|
|
11
|
+
```html example columns={1} centered separated
|
|
12
12
|
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
|
|
13
13
|
<p class="user-select-auto">This paragraph has default select behavior.</p>
|
|
14
14
|
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
|
|
@@ -18,7 +18,7 @@ Change the way in which the content is selected when the user interacts with it.
|
|
|
18
18
|
|
|
19
19
|
Tabler provides `.pe-none` and `.pe-auto` classes to prevent or add element interactions.
|
|
20
20
|
|
|
21
|
-
```html example
|
|
21
|
+
```html example columns={1} centered separated
|
|
22
22
|
<p>
|
|
23
23
|
<a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.
|
|
24
24
|
</p>
|