Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit92012cae19ff70b693ef8b2a6a927c5a4d18c104 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-20 15:32:25 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-20 15:32:25 +0800
Files7792e3a542c61d7f0b160f4492c1e1a533138467
Spectre-Dark-Gruvbox-92012cae19ff70b693ef8b2a6a927c5a4d18c104.tar
Spectre-Dark-Gruvbox-92012cae19ff70b693ef8b2a6a927c5a4d18c104.tar.gz
Spectre-Dark-Gruvbox-92012cae19ff70b693ef8b2a6a927c5a4d18c104.zip
Parentdcee47616093c0730b1868fa287b20bf5b1381fe (diff)
Add Popovers docs
3 files changed, 23 insertions, 3 deletions
-rw-r--r--README.md1
-rw-r--r--docs/components.html22
-rw-r--r--docs/index.html3
diff --git a/README.md b/README.md
index d3d1040..b07c1eb 100644
--- a/README.md
+++ b/README.md
@@ -63,6 +63,7 @@ You can compile your custom version of Spectre.css. Read [the documentation](htt
- [Menus](http://picturepan2.github.io/spectre/components.html#menus) - list of links or buttons for actions and navigation
- [Modals](http://picturepan2.github.io/spectre/components.html#modals) - flexible dialog prompts
- [Navigation](http://picturepan2.github.io/spectre/components.html#navigation) - breadcrumb, tabs, pagination and navs
+- [Popovers](http://picturepan2.github.io/spectre/components.html#popovers) - small overlay content containers
- [Steps](http://picturepan2.github.io/spectre/components.html#steps) - progress indicators of a sequence of task steps
- [Tiles](http://picturepan2.github.io/spectre/components.html#tiles) - repeatable or embeddable information blocks
- [Toasts](http://picturepan2.github.io/spectre/components.html#toasts) - showing alerts or notifications
diff --git a/docs/components.html b/docs/components.html
index 4512945..565f1b9 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -1469,11 +1469,27 @@
</div>
</div>
<section class="notes">
- <p></p>
+ <p>Wrap an element by a container with the <code>popover</code> class. And add a container with the <code>popover-container</code> next to the element. You can use <a href="#cards">Cards</a> component inside the <code>popover-container</code>. </p>
+ <p>Also, you can add the <code>popover-right</code>, <code>popover-bottom</code> or <code>popover-left</code> class to define the position. By default, the popovers appear above the element.</p>
</section>
-<!-- steps example -->
-<pre class="code" data-lang="HTML"><code>
+<!-- popovers example -->
+<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;popover popover-right&quot;</span>&gt;
+ &lt;<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">&quot;btn btn-primary&quot;</span>&gt;right popover&lt;<span class="tag">/button</span>&gt;
+ &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;popover-container&quot;</span>&gt;
+ &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;card&quot;</span>&gt;
+ &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;card-header&quot;</span>&gt;
+ ...
+ &lt;<span class="tag">/div</span>&gt;
+ &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;card-body&quot;</span>&gt;
+ ...
+ &lt;<span class="tag">/div</span>&gt;
+ &lt;<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">&quot;card-footer&quot;</span>&gt;
+ ...
+ &lt;<span class="tag">/div</span>&gt;
+ &lt;<span class="tag">/div</span>&gt;
+ &lt;<span class="tag">/div</span>&gt;
+&lt;<span class="tag">/div</span>&gt;
</code></pre>
</section>
diff --git a/docs/index.html b/docs/index.html
index 6992015..23b260c 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -310,6 +310,9 @@
<p><strong>March 2017</strong></p>
<ul>
<li>
+ <a href="components.html#popovers">Popovers</a>: small overlay content containers <small class="label label-primary">NEW</small>
+ </li>
+ <li>
<a href="layout.html#panels">Panels</a>: flexible view container layout with auto-expand content section <small class="label label-primary">NEW</small>
</li>
<li>