git.iko.soy/typeable/nixpkgs
on master help sign in
Move the overridden CSS to overrides.css which can be applied on nixos.org
commitda17974541af182f86bd98e992f1c25987adac55 authorGraham Christensen <graham@grahamc.com> dateMon 26 Mar 2018, 14:45 (9 years ago) parenta80856c
4 files changed+11−10
doc/Makefile+2 doc/default.nix+1−1 doc/overrides.css+8 doc/style.css−9
doc/Makefile+2
@@ -23,6 +23,7 @@ out/html/index.html: manual-full.xml style.css
2323 "$$XSL/docbook/xhtml/docbook.xsl" \
2424 ./manual-full.xml
2525
26+ cp ./overrides.css out/html/
2627 cp ./style.css out/html/style.css
2728
2829 mkdir -p out/html/images/callouts
@@ -36,6 +37,7 @@ out/epub/manual.epub: manual-full.xml
3637 "$$XSL/docbook/epub/docbook.xsl" \
3738 ./manual-full.xml
3839
40+ cp ./overrides.css out/epub/scratch/OEBPS
3941 cp ./style.css out/epub/scratch/OEBPS
4042 mkdir -p out/epub/scratch/OEBPS/images/callouts/
4143 cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
doc/default.nix+1−1
@@ -16,7 +16,7 @@ pkgs.stdenv.mkDerivation {
1616 xsltFlags = lib.concatStringsSep " " [
1717 "--param section.autolabel 1"
1818 "--param section.label.includes.component.label 1"
19− "--stringparam html.stylesheet 'style.css'"
19+ "--stringparam html.stylesheet 'style.css overrides.css'"
2020 "--param xref.with.number.and.title 1"
2121 "--param toc.section.depth 3"
2222 "--stringparam admon.style ''"
doc/overrides.cssnew file+8
@@ -0,0 +1,8 @@
1+
2+.programlisting img {
3+ width: 1em;
4+}
5+
6+.calloutlist img {
7+ width: 1.5em;
8+}
doc/style.css−9
@@ -118,15 +118,6 @@ div.example pre.programlisting
118118 margin: 0 0 0 0;
119119}
120120
121−.programlisting img {
122− width: 1em;
123−}
124−
125−
126−.calloutlist img {
127− width: 1.5em;
128−}
129−
130121/***************************************************************************
131122 Notes, warnings etc:
132123 ***************************************************************************/