It contains site navigation, logo, and banner
Following code snippet demonstrates .site-header of the current page. As you can see, it's easy to grasp the code.
Copy<!-- Site header -->
<header class="site-header">
<!-- Logo & Navigation -->
<nav class="site-navigation">
<div class="container">
<div class="logo">
<a class="logo-default" href="index.html"><img src="assets/img/logo.png" alt="logo"></a>
<a class="logo-transparent" href="index.html"><img src="assets/img/logo-alt.png" alt="logo"></a>
</div>
<a class="navbar-toggle" href="#" data-toggle="offcanvas"><i class="fa fa-bars"></i></a>
<ul class="nav-menu">
<li><a href="#">Overview</a></li>
<li><a href="#">Getting Started</a></li>
<li><a href="#">CSS</a></li>
<li><a class="active" href="#">Components</a></li>
<li>
<a href="#">Pages</a>
<ul>
<li><a href="#">Submenu 1</a></li>
<li><a href="#">Submenu 2</a></li>
<li><a href="#">Submenu 3</a></li>
<li><a href="#">Submenu 4</a></li>
</ul>
</li>
<li><a class="menu-highlighted" href="#">Buy Now</a></li>
</ul>
</div>
</nav>
<!-- END Logo & Navigation -->
<!-- Header image -->
<div class="header-image bg-purple no-overly no-padding">
<div class="container">
<br><br>
<h1><strong>Components,</strong> Rapid development</h1>
<h4>Over a dozen reusable components built to provide navigation, code view, content view, file tree, callouts, and much more.</h4>
<br><br>
</div>
</div>
<!-- END Header image -->
Here, we describe some of modifier classes on navigation menu.
The .site-navigation > div
tag is responsible for sizing. It would be boxed-size if it has .container
class, and will become full size by having .container-fluid
.
The body
tag is responsible for changing this two property. To have a sticky navigation bar in top of the page, add .sticky-nav
to the body tag. If you have a banner in your header and would like to put your navigation above it before scrolling, add .transparent-nav
to the body tag.
You can see different types of banner across this documentation. You'd be able to have an image backgrounded banner or just a solid color background. Setting background is like how you can add them in sections.
By default, .header-image
has a pale black overly to make contrast between texts on the image. You can simply ignore it by adding .no-overlay
class to the .header-image
tag. It would be better to remove overly on solid color background banners. Also, make sure to use .text-left
, .text-center
, .text-right
, <br>
, etc. for alignment and spacing.
You have a plenty of options to demonstrate your code and result in your documentation
Here is basic usage of tags like code
, pre
, kbd
, var
and samp
.
Wrap inline snippets of code with <code>
.
<section>
should be wrapped as inline.
For example, <code><section>< /code> should be wrapped as inline.
html
Use <pre>
for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
Sample text here...
<pre>Sample text here...< /pre>
html
You may optionally add the .pre-scrollable
class, which will set a max-height of 350px and provide a y-axis scrollbar.
Use the <kbd>
to indicate input that is typically entered via keyboard.
To switch directories, type <kbd>cd< /kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl< /kbd> + <kbd>,< /kbd>< /kbd>
html
For indicating variables use the <var>
tag.
<var>y< /var> = <var>m< /var><var>x< /var> + <var>b< /var>
html
For indicating blocks sample output from a program use the <samp>
tag.
<samp>This text is meant to be treated as sample output from a computer program.< /samp>
html
theDocs uses PrismJs
for syntax highlighting code snippets. You have to put your code inside < pre > < code class="language-xxxx" >
which xxxx
is the name of language.
<p>Something to show in <strong>bold< /strong> text.< /p>
...
<i>Italic text< /i>
If you need to include line numbers, add class .line-numbers
to the <pre>
tag.
<p>Something to show in <strong>bold< /strong> text.< /p>
...
<i>Italic text< /i>
Just add .simple-view
class to the <pre>
tag to have a code view like below one.
<p>Something to show in <strong>bold< /strong> text.< /p>
...
<i>Italic text< /i>
This is the list of all languages currently supported by Prism, with their corresponding alias, to use in place of xxxx
in the language-xxxx
class:
markup
css
clike
javascript
aspnet
bash
c
csharp
cpp
coffeescript
git
http
ini
java
latex
less
matlab
objectivec
perl
php
python
ruby
scss
sql
swift
If your code snippet includes several languages or a preview of result, it's better to use one of the following code wrappers.
Wrap your code and preview inside < div class="code-window">... </ div >
to show them in a window style with different tabs. In this way, reader can see one code snippet in a same time.
This is a normal paragraph without any contextual classes.
A paragraph with .text-primary class.
A paragraph with .text-success class.
A paragraph with .text-info class.
A paragraph with .text-warning class.
A paragraph with .text-danger class.
A paragraph with .text-gray class.
A paragraph with .text-dark class.
Here is the code which we used to draw above code window:
Copy<div class="code-window">
<div class="code-preview">...< /div>
<pre class="line-numbers"><code class="language-markup">...< /code>< /pre>
<pre class="line-numbers"><code class="language-css">...< /code>< /pre>
<pre class="line-numbers"><code class="language-javascript">...< /code>< /pre>
< /div>
Wrap your code and preview inside <div class="code-splitted">...</div>
to show them horizontally in two side.
Copy<p>This is a normal paragraph without any contextual classes.< /p>
<p class="text-primary">A paragraph with .text-primary class.< /p>
<p class="text-success">A paragraph with .text-success class.< /p>
<p class="text-info">A paragraph with .text-info class.< /p>
<p class="text-warning">A paragraph with .text-warning class.< /p>
<p class="text-danger">A paragraph with .text-danger class.< /p>
<p class="text-gray">A paragraph with .text-gray class.< /p>
<p class="text-dark">A paragraph with .text-dark class.< /p>
This is a normal paragraph without any contextual classes.
A paragraph with .text-primary class.
A paragraph with .text-success class.
A paragraph with .text-info class.
A paragraph with .text-warning class.
A paragraph with .text-danger class.
A paragraph with .text-gray class.
A paragraph with .text-dark class.
Here is the code which we used to draw above code splitted:
Copy<div class="code-splitted">
<div class="code-group col-md-7">
<pre class="line-numbers"><code class="language-markup">...< /code>< /pre>
<pre class="line-numbers"><code class="language-css">...< /code>< /pre>
<pre class="line-numbers"><code class="language-javascript">...< /code>< /pre>
< /div>
<div class="code-preview col-md-5">
...
< /div>
< /div>
Wrap your code and preview inside <div class="code-snippet">...</div>
to show them in a vertical style. Use this style to show all of the codes in a same view.
This is a normal paragraph without any contextual classes.
A paragraph with .text-primary class.
A paragraph with .text-success class.
A paragraph with .text-info class.
A paragraph with .text-warning class.
A paragraph with .text-danger class.
A paragraph with .text-gray class.
A paragraph with .text-dark class.
Copy<p>This is a normal paragraph without any contextual classes.< /p>
<p class="text-primary">A paragraph with .text-primary class.< /p>
<p class="text-success">A paragraph with .text-success class.< /p>
<p class="text-info">A paragraph with .text-info class.< /p>
<p class="text-warning">A paragraph with .text-warning class.< /p>
<p class="text-danger">A paragraph with .text-danger class.< /p>
<p class="text-gray">A paragraph with .text-gray class.< /p>
<p class="text-dark">A paragraph with .text-dark class.< /p>
html
Copy.text-primary { color: #2196F3; }
.text-success { color: #4CAF50; }
.text-info { color: #29B6F6; }
.text-warning { color: #FF9800; }
.text-danger { color: #F44336; }
.text-purple { color: #6D5CAE; }
.text-teal { color: #00BFA5; }
.text-gray { color: #bbbbbb; }
.text-dark { color: #424242; }
.text-white { color: #ffffff; }
css
Copy$('.sidenav.dropable > li > a').click(function(e){
if ( 0 == $(this).next("ul").size() || 0 == $(this).next("ul:hidden").size() ) {
return;
}
e.preventDefault();
$(this).parents(".sidenav").find("ul").not(":hidden").slideUp(300);
$(this).next("ul").slideDown(300);
});
javascript
Here is the code which we used to draw above code snippet:
Copy<div class="code-snippet">
<div class="code-preview">...< /div>
<pre class="line-numbers"><code class="language-markup">...< /code>< /pre>
<pre class="line-numbers"><code class="language-css">...< /code>< /pre>
<pre class="line-numbers"><code class="language-javascript">...< /code>< /pre>
< /div>
Each <pre>
tag would accept two modifier class:
.no-copy
: Remove copy button.no-name
: Remove language name which is located beside copy buttonCategorize your links and contents inside a decent content view
Views are another way to display several related information together. Mostly you can use them to list the articles which is available in your documentation. Choose the layout that suits the type of content you’re displaying.
In this view, you can categorize your articles or tutorials in several part and show more content in fewer space.
You have size modifiers to use with .link-lists
. They are .cols-1
, .cols-2
, and .cols-4
which modifies default columns number that is three.
In this way, you can show meta data below the title, and write some description of the article before viewing it.
A quick-start guide to all the basics you need to get up and running now. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Learn how to turn that blog into a static website for your business or your organization. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis bibendum ligula. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
You can remove border bottom by applying .no-border-bottom
class to the .list-view
.
You can use list view style with default bootstrap grid system.
A quick-start guide to all the basics you need to get up and running now. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Learn how to turn that blog into a static website for your business or your organization. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis bibendum ligula. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Also, you can modify appearance of item by adding category and continue reading link.
Copy<div class="list-view-item">
<span>Design</span>
<h5>Get a Homepage</h5>
<p class="meta-data">August 26, 2015 | 5 mins | Beginner</p>
<p>Learn how to...</p>
<a class="read-more" href="#">Continue reading...</a>
</div>
Learn how to turn that blog into a static website for your business or your organization. Vestibulum lacinia nibh vel porttitor lacinia. Praesent ante nunc, auctor mattis luctus quis, condimentum sed tellus.
Continue reading...Prepare a chronological guide to perform an action in your product
The simplest way to make a step.
A gallery can go anywhere on a page or post - by itself on a blank page, or above, below, or in the midst of text. Start by placing your cursor where you want the gallery to appear.
Once you've placed your cursor where you want your image gallery to appear, click on the Add Media button (located left above the editing window) to launch the media uploader interface. In the resulting popup window, select the 'Create a Gallery' option from the list of actions on the left.
You can add or select the images you want to include in your image gallery by choosing from either of the following options in the center of the media uploader window.
On the Edit Gallery page, you can do the following things before inserting the gallery you have created into your page or post.
Also, you can add .step-cols-2
or .step-cols-3
to the .step-text
to change number of rows.
If you have a picture for every step, we suggest you to use this step as it's more interactive.
Present key features of your product in overview page
Here's some examples that uses icon in feature boxes.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Adding .icon-round
to the .features
tag.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Adding .icon-sided
to the .features
tag.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
You can easily change fore-color or background-color of icons using .txt-*
and .bg-*
classes which described in typography section.
It's possible to use an image instead of icons. You need to add .icon-image
class. Check samples.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
You may need to use a button with a feature.
Donec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreDonec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreDonec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreDonec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreDonec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreDonec efficitur mi a velit tincidunt, sit amet accumsan nibh congue. Aliquam convallis molestie ligula.
Learn moreYou can change number of columns by adding either .cols-1
or .cols-2
to the .features
tag.
Add quick, dynamic tab functionality to transition through panes of local content
The simplest way to create a tab element.
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.
No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.
Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it?
On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish.
Add .text-center
or .text-right
to the ul.nav
to change the position of tabs.
But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.
No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.
Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it?
On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish.
Provide contextual feedback messages for typical user actions
You successfully read this important alert message.
This alert needs your attention, but it's not super important.
Better check yourself, you're not looking too good.
Change a few things up and try submitting again.
Provide some description for each file and folder inside your package
Adding a video to your page from any source
Place embed code inside a .video
tag.
Copy<div class="video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/hQfNtnKm5nA" frameborder="0" allowfullscreen></iframe>
</div>
Place embed code inside a .video
tag.
Copy<div class="video">
<iframe src="https://player.vimeo.com/video/127738920" width="500" height="281" frameborder="0" allowfullscreen></iframe>
</div>
There're two way to show your self-hosted videos in your documentation.
In this way you'll use default player of the browser. Don't forget to add width="100%"
and height="100%"
attributes in this way.
Copy<div class="video">
<video src="assets/img/video.mp4" width="100%" height="100%" controls></video>
</div>
<!-- OR -->
<div class="video">
<video width="100%" height="100%" controls>
<source src="assets/img/video.mp4" type="video/mp4">
<source src="assets/img/video.webm" type="video/webm">
</video>
</div>
You're also able to use a consistent video player skin across all browsers using videojs.
Make sure you'll include requirements before app.min.css and app.min.js.
Copy<div class="videojs-container">
<video class="video-js" controls preload="auto" poster="assets/img/video-poster.png" data-setup="{}">
<source src="assets/img/video.mp4" type='video/mp4'>
<source src="assets/img/video.webm" type='video/webm'>
</video>
</div>
By default aspect ratio is 16-9, add .ratio-4by3
to the .videojs-container
to change it.
Show image, video, and maps in a distraction-free way
Implementing as easy as adding a data-lity
attribute to your <a>
tags.
Copy<a class="btn btn-block" href="assets/img/video-poster.png" data-lity>Image</a>
<a class="btn btn-block" href="//www.youtube.com/watch?v=hQfNtnKm5nA" data-lity>iFrame Youtube</a>
<a class="btn btn-block" href="//vimeo.com/127738920" data-lity>iFrame Vimeo</a>
<a class="btn btn-block" href="//maps.google.com/maps?q=1600+Amphitheatre+Parkway,+Mountain+View,+CA" data-lity>Google Maps</a>
Comprise and show what colors are available for a component
By default, text color is white. You may need to change it based on your background-color and their contrast. You can use either classes or inline style to set background-colors.
Copy<ul class="color-palette-circular">
<li class="bg-purple">.bg-purple</li>
<li class="bg-green">.bg-green</li>
<li class="bg-blue">.bg-blue</li>
<li style="background-color: #fe7c60">#fe7c60</li>
<li style="background-color: #fe6060">#fe6060</li>
<li style="background-color: #161b1f">#161b1f</li>
<li class="bg-dark-light">.bg-dark-light</li>
<li class="bg-dark-lighter">.bg-dark-lighter</li>
<li class="bg-dark-lightest">.bg-dark-lightest</li>
<li class="bg-gray txt-gray">.bg-gray</li>
<li class="bg-gray-light txt-gray">.bg-gray-light</li>
<li class="bg-gray-lighter txt-gray">.bg-gray-lighter</li>
</ul>
Just changing a class name!
Copy<ul class="color-palette-stacked">
<li style="background-color: #0D47A1">#0D47A1</li>
<li style="background-color: #1565C0">#1565C0</li>
<li style="background-color: #1976D2">#1976D2</li>
<li style="background-color: #1E88E5">#1E88E5</li>
<li style="background-color: #2196F3">#2196F3</li>
<li style="background-color: #42A5F5">#42A5F5</li>
<li style="background-color: #64B5F6">#64B5F6</li>
<li style="background-color: #90CAF9">#90CAF9</li>
<li style="background-color: #BBDEFB">#BBDEFB</li>
</ul>
Use this component to inform your users regards required files
Copy<div class="requirements">
<div class="css"><link href="assets/vendors/videojs/video-js.min.css" rel="stylesheet"></div>
<div class="js"><script src="assets/vendors/videojs/video.min.js"></script></div>
</div>
html
Start counting numbers upon appearance of the element
820+
1200+
2300+
10000+
You can add .color-alt
class to .counter
element to make their colors white. It would be necessary to use it when you put the counters on an image. Also, you always can use contextual classes to change colors.
Data Attribute | Description |
---|---|
data-from | The number to start counting from. (default: 0) |
data-to | The number to stop counting at. (default: 100) |
data-speed | The number of milliseconds it should take to finish counting. (default: 1000) |
data-refresh-interval | The number of milliseconds it should take to finish counting. (default: 1000) |
Use a slider to show your clients' messages on your homepage
Pellentesque dolor diam, posuere a eleifend non, volutpat at sapien. Quisque dignissim, nibh sed ultrices gravida, libero massa maximus velit, a viverra urna neque vitae libero. Curabitur tincidunt sagittis blandit.
Quisque viverra risus a ex pulvinar, a lobortis arcu laoreet. Phasellus id semper nulla, quis dignissim enim. Aliquam condimentum, libero in varius aliquet, eros lorem volutpat libero, quis tempor eros mauris sit amet ex.
Symbolizes a command, action, or information using UI icons
TheGuide has included FontAwesome in its package and will update it regularly by new releases. So you're safe to use any icon from FontAwesome website.