Skip to content

Commit 2d69898

Browse files
committed
docs: update documentation
1 parent 9ac90aa commit 2d69898

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

docs/4.0/components/CCard.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ Change it to `md={{ cols: 3}}` and you'll see the fourth card wrap.
701701
When you need equal height, add `.h-100` to the cards. If you want equal heights by default, you can set `$card-height: 100%` in Sass.
702702

703703
<Playground>
704-
<CRow cols="1" colsMd="3" className="g-4">
704+
<CRow xs={{ cols: 1 }} md={{ cols: 3 }} className="g-4">
705705
<CCol xs>
706706
<CCard className="h-100">
707707
<CCardImage component="svg" orientation="top" className="docs-placeholder-img" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"></rect><text x="50%" y="50%" fill="#dee2e6" dy=".3em">Image cap</text></CCardImage>
@@ -744,7 +744,7 @@ When you need equal height, add `.h-100` to the cards. If you want equal heights
744744
Just like with card groups, card footers will automatically line up.
745745

746746
<Playground>
747-
<CRow cols="1" colsMd="3" className="g-4">
747+
<CRow xs={{ cols: 1 }} md={{ cols: 3 }} className="g-4">
748748
<CCol xs>
749749
<CCard className="h-100">
750750
<CCardImage component="svg" orientation="top" className="docs-placeholder-img" width="100%" height="180" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder: Image cap" preserveAspectRatio="xMidYMid slice" focusable="false"><title>Placeholder</title><rect width="100%" height="100%" fill="#868e96"></rect><text x="50%" y="50%" fill="#dee2e6" dy=".3em">Image cap</text></CCardImage>

docs/4.0/components/CFooter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { CFooter, CLink } from '../../../src/index.ts'
1616
<CFooter>
1717
<div>
1818
<CLink href="https://coreui.io">CoreUI</CLink>
19-
<span>&copy; 2020 creativeLabs.</span>
19+
<span>&copy; 2021 creativeLabs.</span>
2020
</div>
2121
<div>
2222
<span>Powered by</span>

docs/4.0/components/CModal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ Modals have three optional sizes, available via modifier classes to be placed on
467467
<>
468468
<CButton onClick={() => setVisibleXL(!visibleXL)}>Extra large modal</CButton>
469469
<CButton onClick={() => setVisibleLg(!visibleLg)}>Large modal</CButton>
470-
<CButton onClick={() => setVisibleSm(!visibleSm)}>Small large modal</CButton>
470+
<CButton onClick={() => setVisibleSm(!visibleSm)}>Small modal</CButton>
471471
<CModal size="xl" visible={visibleXL}>
472472
<CModalHeader onDismiss={() => setVisibleXL(false)}>
473473
<CModalTitle>Extra large modal</CModalTitle>

docs/4.0/layout/breakpoints.mdx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ menu: Layout
55
route: "/layout/breakpoints"
66
---
77

8+
import { CCallout } from '../../../src/index.ts'
9+
810
## Core concepts
911

1012
- **Breakpoints are the building blocks of responsive design.** Use them to control when your layout can be adapted at a particular viewport or device size.
@@ -63,7 +65,16 @@ Each breakpoint was chosen to comfortably hold containers whose widths are multi
6365

6466
These breakpoints are customizable via Sass—you'll find them in a Sass map in our `_variables.scss` stylesheet.
6567

66-
{{< scss-docs name="grid-breakpoints" file="scss/_variables.scss" >}}
68+
```scss
69+
$grid-breakpoints: (
70+
xs: 0,
71+
sm: 576px,
72+
md: 768px,
73+
lg: 992px,
74+
xl: 1200px,
75+
xxl: 1400px
76+
);
77+
```
6778

6879
For more information and examples on how to modify our Sass maps and variables, please refer to [the Sass section of the Grid documentation](https://coreui.io/docs/4.0/layout/grid#sass).
6980

@@ -162,9 +173,9 @@ These mixins take those declared breakpoints, subtract `.02px` from them, and us
162173
// No media query since the xxl breakpoint has no upper bound on its width
163174
```
164175

165-
{{< callout warning >}}
166-
{{< partial "callout-info-mediaqueries-breakpoints.md" >}}
167-
{{< /callout >}}
176+
<CCallout color="warning">
177+
<strong>Why subtract .02px?</strong> Browsers don’t currently support <a href="https://www.w3.org/TR/mediaqueries-4/#range-context">range context queries</a>, so we work around the limitations of <a href="https://www.w3.org/TR/mediaqueries-4/#mq-min-max"><code>min-</code> and <code>max-</code> prefixes</a> and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision.
178+
</CCallout>
168179

169180
### Single breakpoint
170181

0 commit comments

Comments
 (0)