beathers 5.6.2 → 5.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +1 -1
- package/css/beathers.min.css +1 -1
- package/css/beathers.min.css.map +1 -1
- package/docs/colors.md +250 -0
- package/docs/grid-system.md +130 -0
- package/docs/shaping.md +272 -0
- package/docs/typography.md +124 -0
- package/package.json +3 -2
- package/scss/beathers.min.scss +1 -1
package/docs/colors.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# Colors Documentation
|
|
2
|
+
|
|
3
|
+
> Simple guide to using color utilities in Beathers CSS framework
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Text Colors](#text-colors)
|
|
8
|
+
- [Background Colors](#background-colors)
|
|
9
|
+
- [Border Colors](#border-colors)
|
|
10
|
+
- [Color Opacity](#color-opacity)
|
|
11
|
+
- [Special Utilities](#special-utilities)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Text Colors
|
|
16
|
+
|
|
17
|
+
### Normal State
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<p class="color-main">Main color text</p>
|
|
21
|
+
<p class="color-primary">Primary color text</p>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Pseudo State
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<p class="color-main:hover">Hover text color</p>
|
|
28
|
+
<p class="color-primary:focus">Focus text color</p>
|
|
29
|
+
|
|
30
|
+
<input class="color-main:placeholder" placeholder="Placeholder color" />
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Current Color
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<div class="color-primary">
|
|
37
|
+
<span class="current-color">Inherits parent text color</span>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Dark/Light Mode
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<!-- Context method -->
|
|
45
|
+
<div class="light">
|
|
46
|
+
<p class="color-main">Light theme text</p>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- Direct method -->
|
|
50
|
+
<p class="color-main light">Light text</p>
|
|
51
|
+
<p class="color-main dark">Dark text</p>
|
|
52
|
+
|
|
53
|
+
<!-- Utility-first -->
|
|
54
|
+
<p class="light:color-main">Light only</p>
|
|
55
|
+
<p class="dark:color-main">Dark only</p>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### CSS Integration
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
.custom-text {
|
|
62
|
+
color: var(--color-main-light);
|
|
63
|
+
}
|
|
64
|
+
.dark .custom-text {
|
|
65
|
+
color: var(--color-main-dark);
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### SCSS Integration
|
|
70
|
+
|
|
71
|
+
```scss
|
|
72
|
+
@use 'beathers/scss/functions/colors' as colors;
|
|
73
|
+
|
|
74
|
+
.custom-text {
|
|
75
|
+
@include colors.useColor('main', color);
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Background Colors
|
|
82
|
+
|
|
83
|
+
### Normal State
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<div class="bg:color-main">Main background</div>
|
|
87
|
+
<div class="bg:color-primary">Primary background</div>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Pseudo State
|
|
91
|
+
|
|
92
|
+
```html
|
|
93
|
+
<button class="bg:color-main:hover">Hover background</button>
|
|
94
|
+
<input class="bg:color-primary:focus">Focus background</input>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Current Color
|
|
98
|
+
|
|
99
|
+
```html
|
|
100
|
+
<div class="color-primary">
|
|
101
|
+
<span class="bg:current-color">Background matches text color</span>
|
|
102
|
+
</div>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Dark/Light Mode
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<div class="bg:color-main light">Light background</div>
|
|
109
|
+
<div class="bg:color-main dark">Dark background</div>
|
|
110
|
+
<div class="light:bg:color-main">Light only background</div>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### CSS Integration
|
|
114
|
+
|
|
115
|
+
```css
|
|
116
|
+
.custom-bg {
|
|
117
|
+
background-color: var(--color-main-light);
|
|
118
|
+
}
|
|
119
|
+
.dark .custom-bg {
|
|
120
|
+
background-color: var(--color-main-dark);
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### SCSS Integration
|
|
125
|
+
|
|
126
|
+
```scss
|
|
127
|
+
@use 'beathers/scss/functions/colors' as colors;
|
|
128
|
+
|
|
129
|
+
.custom-bg {
|
|
130
|
+
@include colors.useColor('main', background-color);
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Border Colors
|
|
137
|
+
|
|
138
|
+
### Normal State
|
|
139
|
+
|
|
140
|
+
```html
|
|
141
|
+
<div class="border:color-main">Main border</div>
|
|
142
|
+
<div class="border:color-primary">Primary border</div>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Pseudo State
|
|
146
|
+
|
|
147
|
+
```html
|
|
148
|
+
<input class="border:color-main:hover">Hover border</input>
|
|
149
|
+
<input class="border:color-primary:focus">Focus border</input>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Current Color
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<div class="color-primary">
|
|
156
|
+
<div class="border:current-color">Border matches text color</div>
|
|
157
|
+
</div>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Dark/Light Mode
|
|
161
|
+
|
|
162
|
+
```html
|
|
163
|
+
<div class="border:color-main light">Light border</div>
|
|
164
|
+
<div class="border:color-main dark">Dark border</div>
|
|
165
|
+
<div class="light:border:color-main">Light only border</div>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### CSS Integration
|
|
169
|
+
|
|
170
|
+
```css
|
|
171
|
+
.custom-border {
|
|
172
|
+
border-color: var(--color-main-light);
|
|
173
|
+
}
|
|
174
|
+
.dark .custom-border {
|
|
175
|
+
border-color: var(--color-main-dark);
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### SCSS Integration
|
|
180
|
+
|
|
181
|
+
```scss
|
|
182
|
+
@use 'beathers/scss/functions/colors' as colors;
|
|
183
|
+
|
|
184
|
+
.custom-border {
|
|
185
|
+
@include colors.useColor('main', border-color);
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Color Opacity
|
|
192
|
+
|
|
193
|
+
### Normal State
|
|
194
|
+
|
|
195
|
+
```html
|
|
196
|
+
<p class="color-main:25">25% opacity text</p>
|
|
197
|
+
<div class="bg:color-primary:50">50% opacity background</div>
|
|
198
|
+
<div class="border:color-main:70">70% opacity border</div>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Pseudo State
|
|
202
|
+
|
|
203
|
+
```html
|
|
204
|
+
<p class="color-main:50:hover">Hover with opacity</p>
|
|
205
|
+
<button class="bg:color-primary:25:focus">Focus with opacity</button>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Dark/Light Mode
|
|
209
|
+
|
|
210
|
+
```html
|
|
211
|
+
<p class="color-main:50 light">Light theme with opacity</p>
|
|
212
|
+
<p class="dark:color-main:25">Dark theme with opacity</p>
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### CSS Integration
|
|
216
|
+
|
|
217
|
+
```css
|
|
218
|
+
.custom-opacity {
|
|
219
|
+
color: rgba(var(--color-main-light-rgb), 0.5);
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### SCSS Integration
|
|
224
|
+
|
|
225
|
+
```scss
|
|
226
|
+
@use 'beathers/scss/functions/colors' as colors;
|
|
227
|
+
|
|
228
|
+
.custom-opacity {
|
|
229
|
+
@include colors.useColor('main', color, 50);
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Special Utilities
|
|
236
|
+
|
|
237
|
+
### Fill & Stroke (SVG)
|
|
238
|
+
|
|
239
|
+
```html
|
|
240
|
+
<svg class="fill:color-main">SVG with main fill</svg>
|
|
241
|
+
<svg class="stroke:color-primary">SVG with primary stroke</svg>
|
|
242
|
+
<svg class="fill:color-main:hover">Hover fill color</svg>
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Text Stroke
|
|
246
|
+
|
|
247
|
+
```html
|
|
248
|
+
<h1 class="text-stroke:color-main">Text with stroke</h1>
|
|
249
|
+
<h2 class="text-stroke:color-primary:50">50% opacity stroke</h2>
|
|
250
|
+
```
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Grid System Documentation
|
|
2
|
+
|
|
3
|
+
> Simple guide to using grid and flexbox utilities in Beathers CSS framework
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [CSS Grid](#css-grid)
|
|
8
|
+
- [Flexbox](#flexbox)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## CSS Grid
|
|
13
|
+
|
|
14
|
+
### Normal State
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<!-- Grid Container -->
|
|
18
|
+
<div class="grid">
|
|
19
|
+
<div>Column 1</div>
|
|
20
|
+
<div>Column 2</div>
|
|
21
|
+
<div>Column 3</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="grid cols:12">
|
|
25
|
+
<div class="col:4">1/3 width</div>
|
|
26
|
+
<div class="col:4">1/3 width</div>
|
|
27
|
+
<div class="col:4">1/3 width</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="grid cols:12">
|
|
31
|
+
<div class="col:6">Half width</div>
|
|
32
|
+
<div class="col:6">Half width</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="grid cols:12">
|
|
36
|
+
<div class="col:4">4 columns</div>
|
|
37
|
+
<div class="col:8">8 columns</div>
|
|
38
|
+
<div class="col:3">3 columns</div>
|
|
39
|
+
<div class="col:9">9 columns</div>
|
|
40
|
+
<div class="col:auto">Auto width</div>
|
|
41
|
+
</div>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Row System
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<div class="grid rows:12">
|
|
48
|
+
<div class="row:4">1/3 width</div>
|
|
49
|
+
<div class="row:4">1/3 width</div>
|
|
50
|
+
<div class="row:auto">Auto height</div>
|
|
51
|
+
</div>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Responsive Grid
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<div class="grid cols:1 md:cols:2 lg:cols:4">
|
|
58
|
+
<div>Item 1</div>
|
|
59
|
+
<div>Item 2</div>
|
|
60
|
+
<div>Item 3</div>
|
|
61
|
+
<div>Item 4</div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<div class="grid cols:12">
|
|
65
|
+
<div class="col:12 md:col:6 lg:col:4">Responsive column</div>
|
|
66
|
+
<div class="col:12 md:col:6 lg:col:8">Responsive column</div>
|
|
67
|
+
</div>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Flexbox
|
|
73
|
+
|
|
74
|
+
### Normal State
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<!-- Basic Flex Container -->
|
|
78
|
+
<div class="flex">
|
|
79
|
+
<div>Flex item 1</div>
|
|
80
|
+
<div>Flex item 2</div>
|
|
81
|
+
<div>Flex item 3</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<!-- Flex with direction -->
|
|
85
|
+
<div class="flex row">Horizontal layout</div>
|
|
86
|
+
<div class="flex column">Vertical layout</div>
|
|
87
|
+
<div class="flex row-reverse">Reverse horizontal</div>
|
|
88
|
+
<div class="flex column-reverse">Reverse vertical</div>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Flex Wrap
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<div class="flex wrap">Wrapping flex container</div>
|
|
95
|
+
<div class="flex nowrap">Non-wrapping flex container</div>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Flex Wrapper System
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<!-- Auto-sized flex children -->
|
|
102
|
+
<div class="flex flex-wrapper row cols:auto">
|
|
103
|
+
<div>Auto width item</div>
|
|
104
|
+
<div>Auto width item</div>
|
|
105
|
+
<div>Auto width item</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<!-- Equal columns with flex -->
|
|
109
|
+
<div class="flex flex-wrapper row cols:3">
|
|
110
|
+
<div>1/3 width</div>
|
|
111
|
+
<div>1/3 width</div>
|
|
112
|
+
<div>1/3 width</div>
|
|
113
|
+
</div>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Responsive Flexbox
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<div class="flex column md:row">
|
|
120
|
+
<div>Item 1</div>
|
|
121
|
+
<div>Item 2</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<div class="flex flex-wrapper row cols:1 md:cols:2 lg:cols:4">
|
|
125
|
+
<div>Responsive flex item</div>
|
|
126
|
+
<div>Responsive flex item</div>
|
|
127
|
+
<div>Responsive flex item</div>
|
|
128
|
+
<div>Responsive flex item</div>
|
|
129
|
+
</div>
|
|
130
|
+
```
|
package/docs/shaping.md
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
# Shaping Documentation
|
|
2
|
+
|
|
3
|
+
> Simple guide to visual styling utilities in Beathers CSS framework
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Shadows](#shadows)
|
|
8
|
+
- [Glass Effects](#glass-effects)
|
|
9
|
+
- [Display & Visibility](#display--visibility)
|
|
10
|
+
- [Overflow](#overflow)
|
|
11
|
+
- [Object Fit](#object-fit)
|
|
12
|
+
- [Positioning](#positioning)
|
|
13
|
+
- [Sizing](#sizing)
|
|
14
|
+
- [Border Radius](#border-radius)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Shadows
|
|
19
|
+
|
|
20
|
+
### Normal State
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<div class="shadow:light">Light shadow</div>
|
|
24
|
+
<div class="shadow:soft">Soft shadow</div>
|
|
25
|
+
<div class="shadow:medium">Medium shadow</div>
|
|
26
|
+
<div class="shadow:solid">Solid shadow</div>
|
|
27
|
+
<div class="shadow:floating">Floating shadow</div>
|
|
28
|
+
<div class="shadow:flat">Flat shadow</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Responsive Shadows
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div class="shadow:soft md:shadow:medium lg:shadow:floating">Responsive shadow</div>
|
|
35
|
+
<div class="shadow:light lg:shadow:solid">Mobile light, desktop solid</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Glass Effects
|
|
41
|
+
|
|
42
|
+
### Normal State
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<div class="bg:glass">Glass effect element</div>
|
|
46
|
+
<div class="bg:glass radius:full">Rounded glass effect</div>
|
|
47
|
+
<div class="bg:glass shadow:soft">Glass with soft shadow</div>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Theme Support
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<!-- Context method -->
|
|
54
|
+
<div class="light">
|
|
55
|
+
<div class="bg:glass">Light theme glass</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="dark">
|
|
58
|
+
<div class="bg:glass">Dark theme glass</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<!-- Direct method -->
|
|
62
|
+
<div class="bg:glass light">Light glass</div>
|
|
63
|
+
<div class="bg:glass dark">Dark glass</div>
|
|
64
|
+
|
|
65
|
+
<!-- Utility-first -->
|
|
66
|
+
<div class="light:bg:glass">Light only glass</div>
|
|
67
|
+
<div class="dark:bg:glass">Dark only glass</div>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Combined with Other Utilities
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="bg:glass shadow:floating radius:full p-relative">Complete glass card</div>
|
|
74
|
+
<div class="bg:glass color-main border:color-main">Glass with borders</div>
|
|
75
|
+
<div class="bg:glass d-flex justify-center items-center">Glass container</div>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Custom Settings
|
|
79
|
+
|
|
80
|
+
Customize glass effects using CSS custom properties:
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
.custom-glass {
|
|
84
|
+
--glass-blur: 12px;
|
|
85
|
+
--glass-border-thickness: 2px;
|
|
86
|
+
--glass-light-angle: 135deg;
|
|
87
|
+
|
|
88
|
+
/* Light theme colors */
|
|
89
|
+
--glass-color-light: rgba(255, 255, 255, 0.2);
|
|
90
|
+
--glass-border-1-color-light: rgba(255, 255, 255, 0.3);
|
|
91
|
+
--glass-border-2-color-light: rgba(255, 255, 255, 0.1);
|
|
92
|
+
|
|
93
|
+
/* Dark theme colors */
|
|
94
|
+
--glass-color-dark: rgba(0, 0, 0, 0.2);
|
|
95
|
+
--glass-border-1-color-dark: rgba(255, 255, 255, 0.1);
|
|
96
|
+
--glass-border-2-color-dark: rgba(255, 255, 255, 0.05);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Usage:**
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<div class="bg:glass custom-glass">Custom glass effect</div>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Available Settings:**
|
|
107
|
+
|
|
108
|
+
- `--glass-blur` - Backdrop blur amount (default: 8px)
|
|
109
|
+
- `--glass-border-thickness` - Border thickness (default: 1px)
|
|
110
|
+
- `--glass-light-angle` - Gradient angle (default: 45deg)
|
|
111
|
+
- `--glass-color-light/dark` - Background colors for themes
|
|
112
|
+
- `--glass-border-1/2-color-light/dark` - Border gradient colors
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Display & Visibility
|
|
117
|
+
|
|
118
|
+
### Normal State
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<div class="d-inline">Inline display</div>
|
|
122
|
+
<div class="d-block">Block display</div>
|
|
123
|
+
<div class="d-inline-block">Inline-block display</div>
|
|
124
|
+
<div class="d-flex">Flex display</div>
|
|
125
|
+
<div class="d-inline-flex">Inline-flex display</div>
|
|
126
|
+
<div class="d-inline-grid">Inline-grid display</div>
|
|
127
|
+
<div class="d-table">Table display</div>
|
|
128
|
+
<div class="d-table-cell">Table-cell display</div>
|
|
129
|
+
<div class="d-none">Hidden element</div>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Responsive Display
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<div class="d-none md:d-block">Hidden on mobile, visible on desktop</div>
|
|
136
|
+
<div class="d-block lg:d-flex">Block on mobile, flex on desktop</div>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Overflow
|
|
142
|
+
|
|
143
|
+
### Normal State
|
|
144
|
+
|
|
145
|
+
```html
|
|
146
|
+
<div class="overflow-visible">Visible overflow</div>
|
|
147
|
+
<div class="overflow-hidden">Hidden overflow</div>
|
|
148
|
+
<div class="overflow-auto">Auto overflow</div>
|
|
149
|
+
<div class="overflow-scroll">Scroll overflow</div>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Directional Overflow
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<div class="x:overflow-hidden">Hide horizontal overflow</div>
|
|
156
|
+
<div class="y:overflow-auto">Auto vertical overflow</div>
|
|
157
|
+
<div class="x:overflow-scroll y:overflow-hidden">Mixed overflow control</div>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Responsive Overflow
|
|
161
|
+
|
|
162
|
+
```html
|
|
163
|
+
<div class="overflow-hidden md:overflow-auto">Responsive overflow</div>
|
|
164
|
+
<div class="x:overflow-auto lg:x:overflow-hidden">Responsive horizontal</div>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Object Fit
|
|
170
|
+
|
|
171
|
+
### Normal State
|
|
172
|
+
|
|
173
|
+
```html
|
|
174
|
+
<img class="object-fit:cover" src="image.jpg" />
|
|
175
|
+
<img class="object-fit:fill" src="image.jpg" />
|
|
176
|
+
<img class="object-fit:contain" src="image.jpg" />
|
|
177
|
+
<img class="object-fit:none" src="image.jpg" />
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Responsive Object Fit
|
|
181
|
+
|
|
182
|
+
```html
|
|
183
|
+
<img class="object-fit:cover md:object-fit:contain" src="image.jpg" />
|
|
184
|
+
<img class="object-fit:fill lg:object-fit:cover" src="image.jpg" />
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Positioning
|
|
190
|
+
|
|
191
|
+
### Normal State
|
|
192
|
+
|
|
193
|
+
```html
|
|
194
|
+
<div class="p-static">Static position</div>
|
|
195
|
+
<div class="p-relative">Relative position</div>
|
|
196
|
+
<div class="p-fixed">Fixed position</div>
|
|
197
|
+
<div class="p-absolute">Absolute position</div>
|
|
198
|
+
<div class="p-sticky">Sticky position</div>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Responsive Positioning
|
|
202
|
+
|
|
203
|
+
```html
|
|
204
|
+
<div class="p-relative md:p-absolute">Responsive positioning</div>
|
|
205
|
+
<div class="p-static lg:p-sticky">Mobile static, desktop sticky</div>
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Sizing
|
|
211
|
+
|
|
212
|
+
### Width
|
|
213
|
+
|
|
214
|
+
```html
|
|
215
|
+
<div class="w:25">25% width</div>
|
|
216
|
+
<div class="w:50">50% width</div>
|
|
217
|
+
<div class="w:75">75% width</div>
|
|
218
|
+
<div class="w:100">100% width</div>
|
|
219
|
+
|
|
220
|
+
<div class="min:w:25">Min 25% width</div>
|
|
221
|
+
<div class="max:w:75">Max 75% width</div>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Height
|
|
225
|
+
|
|
226
|
+
```html
|
|
227
|
+
<div class="h:25">25% height</div>
|
|
228
|
+
<div class="h:50">50% height</div>
|
|
229
|
+
<div class="h:75">75% height</div>
|
|
230
|
+
<div class="h:100">100% height</div>
|
|
231
|
+
|
|
232
|
+
<div class="min:h:50">Min 50% height</div>
|
|
233
|
+
<div class="max:h:90">Max 90% height</div>
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Responsive Sizing
|
|
237
|
+
|
|
238
|
+
```html
|
|
239
|
+
<div class="w:100 md:w:50 lg:w:25">Responsive width</div>
|
|
240
|
+
<div class="h:50 md:h:75 lg:h:100">Responsive height</div>
|
|
241
|
+
<div class="min:w:25 lg:min:w:50">Responsive min-width</div>
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Border Radius
|
|
247
|
+
|
|
248
|
+
### Normal State
|
|
249
|
+
|
|
250
|
+
```html
|
|
251
|
+
<div class="radius:full">Full rounded</div>
|
|
252
|
+
<div class="radius:top:full">Top rounded</div>
|
|
253
|
+
<div class="radius:bottom:full">Bottom rounded</div>
|
|
254
|
+
<div class="radius:start:full">Start rounded</div>
|
|
255
|
+
<div class="radius:end:full">End rounded</div>
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
### Corner-Specific Radius
|
|
259
|
+
|
|
260
|
+
```html
|
|
261
|
+
<div class="radius:top-start:full">Top-start corner</div>
|
|
262
|
+
<div class="radius:top-end:full">Top-end corner</div>
|
|
263
|
+
<div class="radius:bottom-start:full">Bottom-start corner</div>
|
|
264
|
+
<div class="radius:bottom-end:full">Bottom-end corner</div>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Responsive Radius
|
|
268
|
+
|
|
269
|
+
```html
|
|
270
|
+
<div class="radius:full md:radius:top:full">Responsive border radius</div>
|
|
271
|
+
<div class="radius:start:full lg:radius:full">Start on mobile, full on desktop</div>
|
|
272
|
+
```
|