Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the sample app to use a bootstrap theme.
- Loading branch information
Jordan Walsh
committed
Mar 1, 2017
1 parent
5cf2235
commit e225336
Showing
29 changed files
with
423 additions
and
323 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,124 @@ | ||
/* | ||
* 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, | ||
.nav-sidebar>.active>a:hover, | ||
.nav-sidebar>.active>a: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%; | ||
} |
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,23 @@ | ||
/*! | ||
* IE10 viewport hack for Surface/desktop Windows 8 bug | ||
* Copyright 2014-2015 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
*/ | ||
|
||
|
||
/* | ||
* See the Getting Started docs for more information: | ||
* http://getbootstrap.com/getting-started/#support-ie10-width | ||
*/ | ||
|
||
@-ms-viewport { | ||
width: device-width; | ||
} | ||
|
||
@-o-viewport { | ||
width: device-width; | ||
} | ||
|
||
@viewport { | ||
width: device-width; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,23 @@ | ||
/*! | ||
* IE10 viewport hack for Surface/desktop Windows 8 bug | ||
* Copyright 2014-2015 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
*/ | ||
|
||
// See the Getting Started docs for more information: | ||
// http://getbootstrap.com/getting-started/#support-ie10-width | ||
|
||
(function() { | ||
'use strict'; | ||
|
||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) { | ||
var msViewportStyle = document.createElement('style') | ||
msViewportStyle.appendChild( | ||
document.createTextNode( | ||
'@-ms-viewport{width:auto!important}' | ||
) | ||
) | ||
document.querySelector('head').appendChild(msViewportStyle) | ||
} | ||
|
||
})(); |
Binary file not shown.
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
Oops, something went wrong.