Skip to content

Commit ca854b2

Browse files
committed
Fix tutorial site homepage
1 parent 6b2ce3a commit ca854b2

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

themes/mongodb-tutorials/src/styles/bem-components/main.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ $sidebar-width: 330px;
1010
background-color: $light-grey-secondary;
1111
bottom: 0;
1212
overflow: scroll;
13+
padding: 20px;
1314
position: fixed;
1415
top: $navbar-height;
1516
width: $sidebar-width;
1617

1718
&--single {
1819
background-color: $white-primary;
1920
border-right: 1px solid $light-grey-primary;
20-
padding-left: 0;
21-
padding-top: 0;
21+
padding: 0;
2222
}
2323

2424
// TODO: this should be its own component
@@ -31,15 +31,14 @@ $sidebar-width: 330px;
3131

3232
&__title {
3333
margin-bottom: 0; // TODO: Overrideing H1 style. Not best-practice.
34-
margin-top: $navbar-height + 10px; // adding 10px to align with "Filters"
34+
margin-top: 10px;
3535
padding: 40px;
3636
}
3737

3838
&__content {
3939
flex: 1;
4040
margin-left: $sidebar-width;
41-
max-width: 900px; // TODO: Check with Melissa
4241
margin-top: 45px;
43-
padding: 0 40px;
42+
max-width: 900px; // TODO: Check with Melissa
4443
}
4544
}

themes/mongodb-tutorials/src/styles/bem-components/single.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import '../colors';
22

33
.single {
4+
padding: 0 40px;
5+
46
h1 {
57
border-bottom: 1px solid $light-grey-primary;
68
margin-bottom: 20px; // Fix to add spacing when page has <p> before <h2>

0 commit comments

Comments
 (0)