| 1 |
body.admin { |
| 2 |
--fp-accent: #2a6f6f; |
| 3 |
--fp-accent-dark: #1d5858; |
| 4 |
--fp-ink: 18, 30, 30; |
| 5 |
|
| 6 |
--bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", |
| 7 |
Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; |
| 8 |
--bs-body-bg: #f2f5f5; |
| 9 |
--bs-body-color: #1c2b2b; |
| 10 |
--bs-link-color: var(--fp-accent); |
| 11 |
--bs-link-hover-color: var(--fp-accent-dark); |
| 12 |
--bs-link-color-rgb: 42, 111, 111; |
| 13 |
--bs-link-hover-color-rgb: 29, 88, 88; |
| 14 |
padding-top: 76px; |
| 15 |
--bs-body-font-size: .9rem; |
| 16 |
font-size: .9rem; |
| 17 |
} |
| 18 |
|
| 19 |
/* Bootstrap hardcodes form controls, buttons and dropdowns to 1rem — larger |
| 20 |
than the admin's .9rem base. Pull the whole interactive type scale in line |
| 21 |
so nothing renders bigger than the surrounding text. */ |
| 22 |
body.admin .form-control, |
| 23 |
body.admin .form-select, |
| 24 |
body.admin .form-label, |
| 25 |
body.admin .col-form-label, |
| 26 |
body.admin .input-group-text, |
| 27 |
body.admin input.datetime-widget { |
| 28 |
font-size: .9rem; |
| 29 |
} |
| 30 |
body.admin .btn { |
| 31 |
--bs-btn-font-size: .9rem; |
| 32 |
} |
| 33 |
body.admin .btn-sm, |
| 34 |
body.admin .form-control-sm, |
| 35 |
body.admin .form-select-sm { |
| 36 |
--bs-btn-font-size: .8125rem; |
| 37 |
font-size: .8125rem; |
| 38 |
} |
| 39 |
|
| 40 |
.navbar { |
| 41 |
--bs-dark-rgb: var(--fp-ink); |
| 42 |
border-bottom: 2px solid var(--fp-accent); |
| 43 |
} |
| 44 |
.navbar-brand { |
| 45 |
font-weight: 700; |
| 46 |
} |
| 47 |
.taskbar-clock { |
| 48 |
color: rgba(255, 255, 255, .7); |
| 49 |
margin-left: .75rem; |
| 50 |
font-variant-numeric: tabular-nums; |
| 51 |
} |
| 52 |
.navbar-dark .nav-link { |
| 53 |
--bs-nav-link-color: rgba(255, 255, 255, .7); |
| 54 |
} |
| 55 |
.navbar-dark .nav-link:hover, |
| 56 |
.navbar-dark .nav-link:focus { |
| 57 |
color: #fff; |
| 58 |
} |
| 59 |
.navbar-dark .nav-link.active { |
| 60 |
color: #fff; |
| 61 |
border-bottom: 2px solid var(--fp-accent); |
| 62 |
} |
| 63 |
|
| 64 |
.content { |
| 65 |
background: #fff; |
| 66 |
border: 1px solid rgba(var(--fp-ink), .1); |
| 67 |
border-radius: .5rem; |
| 68 |
padding: 1.25rem 1.5rem 1.5rem; |
| 69 |
box-shadow: 0 1px 2px rgba(var(--fp-ink), .04); |
| 70 |
} |
| 71 |
.page-header h1 { |
| 72 |
font-weight: 700; |
| 73 |
letter-spacing: -.02em; |
| 74 |
} |
| 75 |
.page-header h1 small { |
| 76 |
font-size: 1.25rem; |
| 77 |
color: var(--bs-secondary-color); |
| 78 |
} |
| 79 |
.breadcrumb { |
| 80 |
font-size: .875rem; |
| 81 |
} |
| 82 |
|
| 83 |
.sidebar-nav { |
| 84 |
position: sticky; |
| 85 |
top: 76px; |
| 86 |
} |
| 87 |
.card { |
| 88 |
--bs-card-border-color: rgba(var(--fp-ink), .12); |
| 89 |
box-shadow: 0 1px 2px rgba(var(--fp-ink), .04); |
| 90 |
} |
| 91 |
.card-header { |
| 92 |
background-color: rgba(var(--fp-ink), .03); |
| 93 |
font-weight: 600; |
| 94 |
} |
| 95 |
|
| 96 |
/* Dashboard panels pack into two masonry-style columns (round-robin assignment |
| 97 |
happens in admin/index.html) so a short panel doesn't leave a gap beside a |
| 98 |
taller neighbour. Collapses to a single column on narrow screens. */ |
| 99 |
.panel-masonry { |
| 100 |
display: flex; |
| 101 |
gap: 1rem; |
| 102 |
} |
| 103 |
.panel-masonry .panel-col { |
| 104 |
flex: 1 1 0; |
| 105 |
min-width: 0; |
| 106 |
} |
| 107 |
@media (max-width: 767.98px) { |
| 108 |
.panel-masonry { |
| 109 |
flex-direction: column; |
| 110 |
gap: 0; |
| 111 |
} |
| 112 |
} |
| 113 |
.list-group { |
| 114 |
--bs-list-group-active-bg: var(--fp-accent); |
| 115 |
--bs-list-group-active-border-color: var(--fp-accent); |
| 116 |
--bs-list-group-action-hover-bg: rgba(42, 111, 111, .13); |
| 117 |
--bs-list-group-action-hover-color: var(--fp-accent-dark); |
| 118 |
--bs-list-group-action-active-bg: rgba(42, 111, 111, .2); |
| 119 |
} |
| 120 |
.dropdown-menu { |
| 121 |
--bs-dropdown-font-size: .9rem; /* Bootstrap defaults this to 1rem, larger than the rest of the admin */ |
| 122 |
--bs-dropdown-link-hover-bg: rgba(42, 111, 111, .12); |
| 123 |
--bs-dropdown-link-hover-color: var(--fp-accent-dark); |
| 124 |
--bs-dropdown-link-active-bg: var(--fp-accent); |
| 125 |
--bs-dropdown-link-active-color: #fff; |
| 126 |
} |
| 127 |
|
| 128 |
/* Bootstrap leaves a variant-less .btn transparent and borderless — give it a |
| 129 |
neutral default so a bare .btn (e.g. in a panel) still looks like a button. |
| 130 |
The :where() guard keeps this off any button that carries a color variant. */ |
| 131 |
body.admin .btn:where(:not(.btn-primary):not(.btn-secondary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light):not(.btn-dark):not(.btn-link):not([class*="btn-outline-"])) { |
| 132 |
--bs-btn-color: #1c2b2b; |
| 133 |
--bs-btn-bg: #fff; |
| 134 |
--bs-btn-border-color: #b9c6c5; |
| 135 |
--bs-btn-hover-color: #1c2b2b; |
| 136 |
--bs-btn-hover-bg: #edf2f2; |
| 137 |
--bs-btn-hover-border-color: #a3b4b3; |
| 138 |
--bs-btn-active-color: #1c2b2b; |
| 139 |
--bs-btn-active-bg: #e1eaea; |
| 140 |
--bs-btn-active-border-color: #a3b4b3; |
| 141 |
--bs-btn-disabled-color: #7a8a89; |
| 142 |
--bs-btn-disabled-bg: #fff; |
| 143 |
--bs-btn-disabled-border-color: #cdd8d7; |
| 144 |
} |
| 145 |
|
| 146 |
.btn-primary { |
| 147 |
--bs-btn-bg: var(--fp-accent); |
| 148 |
--bs-btn-border-color: var(--fp-accent); |
| 149 |
--bs-btn-hover-bg: var(--fp-accent-dark); |
| 150 |
--bs-btn-hover-border-color: var(--fp-accent-dark); |
| 151 |
--bs-btn-active-bg: var(--fp-accent-dark); |
| 152 |
--bs-btn-active-border-color: var(--fp-accent-dark); |
| 153 |
} |
| 154 |
.btn-outline-primary { |
| 155 |
--bs-btn-color: var(--fp-accent); |
| 156 |
--bs-btn-border-color: var(--fp-accent); |
| 157 |
--bs-btn-hover-bg: var(--fp-accent); |
| 158 |
--bs-btn-hover-border-color: var(--fp-accent); |
| 159 |
--bs-btn-active-bg: var(--fp-accent-dark); |
| 160 |
--bs-btn-active-border-color: var(--fp-accent-dark); |
| 161 |
} |
| 162 |
.pagination { |
| 163 |
--bs-pagination-active-bg: var(--fp-accent); |
| 164 |
--bs-pagination-active-border-color: var(--fp-accent); |
| 165 |
} |
| 166 |
|
| 167 |
.section-heading { |
| 168 |
font-size: 1rem; |
| 169 |
font-weight: 600; |
| 170 |
text-transform: uppercase; |
| 171 |
letter-spacing: .06em; |
| 172 |
color: var(--fp-muted, #5a6b69); |
| 173 |
border-bottom: 1px solid var(--bs-border-color); |
| 174 |
padding-bottom: .5rem; |
| 175 |
margin: 1.5rem 0 1rem; |
| 176 |
} |
| 177 |
|
| 178 |
.nav-tabs .nav-link.active { |
| 179 |
font-weight: 600; |
| 180 |
} |
| 181 |
.table thead th { |
| 182 |
font-size: .78rem; |
| 183 |
font-weight: 600; |
| 184 |
text-transform: uppercase; |
| 185 |
letter-spacing: .06em; |
| 186 |
} |
| 187 |
.table thead th a { |
| 188 |
text-decoration: none; |
| 189 |
} |
| 190 |
|
| 191 |
.form-check-input:checked { |
| 192 |
background-color: var(--fp-accent); |
| 193 |
border-color: var(--fp-accent); |
| 194 |
} |
| 195 |
.form-control:focus, |
| 196 |
.form-select:focus, |
| 197 |
.form-check-input:focus { |
| 198 |
border-color: #7fadad; |
| 199 |
box-shadow: 0 0 0 .25rem rgba(42, 111, 111, .2); |
| 200 |
} |
| 201 |
|
| 202 |
/* keep object forms readable instead of stretching edge-to-edge, and pull |
| 203 |
the field back toward its label on wide screens */ |
| 204 |
.content fieldset { |
| 205 |
max-width: 780px; |
| 206 |
} |
| 207 |
.content fieldset legend { |
| 208 |
font-size: 1rem; |
| 209 |
font-weight: 600; |
| 210 |
border-bottom: 1px solid var(--bs-border-color); |
| 211 |
padding-bottom: .4rem; |
| 212 |
margin-bottom: 1rem; |
| 213 |
} |
| 214 |
.content .form-actions { |
| 215 |
border-top: 1px solid var(--bs-border-color); |
| 216 |
padding-top: 1rem; |
| 217 |
margin-top: 1.25rem; |
| 218 |
} |
| 219 |
|
| 220 |
/* modeladmin filters */ |
| 221 |
form.modeladmin-filters select, |
| 222 |
form.modeladmin-filters input { |
| 223 |
display: inline-block; |
| 224 |
} |
| 225 |
|
| 226 |
/* the split date + time inputs of a datetime field sit side by side */ |
| 227 |
form input.datetime-widget { |
| 228 |
width: auto; |
| 229 |
display: inline-block; |
| 230 |
margin-right: 10px; |
| 231 |
} |
| 232 |
|
| 233 |
form textarea { |
| 234 |
height: 150px; |
| 235 |
} |
| 236 |
|
| 237 |
/* keep checkbox/actions columns narrow in list tables */ |
| 238 |
table th.shrink, |
| 239 |
table td.check, |
| 240 |
table td.links, |
| 241 |
table td.last { |
| 242 |
width: 1%; |
| 243 |
white-space: nowrap; |
| 244 |
} |
| 245 |
|
| 246 |
/* list view: let a long, unbreakable value (e.g. a tracker URL) wrap inside |
| 247 |
its column instead of overflowing. Use `break-word`, NOT `anywhere`: |
| 248 |
`anywhere` advertises a soft-wrap opportunity between every character when |
| 249 |
the browser computes a column's min-content width, so on a narrow screen |
| 250 |
the auto table-layout collapses every text column to ~1ch and the row |
| 251 |
explodes into a tower of one-letter lines instead of scrolling. This bites |
| 252 |
links hardest, since a linked title or tag is one long token. |
| 253 |
`break-word` still breaks an over-long token during layout, but keeps each |
| 254 |
column's min-content at its longest word — so the table retains a real |
| 255 |
minimum width and the .table-responsive wrapper scrolls it sideways when it |
| 256 |
can't fit, rather than the page body. The cap keeps one long-text column |
| 257 |
from crowding out the others. */ |
| 258 |
table.list-view td { |
| 259 |
overflow-wrap: break-word; |
| 260 |
max-width: 28rem; |
| 261 |
vertical-align: top; |
| 262 |
} |
| 263 |
/* below md the sidebar and content stack to full width and the list is at its |
| 264 |
most cramped: hold the table to a readable width and let the |
| 265 |
.table-responsive wrapper scroll it sideways, like a window, instead of the |
| 266 |
auto-layout squeezing every column into the viewport. (A short, few-column |
| 267 |
table is forced to scroll too; swap this for a per-column min-width on |
| 268 |
`td:not(.check):not(.links):not(.last)` if that ever grates.) */ |
| 269 |
@media (max-width: 767.98px) { |
| 270 |
table.list-view { |
| 271 |
min-width: 34rem; |
| 272 |
} |
| 273 |
} |
| 274 |
table.list-view tbody td { |
| 275 |
font-size: .8125rem; |
| 276 |
} |
| 277 |
|
| 278 |
/* rich-content columns render markdown (<p>, <ul>, <ol>) whose default block |
| 279 |
margins/padding make list rows bulky — tighten them inside cells. */ |
| 280 |
table.list-view td > p, |
| 281 |
table.list-view td ul, |
| 282 |
table.list-view td ol { |
| 283 |
margin-bottom: .25rem; |
| 284 |
} |
| 285 |
table.list-view td ul, |
| 286 |
table.list-view td ol { |
| 287 |
padding-left: 1.15rem; |
| 288 |
} |
| 289 |
table.list-view td > :last-child { |
| 290 |
margin-bottom: 0; |
| 291 |
} |
| 292 |
|
| 293 |
/* a column that renders rich content (markdown, HTML) can embed full-size |
| 294 |
media that balloons row height. Keep any media in a list cell down to a |
| 295 |
scannable thumbnail so rows stay compact. */ |
| 296 |
table.list-view td img, |
| 297 |
table.list-view td svg, |
| 298 |
table.list-view td video { |
| 299 |
max-height: 150px; |
| 300 |
max-width: 300px; |
| 301 |
width: auto; |
| 302 |
height: auto; |
| 303 |
border-radius: 4px; |
| 304 |
} |
| 305 |
|
| 306 |
/* row action links (Edit / Delete / ...): a tidy, evenly-divided group |
| 307 |
instead of loosely-spaced links */ |
| 308 |
table.list-view td.links ul.list-inline { |
| 309 |
white-space: nowrap; |
| 310 |
text-align: right; |
| 311 |
} |
| 312 |
table.list-view td.links .list-inline-item { |
| 313 |
margin: 0; |
| 314 |
} |
| 315 |
table.list-view td.links .list-inline-item + .list-inline-item::before { |
| 316 |
content: "\00b7"; /* middot — matches the "Add new · Export" divider on the dashboard */ |
| 317 |
color: var(--bs-secondary-color); |
| 318 |
margin: 0 .3rem; |
| 319 |
} |
| 320 |
table.list-view td.links a { |
| 321 |
text-decoration: none; |
| 322 |
} |
| 323 |
table.list-view td.links a:hover { |
| 324 |
text-decoration: underline; |
| 325 |
} |
| 326 |
|
| 327 |
.fk-lookup-input + ul.result-list li { |
| 328 |
padding: .25rem 0; |
| 329 |
} |
| 330 |
|
| 331 |
/* delete confirmation dependency list */ |
| 332 |
ul.delete-deps { |
| 333 |
list-style: none; |
| 334 |
padding-left: 0; |
| 335 |
} |
| 336 |
ul.delete-deps li { |
| 337 |
padding: .1rem 0; |
| 338 |
} |
| 339 |
|
| 340 |
p { margin-bottom: .5rem; } |