Skip to content

Commit 2c721d2

Browse files
Merge pull request #314 from pulsar-edit/fix-header
Make the page-header static at narrow breakpoints
2 parents 4c6f9cd + 25ddd82 commit 2c721d2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

less/page-header.less

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,21 @@
105105
}
106106
}
107107

108+
// Page header should be static at narrow widths so it doesn't take up half the
109+
// screen…
110+
.page-header {
111+
position: static !important;
112+
}
113+
114+
@media (min-width: @bp-larger-than-phablet) {
115+
// …but once we have enough room for it not to be so tall, we can afford to
116+
// make it sticky.
117+
.page-header {
118+
position: sticky !important;
119+
}
120+
121+
}
122+
108123
@media (min-width: @bp-larger-than-mobile) {
109124
.page-header .page-header {
110125
&__items {

0 commit comments

Comments
 (0)