Skip to content

Commit 4f191ef

Browse files
adjust sidenav styles
1 parent e0684d0 commit 4f191ef

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

src/features/introduction/components/introduction-article/introduction-article.module.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
@use "@/libs/theme/styles/variables" as *;
2+
@use "@/libs/theme/styles/mixins" as *;
23

34
.container {
4-
display: flex;
5-
}
6-
7-
.content {
5+
@include InnerContentFlex;
6+
justify-content: start;
87
}
98

109
.title {

src/features/introduction/components/introduction-hero/introduction-hero.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
.container {
55
@include Container;
6-
margin-bottom: 1.5rem;
6+
margin: 1.5rem 0rem;
77
}
88

99
.content {

src/features/introduction/components/sidebar-nav/sidebar-nav.module.scss

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,34 @@
22

33
.container {
44
display: none;
5+
56
@media #{$breakpoint-dimension-sm} {
6-
display: inline-block;
7-
height: 100vh;
7+
display: block;
8+
flex-shrink: 1;
89
position: sticky;
910
color: var(--color_fg_link);
10-
flex-shrink: 0;
11-
top: 0;
12-
padding: 160px 30px 0px;
13-
margin-bottom: 100px;
11+
margin: 2rem 0rem;;
12+
padding: 0rem 1rem;
13+
top: $main-nav-height + 2rem; // additional value must be equal to top margin + top padding
1414
border-right: 1px solid var(--color_border_bold);
15-
max-width: 250px;
16-
overflow-y: auto;
15+
font-size: 0.875rem;
16+
max-width: 20rem;
17+
height: fit-content;
1718
}
1819
}
1920

2021
.title {
21-
margin-bottom: 36px;
22-
padding-right: 8px;
2322
cursor: pointer;
2423
}
2524

2625
.title__active {
2726
color: var(--color_fg_selected);
28-
border-bottom: 1px solid var(--color_border_selected);
27+
text-decoration: underline;
2928
}
3029

3130
.list {
3231
list-style-type: none;
32+
display: flex;
33+
flex-direction: column;
34+
gap: 2rem;
3335
}

0 commit comments

Comments
 (0)