Skip to content

Commit 5529959

Browse files
committed
Make navbar float
1 parent e8703e8 commit 5529959

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

_sass/custom/course_overrides.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
background-color: #1f4ba5 !important;
116116
color: #fff !important;
117117
line-height: 1.2;
118+
font-size: 1.05rem;
118119
text-decoration: none;
119120
transition: background-color 0.15s ease, color 0.15s ease;
120121
background-image: none;
@@ -146,3 +147,12 @@
146147
box-shadow: none;
147148
filter: none;
148149
}
150+
151+
// Keep the top bar visible while scrolling.
152+
.main-header {
153+
position: sticky;
154+
top: 0;
155+
z-index: 1000;
156+
background-color: $white;
157+
box-shadow: 0 1px 0 rgba(31, 75, 165, 0.2);
158+
}

_sass/custom/custom.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ div.highlighter-rouge div.highlight {
5454

5555
.btn-ed {
5656
@include btn-color($white, #9400D3);
57+
font-size: 1.05rem;
5758
}
5859

5960
.btn-gradescope {
6061
@include btn-color($white, #228B22);
62+
font-size: 1.05rem;
6163
}
6264

6365
.btn-youtube {
@@ -75,4 +77,3 @@ div.highlighter-rouge div.highlight {
7577
.btn-drive {
7678
@include btn-color($white, #1e3a8a);
7779
}
78-

0 commit comments

Comments
 (0)