-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sphinx panels examples to docs * Add panels examples
- Loading branch information
1 parent
2b09964
commit 00b170e
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
====== | ||
Panels | ||
====== | ||
|
||
Basic panels | ||
============ | ||
|
||
.. panels:: | ||
:container: container-lg pb-3 | ||
:column: col-lg-4 col-md-4 col-sm-6 col-xs-12 p-2 | ||
|
||
panel1 | ||
--- | ||
panel2 | ||
--- | ||
panel3 | ||
--- | ||
:column: col-lg-12 p-2 | ||
panel4 | ||
|
||
Dropdowns | ||
========= | ||
|
||
.. dropdown:: Hey, I am a dropdown | ||
|
||
Lots of cool stuff can be done with dropdowns! | ||
|
||
|
||
.. dropdown:: My content will fade in | ||
:animate: fade-in | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | ||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | ||
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
|
||
Tabs | ||
==== | ||
|
||
.. tabbed:: Tab 1 | ||
|
||
Tab 1 content | ||
|
||
.. tabbed:: Tab 2 | ||
:class-content: pl-1 bg-primary | ||
|
||
Tab 2 content | ||
|
||
|
||
Cards | ||
===== | ||
|
||
|
||
.. panels:: | ||
:container: container-lg | ||
:column: col-lg-6 p-2 | ||
:img-top-cls: pl-2 pr-2 | ||
|
||
--- | ||
:img-top: images/yi_jing_01_chien.jpg | ||
|
||
|
||
This is an example card. | ||
|
||
More content here. | ||
|
||
++++++ | ||
:badge:`Example,badge-primary badge-pill` | ||
|
||
|
||
--- | ||
:img-top: images/yi_jing_01_chien.jpg | ||
|
||
This is an example card. | ||
|
||
:math:`\sin^{2}(x)+\cos^{2}(x) = 1` | ||
|
||
++++++ | ||
:badge:`Example,badge-primary badge-pill` | ||
:badge:`Tutorial,badge-success badge-pill` |