summaryrefslogtreecommitdiff
path: root/docs/modules/html-backend
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-07-25 03:24:13 -0600
committerGitHub <noreply@github.com>2021-07-25 03:24:13 -0600
commitec129b24d5a8cf9107da285a21ae09d86a5e82b7 (patch)
treea2705a0786a3f5b42b5cbb373fb69d3e1601e281 /docs/modules/html-backend
parent3ae6cbe28e75e2864ba687a1c52c0365e192eaae (diff)
Fix syntax error in default stylesheet page; make steps for extending default stylesheet clearer [skip ci]
Diffstat (limited to 'docs/modules/html-backend')
-rw-r--r--docs/modules/html-backend/pages/default-stylesheet.adoc11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/modules/html-backend/pages/default-stylesheet.adoc b/docs/modules/html-backend/pages/default-stylesheet.adoc
index 1572967f..18994ae7 100644
--- a/docs/modules/html-backend/pages/default-stylesheet.adoc
+++ b/docs/modules/html-backend/pages/default-stylesheet.adoc
@@ -154,9 +154,12 @@ Instead of writing a custom stylesheet from scratch, you can import the default
This is also a good way to use the default stylesheet, but load web fonts from a different CDN.
Let's again change the color of headings (and other heading-like titles) to match the color of paragraph text.
-Start by creating a stylesheet named [.path]_my-asciidoctor.css_ and adding an `@import` declaration that references the default stylesheet and the web fonts it uses (which are not included in the source of the default stylesheet).
-We'll use a CDN to pull it directly out of the repository, but you can put it anywhere the browser can access it.
-Then add your overrides below those declarations.
+Start by creating a stylesheet named [.path]_my-asciidoctor.css_.
+Next, add an `@import` declaration to import the default stylesheet.
+We use a CDN here to pull the default stylesheet directly out of the repository, but you can put it anywhere the browser can access it.
+Then, add another `@import` declaration to import the web fonts the default stylesheet uses (which are not imported by the default stylesheet).
+Finally, add your overrides below those `@import` directives.
+Here's how that looks altogether.
[source,css,subs=attributes+]
----
@@ -176,7 +179,7 @@ Now tell Asciidoctor to use your custom stylesheet instead of the default one:
Asciidoctor will now embed the contents of your custom stylesheet instead of the default one.
However, Asciidoctor will not embed the contents of the default stylesheet.
Instead, the browser will fetch it from the location specified by the `@import` directive.
-You can avoid this network call by putting the default stylesheet in the same directory as your custom stylesheet and linking to it using `@import "asciidoctor.css".
+You can avoid this network call by putting the default stylesheet in the same directory as your custom stylesheet and linking to it using `@import "asciidoctor.css"`.
To get the default stylesheet, you can either https://github.com/asciidoctor/asciidoctor/blob/master/data/stylesheets/asciidoctor-default.css[download it^] from the source repository, or you can use the following `asciidoctor` command (or equivalent) to write it to the current directory: