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/css_classes.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ Some CSS styled text
25
25
26
26
If you find yourself using a class(es) often, consider opening an issue to request a new role/directive or option!
27
27
28
+
The `div` directive also has the `style` option, which allows you to add inline CSS styles, although it is not recommended to use this option for most cases.
29
+
28
30
## Text
29
31
30
32
Classes are available for styling and alignment:
@@ -70,16 +72,24 @@ Define the layout of an element and its children (see [`display`](https://develo
70
72
-`sd-d-inline-block`
71
73
-`sd-d-block`
72
74
-`sd-d-grid`
73
-
-`sd-d-flex`
75
+
-`sd-d-flex-row` (align items horizontally)
76
+
-`sd-d-flex-column` (align items vertically)
74
77
-`sd-d-inline-flex`
75
78
76
79
Variants are also available for screen-sizes (xs, sm, md, lg), e.g. `sd-d-sm-none`.
77
80
78
-
Items within a flex box can also be aligned:
81
+
Items within a flex box can also be aligned along the major axis or minor axis, dependant on the flex-direction.
82
+
For example, using `sd-d-flex-column` and `sd-align-major-center` will center the items in the vertical direction.
83
+
84
+
-`sd-align-major-start`
85
+
-`sd-align-major-end`
86
+
-`sd-align-major-center`
87
+
-`sd-align-major-spaced` (spaced to fill the full axis)
88
+
-`sd-align-major-justify` (spaced to fill the full axis, with the first/last item on the edges of the axis)
0 commit comments