Skip to content

Commit 497990b

Browse files
committed
Don't do content shifts when mouse highlighting the cheat sheet pages
1 parent 5661f22 commit 497990b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/typescriptlang-org/src/templates/pages/css/cheatsheets.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
}
8484

8585
@media (max-width: $screen-sm) {
86-
// The
86+
// The single column needs this to make all of the pages fold under each other
8787
.cs-2 {
8888
margin-top: -40px;
8989
}
@@ -93,6 +93,9 @@
9393
// No peeking out of the sides
9494
.sheet-container {
9595
margin: 0;
96+
97+
// Don't jump the bottom of the page when you are selecting things
98+
min-height: 550px;
9699
}
97100

98101
// CFA should be centered vertically but it is 2 lines vs the rest
@@ -104,6 +107,8 @@
104107
// Allow poking out of the edge
105108
.sheet-container {
106109
margin: 0 -80px;
110+
// Don't jump the bottom of the page when you are selecting things
111+
min-height: 780px;
107112
}
108113
// BIIIGG
109114
.sheet img {

0 commit comments

Comments
 (0)