Skip to content

Commit da56920

Browse files
updating footer breakpoints sm
1 parent 28cf8af commit da56920

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

apps/insights/src/components/Root/footer.module.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@
1212
.topContent {
1313
display: flex;
1414
gap: theme.spacing(6);
15-
15+
1616
// SM
1717
flex-flow: row nowrap;
1818
align-items: center;
1919
justify-content: space-between;
2020

21+
@media screen and (max-width: theme.breakpoint("sm")) {
22+
flex-flow: column nowrap;
23+
align-items: flex-start;
24+
}
25+
2126
@include theme.max-width;
2227

2328
// XL
24-
margin-bottom: theme.spacing(12);
29+
margin-bottom: theme.spacing(6);
2530

2631
// py-6
2732

@@ -91,6 +96,11 @@
9196
flex-flow: row nowrap;
9297
justify-content: space-between;
9398

99+
@media screen and (max-width: theme.breakpoint("sm")) {
100+
flex-flow: column nowrap;
101+
align-items: flex-start;
102+
}
103+
94104
// "flex-col
95105

96106
@include theme.max-width;

apps/insights/src/components/Root/header.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464
}
6565

66-
@media screen and (min-width: theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))) {
66+
@media screen and (min-width: #{theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))}) {
6767
.leftMenu {
6868
margin-left: -#{theme.spacing(9) + theme.spacing(7)};
6969

packages/component-library/src/theme.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ $border-radius: (
8080
@return map-get-strict($border-radius, $radius);
8181
}
8282

83+
$brakpoints: (
84+
"sm": 480px,
85+
"md": 768px,
86+
"lg": 1024px,
87+
"xl": 1280px,
88+
"2xl": 1536px,
89+
);
90+
91+
@function breakpoint($breakpoint) {
92+
@return map-get-strict($brakpoints, $breakpoint);
93+
}
94+
8395
$color-pallette: (
8496
"black": #000,
8597
"white": #fff,

0 commit comments

Comments
 (0)