You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/style/layout/breakpoints.md
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,58 @@ order: 200
3
3
---
4
4
5
5
# Breakpoints
6
+
7
+
Responsive Style utilizes breakpoints to determine responsive layout behavior across varying device viewport sizes. These width thresholds are customizable.
8
+
9
+
## Core Concepts
10
+
11
+
-**Breakpoints**: Critical thresholds in responsive design that determine content display at specific screen sizes. Typically pixel values where styles apply below/above specified widths.
12
+
-**Media Queries**: CSS feature allowing conditional style application based on device parameters. We primarily use min-width queries.
13
+
-**Mobile-First**: Responsive Style employs mobile-first approach, applying minimal base styles for smallest breakpoints then layering enhancements for larger devices. Optimizes CSS efficiency and rendering performance.
14
+
15
+
## Default Breakpoints
16
+
17
+
Predefined breakpoints (customizable via SCSS variables):
18
+
19
+
| Name | Class Prefix | Breakpoint |
20
+
| ----------- | ------------ | ---------- |
21
+
| Extra small | - |`<576px`|
22
+
| Small |`.sm:`|`≥576px`|
23
+
| Medium |`.md:`|`≥768px`|
24
+
| Large |`.lg:`|`≥992px`|
25
+
| Extra large |`.xl:`|`≥1200px`|
26
+
27
+
Breakpoint widths are multiples of 12, providing consistent foundation across common devices. Customize in `_variables.scss`:
28
+
29
+
```scss
30
+
$grid-breakpoints: (
31
+
xs: 0,
32
+
sm: 576px,
33
+
md: 768px,
34
+
lg: 992px,
35
+
xl: 1200px,
36
+
) !default;
37
+
```
38
+
39
+
## Usage
40
+
41
+
All utility classes support responsive prefixes. Follow **mobile-first** principle: non-prefixed styles apply to all breakpoints.
42
+
43
+
<Storytitle="Hide at breakpoints"defaultShowCode>
44
+
<divclass="demo-bps text-center p-4">
45
+
<divclass="d-none my-2"><b>Hide</b> on all screens</div>
46
+
<divclass="sm:d-none my-2"><b>Hide</b> on sm and wider screens</div>
47
+
<divclass="md:d-none my-2"><b>Hide</b> on md and wider screens</div>
48
+
<divclass="lg:d-none my-2"><b>Hide</b> on lg and wider screens</div>
49
+
<divclass="xl:d-none my-2"><b>Hide</b> on xl and wider screens</div>
50
+
</div>
51
+
</Story>
52
+
53
+
<Storytitle="Show at breakpoints"defaultShowCode>
54
+
<divclass="demo-bps text-center p-4">
55
+
<divclass="d-none sm:d-block my-2"><b>Show</b> on sm and wider screens</div>
56
+
<divclass="d-none md:d-block my-2"><b>Show</b> on md and wider screens</div>
57
+
<divclass="d-none lg:d-block my-2"><b>Show</b> on lg and wider screens</div>
58
+
<divclass="d-none xl:d-block my-2"><b>Show</b> on xl and wider screens</div>
Copy file name to clipboardExpand all lines: docs/en/style/layout/columns.md
+252Lines changed: 252 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,255 @@ order: 220
3
3
---
4
4
5
5
# Columns
6
+
7
+
Responsive Style's columns system uses containers, rows and columns for layout alignment. Built with flexbox, it provides a 12-column responsive columns. Key principles:
0 commit comments