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
{{ message }}
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Svelte Materialify comes with a 12 column grid system built using flexbox. The grid is used to create specific layouts within an application’s content. It contains 5 types of media breakpoints that are used for targeting specific screen sizes or orientations, **xs**, **sm**, **md**, **lg** and **xl**.
@@ -21,7 +25,9 @@ Svelte Materialify comes with a 12 column grid system built using flexbox. The g
21
25
22
26
The Svelte Materialify grid is heavily inspired by the [Bootstrap Grid](https://getbootstrap.com/docs/4.0/layout/grid/). It is integrated by using a series of containers, rows, and columns to layout and align content.
23
27
24
-
<Components.Example file="Grid/usage" />
28
+
<Wrapper>
29
+
<Components.Example file="Grid/usage" />
30
+
</Wrapper>
25
31
26
32
## API
27
33
@@ -65,19 +71,27 @@ Breakpoints based props on grid components work in an `andUp` fashion. With this
65
71
### Align
66
72
67
73
Change the vertical alignment of flex items and their parents using the **align** and **align-self** helper classes.
74
+
<Wrapper>
68
75
<Components.Example file="Grid/align" />
76
+
</Wrapper>
69
77
70
78
### Breakpoint sizing
71
79
72
80
Columns will automatically take up an equal amount of space within their parent container. This can be modified using the **cols** prop. You can also utilize the **sm**, **md**, **lg**, and **xl** props to further define how the column will be sized in different viewport sizes.
81
+
<Wrapper>
73
82
<Components.Example file="Grid/breakpoint" />
83
+
</Wrapper>
74
84
75
85
### Offsets
76
86
77
87
Offsets are useful for compensating for elements that may not be visible yet, or to control the position of content. Just as with breakpoints, you can set an offset for any available sizes. This allows you to fine tune your application layout precisely to your needs.
88
+
<Wrapper>
78
89
<Components.Example file="Grid/offset" />
90
+
</Wrapper>
79
91
80
92
### Margin Helpers
81
93
82
94
Using the [auto margin helper utilities](/styles/spacing/) you can force sibling columns away from each other.
0 commit comments