File tree Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Expand file tree Collapse file tree 3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub(crate) fn rewrite_lol(
55
55
// Prepend the tera content
56
56
rustdoc_body_class. prepend ( & tera_body, ContentType :: Html ) ;
57
57
// Wrap the tranformed body and topbar into a <body> element
58
- rustdoc_body_class. before ( "<body>" , ContentType :: Html ) ;
58
+ rustdoc_body_class. before ( r# "<body class="rustdoc-page">"# , ContentType :: Html ) ;
59
59
// Insert the topbar outside of the rustdoc div
60
60
rustdoc_body_class. before ( & tera_rustdoc_topbar, ContentType :: Html ) ;
61
61
// Finalize body with </body>
Original file line number Diff line number Diff line change 1
1
// FIXME: Use modules
2
2
@import " vars" ;
3
3
4
+ // Force the navbar to be left-aligned on rustdoc pages
5
+ body .rustdoc-page > .nav-container > .container {
6
+ margin-left : 0 ;
7
+ }
8
+
9
+ div .container-rustdoc {
10
+ text-align : left ;
11
+ }
12
+
4
13
// rustdoc overrides
5
14
div .rustdoc {
6
15
font-family : $font-family-serif ;
@@ -42,4 +51,8 @@ div.rustdoc {
42
51
#sidebar-toggle {
43
52
top : 62px ;
44
53
}
54
+
55
+ & :focus {
56
+ outline : unset ;
57
+ }
45
58
}
Original file line number Diff line number Diff line change @@ -76,22 +76,6 @@ div.container {
76
76
text-align : left ;
77
77
}
78
78
79
- div .container-rustdoc {
80
- text-align : left ;
81
- }
82
-
83
- div .nav-container-rustdoc {
84
- position : fixed ;
85
- left : 0 ;
86
- right : 0 ;
87
- top : 0 ;
88
- z-index : 999 ;
89
- }
90
-
91
- .rustdoc :focus {
92
- outline : unset ;
93
- }
94
-
95
79
div .landing {
96
80
text-align : center ;
97
81
padding-top : 30px ;
@@ -564,10 +548,6 @@ div.cratesfyi-package-container {
564
548
}
565
549
}
566
550
567
- div .cratesfyi-package-container-rustdoc {
568
- margin-bottom : 10px ;
569
- }
570
-
571
551
div .search-page-search-form {
572
552
padding : 0.4em 1em ;
573
553
text-align : center ;
You can’t perform that action at this time.
0 commit comments