ampache_react/app/styles/ampache.css

249 lines
3.6 KiB
CSS
Raw Normal View History

2016-07-27 13:51:30 +02:00
/* Firefox hack for responsive table */
@-moz-document url-prefix() {
fieldset {
display: table-cell;
}
}
2016-07-07 23:23:18 +02:00
/*
* Sidebar
*/
.sidebar {
position: fixed;
top: 0;
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: #333;
color: white;
border-right: 1px solid #eee;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
/* Sidebar elements */
.sidebar a {
color: white;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.sidebar h1 {
margin: 0;
margin-bottom: 20px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.sidebar h1 img {
height: 46px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.sidebar h1 a {
text-decoration: none;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
/* Sidebar navigation */
2016-07-26 21:01:27 +02:00
.sidebar .navbar {
border: none;
}
2016-07-07 23:23:18 +02:00
.nav-sidebar {
2016-07-26 21:01:27 +02:00
margin-right: -20px;
2016-07-07 23:23:18 +02:00
margin-bottom: 20px;
margin-left: -20px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.nav-sidebar > li > a {
padding-right: 20px;
padding-left: 20px;
}
2016-07-25 23:22:44 +02:00
2016-07-26 21:01:27 +02:00
@media (max-width: 991px) {
.sidebar,
.sidebar .navbar .container-fluid {
padding-left: 5px;
padding-right: 5px;
}
.sidebar .nav-list {
text-align: right;
}
.sidebar .nav-sidebar > li > a {
padding-left: 20px;
padding-right: 20px;
}
.sidebar .nav-list > li > a {
padding-left: 20px;
padding-right: 20px;
}
}
2016-07-07 23:23:18 +02:00
.nav-sidebar .nav-sidebar {
margin-bottom: 0; /* No margin bottom for nested nav-sidebar. */
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.nav-sidebar > .active > a:focus,
2016-07-25 23:22:44 +02:00
.nav > li > a:focus {
2016-07-07 23:23:18 +02:00
color: #fff;
2016-07-26 21:01:27 +02:00
background-color: transparent;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav > li > a:hover {
color: #fff;
background-color: #222;
}
.nav > li > a.active {
2016-07-07 23:23:18 +02:00
background-color: #222;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.icon-navbar {
background-color: #555;
font-size: 1.25em;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.icon-navbar-nav {
2016-07-25 23:22:44 +02:00
display: inline-block;
float: none;
vertical-align: top;
text-align: center;
2016-07-07 23:23:18 +02:00
}
/*
* Main content
*/
.main-panel {
padding: 20px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
@media (min-width: 768px) {
.main-panel {
padding-right: 40px;
padding-left: 40px;
}
}
/*
* Filtering field
*/
div.filter {
margin-bottom: 34px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.filter-legend {
text-align: right;
line-height: 34px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
@media (max-width: 767px) {
.filter-legend {
text-align: center;
}
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
@media (min-width: 767px) {
.filter .form-group {
width: 75%;
}
}
/*
* Placeholder dashboard ideas
*/
.placeholders {
margin-bottom: 30px;
text-align: center;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.placeholders h4 {
margin-bottom: 0;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
.placeholder img:hover {
transform: scale(1.1);
cursor: pointer;
}
/**
* Pager
*/
.pagination-nav {
text-align: center;
}
2016-07-25 23:22:44 +02:00
.pagination > li > span {
2016-07-07 23:23:18 +02:00
cursor: pointer;
}
/**
* Login screen
*/
.login h1 img {
height: 46px;
}
2016-07-25 23:22:44 +02:00
2016-07-07 23:23:18 +02:00
@media (max-width: 767px) {
.login .submit {
text-align: center;
}
}
/**
* Misc
*/
.art {
display: inline-block;
2016-07-27 13:51:30 +02:00
margin-bottom: 10px;
2016-07-07 23:23:18 +02:00
width: 75%;
height: auto;
2016-07-27 13:51:30 +02:00
/* doiuse-disable viewport-units */
max-width: 25vw;
max-height: 25vw;
/* doiuse-enable viewport-units */
2016-07-07 23:23:18 +02:00
}
.albumRow {
margin-top: 30px;
}
2016-07-27 13:51:30 +02:00
.artistNameRow h1 {
margin-bottom: 0;
}
.artistNameRow hr {
margin-top: 0.5em; /* Default value. */
}
@media (max-width: 767px) {
.table-responsive {
border: none;
}
.albumRowName h2 {
margin-top: 0;
margin-bottom: 0;
}
.albumRowArt p,
.albumRowArt img {
margin: 0;
}
.albumRowName,
.albumRowArt {
float: none;
display: inline-block;
vertical-align: middle;
margin-bottom: 10px;
}
}
/* TODO: Use table-condensed if xs screen */