mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-02 21:04:13 +03:00
#805 seeding dashboard template
This commit is contained in:
parent
9fecf69666
commit
089109b5a2
110
docs/examples/dashboard-bs4/dashboard.scss
Normal file
110
docs/examples/dashboard-bs4/dashboard.scss
Normal file
|
@ -0,0 +1,110 @@
|
|||
---
|
||||
---
|
||||
|
||||
/*
|
||||
* Base structure
|
||||
*/
|
||||
|
||||
/* Move down content because we have a fixed navbar that is 50px tall */
|
||||
body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Global add-ons
|
||||
*/
|
||||
|
||||
.sub-header {
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
/*
|
||||
* Top navigation
|
||||
* Hide default border to remove 1px line.
|
||||
*/
|
||||
.navbar-fixed-top {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Sidebar
|
||||
*/
|
||||
|
||||
/* Hide for mobile, show later */
|
||||
.sidebar {
|
||||
display: none;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
top: 51px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||
background-color: #f5f5f5;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
}
|
||||
|
||||
/* Sidebar navigation */
|
||||
.nav-sidebar {
|
||||
margin-right: -21px; /* 20px padding + 1px border */
|
||||
margin-bottom: 20px;
|
||||
margin-left: -20px;
|
||||
}
|
||||
.nav-sidebar > li > a {
|
||||
padding-right: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.nav-sidebar > .active > a {
|
||||
&,
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: #fff;
|
||||
background-color: #428bca;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Main content
|
||||
*/
|
||||
|
||||
.main {
|
||||
padding: 20px;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.main {
|
||||
padding-right: 40px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
}
|
||||
.main .page-header {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Placeholder dashboard ideas
|
||||
*/
|
||||
|
||||
.placeholders {
|
||||
margin-bottom: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
.placeholders h4 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.placeholder {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.placeholder img {
|
||||
display: inline-block;
|
||||
border-radius: 50%;
|
||||
}
|
210
docs/examples/dashboard-bs4/index.md
Normal file
210
docs/examples/dashboard-bs4/index.md
Normal file
|
@ -0,0 +1,210 @@
|
|||
---
|
||||
layout: example
|
||||
title: Dashboard BS4 Template
|
||||
group: material-design
|
||||
---
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="dashboard.css" rel="stylesheet">
|
||||
|
||||
|
||||
<nav class="navbar navbar-dark navbar-fixed-top bg-inverse">
|
||||
<button type="button" class="navbar-toggler hidden-sm-up" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Project name</a>
|
||||
<div id="navbar">
|
||||
<nav class="nav navbar-nav pull-xs-left">
|
||||
<a class="nav-item nav-link" href="#">Dashboard</a>
|
||||
<a class="nav-item nav-link" href="#">Settings</a>
|
||||
<a class="nav-item nav-link" href="#">Profile</a>
|
||||
<a class="nav-item nav-link" href="#">Help</a>
|
||||
</nav>
|
||||
<form class="pull-xs-right">
|
||||
<input type="text" class="form-control" placeholder="Search...">
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-md-2 sidebar">
|
||||
<ul class="nav nav-sidebar">
|
||||
<li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
|
||||
<li><a href="#">Reports</a></li>
|
||||
<li><a href="#">Analytics</a></li>
|
||||
<li><a href="#">Export</a></li>
|
||||
</ul>
|
||||
<ul class="nav nav-sidebar">
|
||||
<li><a href="">Nav item</a></li>
|
||||
<li><a href="">Nav item again</a></li>
|
||||
<li><a href="">One more nav</a></li>
|
||||
<li><a href="">Another nav item</a></li>
|
||||
<li><a href="">More navigation</a></li>
|
||||
</ul>
|
||||
<ul class="nav nav-sidebar">
|
||||
<li><a href="">Nav item again</a></li>
|
||||
<li><a href="">One more nav</a></li>
|
||||
<li><a href="">Another nav item</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
||||
<h1 class="page-header">Dashboard</h1>
|
||||
|
||||
<div class="row placeholders">
|
||||
<div class="col-xs-6 col-sm-3 placeholder">
|
||||
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-fluid" alt="Generic placeholder thumbnail">
|
||||
<h4>Label</h4>
|
||||
<span class="text-muted">Something else</span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-3 placeholder">
|
||||
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-fluid" alt="Generic placeholder thumbnail">
|
||||
<h4>Label</h4>
|
||||
<span class="text-muted">Something else</span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-3 placeholder">
|
||||
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-fluid" alt="Generic placeholder thumbnail">
|
||||
<h4>Label</h4>
|
||||
<span class="text-muted">Something else</span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-3 placeholder">
|
||||
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" width="200" height="200" class="img-fluid" alt="Generic placeholder thumbnail">
|
||||
<h4>Label</h4>
|
||||
<span class="text-muted">Something else</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Section title</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Header</th>
|
||||
<th>Header</th>
|
||||
<th>Header</th>
|
||||
<th>Header</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1,001</td>
|
||||
<td>Lorem</td>
|
||||
<td>ipsum</td>
|
||||
<td>dolor</td>
|
||||
<td>sit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,002</td>
|
||||
<td>amet</td>
|
||||
<td>consectetur</td>
|
||||
<td>adipiscing</td>
|
||||
<td>elit</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,003</td>
|
||||
<td>Integer</td>
|
||||
<td>nec</td>
|
||||
<td>odio</td>
|
||||
<td>Praesent</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,003</td>
|
||||
<td>libero</td>
|
||||
<td>Sed</td>
|
||||
<td>cursus</td>
|
||||
<td>ante</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,004</td>
|
||||
<td>dapibus</td>
|
||||
<td>diam</td>
|
||||
<td>Sed</td>
|
||||
<td>nisi</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,005</td>
|
||||
<td>Nulla</td>
|
||||
<td>quis</td>
|
||||
<td>sem</td>
|
||||
<td>at</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,006</td>
|
||||
<td>nibh</td>
|
||||
<td>elementum</td>
|
||||
<td>imperdiet</td>
|
||||
<td>Duis</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,007</td>
|
||||
<td>sagittis</td>
|
||||
<td>ipsum</td>
|
||||
<td>Praesent</td>
|
||||
<td>mauris</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,008</td>
|
||||
<td>Fusce</td>
|
||||
<td>nec</td>
|
||||
<td>tellus</td>
|
||||
<td>sed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,009</td>
|
||||
<td>augue</td>
|
||||
<td>semper</td>
|
||||
<td>porta</td>
|
||||
<td>Mauris</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,010</td>
|
||||
<td>massa</td>
|
||||
<td>Vestibulum</td>
|
||||
<td>lacinia</td>
|
||||
<td>arcu</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,011</td>
|
||||
<td>eget</td>
|
||||
<td>nulla</td>
|
||||
<td>Class</td>
|
||||
<td>aptent</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,012</td>
|
||||
<td>taciti</td>
|
||||
<td>sociosqu</td>
|
||||
<td>ad</td>
|
||||
<td>litora</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,013</td>
|
||||
<td>torquent</td>
|
||||
<td>per</td>
|
||||
<td>conubia</td>
|
||||
<td>nostra</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,014</td>
|
||||
<td>per</td>
|
||||
<td>inceptos</td>
|
||||
<td>himenaeos</td>
|
||||
<td>Curabitur</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,015</td>
|
||||
<td>sodales</td>
|
||||
<td>ligula</td>
|
||||
<td>in</td>
|
||||
<td>libero</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
117
docs/examples/dashboard/dashboard.scss
Normal file
117
docs/examples/dashboard/dashboard.scss
Normal file
|
@ -0,0 +1,117 @@
|
|||
---
|
||||
---
|
||||
|
||||
body {
|
||||
/* Show it's not fixed to the top */
|
||||
min-height: 75rem;
|
||||
padding-top: 6rem;
|
||||
}
|
||||
|
||||
//
|
||||
///*
|
||||
// * Base structure
|
||||
// */
|
||||
//
|
||||
///* Move down content because we have a fixed navbar that is 50px tall */
|
||||
//body {
|
||||
// padding-top: 50px;
|
||||
//}
|
||||
//
|
||||
//
|
||||
///*
|
||||
// * Global add-ons
|
||||
// */
|
||||
//
|
||||
//.sub-header {
|
||||
// padding-bottom: 10px;
|
||||
// border-bottom: 1px solid #eee;
|
||||
//}
|
||||
//
|
||||
///*
|
||||
// * Top navigation
|
||||
// * Hide default border to remove 1px line.
|
||||
// */
|
||||
//.navbar-fixed-top {
|
||||
// border: 0;
|
||||
//}
|
||||
//
|
||||
///*
|
||||
// * Sidebar
|
||||
// */
|
||||
//
|
||||
///* Hide for mobile, show later */
|
||||
//.sidebar {
|
||||
// display: none;
|
||||
//}
|
||||
//@media (min-width: 768px) {
|
||||
// .sidebar {
|
||||
// position: fixed;
|
||||
// top: 51px;
|
||||
// bottom: 0;
|
||||
// left: 0;
|
||||
// z-index: 1000;
|
||||
// display: block;
|
||||
// padding: 20px;
|
||||
// overflow-x: hidden;
|
||||
// overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
||||
// background-color: #f5f5f5;
|
||||
// border-right: 1px solid #eee;
|
||||
// }
|
||||
//}
|
||||
//
|
||||
///* Sidebar navigation */
|
||||
//.nav-sidebar {
|
||||
// margin-right: -21px; /* 20px padding + 1px border */
|
||||
// margin-bottom: 20px;
|
||||
// margin-left: -20px;
|
||||
//}
|
||||
//.nav-sidebar > li > a {
|
||||
// padding-right: 20px;
|
||||
// padding-left: 20px;
|
||||
//}
|
||||
//.nav-sidebar > .active > a {
|
||||
// &,
|
||||
// &:hover,
|
||||
// &:focus {
|
||||
// color: #fff;
|
||||
// background-color: #428bca;
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//
|
||||
///*
|
||||
// * Main content
|
||||
// */
|
||||
//
|
||||
//.main {
|
||||
// padding: 20px;
|
||||
//}
|
||||
//@media (min-width: 768px) {
|
||||
// .main {
|
||||
// padding-right: 40px;
|
||||
// padding-left: 40px;
|
||||
// }
|
||||
//}
|
||||
//.main .page-header {
|
||||
// margin-top: 0;
|
||||
//}
|
||||
//
|
||||
//
|
||||
///*
|
||||
// * Placeholder dashboard ideas
|
||||
// */
|
||||
//
|
||||
//.placeholders {
|
||||
// margin-bottom: 30px;
|
||||
// text-align: center;
|
||||
//}
|
||||
//.placeholders h4 {
|
||||
// margin-bottom: 0;
|
||||
//}
|
||||
//.placeholder {
|
||||
// margin-bottom: 20px;
|
||||
//}
|
||||
//.placeholder img {
|
||||
// display: inline-block;
|
||||
// border-radius: 50%;
|
||||
//}
|
48
docs/examples/dashboard/index.md
Normal file
48
docs/examples/dashboard/index.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
layout: example
|
||||
title: Dashboard Template
|
||||
group: material-design
|
||||
---
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="dashboard.css" rel="stylesheet">
|
||||
|
||||
|
||||
<div class="pos-f-t">
|
||||
<!--div class="collapse" id="navbar-header">
|
||||
<div class="container-fluid bg-inverse p-a-1">
|
||||
<h3>Collapsed content</h3>
|
||||
<p>Toggleable via the navbar brand.</p>
|
||||
</div>
|
||||
</div-->
|
||||
<div class="navbar navbar-light bg-faded navbar-static-top">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-header">
|
||||
<i class="material-icons">menu</i>
|
||||
</button>
|
||||
|
||||
<ul class="nav navbar-nav pull-xs-right">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="#">
|
||||
<i class="material-icons">search</i>
|
||||
</a>
|
||||
<!--form class="form-inline pull-xs-right">
|
||||
<input class="form-control" type="text" placeholder="Search">
|
||||
<button class="btn btn-outline-success" type="submit">Search</button>
|
||||
</form-->
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">
|
||||
<i class="material-icons">more_vert</i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="jumbotron">
|
||||
<h1>Navbar example</h1>
|
||||
<p class="lead">This example is a quick exercise to illustrate how fixed to top navbar works. As you scroll, it will remain fixed to the top of your browser's viewport.</p>
|
||||
<a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a>
|
||||
</div>
|
||||
</div>
|
|
@ -3,49 +3,50 @@ layout: simple
|
|||
title: Examples
|
||||
---
|
||||
|
||||
## Framework
|
||||
## Templates
|
||||
|
||||
Examples that focus on implementing uses of built-in components provided by Bootstrap.
|
||||
Templates that give a quick structural start to using Material Design for Bootstrap.
|
||||
|
||||
<div class="row bd-examples">
|
||||
|
||||
<div class="card card-block col-xs-6 col-md-4">
|
||||
<div class="card-deck">
|
||||
<div class="card card-block">
|
||||
<h4 class="card-title">Starter Template</h4>
|
||||
<p class="card-text">Nothing but the basics: compiled CSS and JavaScript.</p>
|
||||
<a href="{{ site.baseurl }}/examples/starter-template/" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card card-block">
|
||||
<h4 class="card-title">Dashboard</h4>
|
||||
<p class="card-text">Dashboard with a drawer</p>
|
||||
<a href="{{ site.baseurl }}/examples/dashboard/" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
<!--
|
||||
<div class="card card-block col-xs-6 col-md-4">
|
||||
<h4 class="card-title"></h4>
|
||||
<p class="card-text"></p>
|
||||
<a href="{{ site.baseurl }}/examples/" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
<div class="col-xs-6 col-md-4">
|
||||
<div class="card card-block">
|
||||
<h4 class="card-title"></h4>
|
||||
<p class="card-text"></p>
|
||||
<a href="{{ site.baseurl }}/examples/" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
## Custom components
|
||||
## Components
|
||||
|
||||
Brand new components and templates to help folks quickly get started with Material Design for Bootstrap and demonstrate best practices for adding onto the framework.
|
||||
|
||||
<div class="row bd-examples">
|
||||
|
||||
<div class="card card-block col-xs-6 col-md-4">
|
||||
<h4 class="card-title">Sign-in page</h4>
|
||||
<p class="card-text">Custom form layout and design for a simple sign in form.</p>
|
||||
<a href="{{ site.baseurl }}/examples/signin" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
Components and templates to help folks quickly get started with Material Design for Bootstrap and demonstrate best practices for adding onto the framework.
|
||||
|
||||
<div class="card-deck">
|
||||
<div class="card card-block">
|
||||
<h4 class="card-title">Sign-in page</h4>
|
||||
<p class="card-text">Custom form layout and design for a simple sign in form.</p>
|
||||
<a href="{{ site.baseurl }}/examples/signin" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
## Experiments
|
||||
|
||||
Examples that focus on future-friendly features or techniques.
|
||||
|
||||
<div class="row bd-examples">
|
||||
<div class="card card-block col-xs-6 col-md-4">
|
||||
<div class="card-deck">
|
||||
<div class="card card-block">
|
||||
<h4 class="card-title">Offcanvas</h4>
|
||||
<p class="card-text">Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
||||
<a href="{{ site.baseurl }}/examples/offcanvas" target="_example" class="btn btn-primary"><i class="material-icons">launch</i> Launch</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user