This website requires JavaScript.
Explore
Help
Sign in
max
/
nix-super
Watch
1
Star
0
Fork
You've already forked nix-super
0
mirror of
https://github.com/privatevoid-net/nix-super.git
synced
2024-11-16 03:06:17 +02:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
66a9fb0314
nix-super
/
doc
/
manual
/
custom.css
12 lines
118 B
CSS
Raw
Normal View
History
Unescape
Escape
Improve margins between sections The default CSS puts almost no space between sections, but a lot of space between subsections. This flips that around.
2020-08-19 13:31:18 +03:00
h1
:
not
(
:
first-of-type
)
{
margin-top
:
1
.
3em
;
}
h2
{
margin-top
:
1em
;
}
disallow selecting shell prompt in code samples this is a quick half-fix for command line examples, as discussed discussed in [1]. [1]: https://github.com/NixOS/nix/pull/7389 examples which look like this $ foo bar baz are confusing for Unix shell beginners, because it's hard to discern what is supposed to be entered into the actual command line when the convention of prefixing `$` is not known, as barely any real-world shell looks that way any more. this change prevents selecting the prompt part with the mouse in the HTML representation of the Nix manual. it does not prevent selecting the output part of the shell example. it also does not address that the copy button provided by mdBook takes the entire sample, including the prompts, into the clipboard.
2022-12-05 12:01:46 +02:00
.
hljs-meta
{
user-select
:
none
;
}
Reference in a new issue
Copy permalink