diff options
author | Sarah White <graphitefriction@gmail.com> | 2018-04-05 13:27:01 -0600 |
---|---|---|
committer | Sarah White <graphitefriction@gmail.com> | 2018-04-10 10:31:36 -0600 |
commit | 2b32811b2c34a6b26c31d29b3d4b7b74dfdc0601 (patch) | |
tree | a04ae1e49ec88d77a53cac147ff4b118331685f1 /docs/modules/ROOT/pages | |
parent | f2c6ad431ea892d25c13aeb424ffbbfb07e22f22 (diff) | |
download | alpine-antora-theme-2b32811b2c34a6b26c31d29b3d4b7b74dfdc0601.tar.bz2 alpine-antora-theme-2b32811b2c34a6b26c31d29b3d4b7b74dfdc0601.tar.xz |
add highlight inline text styles section
Diffstat (limited to 'docs/modules/ROOT/pages')
-rw-r--r-- | docs/modules/ROOT/pages/inline-text-styles.adoc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/modules/ROOT/pages/inline-text-styles.adoc b/docs/modules/ROOT/pages/inline-text-styles.adoc index f6a8cc4..e950ad4 100644 --- a/docs/modules/ROOT/pages/inline-text-styles.adoc +++ b/docs/modules/ROOT/pages/inline-text-styles.adoc @@ -46,3 +46,16 @@ Consequentially, how xref:antora:asciidoc:monospace.adoc[inline monospace text] ---- In the default UI, the `code` element, specified in [.path]_css/base.css_, uses a fixed-width font which is loaded by a corresponding typeface stylesheet. + +[#highlight] +== Highlighted text + +How xref:antora:asciidoc:highlight.adoc[highlighted text] appears on your site depends on the CSS styles applied to the `<mark>` HTML tag. + +[source,html] +---- +<p>Let’s <mark>highlight this phrase</mark>.</p> +---- + +Since `<mark>` is a semantic HTML element, it automatically inherits default styling, such as `background-color`, from the browser. +If you want to override the browser styles, you'll need to add the `mark` element and its new properties to the document content stylesheet. |