-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix warning styles in html-in-header (#2449)
The documentation under https://tracing.rs/tracing/ is missing CSS styles. Fixes #2444 Used the `--html-in-header` rustdoc flag instead of `--extend-css`. Converted the css file into an html file.
- Loading branch information
1 parent
cbcfbf9
commit 394207a
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<style> | ||
#tracing-warning-header { | ||
z-index: 400; | ||
position: fixed; | ||
background-color: orange; | ||
left: 0; | ||
top: 0; | ||
right: 0; | ||
height: 50px; | ||
display: block; | ||
color: black; | ||
font-size-adjust: 0.55; | ||
line-height: 0.6; | ||
padding-top: 10px; | ||
padding-left: 230px; | ||
} | ||
|
||
body { | ||
/* add top padding to fit the warning header */ | ||
padding-top: 50px !important; | ||
} | ||
|
||
.sidebar { | ||
/* add top padding to fit the warning header */ | ||
margin-top: 50px !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters