Skip to content

Commit 9b3ac77

Browse files
committed
feature: add large breakpoint
1 parent 63ac6c5 commit 9b3ac77

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

src/once-ui/components/Flex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ const Flex = forwardRef<HTMLDivElement, ComponentProps>(
302302
);
303303

304304
Flex.displayName = "Flex";
305-
export { Flex };
305+
export { Flex };

src/once-ui/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ export interface StyleProps extends HTMLAttributes<HTMLDivElement> {
133133
}
134134

135135
export interface ConditionalProps extends HTMLAttributes<HTMLDivElement> {
136-
hide?: "s" | "m";
137-
show?: "s" | "m";
136+
hide?: "s" | "m" | "l";
137+
show?: "s" | "m" | "l";
138138
}
139139

140140
export interface DisplayProps extends HTMLAttributes<HTMLDivElement> {

src/once-ui/styles/layout.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
flex-direction: row-reverse;
2727
}
2828

29+
.l-flex-show {
30+
display: none;
31+
}
32+
2933
.m-flex-show {
3034
display: none;
3135
}
@@ -34,6 +38,32 @@
3438
display: none;
3539
}
3640

41+
@media (--l) {
42+
.l-flex-hide {
43+
display: none !important;
44+
}
45+
46+
.l-flex-show {
47+
display: flex !important;
48+
}
49+
50+
.l-flex-column {
51+
flex-direction: column !important;
52+
}
53+
54+
.l-flex-row {
55+
flex-direction: row !important;
56+
}
57+
58+
.l-flex-column-reverse {
59+
flex-direction: column-reverse !important;
60+
}
61+
62+
.l-flex-row-reverse {
63+
flex-direction: row-reverse !important;
64+
}
65+
}
66+
3767
@media (--m) {
3868
.m-flex-hide {
3969
display: none !important;

0 commit comments

Comments
 (0)