Skip to content

Commit f17c9fd

Browse files
committed
refactor: update components examples
1 parent 2ae9ad6 commit f17c9fd

29 files changed

+4004
-2101
lines changed

src/pug/_mixins/callout.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mixin callout(name, href)
22
.callout.callout-info.bg-white
3-
| CoreUI #{name} Component has been created as an extension of Bootstrap #{name}. CoreUI #{name} is delivered with some new features, variants, and unique design that matches CoreUI Design System requirements.
3+
| CoreUI #{name} has been created as an extension of Bootstrap #{name}. #{name} is delivered with some new features, variants, and unique design that matches CoreUI Design System requirements.
44
br
55
br
66
| For more information please visit our official

src/pug/_mixins/example.pug

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ mixin example
77
svg.icon.me-2
88
use(xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-media-play")
99
| Preview
10-
11-
li.nav-item
12-
a.nav-link(data-coreui-toggle="tab" href="#code-"+id role="tab")
13-
svg.icon.me-2
14-
use(xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code")
15-
| Code
10+
li.nav-item
11+
a.nav-link(data-coreui-toggle="tab" href="#code-"+id role="tab")
12+
svg.icon.me-2
13+
use(xlink:href="node_modules/@coreui/icons/sprites/free.svg#cil-code")
14+
| Code
1615
.tab-content
17-
.tab-pane.py-3.active(role="tabpanel" id="preview-"+id )
16+
.tab-pane.py-3.active.preview(role="tabpanel" id="preview-"+id )
1817
block
1918
.tab-pane.py-3(role="tabpanel" id="code-"+id )
20-
script.language-html(type='text/plain')
19+
script.language-markup(type='text/plain')
2120
block

src/pug/_partials/scripts.pug

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism
55
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/unescaped-markup/prism-unescaped-markup.min.js')
66
script(src='https://cdn.jsdelivr.net/npm/[email protected]/plugins/normalize-whitespace/prism-normalize-whitespace.js')
77

8-
script(type='text/javascript').
9-
// Optional
10-
Prism.plugins.NormalizeWhitespace.setDefaults({
11-
'remove-trailing': true,
12-
'remove-indent': true,
13-
'left-trim': true,
14-
'right-trim': true,
15-
//- 'break-lines': 60,
16-
});
17-
188
script(src='https://cdn.jsdelivr.net/npm/[email protected]/dist/masonry.pkgd.min.js' integrity='sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D' crossorigin='anonymous' async)
199

2010
block scripts

src/pug/_partials/sidebar.pug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@
5151
a.nav-link(href='base/collapse.html')
5252
span.nav-icon
5353
| Collapse
54-
li.nav-item
55-
a.nav-link(href='base/forms.html')
56-
span.nav-icon
57-
| Forms
5854
li.nav-item
5955
a.nav-link(href='base/list-group.html')
6056
span.nav-icon
@@ -79,6 +75,10 @@
7975
a.nav-link(href='base/scrollspy.html')
8076
span.nav-icon
8177
| Scrollspy
78+
li.nav-item
79+
a.nav-link(href='base/spinners.html')
80+
span.nav-icon
81+
| Spinners
8282
li.nav-item
8383
a.nav-link(href='base/tables.html')
8484
span.nav-icon

src/pug/views/base/accordion.pug

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ block view
99
.col-12.col-md-6
1010
.card.mb-4
1111
.card-header
12-
| Accordion
12+
strong Accordion
1313
.card-body
14-
p
14+
p.text-medium-emphasis.small
1515
| Click the accordions below to expand/collapse the accordion content.
16-
hr
1716
+example()
1817
#accordionExample.accordion
1918
.accordion-item
@@ -49,16 +48,15 @@ block view
4948
.col-12.col-md-6
5049
.card.mb-4
5150
.card-header
52-
| Accordion
51+
strong Accordion
5352
span.small.ms-1 Flush
5453
.card-body
55-
p
56-
| Add
54+
p.text-medium-emphasis.small
55+
| Add
5756
code .accordion-flush
58-
| to remove the default
57+
| to remove the default
5958
code background-color
6059
| , some borders, and some rounded corners to render accordions edge-to-edge with their parent container.
61-
hr
6260
+example()
6361
#accordionFlushExample.accordion.accordion-flush
6462
.accordion-item

src/pug/views/base/breadcrumb.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ block view
99
.col-lg-12
1010
.card.mb-4
1111
.card-header
12-
| Bootstrap Breadcrumb
12+
strong Breadcrumb
1313
.card-body
14-
p
14+
p.text-medium-emphasis.small
1515
| The breadcrumb navigation provides links back to each previous page the user navigated through and shows the current location in a website or an application. You don’t have to add separators, because they automatically added in CSS through
1616
a(href='https://developer.mozilla.org/en-US/docs/Web/CSS/::before')
1717
|

src/pug/views/base/collapse.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ block view
99
.card-header
1010
| Collapse
1111
.card-body
12-
p
12+
p.text-medium-emphasis.small
1313
| You can use a link with the
1414
|
1515
code href
@@ -34,7 +34,7 @@ block view
3434
strong Collapse
3535
span.small.ms-1 multiple targets
3636
.card-body
37-
p
37+
p.text-medium-emphasis.small
3838
| A
3939
|
4040
code

src/pug/views/base/list-group.pug

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block view
1212
strong List group
1313
span.small.ms-1 Basic example
1414
.card-body
15-
p The default list group is an unordered list with items and the proper CSS classes. Build upon it with the options that follow, or with your CSS as required.
15+
p.text-medium-emphasis.small The default list group is an unordered list with items and the proper CSS classes. Build upon it with the options that follow, or with your CSS as required.
1616
+example()
1717
ul.list-group
1818
li.list-group-item Cras justo odio
@@ -26,7 +26,7 @@ block view
2626
strong List group
2727
span.small.ms-1 active items
2828
.card-body
29-
p
29+
p.text-medium-emphasis.small
3030
| Attach
3131
|
3232
code .active
@@ -47,7 +47,7 @@ block view
4747
strong List group
4848
span.small.ms-1 disabled items
4949
.card-body
50-
p
50+
p.text-medium-emphasis.small
5151
| Attach
5252
|
5353
code .disabled
@@ -72,7 +72,7 @@ block view
7272
span.small.ms-1 disabled links
7373
.card-body
7474
.list-group
75-
p
75+
p.text-medium-emphasis.small
7676
| Use
7777
|
7878
code
@@ -95,7 +95,7 @@ block view
9595
code
9696
= '<div>'
9797
| s) don’t provide a click or tap affordance.
98-
p
98+
p.text-medium-emphasis.small
9999
| Be sure to
100100
strong
101101
| not use the standard
@@ -117,7 +117,7 @@ block view
117117
span.small.ms-1 disabled buttons
118118
.card-body
119119
.list-group
120-
p
120+
p.text-medium-emphasis.small
121121
| With
122122
|
123123
code
@@ -147,7 +147,7 @@ block view
147147
strong List group
148148
span.small.ms-1 flush
149149
.card-body
150-
p
150+
p.text-medium-emphasis.small
151151
| Add
152152
|
153153
code .list-group-flush
@@ -165,7 +165,7 @@ block view
165165
strong List group
166166
span.small.ms-1 horizontal
167167
.card-body
168-
p
168+
p.text-medium-emphasis.small
169169
| Add
170170
|
171171
code .list-group-horizontal
@@ -177,7 +177,7 @@ block view
177177
code min-width
178178
| . Currently
179179
strong horizontal list groups cannot be combined with flush list groups.
180-
p
180+
p.text-medium-emphasis.small
181181
strong ProTip:
182182
| Want equal-width list group items when horizontal? Add
183183
|
@@ -215,7 +215,7 @@ block view
215215
strong List group
216216
span.small.ms-1 contextual classes
217217
.card-body
218-
p Use contextual classes to style list items with a stateful background and color.
218+
p.text-medium-emphasis.small Use contextual classes to style list items with a stateful background and color.
219219
+example()
220220
ul.list-group
221221
li.list-group-item Dapibus ac facilisis in
@@ -236,7 +236,7 @@ block view
236236
|
237237
code .action
238238
.card-body
239-
p
239+
p.text-medium-emphasis.small
240240
| Contextual classes also work with
241241
|
242242
code .list-group-item-action
@@ -277,7 +277,7 @@ block view
277277
strong List group
278278
span.small.ms-1 with badges
279279
.card-body
280-
p
280+
p.text-medium-emphasis.small
281281
| Add badges to any list group item to show unread counts, activity, and more with the help of some
282282
a(href='https://coreui.io/docs/4.0/utilities/flex/') utilities
283283
| .
@@ -298,7 +298,7 @@ block view
298298
stron List group
299299
span.small.ms-1 custom content
300300
.card-body
301-
p
301+
p.text-medium-emphasis.small
302302
| Add nearly any HTML within, even for linked list groups like the one below, with the help of
303303
a(href='https://coreui.io/docs/4.0/utilities/flex/') flexbox utilities
304304
| .
@@ -332,7 +332,7 @@ block view
332332
strong List group
333333
span.small.ms-1 tab Javascript plugin
334334
.card-body
335-
p
335+
p.text-medium-emphasis.small
336336
| Use the tab JavaScript plugin—include it individually or through the compiled
337337
|
338338
code coreui.js

0 commit comments

Comments
 (0)