HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
#wrapper
// Navigation
nav.navbar.navbar-default.navbar-static-top(role='navigation', style='margin-bottom: 0')
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='index.html') SB Admin v2.0
// /.navbar-header
ul.nav.navbar-top-links.navbar-right
li.dropdown
a.dropdown-toggle(data-toggle='dropdown', href='#')
i.fa.fa-envelope.fa-fw
i.fa.fa-caret-down
ul.dropdown-menu.dropdown-messages
li
a(href='#')
div
strong John Smith
span.pull-right.text-muted
em Yesterday
div
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...
li.divider
li
a(href='#')
div
strong John Smith
span.pull-right.text-muted
em Yesterday
div
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...
li.divider
li
a(href='#')
div
strong John Smith
span.pull-right.text-muted
em Yesterday
div
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...
li.divider
li
a.text-center(href='#')
strong Read All Messages
i.fa.fa-angle-right
// /.dropdown-messages
// /.dropdown
li.dropdown
a.dropdown-toggle(data-toggle='dropdown', href='#')
i.fa.fa-tasks.fa-fw
i.fa.fa-caret-down
ul.dropdown-menu.dropdown-tasks
li
a(href='#')
div
p
strong Task 1
span.pull-right.text-muted 40% Complete
.progress.progress-striped.active
.progress-bar.progress-bar-success(role='progressbar', aria-valuenow='40', aria-valuemin='0', aria-valuemax='100', style='width: 40%')
span.sr-only 40% Complete (success)
li.divider
li
a(href='#')
div
p
strong Task 2
span.pull-right.text-muted 20% Complete
.progress.progress-striped.active
.progress-bar.progress-bar-info(role='progressbar', aria-valuenow='20', aria-valuemin='0', aria-valuemax='100', style='width: 20%')
span.sr-only 20% Complete
li.divider
li
a(href='#')
div
p
strong Task 3
span.pull-right.text-muted 60% Complete
.progress.progress-striped.active
.progress-bar.progress-bar-warning(role='progressbar', aria-valuenow='60', aria-valuemin='0', aria-valuemax='100', style='width: 60%')
span.sr-only 60% Complete (warning)
li.divider
li
a(href='#')
div
p
strong Task 4
span.pull-right.text-muted 80% Complete
.progress.progress-striped.active
.progress-bar.progress-bar-danger(role='progressbar', aria-valuenow='80', aria-valuemin='0', aria-valuemax='100', style='width: 80%')
span.sr-only 80% Complete (danger)
li.divider
li
a.text-center(href='#')
strong See All Tasks
i.fa.fa-angle-right
// /.dropdown-tasks
// /.dropdown
li.dropdown
a.dropdown-toggle(data-toggle='dropdown', href='#')
i.fa.fa-bell.fa-fw
i.fa.fa-caret-down
ul.dropdown-menu.dropdown-alerts
li
a(href='#')
div
i.fa.fa-comment.fa-fw
| New Comment
span.pull-right.text-muted.small 4 minutes ago
li.divider
li
a(href='#')
div
i.fa.fa-twitter.fa-fw
| 3 New Followers
span.pull-right.text-muted.small 12 minutes ago
li.divider
li
a(href='#')
div
i.fa.fa-envelope.fa-fw
| Message Sent
span.pull-right.text-muted.small 4 minutes ago
li.divider
li
a(href='#')
div
i.fa.fa-tasks.fa-fw
| New Task
span.pull-right.text-muted.small 4 minutes ago
li.divider
li
a(href='#')
div
i.fa.fa-upload.fa-fw
| Server Rebooted
span.pull-right.text-muted.small 4 minutes ago
li.divider
li
a.text-center(href='#')
strong See All Alerts
i.fa.fa-angle-right
// /.dropdown-alerts
// /.dropdown
li.dropdown
a.dropdown-toggle(data-toggle='dropdown', href='#')
i.fa.fa-user.fa-fw
i.fa.fa-caret-down
ul.dropdown-menu.dropdown-user
li
a(href='#')
i.fa.fa-user.fa-fw
| User Profile
li
a(href='#')
i.fa.fa-gear.fa-fw
| Settings
li.divider
li
a(href='login.html')
i.fa.fa-sign-out.fa-fw
| Logout
// /.dropdown-user
// /.dropdown
// /.navbar-top-links
.navbar-default.sidebar(role='navigation')
.sidebar-nav.navbar-collapse
ul#side-menu.nav
li.sidebar-search
.input-group.custom-search-form
input.form-control(type='text', placeholder='Search...')
span.input-group-btn
button.btn.btn-default(type='button')
i.fa.fa-search
// /input-group
li
a(href='index.html')
i.fa.fa-dashboard.fa-fw
| Dashboard
li
a(href='#')
i.fa.fa-bar-chart-o.fa-fw
| Charts
span.fa.arrow
ul.nav.nav-second-level
li
a(href='flot.html') Flot Charts
li
a(href='morris.html') Morris.js Charts
// /.nav-second-level
li
a(href='tables.html')
i.fa.fa-table.fa-fw
| Tables
li
a(href='forms.html')
i.fa.fa-edit.fa-fw
| Forms
li
a(href='#')
i.fa.fa-wrench.fa-fw
| UI Elements
span.fa.arrow
ul.nav.nav-second-level
li
a(href='panels-wells.html') Panels and Wells
li
a(href='buttons.html') Buttons
li
a(href='notifications.html') Notifications
li
a(href='typography.html') Typography
li
a(href='icons.html') Icons
li
a(href='grid.html') Grid
// /.nav-second-level
li
a(href='#')
i.fa.fa-sitemap.fa-fw
| Multi-Level Dropdown
span.fa.arrow
ul.nav.nav-second-level
li
a(href='#') Second Level Item
li
a(href='#') Second Level Item
li
a(href='#')
| Third Level
span.fa.arrow
ul.nav.nav-third-level
li
a(href='#') Third Level Item
li
a(href='#') Third Level Item
li
a(href='#') Third Level Item
li
a(href='#') Third Level Item
// /.nav-third-level
// /.nav-second-level
li
a(href='#')
i.fa.fa-files-o.fa-fw
| Sample Pages
span.fa.arrow
ul.nav.nav-second-level
li
a(href='blank.html') Blank Page
li
a(href='login.html') Login Page
// /.nav-second-level
// /.sidebar-collapse
// /.navbar-static-side
#page-wrapper
.row
.col-lg-12
h1.page-header Dashboard
// /.col-lg-12
// /.row
.row
.col-lg-3.col-md-6
.panel.panel-primary
.panel-heading
.row
.col-xs-3
i.fa.fa-comments.fa-5x
.col-xs-9.text-right
.huge 26
div New Comments!
a(href='#')
.panel-footer
span.pull-left View Details
span.pull-right
i.fa.fa-arrow-circle-right
.clearfix
.col-lg-3.col-md-6
.panel.panel-green
.panel-heading
.row
.col-xs-3
i.fa.fa-tasks.fa-5x
.col-xs-9.text-right
.huge 12
div New Tasks!
a(href='#')
.panel-footer
span.pull-left View Details
span.pull-right
i.fa.fa-arrow-circle-right
.clearfix
.col-lg-3.col-md-6
.panel.panel-yellow
.panel-heading
.row
.col-xs-3
i.fa.fa-shopping-cart.fa-5x
.col-xs-9.text-right
.huge 124
div New Orders!
a(href='#')
.panel-footer
span.pull-left View Details
span.pull-right
i.fa.fa-arrow-circle-right
.clearfix
.col-lg-3.col-md-6
.panel.panel-red
.panel-heading
.row
.col-xs-3
i.fa.fa-support.fa-5x
.col-xs-9.text-right
.huge 13
div Support Tickets!
a(href='#')
.panel-footer
span.pull-left View Details
span.pull-right
i.fa.fa-arrow-circle-right
.clearfix
// /.row
.row
.col-lg-8
.panel.panel-default
.panel-heading
i.fa.fa-bar-chart-o.fa-fw
| Area Chart Example
.pull-right
.btn-group
button.btn.btn-default.btn-xs.dropdown-toggle(type='button', data-toggle='dropdown')
| Actions
span.caret
ul.dropdown-menu.pull-right(role='menu')
li
a(href='#') Action
li
a(href='#') Another action
li
a(href='#') Something else here
li.divider
li
a(href='#') Separated link
// /.panel-heading
.panel-body
#morris-area-chart
// /.panel-body
// /.panel
.panel.panel-default
.panel-heading
i.fa.fa-bar-chart-o.fa-fw
| Bar Chart Example
.pull-right
.btn-group
button.btn.btn-default.btn-xs.dropdown-toggle(type='button', data-toggle='dropdown')
| Actions
span.caret
ul.dropdown-menu.pull-right(role='menu')
li
a(href='#') Action
li
a(href='#') Another action
li
a(href='#') Something else here
li.divider
li
a(href='#') Separated link
// /.panel-heading
.panel-body
.row
.col-lg-4
.table-responsive
table.table.table-bordered.table-hover.table-striped
thead
tr
th #
th Date
th Time
th Amount
tbody
tr
td 3326
td 10/21/2013
td 3:29 PM
td $321.33
tr
td 3325
td 10/21/2013
td 3:20 PM
td $234.34
tr
td 3324
td 10/21/2013
td 3:03 PM
td $724.17
tr
td 3323
td 10/21/2013
td 3:00 PM
td $23.71
tr
td 3322
td 10/21/2013
td 2:49 PM
td $8345.23
tr
td 3321
td 10/21/2013
td 2:23 PM
td $245.12
tr
td 3320
td 10/21/2013
td 2:15 PM
td $5663.54
tr
td 3319
td 10/21/2013
td 2:13 PM
td $943.45
// /.table-responsive
// /.col-lg-4 (nested)
.col-lg-8
#morris-bar-chart
// /.col-lg-8 (nested)
// /.row
// /.panel-body
// /.panel
.panel.panel-default
.panel-heading
i.fa.fa-clock-o.fa-fw
| Responsive Timeline
// /.panel-heading
.panel-body
ul.timeline
li
.timeline-badge
i.fa.fa-check
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
p
small.text-muted
i.fa.fa-clock-o
| 11 hours ago via Twitter
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero laboriosam dolor perspiciatis omnis exercitationem. Beatae, officia pariatur? Est cum veniam excepturi. Maiores praesentium, porro voluptas suscipit facere rem dicta, debitis.
li.timeline-inverted
.timeline-badge.warning
i.fa.fa-credit-card
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem dolorem quibusdam, tenetur commodi provident cumque magni voluptatem libero, quis rerum. Fugiat esse debitis optio, tempore. Animi officiis alias, officia repellendus.
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium maiores odit qui est tempora eos, nostrum provident explicabo dignissimos debitis vel! Adipisci eius voluptates, ad aut recusandae minus eaque facere.
li
.timeline-badge.danger
i.fa.fa-bomb
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus numquam facilis enim eaque, tenetur nam id qui vel velit similique nihil iure molestias aliquam, voluptatem totam quaerat, magni commodi quisquam.
li.timeline-inverted
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates est quaerat asperiores sapiente, eligendi, nihil. Itaque quos, alias sapiente rerum quas odit! Aperiam officiis quidem delectus libero, omnis ut debitis!
li
.timeline-badge.info
i.fa.fa-save
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis minus modi quam ipsum alias at est molestiae excepturi delectus nesciunt, quibusdam debitis amet, beatae consequuntur impedit nulla qui! Laborum, atque.
hr
.btn-group
button.btn.btn-primary.btn-sm.dropdown-toggle(type='button', data-toggle='dropdown')
i.fa.fa-gear
span.caret
ul.dropdown-menu(role='menu')
li
a(href='#') Action
li
a(href='#') Another action
li
a(href='#') Something else here
li.divider
li
a(href='#') Separated link
li
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi fuga odio quibusdam. Iure expedita, incidunt unde quis nam! Quod, quisquam. Officia quam qui adipisci quas consequuntur nostrum sequi. Consequuntur, commodi.
li.timeline-inverted
.timeline-badge.success
i.fa.fa-graduation-cap
.timeline-panel
.timeline-heading
h4.timeline-title Lorem ipsum dolor
.timeline-body
p
| Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt obcaecati, quaerat tempore officia voluptas debitis consectetur culpa amet, accusamus dolorum fugiat, animi dicta aperiam, enim incidunt quisquam maxime neque eaque.
// /.panel-body
// /.panel
// /.col-lg-8
.col-lg-4
.panel.panel-default
.panel-heading
i.fa.fa-bell.fa-fw
| Notifications Panel
// /.panel-heading
.panel-body
.list-group
a.list-group-item(href='#')
i.fa.fa-comment.fa-fw
| New Comment
span.pull-right.text-muted.small
em 4 minutes ago
a.list-group-item(href='#')
i.fa.fa-twitter.fa-fw
| 3 New Followers
span.pull-right.text-muted.small
em 12 minutes ago
a.list-group-item(href='#')
i.fa.fa-envelope.fa-fw
| Message Sent
span.pull-right.text-muted.small
em 27 minutes ago
a.list-group-item(href='#')
i.fa.fa-tasks.fa-fw
| New Task
span.pull-right.text-muted.small
em 43 minutes ago
a.list-group-item(href='#')
i.fa.fa-upload.fa-fw
| Server Rebooted
span.pull-right.text-muted.small
em 11:32 AM
a.list-group-item(href='#')
i.fa.fa-bolt.fa-fw
| Server Crashed!
span.pull-right.text-muted.small
em 11:13 AM
a.list-group-item(href='#')
i.fa.fa-warning.fa-fw
| Server Not Responding
span.pull-right.text-muted.small
em 10:57 AM
a.list-group-item(href='#')
i.fa.fa-shopping-cart.fa-fw
| New Order Placed
span.pull-right.text-muted.small
em 9:49 AM
a.list-group-item(href='#')
i.fa.fa-money.fa-fw
| Payment Received
span.pull-right.text-muted.small
em Yesterday
// /.list-group
a.btn.btn-default.btn-block(href='#') View All Alerts
// /.panel-body
// /.panel
.panel.panel-default
.panel-heading
i.fa.fa-bar-chart-o.fa-fw
| Donut Chart Example
.panel-body
#morris-donut-chart
a.btn.btn-default.btn-block(href='#') View Details
// /.panel-body
// /.panel
.chat-panel.panel.panel-default
.panel-heading
i.fa.fa-comments.fa-fw
| Chat
.btn-group.pull-right
button.btn.btn-default.btn-xs.dropdown-toggle(type='button', data-toggle='dropdown')
i.fa.fa-chevron-down
ul.dropdown-menu.slidedown
li
a(href='#')
i.fa.fa-refresh.fa-fw
| Refresh
li
a(href='#')
i.fa.fa-check-circle.fa-fw
| Available
li
a(href='#')
i.fa.fa-times.fa-fw
| Busy
li
a(href='#')
i.fa.fa-clock-o.fa-fw
| Away
li.divider
li
a(href='#')
i.fa.fa-sign-out.fa-fw
| Sign Out
// /.panel-heading
.panel-body
ul.chat
li.left.clearfix
span.chat-img.pull-left
img.img-circle(src='http://placehold.it/50/55C1E7/fff', alt='User Avatar')
.chat-body.clearfix
.header
strong.primary-font Jack Sparrow
small.pull-right.text-muted
i.fa.fa-clock-o.fa-fw
| 12 mins ago
p
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
li.right.clearfix
span.chat-img.pull-right
img.img-circle(src='http://placehold.it/50/FA6F57/fff', alt='User Avatar')
.chat-body.clearfix
.header
small.text-muted
i.fa.fa-clock-o.fa-fw
| 13 mins ago
strong.pull-right.primary-font Bhaumik Patel
p
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
li.left.clearfix
span.chat-img.pull-left
img.img-circle(src='http://placehold.it/50/55C1E7/fff', alt='User Avatar')
.chat-body.clearfix
.header
strong.primary-font Jack Sparrow
small.pull-right.text-muted
i.fa.fa-clock-o.fa-fw
| 14 mins ago
p
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
li.right.clearfix
span.chat-img.pull-right
img.img-circle(src='http://placehold.it/50/FA6F57/fff', alt='User Avatar')
.chat-body.clearfix
.header
small.text-muted
i.fa.fa-clock-o.fa-fw
| 15 mins ago
strong.pull-right.primary-font Bhaumik Patel
p
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales.
// /.panel-body
.panel-footer
.input-group
input#btn-input.form-control.input-sm(type='text', placeholder='Type your message here...')
span.input-group-btn
button#btn-chat.btn.btn-warning.btn-sm
| Send
// /.panel-footer
// /.panel .chat-panel
// /.col-lg-4
// /.row
// /#page-wrapper
// /#wrapper
/*!
* Start Bootstrap - SB Admin 2 Bootstrap Admin Theme (https://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
background-color: #f8f8f8;
}
#wrapper {
width: 100%;
}
#page-wrapper {
padding: 0 15px;
min-height: 568px;
background-color: #fff;
}
@media(min-width:768px) {
#page-wrapper {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
border-left: 1px solid #e7e7e7;
}
}
.navbar-top-links {
margin-right: 0;
}
.navbar-top-links li {
display: inline-block;
}
.navbar-top-links li:last-child {
margin-right: 15px;
}
.navbar-top-links li a {
padding: 15px;
min-height: 50px;
}
.navbar-top-links .dropdown-menu li {
display: block;
}
.navbar-top-links .dropdown-menu li:last-child {
margin-right: 0;
}
.navbar-top-links .dropdown-menu li a {
padding: 3px 20px;
min-height: 0;
}
.navbar-top-links .dropdown-menu li a div {
white-space: normal;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
width: 310px;
min-width: 0;
}
.navbar-top-links .dropdown-messages {
margin-left: 5px;
}
.navbar-top-links .dropdown-tasks {
margin-left: -59px;
}
.navbar-top-links .dropdown-alerts {
margin-left: -123px;
}
.navbar-top-links .dropdown-user {
right: 0;
left: auto;
}
.sidebar .sidebar-nav.navbar-collapse {
padding-right: 0;
padding-left: 0;
}
.sidebar .sidebar-search {
padding: 15px;
}
.sidebar ul li {
border-bottom: 1px solid #e7e7e7;
}
.sidebar ul li a.active {
background-color: #eee;
}
.sidebar .arrow {
float: right;
}
.sidebar .fa.arrow:before {
content: "\f104";
}
.sidebar .active>a>.fa.arrow:before {
content: "\f107";
}
.sidebar .nav-second-level li,
.sidebar .nav-third-level li {
border-bottom: 0!important;
}
.sidebar .nav-second-level li a {
padding-left: 37px;
}
.sidebar .nav-third-level li a {
padding-left: 52px;
}
@media(min-width:768px) {
.sidebar {
z-index: 1;
position: absolute;
width: 250px;
margin-top: 51px;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
margin-left: auto;
}
}
.btn-outline {
color: inherit;
background-color: transparent;
transition: all .5s;
}
.btn-primary.btn-outline {
color: #428bca;
}
.btn-success.btn-outline {
color: #5cb85c;
}
.btn-info.btn-outline {
color: #5bc0de;
}
.btn-warning.btn-outline {
color: #f0ad4e;
}
.btn-danger.btn-outline {
color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}
.chat {
margin: 0;
padding: 0;
list-style: none;
}
.chat li {
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px dotted #999;
}
.chat li.left .chat-body {
margin-left: 60px;
}
.chat li.right .chat-body {
margin-right: 60px;
}
.chat li .chat-body p {
margin: 0;
}
.panel .slidedown .glyphicon,
.chat .glyphicon {
margin-right: 5px;
}
.chat-panel .panel-body {
height: 350px;
overflow-y: scroll;
}
.login-panel {
margin-top: 25%;
}
.flot-chart {
display: block;
height: 400px;
}
.flot-chart-content {
width: 100%;
height: 100%;
}
.dataTables_wrapper {
position: relative;
clear: both;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
background: 0 0;
}
table.dataTable thead .sorting_asc:after {
content: "\f0de";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting_desc:after {
content: "\f0dd";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting:after {
content: "\f0dc";
float: right;
font-family: fontawesome;
color: rgba(50,50,50,.5);
}
.btn-circle {
width: 30px;
height: 30px;
padding: 6px 0;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}
.btn-circle.btn-lg {
width: 50px;
height: 50px;
padding: 10px 16px;
border-radius: 25px;
font-size: 18px;
line-height: 1.33;
}
.btn-circle.btn-xl {
width: 70px;
height: 70px;
padding: 10px 16px;
border-radius: 35px;
font-size: 24px;
line-height: 1.33;
}
.show-grid [class^=col-] {
padding-top: 10px;
padding-bottom: 10px;
border: 1px solid #ddd;
background-color: #eee!important;
}
.show-grid {
margin: 15px 0;
}
.huge {
font-size: 40px;
}
.panel-green {
border-color: #5cb85c;
}
.panel-green .panel-heading {
border-color: #5cb85c;
color: #fff;
background-color: #5cb85c;
}
.panel-green a {
color: #5cb85c;
}
.panel-green a:hover {
color: #3d8b3d;
}
.panel-red {
border-color: #d9534f;
}
.panel-red .panel-heading {
border-color: #d9534f;
color: #fff;
background-color: #d9534f;
}
.panel-red a {
color: #d9534f;
}
.panel-red a:hover {
color: #b52b27;
}
.panel-yellow {
border-color: #f0ad4e;
}
.panel-yellow .panel-heading {
border-color: #f0ad4e;
color: #fff;
background-color: #f0ad4e;
}
.panel-yellow a {
color: #f0ad4e;
}
.panel-yellow a:hover {
color: #df8a13;
}
$(function() {
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: '2010 Q3',
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: '2010 Q4',
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: '2011 Q1',
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: '2011 Q2',
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: '2011 Q3',
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: '2011 Q4',
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: '2012 Q1',
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: '2012 Q2',
iphone: 8432,
ipad: 5713,
itouch: 1791
}],
xkey: 'period',
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['iPhone', 'iPad', 'iPod Touch'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
Morris.Donut({
element: 'morris-donut-chart',
data: [{
label: "Download Sales",
value: 12
}, {
label: "In-Store Sales",
value: 30
}, {
label: "Mail-Order Sales",
value: 20
}],
resize: true
});
Morris.Bar({
element: 'morris-bar-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
});
$(function() {
$('#side-menu').metisMenu();
});
// Loads the correct sidebar on window load, collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
$(window).bind("load resize", function() {
topOffset = 50;
width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width;
if (width < 768) {
$('div.navbar-collapse').addClass('collapse');
topOffset = 100; // 2-row-menu
} else {
$('div.navbar-collapse').removeClass('collapse');
}
height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
height = height - topOffset;
if (height < 1) height = 1;
if (height > topOffset) {
$("#page-wrapper").css("min-height", (height) + "px");
}
});
var url = window.location;
var element = $('ul.nav a').filter(function() {
return this.href == url || url.href.indexOf(this.href) == 0;
}).addClass('active').parent().parent().addClass('in').parent();
if (element.is('li')) {
element.addClass('active');
}
});
Also see: Tab Triggers