165 lines
3.0 KiB
CSS
165 lines
3.0 KiB
CSS
/*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* Copyright © 2019 Alexandre Iooss
|
|
*
|
|
* This is the custom style for Django Contrib Admin
|
|
*/
|
|
|
|
/* Colors */
|
|
#header {
|
|
background-color: #151515;
|
|
border-bottom: solid 5px #ff4541;
|
|
}
|
|
|
|
.module h2, .module caption, .inline-group h2 {
|
|
background: #e6e0d8;
|
|
color: #222;
|
|
}
|
|
|
|
a.section:link, a.section:visited {
|
|
color: #222;
|
|
}
|
|
|
|
#user-tools a {
|
|
border-bottom: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
div.breadcrumbs {
|
|
background: #3c3c3c;
|
|
}
|
|
|
|
.button, input[type=submit], input[type=button], .submit-row input, a.button {
|
|
background: #d8a456;
|
|
}
|
|
|
|
.button:active, input[type=submit]:active, input[type=button]:active, .button:focus, input[type=submit]:focus,
|
|
input[type=button]:focus, .button:hover, input[type=submit]:hover, input[type=button]:hover {
|
|
background: #b98d4a;
|
|
}
|
|
|
|
.button.default, input[type=submit].default, .submit-row input.default {
|
|
background: #b98d4a;
|
|
}
|
|
|
|
.button.default:active, input[type=submit].default:active, .button.default:focus, input[type=submit].default:focus,
|
|
.button.default:hover, input[type=submit].default:hover {
|
|
background: #a7752b;
|
|
}
|
|
|
|
/* User tools top menu */
|
|
#user-tools .dropdown:hover > a, #user-tools .dropdown:focus > a {
|
|
color: #79aec8;
|
|
}
|
|
|
|
#user-tools .dropdown {
|
|
position: relative; /* needed to position the dropdown content */
|
|
display: inline-block;
|
|
}
|
|
|
|
#user-tools .dropdown-content {
|
|
display: block;
|
|
position: absolute;
|
|
background-color: #444444;
|
|
min-width: 180px;
|
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
|
z-index: 2000;
|
|
text-align: left;
|
|
|
|
/* Hide menu by making it transparent */
|
|
transition: opacity 100ms, visibility 100ms;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
}
|
|
|
|
#user-tools .dropdown-content a {
|
|
color: #fff;
|
|
padding: 7px 8px;
|
|
text-decoration: none;
|
|
display: block;
|
|
line-height: 16px;
|
|
}
|
|
|
|
#user-tools .dropdown-content a:hover {
|
|
background-color: #636363;
|
|
}
|
|
|
|
#user-tools .dropdown:hover .dropdown-content {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Fix navigation hidden */
|
|
#header {
|
|
overflow: visible;
|
|
}
|
|
|
|
.login #header {
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Footer */
|
|
#footer {
|
|
padding: 20px 40px;
|
|
color: #999;
|
|
}
|
|
|
|
.login #footer {
|
|
padding: 10px;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
#footer a {
|
|
color: #777;
|
|
}
|
|
|
|
#footer select {
|
|
height: 24px;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Pull footer to bottom */
|
|
#content {
|
|
min-height: calc(100vh - 220px);
|
|
}
|
|
|
|
.login #content {
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Branding logo */
|
|
#branding img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#site-name {
|
|
padding-left: 10px;
|
|
}
|
|
|
|
/* Dashboard should take all page */
|
|
.dashboard #content {
|
|
width: auto;
|
|
}
|
|
|
|
/* Login page background */
|
|
body.login {
|
|
background: linear-gradient(-225deg, #FFE29F 0%, #ffb7b7 48%, #ff8477 100%) fixed !important;
|
|
}
|
|
|
|
img.poulpy {
|
|
display: block;
|
|
max-width: 100%;
|
|
width: 1000px;
|
|
height: auto;
|
|
}
|
|
|
|
/* No padding content for special pages */
|
|
#content.nopadding {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Fix Redoc */
|
|
svg.search-icon {
|
|
display: none;
|
|
} |