Skip to content

Commit a97e326

Browse files
committed
refactor: update examples
1 parent 4d798c2 commit a97e326

File tree

7 files changed

+22
-30
lines changed

7 files changed

+22
-30
lines changed

src/scss/_custom.scss

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
min-height: calc(4rem + 1px); // stylelint-disable-line function-disallowed-list
66
}
77

8+
.header > .container-fluid + .container-fluid {
9+
min-height: 3rem;
10+
}
11+
812
.sidebar-brand-full {
913
margin-left: 3px;
1014
}
@@ -20,19 +24,6 @@
2024
}
2125
}
2226

23-
.header > .container-fluid + .container-fluid {
24-
min-height: 3rem;
25-
}
26-
27-
.header {
28-
padding: 0;
29-
30-
.container-fluid {
31-
padding-right: $spacer;
32-
padding-left: $spacer;
33-
}
34-
}
35-
3627
.footer {
3728
min-height: calc(3rem + 1px); // stylelint-disable-line function-disallowed-list
3829
}

src/scss/_examples.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
}
5252

5353
// Buttons
54+
.col > .btn,
55+
.col-auto > .btn,
56+
.d-md-block > .btn,
5457
> .btn,
5558
> .btn-group {
5659
margin: .25rem .125rem;

src/views/base/carousels/Carousels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const Carousels = () => {
107107
You can add captions to slides with the <code>&lt;CCarouselCaption&gt;</code> element
108108
within any <code>&lt;CCarouselItem&gt;</code>. They can be immediately hidden on
109109
smaller viewports, as shown below, with optional{' '}
110-
<a href="https://coreui.io/4.0/utilities/display">display utilities</a>. We hide them
110+
<a href="https://coreui.io//utilities/display">display utilities</a>. We hide them
111111
with <code>.d-none</code> and draw them back on medium-sized devices with{' '}
112112
<code>.d-md-block</code>.
113113
</p>

src/views/base/tables/Tables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ const Tables = () => {
463463
</CTable>
464464
</DocsExample>
465465
<p className="text-body-secondary small">
466-
<a href="https://coreui.io/docs/4.0/utilities/borders#border-color">
466+
<a href="https://coreui.io/docs/utilities/borders#border-color">
467467
Border color utilities
468468
</a>{' '}
469469
can be added to change colors:

src/views/buttons/buttons/Buttons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const Buttons = () => {
6060
</CCardHeader>
6161
<CCardBody>
6262
<p className="text-body-secondary small">
63-
You can combine button with our <a href="https://icons.coreui.io/">CoreUI Icons</a>.
63+
You can combine button with our <a href="https://coreui.io/icons/">CoreUI Icons</a>.
6464
</p>
6565
<DocsExample href="components/buttons">
6666
{['normal', 'active', 'disabled'].map((state, index) => (

src/views/notifications/alerts/Alerts.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ const Alerts = () => {
2424
React Alert is prepared for any length of text, as well as an optional close button.
2525
For a styling, use one of the <strong>required</strong> contextual <code>color</code>{' '}
2626
props (e.g., <code>primary</code>). For inline dismissal, use the{' '}
27-
<a href="https://coreui.io/react/docs/4.0/components/alert#dismissing">
28-
dismissing prop
29-
</a>
27+
<a href="https://coreui.io/react/docs/components/alert#dismissing">dismissing prop</a>
3028
.
3129
</p>
3230
<DocsExample href="components/alert">

src/views/notifications/toasts/Toasts.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ const Toasts = () => {
176176
<CCardBody>
177177
<p className="text-body-secondary small">
178178
Customize your toasts by removing sub-components, tweaking them with{' '}
179-
<a href="https://coreui.io/docs/4.0/utilities/api">utilities</a>, or by adding your
180-
own markup. Here we&#39;ve created a simpler toast by removing the default{' '}
179+
<a href="https://coreui.io/docs/utilities/api">utilities</a>, or by adding your own
180+
markup. Here we&#39;ve created a simpler toast by removing the default{' '}
181181
<code>&lt;CToastHeader&gt;</code>, adding a custom hide icon from{' '}
182-
<a href="https://icons.coreui.io">CoreUI Icons</a>, and using some{' '}
183-
<a href="https://coreui.io/docs/4.0/utilities/flex">flexbox utilities</a> to adjust
184-
the layout.
182+
<a href="https://coreui.io/icons/">CoreUI Icons</a>, and using some{' '}
183+
<a href="https://coreui.io/docs/utilities/flex">flexbox utilities</a> to adjust the
184+
layout.
185185
</p>
186186
<DocsExample href="components/toast#custom-content">
187187
<CToast autohide={false} className="align-items-center" visible={true}>
@@ -220,12 +220,12 @@ const Toasts = () => {
220220
<CCardBody>
221221
<p className="text-body-secondary small">
222222
Building on the above example, you can create different toast color schemes with our{' '}
223-
<a href="https://coreui.io/docs/4.0/utilities/colors">color</a> and{' '}
224-
<a href="https://coreui.io/docs/4.0//utilities/background">background</a> utilities.
225-
Here we&#39;ve set <code>color=&#34;primary&#34;</code> and added{' '}
226-
<code>.text-white</code> class to the <code>&lt;Ctoast&gt;</code>, and then set{' '}
227-
<code>white</code> property to our close button. For a crisp edge, we remove the
228-
default border with <code>.border-0</code>.
223+
<a href="https://coreui.io/docs/utilities/colors">color</a> and{' '}
224+
<a href="https://coreui.io/docs/utilities/background">background</a> utilities. Here
225+
we&#39;ve set <code>color=&#34;primary&#34;</code> and added <code>.text-white</code>{' '}
226+
class to the <code>&lt;Ctoast&gt;</code>, and then set <code>white</code> property to
227+
our close button. For a crisp edge, we remove the default border with{' '}
228+
<code>.border-0</code>.
229229
</p>
230230
<DocsExample href="components/toast#color-schemes">
231231
<CToast

0 commit comments

Comments
 (0)