mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
docs: Move custom.css into the main css
There's no real separation here so one file is preferable. We'll leave the pygments.css intact because that handles a different thing
This commit is contained in:
parent
955c0003ca
commit
bf801afef8
3 changed files with 28 additions and 33 deletions
|
@ -1,27 +0,0 @@
|
|||
.sphinxsidebar ul.current > li.current { font-weight: bold }
|
||||
|
||||
.gray { color: #555555 }
|
||||
.purple { color: #551a8b }
|
||||
.red { color: #FF0000 }
|
||||
|
||||
/* Color based on the Name.Function (.nf) class from pygments.css. */
|
||||
.command { color: #005fd7 }
|
||||
|
||||
/* Color based on the Name.Constant (.no) class from pygments.css. */
|
||||
.param { color: #00afff }
|
||||
|
||||
/* Color based on the Name.Constant (.no) class from pygments.css. */
|
||||
/* Used for underlining file paths in interactive code examples. */
|
||||
.param-valid-path { color: #00afff; text-decoration: underline }
|
||||
|
||||
/* Color based on the Generic.Prompt (.gp) class from pygments.css. */
|
||||
.prompt { color: #8f5902 }
|
||||
|
||||
kbd {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: .2em;
|
||||
box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
|
||||
color: #000;
|
||||
padding: 0.1em 0.3em;
|
||||
}
|
|
@ -52,12 +52,6 @@ def setup(app):
|
|||
)
|
||||
lexers["fish-docs-samples"] = fish_indent_lexer
|
||||
|
||||
# add_css_file only appears in Sphinx 1.8.0
|
||||
if hasattr(app, "add_css_file"):
|
||||
app.add_css_file("custom.css")
|
||||
else:
|
||||
app.add_stylesheet("custom.css")
|
||||
|
||||
app.add_config_value("issue_url", default=None, rebuild="html")
|
||||
app.add_role("issue", issue_role)
|
||||
|
||||
|
|
|
@ -276,3 +276,31 @@ dl > dt span ~ em {
|
|||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sphinxsidebar ul.current > li.current { font-weight: bold }
|
||||
|
||||
.gray { color: #555555 }
|
||||
.purple { color: #551a8b }
|
||||
.red { color: #FF0000 }
|
||||
|
||||
/* Color based on the Name.Function (.nf) class from pygments.css. */
|
||||
.command { color: #005fd7 }
|
||||
|
||||
/* Color based on the Name.Constant (.no) class from pygments.css. */
|
||||
.param { color: #00afff }
|
||||
|
||||
/* Color based on the Name.Constant (.no) class from pygments.css. */
|
||||
/* Used for underlining file paths in interactive code examples. */
|
||||
.param-valid-path { color: #00afff; text-decoration: underline }
|
||||
|
||||
/* Color based on the Generic.Prompt (.gp) class from pygments.css. */
|
||||
.prompt { color: #8f5902 }
|
||||
|
||||
kbd {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: .2em;
|
||||
box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
|
||||
color: #000;
|
||||
padding: 0.1em 0.3em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue