Skip to content

Commit e2e8fa5

Browse files
Unsticky "Appears in" element from bottom of page
Stickying the "Appears in" `<details>` at the bottom of the page causes the element to jump up when it is expanded, which is unexpected and unusual. Since the element already hides information by default, there is no need to force it to stay all the way at the bottom of the page. This commit removes the sticky positioning and fixes some inconsistencies in the grid definition.
1 parent 123a26f commit e2e8fa5

File tree

1 file changed

+9
-11
lines changed
  • lib/rdoc/generator/template/rails/resources/css

1 file changed

+9
-11
lines changed

lib/rdoc/generator/template/rails/resources/css/main.css

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,48 @@ body {
1010
line-height: 1.25em;
1111
min-height: 100%;
1212
display: grid;
13-
grid-template-rows: min-content min-content auto min-content;
14-
grid-template-columns: 300px auto;
1513

1614
--link-color: #CC0000;
1715
--link-hover-color: #990000;
1816
--icon-color: #777777;
1917
}
2018

2119
body {
22-
grid-template-rows: min-content min-content auto min-content;
20+
grid-template-rows: min-content min-content min-content;
2321
grid-template-columns: 100%;
2422
}
2523

2624
@media (min-width: 600px) {
2725
body {
28-
grid-template-rows: min-content min-content auto min-content;
26+
grid-template-rows: min-content min-content min-content;
2927
grid-template-columns: 300px auto;
3028
}
3129

3230
nav {
3331
grid-row-start: 1;
34-
grid-row-end: 4;
32+
grid-row-end: 3;
3533
grid-column-start: 1;
3634
grid-column-end: 1;
3735
}
3836

3937
div.banner {
40-
grid-row-start: 2;
41-
grid-row-end: 2;
38+
grid-row-start: 1;
39+
grid-row-end: 1;
4240
grid-column-start: 2;
4341
grid-column-end: 2;
4442
}
4543

4644
#bodyContent {
47-
grid-row-start: 3;
48-
grid-row-end: 3;
45+
grid-row-start: 2;
46+
grid-row-end: 2;
4947
grid-column-start: 2;
5048
grid-column-end: 2;
5149
min-width: 0;
5250
}
5351

5452
footer {
55-
grid-row-start: 4;
56-
grid-row-end: 4;
53+
grid-row-start: 3;
54+
grid-row-end: 3;
5755
grid-column-start: 2;
5856
grid-column-end: 2;
5957
}

0 commit comments

Comments
 (0)