Skip to content

Commit 57823ba

Browse files
more fixes, add notes
1 parent b9f580d commit 57823ba

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

resources/web/style/base_styles.pcss

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
html {
2+
/*
3+
NOTE: DEPENDENT ON MARKETING HEADER/FOOTER
4+
When scrolling to a heading, the heading should
5+
go below the sticky marketing header. The value
6+
of the padding depends on the height of the header.
7+
*/
8+
@media screen and (min-width: 1200px) {
9+
scroll-padding-top: 92px;
10+
}
11+
@media screen and (min-width: 769px) and (max-width: 1199px) {
12+
scroll-padding-top: 151px;
13+
}
14+
}
15+
116
#guide {
217
* {
318
font-family: Inter, sans-serif;
@@ -58,24 +73,40 @@
5873
@media screen and (min-width: 1200px) {
5974
position: -webkit-sticky;
6075
position: sticky;
76+
/*
77+
NOTE: DEPENDENT ON MARKETING HEADER/FOOTER
78+
This is dependent on the height of the header.
79+
*/
6180
top: 72px;
6281
}
6382
@media screen and (min-width: 769px) and (max-width: 1199px) {
6483
position: -webkit-sticky;
6584
position: sticky;
85+
/*
86+
NOTE: DEPENDENT ON MARKETING HEADER/FOOTER
87+
This is dependent on the height of the header.
88+
*/
6689
top: 131px;
6790
}
6891
}
6992

7093
.h-almost-full-md {
7194
@media screen and (min-width: 769px) {
72-
height: 95vh;
95+
/*
96+
NOTE: DEPENDENT ON MARKETING HEADER/FOOTER
97+
This is dependent on the height of the header.
98+
*/
99+
height: 90vh;
73100
}
74101
}
75102

76103
.h-almost-full-lg {
77104
@media screen and (min-width: 993px) {
78-
height: 95vh;
105+
/*
106+
NOTE: DEPENDENT ON MARKETING HEADER/FOOTER
107+
This is dependent on the height of the header.
108+
*/
109+
height: 90vh;
79110
}
80111
}
81112

0 commit comments

Comments
 (0)