add sidebar section to style guide
authorSarah White <graphitefriction@gmail.com>
Fri, 16 Feb 2018 22:05:55 +0000 (15:05 -0700)
committerSarah White <graphitefriction@gmail.com>
Fri, 16 Feb 2018 22:05:55 +0000 (15:05 -0700)
docs/modules/ROOT/pages/style-guide.adoc

index e1a48e4..d53af75 100644 (file)
@@ -195,3 +195,29 @@ 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]
+----
+<div class="sidebarblock">
+<div class="content">
+<div class="title">Optional Title</div>
+<div class="paragraph">
+<p>This is a paragraph in a sidebar.</p>
+</div>
+</div>
+</div>
+----