From: Sarah White Date: Thu, 5 Apr 2018 18:21:59 +0000 (-0600) Subject: move sidebar styles to new page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=81c5470c1c9341380712275c71d8213abcce6bf3;p=eg-antora.git move sidebar styles to new page --- diff --git a/docs/modules/ROOT/pages/sidebar-styles.adoc b/docs/modules/ROOT/pages/sidebar-styles.adoc new file mode 100644 index 0000000..20c4462 --- /dev/null +++ b/docs/modules/ROOT/pages/sidebar-styles.adoc @@ -0,0 +1,32 @@ += Sidebar Styles +ifndef::env-site,env-github[] +include::_attributes.adoc[] +endif::[] + +This page describes the in-page sidebar block styles, not the styles for the navigation sidebar. + +== Sidebar blocks + +xref:antora:asciidoc:sidebar.adoc[Sidebars] can contain any type of content. +The sidebar title is specified by the block class title. +Here's an AsciiDoc source example that produces a sidebar with a title: + +[source,asciidoc] +---- +.Optional Title +**** +This is a paragraph in a sidebar. +**** +---- + +[source,html] +---- +
+
+
Optional Title
+
+

This is a paragraph in a sidebar.

+
+
+
+---- diff --git a/docs/modules/ROOT/pages/style-guide.adoc b/docs/modules/ROOT/pages/style-guide.adoc index 813664f..3c46973 100644 --- a/docs/modules/ROOT/pages/style-guide.adoc +++ b/docs/modules/ROOT/pages/style-guide.adoc @@ -21,6 +21,7 @@ These elements include: * xref:inline-text-styles.adoc[Emphasized inline text, such as bold, italics, etc.] * xref:admonition-styles.adoc[Admonitions] * xref:list-styles.adoc[Lists] +* xref:sidebar-styles.adoc[Sidebars] === UI Elements @@ -83,29 +84,3 @@ menu:File[] menu:File[Save] The default styling applied to a menu reference is usually sufficient. - -=== Sidebars - -Sidebars can contain any type of content. -The sidebar title is specified by the block class title. -Here's an AsciiDoc source example that produces a sidebar with a title: - -[source,asciidoc] ----- -.Optional Title -**** -This is a paragraph in a sidebar. -**** ----- - -[source,html] ----- -
-
-
Optional Title
-
-

This is a paragraph in a sidebar.

-
-
-
-----