Skip to content

Commit

Permalink
Move the overridden CSS to overrides.css which can be applied on nixo…
Browse files Browse the repository at this point in the history
…s.org
  • Loading branch information
grahamc committed Mar 26, 2018
1 parent a80856c commit da17974
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ out/html/index.html: manual-full.xml style.css
"$$XSL/docbook/xhtml/docbook.xsl" \
./manual-full.xml

cp ./overrides.css out/html/
cp ./style.css out/html/style.css

mkdir -p out/html/images/callouts
Expand All @@ -36,6 +37,7 @@ out/epub/manual.epub: manual-full.xml
"$$XSL/docbook/epub/docbook.xsl" \
./manual-full.xml

cp ./overrides.css out/epub/scratch/OEBPS
cp ./style.css out/epub/scratch/OEBPS
mkdir -p out/epub/scratch/OEBPS/images/callouts/
cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
Expand Down
2 changes: 1 addition & 1 deletion doc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pkgs.stdenv.mkDerivation {
xsltFlags = lib.concatStringsSep " " [
"--param section.autolabel 1"
"--param section.label.includes.component.label 1"
"--stringparam html.stylesheet 'style.css'"
"--stringparam html.stylesheet 'style.css overrides.css'"
"--param xref.with.number.and.title 1"
"--param toc.section.depth 3"
"--stringparam admon.style ''"
Expand Down
8 changes: 8 additions & 0 deletions doc/overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.programlisting img {
width: 1em;
}

.calloutlist img {
width: 1.5em;
}
9 changes: 0 additions & 9 deletions doc/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ div.example pre.programlisting
margin: 0 0 0 0;
}

.programlisting img {
width: 1em;
}


.calloutlist img {
width: 1.5em;
}

/***************************************************************************
Notes, warnings etc:
***************************************************************************/
Expand Down

0 comments on commit da17974

Please sign in to comment.