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/elements/code.html | 239 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 239 insertions(+) create mode 100644 docs/elements/code.html (limited to 'docs/elements/code.html') diff --git a/docs/elements/code.html b/docs/elements/code.html new file mode 100644 index 0000000..e6c88aa --- /dev/null +++ b/docs/elements/code.html @@ -0,0 +1,239 @@ + + + + Code - Elements - Spectre.css CSS Framework + + + + + + + + + + + + + + + +
+ + +
+
+
+

Code

+
+
+ + + +
+
+ + +
+
+

Code is used for styling inline and multiline code snippets.

+

For inline code, you can use the <code> element. + For multiline code snippet blocks, you can use <pre> with the code class as a container, and add <code> inside it. + The data-lang attribute is rendered as the language name in the top right. +

+
<!-- code snippets -->
+<button class="btn">
+  Submit
+</button>
+
+
<pre class="code" data-lang="HTML"><code><span class="com">&lt;!-- code snippets --&gt;</span>
+&lt;<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">&quot;btn&quot;</span>&gt;
+  Submit
+&lt;<span class="tag">/button</span>&gt;
+</code></pre>
+
+
+ +
+
+ +
+
+
+ + + \ No newline at end of file -- cgit v1.3.1-23-gd82d