0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/docs/4.0/examples/dashboard/dashboard.css

94 lines
1.5 KiB
CSS
Raw Normal View History

2017-08-11 06:04:59 +02:00
body {
2018-01-18 19:32:35 +01:00
font-size: .875rem;
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.feather {
width: 16px;
height: 16px;
vertical-align: text-bottom;
2017-08-11 06:04:59 +02:00
}
/*
* Sidebar
*/
.sidebar {
position: fixed;
2018-01-18 19:32:35 +01:00
top: 0;
2017-08-11 06:04:59 +02:00
bottom: 0;
left: 0;
2018-01-18 19:32:35 +01:00
z-index: 100; /* Behind the navbar */
padding: 0;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}
.sidebar-sticky {
position: -webkit-sticky;
position: sticky;
top: 48px; /* Height of navbar */
height: calc(100vh - 48px);
padding-top: .5rem;
2017-08-11 06:04:59 +02:00
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
2018-01-18 19:32:35 +01:00
.sidebar .nav-link {
font-weight: 500;
color: #333;
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.sidebar .nav-link .feather {
margin-right: 4px;
color: #999;
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.sidebar .nav-link.active {
color: #007bff;
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
color: inherit;
}
.sidebar-heading {
font-size: .75rem;
text-transform: uppercase;
2017-08-11 06:04:59 +02:00
}
/*
2018-01-18 19:32:35 +01:00
* Navbar
2017-08-11 06:04:59 +02:00
*/
2018-01-18 19:32:35 +01:00
.navbar-brand {
padding-top: .75rem;
padding-bottom: .75rem;
font-size: 1rem;
background-color: rgba(0, 0, 0, .25);
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}
.navbar .form-control {
padding: .75rem 1rem;
border-width: 0;
border-radius: 0;
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.form-control-dark {
color: #fff;
background-color: rgba(255, 255, 255, .1);
border-color: rgba(255, 255, 255, .1);
2017-08-11 06:04:59 +02:00
}
2018-01-18 19:32:35 +01:00
.form-control-dark:focus {
border-color: transparent;
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
/*
* Utilities
*/
.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }