Skip to content

Commit 39afd95

Browse files
committed
refactor: update components examples
1 parent a1b5c57 commit 39afd95

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

src/pug/_mixins/example.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mixin example(script)
22
- var id = Math.floor(Math.random() * (15 - 1300) + 1300)
3-
.example.mt-4
3+
.example
44
ul.nav.nav-tabs(role="tablist")
55
li.nav-item
66
a.nav-link.active(data-coreui-toggle="tab" href="#preview-"+id role="tab")

src/pug/views/notifications/modals.pug

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ block view
1717
.col-12
1818
.card.mb-4
1919
.card-header
20-
| Modal components
20+
strong Modal
2121
.card-body
2222
p.text-medium-emphasis.small
2323
| Below is a
@@ -45,7 +45,8 @@ block view
4545
.col-12
4646
.card.mb-4
4747
.card-header
48-
| Live demo
48+
strong Modal
49+
span.small.ms-1 Live demo
4950
.card-body
5051
p.text-medium-emphasis.small
5152
| Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.
@@ -66,7 +67,8 @@ block view
6667
.col-12
6768
.card.mb-4
6869
.card-header
69-
| Static backdrop
70+
strong Modal
71+
span.small.ms-1 Static backdrop
7072
.card-body
7173
p.text-medium-emphasis.small
7274
| When backdrop is set to static, the modal will not close when clicking outside it. Click the button below to try it.
@@ -87,7 +89,8 @@ block view
8789
.col-12
8890
.card.mb-4
8991
.card-header
90-
| Scrolling long content
92+
strong Modal
93+
span.small.ms-1 Scrolling long content
9194
.card-body
9295
p.text-medium-emphasis.small
9396
| When modals become too long for the user’s viewport or device, they scroll independent of the page itself. Try the demo below to see what we mean.
@@ -158,7 +161,8 @@ block view
158161
.col-12
159162
.card.mb-4
160163
.card-header
161-
| Vertically centered
164+
strong Modal
165+
span.small.ms-1 Vertically centered
162166
.card-body
163167
p.text-medium-emphasis.small
164168
| Add
@@ -202,7 +206,8 @@ block view
202206
.col-12
203207
.card.mb-4
204208
.card-header
205-
| Tooltips and popovers
209+
strong Modal
210+
span.small.ms-1 Tooltips and popovers
206211
.card-body
207212
p.text-medium-emphasis.small
208213
a(href='https://coreui.io/docs/4.0/components/tooltips/') Tooltips
@@ -237,7 +242,8 @@ block view
237242
.col-12
238243
.card.mb-4
239244
.card-header
240-
| Using the grid
245+
strong Modal
246+
span.small.ms-1 Using the grid
241247
.card-body
242248
p.text-medium-emphasis.small
243249
| Utilize the Bootstrap grid system within a modal by nesting
@@ -278,7 +284,8 @@ block view
278284
.col-12
279285
.card.mb-4
280286
.card-header
281-
| Varying modal content
287+
strong Modal
288+
span.small.ms-1 Varying modal content
282289
.card-body
283290
p.text-medium-emphasis.small
284291
| Have a bunch of buttons that all trigger the same modal with slightly different contents? Use
@@ -319,7 +326,8 @@ block view
319326
.col-12
320327
.card.mb-4
321328
.card-header
322-
| Optional sizes
329+
strong Modal
330+
span.small.ms-1 Optional sizes
323331
.card-body
324332
p.text-medium-emphasis.small
325333
| Modals have three optional sizes, available via modifier classes to be placed on a
@@ -387,7 +395,8 @@ block view
387395
.col-12
388396
.card.mb-4
389397
.card-header
390-
| Fullscreen Modal
398+
strong Modal
399+
span.small.ms-1 Fullscreen Modal
391400
.card-body
392401
p.text-medium-emphasis.small
393402
| Another override is the option to pop up a modal that covers the user viewport, available via modifier classes that are placed on a

src/pug/views/widgets.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ block breadcrumb
1313
+breadcrumb(['Home', 'Components'], 'Widgets')
1414

1515
block view
16-
.card
16+
.card.mb-4
1717
.card-header
1818
string Widgets
1919
.card-body

src/scss/_examples.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
.example {
2+
&:not(:first-child) {
3+
margin-top: 1.5rem;
4+
}
5+
26
.tab-content {
37
background-color: $light-50 !important;
48

0 commit comments

Comments
 (0)