11// FIXME: Use modules
2- @import " vars" , " rustdoc " , " utils " , " navbar " , " themes " ;
2+ @import " vars" , " utils " , " navbar " , " themes " , " fa " ;
33
44html ,
55input ,
@@ -25,21 +25,17 @@ body {
2525 padding : 0 ;
2626 margin : 0 ;
2727
28- input , :not ( #rustdoc_body_wrapper ) > #search {
28+ input , #search {
2929 background-color : var (--color-background-input );
3030 color : var (--input-color );
3131 }
3232
33- #nav-search {
34- color : var (--color-navbar-standard );
35- }
36-
37- :not (#rustdoc_body_wrapper ) > #search {
33+ #search {
3834 box-shadow : 0 0 0 1px var (--color-border ), 0 0 0 1px var (--color-border );
3935 transition : box-shadow 150ms ease-in-out ;
4036 }
4137
42- :not ( #rustdoc_body_wrapper ) > #search :focus {
38+ #search :focus {
4339 box-shadow : var (--input-box-shadow-focus );
4440 }
4541
@@ -49,34 +45,9 @@ body {
4945 text-align : center ;
5046 font : 16px / 1.4 $font-family-sans ;
5147
52- // Since top navbar is fixed, we need to add padding to the body content.
53- padding-top : $top-navbar-height ;
54-
55- // The scroll padding on the <body> is necessary for Chrome
56- // browsers for now (see
57- // https://css-tricks.com/fixed-headers-on-page-links-and-overlapping-content-oh-my/
58- // for an explanation)
59- scroll-padding-top : $top-navbar-height ;
6048 background-color : var (--color-background );
6149 color : var (--color-standard );
6250
63- // this is a super nasty override for help dialog in rustdocs
64- // see #52 for details
65- & .blur {
66- > :not (#help ) {
67- filter : none ;
68- -webkit-filter : none ;
69- }
70-
71- > div .nav-container > * ,
72- > div .cratesfyi-package-container > * ,
73- > div .rustdoc > :not (#help ) {
74- filter : blur (8px );
75- -webkit-filter : blur (8px );
76- opacity : 0.7 ;
77- }
78- }
79-
8051 > h1 {
8152 color : var (--color-standard );
8253 }
@@ -99,13 +70,6 @@ body {
9970 }
10071}
10172
102- html {
103- // Offset anchor jump targets down by this much, so they don't
104- // overlap the top navigation bar (not supported on Desktop/Mobile
105- // Safari yet):
106- scroll-padding-top : $top-navbar-height ;
107- }
108-
10973pre {
11074 font-size : 0.9rem ;
11175 overflow : auto ;
@@ -330,10 +294,6 @@ div.package-sheet-container {
330294 }
331295}
332296
333- .pure-menu-list > li .pure-menu-heading {
334- color : var (--color-standard );
335- }
336-
337297div .package-page-container {
338298 div .package-menu {
339299 padding : 0 10px ;
@@ -620,10 +580,6 @@ div.search-page-search-form {
620580 }
621581}
622582
623- .menu-item-divided {
624- border-bottom : 1px solid var (--color-border );
625- }
626-
627583.rust-navigation-item {
628584 background : url (/ rust-logo.png ) no-repeat ;
629585 background-position : 15px 45% ;
@@ -679,28 +635,8 @@ div.search-page-search-form {
679635 cursor : pointer ;
680636}
681637
682- i .dependencies.normal {
683- visibility : hidden ;
684- display : none ;
685- }
686-
687638/* Don't put a newline after code fragments in headers */
688639h3 > code ,
689640h4 > code {
690641 display : inline-block ;
691642}
692-
693- .fa-svg-fw {
694- width : 1.25em ;
695- text-align : center ;
696- display : inline-block ;
697- }
698-
699- .fa-svg svg {
700- width : 1em ;
701- height : 1em ;
702- fill : currentColor ;
703- /* pull icon about one stroke width into the descenders */
704- margin-bottom : -0.1em ;
705- }
706-
0 commit comments