From 3ab3a9d09955772ec56ddadbba49954b4edd6a3e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 6 Nov 2018 18:52:37 +0800 Subject: Update the Docs completely --- docs/src/elements/code.pug | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/src/elements/code.pug (limited to 'docs/src/elements/code.pug') diff --git a/docs/src/elements/code.pug b/docs/src/elements/code.pug new file mode 100644 index 0000000..894b617 --- /dev/null +++ b/docs/src/elements/code.pug @@ -0,0 +1,38 @@ +extends ../_layout/_docs-layout.pug + +block variables + - var slug = 'code' + - var parent = 'elements' + - var title = 'Code - Elements - Spectre.css CSS Framework' + - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.' + +block docs-content + +docs-heading('code', 'Code') + include ../_layout/_ad-g.pug + + p Code is used for styling inline and multiline code snippets. + p + | For inline code, you can use the #{''} element. + | For multiline code snippet blocks, you can use #{'
'} with the #[code code] class as a container, and add #{''} inside it.
+      | The #[code data-lang] attribute is rendered as the language name in the top right.
+
+    pre.code(data-lang='HTML')
+      code
+        :highlight(lang="html")
+          
+          
+
+    pre.code(data-lang='HTML')
+      code
+        :highlight(lang="html")
+          
<!-- code snippets -->
+          <button class="btn">
+            Submit
+          </button>
+          
+ + include ../_layout/_ad-c.pug + + include ../_layout/_footer.pug \ No newline at end of file -- cgit v1.3.1-23-gd82d