217 lines
5.7 KiB
CSS
217 lines
5.7 KiB
CSS
/* Custom styles for Django Admin to match the main site CI */
|
|
:root {
|
|
--primary-bg: #0f172a;
|
|
--accent-cyan: #22d3ee;
|
|
--text-main: #f1f5f9;
|
|
--glass-bg: rgba(255, 255, 255, 0.05);
|
|
--glass-border: rgba(255, 255, 255, 0.1);
|
|
--darker-bg: #020617;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--primary-bg) !important;
|
|
color: var(--text-main) !important;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
|
|
}
|
|
|
|
#header {
|
|
background: rgba(15, 23, 42, 0.8) !important;
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--glass-border) !important;
|
|
color: var(--text-main) !important;
|
|
height: auto !important;
|
|
padding: 15px 40px !important;
|
|
}
|
|
|
|
#header a:link, #header a:visited {
|
|
color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
#branding h1 {
|
|
color: var(--text-main) !important;
|
|
font-weight: 700 !important;
|
|
letter-spacing: -0.5px !important;
|
|
}
|
|
|
|
div.breadcrumbs {
|
|
background: transparent !important;
|
|
border-bottom: 1px solid var(--glass-border) !important;
|
|
color: var(--text-main) !important;
|
|
padding: 10px 40px !important;
|
|
}
|
|
|
|
div.breadcrumbs a {
|
|
color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
.module {
|
|
background: var(--glass-bg) !important;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--glass-border) !important;
|
|
border-radius: 1rem !important;
|
|
color: var(--text-main) !important;
|
|
overflow: hidden !important;
|
|
margin-bottom: 30px !important;
|
|
}
|
|
|
|
.module h2, .module caption, .inline-group h2 {
|
|
background: rgba(255, 255, 255, 0.03) !important;
|
|
color: var(--accent-cyan) !important;
|
|
border-bottom: 1px solid var(--glass-border) !important;
|
|
font-weight: 600 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 1px !important;
|
|
}
|
|
|
|
#content-main {
|
|
color: var(--text-main) !important;
|
|
padding: 20px 40px !important;
|
|
}
|
|
|
|
table thead th {
|
|
background: rgba(0, 0, 0, 0.2) !important;
|
|
color: var(--accent-cyan) !important;
|
|
border-bottom: 1px solid var(--glass-border) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
table tbody tr {
|
|
background: transparent !important;
|
|
}
|
|
|
|
table tbody tr:hover {
|
|
background: rgba(255, 255, 255, 0.05) !important;
|
|
}
|
|
|
|
table td, table th {
|
|
border-bottom: 1px solid var(--glass-border) !important;
|
|
color: var(--text-main) !important;
|
|
}
|
|
|
|
.change-list .filtered .results, .change-list .filtered .paginator, .filtered #toolbar, .filtered div.xfull {
|
|
background: transparent !important;
|
|
}
|
|
|
|
#changelist-filter {
|
|
background: rgba(15, 23, 42, 0.9) !important;
|
|
border-left: 1px solid var(--glass-border) !important;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
#changelist-filter h2 {
|
|
background: rgba(255, 255, 255, 0.05) !important;
|
|
color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
#changelist-filter a {
|
|
color: var(--text-main) !important;
|
|
}
|
|
|
|
#changelist-filter li.selected a {
|
|
color: var(--accent-cyan) !important;
|
|
border-left: 3px solid var(--accent-cyan) !important;
|
|
padding-left: 10px !important;
|
|
}
|
|
|
|
/* Buttons */
|
|
.button, input[type=submit], input[type=button], .submit-row input, a.button {
|
|
background: var(--accent-cyan) !important;
|
|
color: var(--primary-bg) !important;
|
|
font-weight: 700 !important;
|
|
border: none !important;
|
|
border-radius: 0.5rem !important;
|
|
padding: 10px 20px !important;
|
|
transition: all 0.3s ease !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.5px !important;
|
|
}
|
|
|
|
.button:hover, input[type=submit]:hover {
|
|
background: #06b6d4 !important;
|
|
box-shadow: 0 0 15px rgba(34, 211, 238, 0.4) !important;
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
.button.default, input[type=submit].default {
|
|
background: var(--accent-cyan) !important;
|
|
}
|
|
|
|
.button.closelink, .button.deletelink {
|
|
background: #ef4444 !important;
|
|
color: white !important;
|
|
}
|
|
|
|
form .aligned label {
|
|
color: var(--text-main) !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
|
|
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], textarea, select {
|
|
background: rgba(255, 255, 255, 0.05) !important;
|
|
border: 1px solid var(--glass-border) !important;
|
|
border-radius: 0.4rem !important;
|
|
color: var(--text-main) !important;
|
|
padding: 8px !important;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
border-color: var(--accent-cyan) !important;
|
|
outline: none !important;
|
|
box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2) !important;
|
|
}
|
|
|
|
fieldset {
|
|
border: 1px solid var(--glass-border) !important;
|
|
border-radius: 0.8rem !important;
|
|
padding: 20px !important;
|
|
background: rgba(255, 255, 255, 0.02) !important;
|
|
}
|
|
|
|
#user-tools {
|
|
color: var(--text-main) !important;
|
|
}
|
|
|
|
#user-tools a {
|
|
color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
#nav-sidebar {
|
|
background: rgba(15, 23, 42, 0.95) !important;
|
|
border-right: 1px solid var(--glass-border) !important;
|
|
}
|
|
|
|
#nav-sidebar .section th {
|
|
background: rgba(255, 255, 255, 0.03) !important;
|
|
color: var(--accent-cyan) !important;
|
|
padding: 12px 15px !important;
|
|
}
|
|
|
|
#nav-sidebar a {
|
|
color: var(--text-main) !important;
|
|
}
|
|
|
|
#nav-sidebar tr.selected a {
|
|
color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
/* Specific fix for the login page */
|
|
.login body {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
.login #container {
|
|
background: var(--glass-bg) !important;
|
|
backdrop-filter: blur(15px) !important;
|
|
border: 1px solid var(--glass-border) !important;
|
|
border-radius: 1.5rem !important;
|
|
padding: 40px !important;
|
|
width: 100% !important;
|
|
max-width: 450px !important;
|
|
}
|
|
|
|
.login #header {
|
|
background: transparent !important;
|
|
border: none !important;
|
|
} |