styles.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. /***********************************************************
  2. ############################################################
  3. . . . . . .
  4. . . ...-..-| |-. .-. .-.-..-| .-.. ...-|
  5. ` ` '' '`-'-' '-`-`-' ' '`-'-`-`-` '`-'-
  6. url - https://davidawindham.com
  7. git - https://github.com/windhamdavid/daw
  8. need to test
  9. ############################################################
  10. ************************************************************/
  11. /***********************************************************
  12. ########## Bootstrap fully removed (2026-07-13) ###########
  13. The theme no longer depends on the bootstrap npm package. Everything
  14. below is hand-rolled from the parts the theme actually used: a 12-col
  15. flex grid, ~35 utility classes, and the components (badge, alert,
  16. pagination, list-group, nav/navbar, card, forms, buttons).
  17. Dropped with no replacement: dropdown, button-group, accordion,
  18. breadcrumb, progress, toasts, modal, tooltip, popover, spinners,
  19. placeholders, carousel (→ native .dw-carousel), tables, close,
  20. transitions, helpers, the utilities API, root, reboot, type
  21. (base reset/typography come from the theme's own normalize + reset
  22. above and theme.json global styles).
  23. (offcanvas nav is self-contained CSS via :target — see .dw-offcanvas.)
  24. ************************************************************/
  25. /* reboot provided body { color }; the theme's reset/bg cover the rest. */
  26. body { color: #232323; }
  27. /* ---- replacements for dropped Bootstrap partials ---- */
  28. /* images partial: only .img-fluid was used (art page). */
  29. .img-fluid {
  30. max-width: 100%;
  31. height: auto;
  32. }
  33. /* badge: last.fm stat counts (music) + analytics hit counts. Bootstrap badges had
  34. a colored background; without it the old color:#fff was near-invisible white text
  35. on the light .list-group-item. Use the site link red (matches the Studio admonition
  36. / search button) so the counts read on the light card. */
  37. .badge {
  38. display: inline-block;
  39. padding: 0.35em 0.65em;
  40. font-size: 0.75em;
  41. font-weight: 700;
  42. line-height: 1;
  43. color: var(--wp--preset--color--link, #67000a);
  44. text-align: center;
  45. white-space: nowrap;
  46. vertical-align: baseline;
  47. border-radius: 0.375rem;
  48. position: relative;
  49. top: -1px;
  50. }
  51. /* alert: contact-form success / error messages (inc/tweaks.php). The BS */
  52. /* colour variants no longer compiled (theme-colors trimmed) — give them */
  53. /* real green/red here. */
  54. .alert {
  55. position: relative;
  56. padding: 1rem;
  57. margin-bottom: 1rem;
  58. border: 1px solid transparent;
  59. border-radius: 0.375rem;
  60. }
  61. .alert-success {
  62. color: #0a3622;
  63. background-color: #d1e7dd;
  64. border-color: #a3cfbb;
  65. }
  66. .alert-danger {
  67. color: #58151c;
  68. background-color: #f8d7da;
  69. border-color: #f1aeb5;
  70. }
  71. /* pagination: flex container only. WP paginate_links() emits .page-numbers / */
  72. /* .pagination a, styled in style.css; margin/padding also live there. */
  73. .pagination {
  74. display: flex;
  75. list-style: none;
  76. }
  77. /* ---- utilities (hand-rolled; replaces bootstrap utilities/api + helpers) ---- */
  78. /* Only the ~35 utility classes actually used in the theme markup; values match */
  79. /* the former Bootstrap output exactly. Spacers: 1=.25 2=.5 3=1 4=1.5 5=3rem. */
  80. /* Breakpoints: md=768px, lg=992px, xl=1200px. (mb-n1 was a no-op — BS doesn't */
  81. /* generate negative margins by default — so it's intentionally omitted.) */
  82. .mt-0 { margin-top: 0 !important; }
  83. .mt-1 { margin-top: .25rem !important; }
  84. .mt-2 { margin-top: .5rem !important; }
  85. .mt-3 { margin-top: 1rem !important; }
  86. .mt-4 { margin-top: 1.5rem !important; }
  87. .mt-5 { margin-top: 3rem !important; }
  88. .mb-1 { margin-bottom: .25rem !important; }
  89. .mb-2 { margin-bottom: .5rem !important; }
  90. .mb-3 { margin-bottom: 1rem !important; }
  91. .mb-5 { margin-bottom: 3rem !important; }
  92. .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
  93. .pt-3 { padding-top: 1rem !important; }
  94. .pt-5 { padding-top: 3rem !important; }
  95. .pb-2 { padding-bottom: .5rem !important; }
  96. .pb-5 { padding-bottom: 3rem !important; }
  97. .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  98. .d-flex { display: flex !important; }
  99. .fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } /* was in bootstrap/helpers (position); header navbar full-width fixed */
  100. .align-items-end { align-items: flex-end !important; }
  101. .justify-content-center { justify-content: center !important; }
  102. .float-end { float: right !important; }
  103. .overflow-hidden { overflow: hidden !important; }
  104. .fs-2 { font-size: calc(1.325rem + .9vw) !important; }
  105. .fs-5 { font-size: 1.25rem !important; }
  106. .fw-bold { font-weight: 700 !important; }
  107. .fw-light { font-weight: 300 !important; }
  108. .lh-base { line-height: 1.5 !important; }
  109. .text-muted { color: rgba(33, 37, 41, .75) !important; }
  110. .bg-dark { background-color: rgb(83, 87, 99) !important; }
  111. @media (min-width: 768px) {
  112. .mt-md-0 { margin-top: 0 !important; }
  113. .text-md-start { text-align: left !important; }
  114. .text-md-end { text-align: right !important; }
  115. }
  116. @media (min-width: 992px) {
  117. .d-lg-block { display: block !important; }
  118. }
  119. @media (min-width: 1200px) {
  120. .fs-2 { font-size: 2rem !important; }
  121. }
  122. /* ---- grid (hand-rolled 12-col flexbox; replaces bootstrap/grid + containers) ---- */
  123. /* .container base widths/padding are custom in style.css (fixed per breakpoint); */
  124. /* only .container-fluid (full-width bands) + the flex grid live here. */
  125. .container-fluid {
  126. width: 100%;
  127. padding-right: .75rem;
  128. padding-left: .75rem;
  129. margin-right: auto;
  130. margin-left: auto;
  131. }
  132. .row {
  133. --bs-gutter-x: 1.5rem;
  134. --bs-gutter-y: 0;
  135. display: flex;
  136. flex-wrap: wrap;
  137. margin-top: calc(-1 * var(--bs-gutter-y));
  138. margin-right: calc(-.5 * var(--bs-gutter-x));
  139. margin-left: calc(-.5 * var(--bs-gutter-x));
  140. }
  141. .row > * {
  142. box-sizing: border-box;
  143. flex-shrink: 0;
  144. width: 100%;
  145. max-width: 100%;
  146. padding-right: calc(var(--bs-gutter-x) * .5);
  147. padding-left: calc(var(--bs-gutter-x) * .5);
  148. margin-top: var(--bs-gutter-y);
  149. }
  150. .col { flex: 1 0 0%; }
  151. .col-1 { flex: 0 0 auto; width: 8.333333%; }
  152. .col-2 { flex: 0 0 auto; width: 16.666667%; }
  153. .col-3 { flex: 0 0 auto; width: 25%; }
  154. .col-4 { flex: 0 0 auto; width: 33.333333%; }
  155. .col-5 { flex: 0 0 auto; width: 41.666667%; }
  156. .col-6 { flex: 0 0 auto; width: 50%; }
  157. .col-7 { flex: 0 0 auto; width: 58.333333%; }
  158. .col-8 { flex: 0 0 auto; width: 66.666667%; }
  159. .col-9 { flex: 0 0 auto; width: 75%; }
  160. .col-10 { flex: 0 0 auto; width: 83.333333%; }
  161. .col-11 { flex: 0 0 auto; width: 91.666667%; }
  162. .col-12 { flex: 0 0 auto; width: 100%; }
  163. @media (min-width: 576px) {
  164. .col-sm { flex: 1 0 0%; }
  165. .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  166. .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  167. .col-sm-3 { flex: 0 0 auto; width: 25%; }
  168. .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  169. .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  170. .col-sm-6 { flex: 0 0 auto; width: 50%; }
  171. .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  172. .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  173. .col-sm-9 { flex: 0 0 auto; width: 75%; }
  174. .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  175. .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  176. .col-sm-12 { flex: 0 0 auto; width: 100%; }
  177. }
  178. @media (min-width: 768px) {
  179. .col-md { flex: 1 0 0%; }
  180. .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  181. .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  182. .col-md-3 { flex: 0 0 auto; width: 25%; }
  183. .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  184. .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  185. .col-md-6 { flex: 0 0 auto; width: 50%; }
  186. .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  187. .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  188. .col-md-9 { flex: 0 0 auto; width: 75%; }
  189. .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  190. .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  191. .col-md-12 { flex: 0 0 auto; width: 100%; }
  192. }
  193. @media (min-width: 992px) {
  194. .col-lg { flex: 1 0 0%; }
  195. .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  196. .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  197. .col-lg-3 { flex: 0 0 auto; width: 25%; }
  198. .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  199. .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  200. .col-lg-6 { flex: 0 0 auto; width: 50%; }
  201. .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  202. .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  203. .col-lg-9 { flex: 0 0 auto; width: 75%; }
  204. .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  205. .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  206. .col-lg-12 { flex: 0 0 auto; width: 100%; }
  207. }
  208. @media (min-width: 768px) { .offset-md-1 { margin-left: 8.333333%; } }
  209. @media (min-width: 992px) { .offset-lg-1 { margin-left: 8.333333%; } }
  210. /* ---- list-group (hand-rolled; replaces bootstrap/list-group) ---- */
  211. /* Base only; context overrides (ul.nav, .list-group-horizontal, #music) live in */
  212. /* style.css. Resolved values: body-color #232323, body-bg #d3d3d3 (the gray */
  213. /* rows on music/analytics), border #dee2e6, radius .375rem. */
  214. .list-group {
  215. display: flex;
  216. flex-direction: column;
  217. padding-left: 0;
  218. margin-bottom: 0;
  219. border-radius: 0.375rem;
  220. }
  221. .list-group-item {
  222. position: relative;
  223. display: block;
  224. padding: 0.5rem 1rem;
  225. color: #232323;
  226. background-color: #d3d3d3;
  227. border: 1px solid #dee2e6;
  228. text-decoration: none;
  229. }
  230. .list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
  231. .list-group-item:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
  232. .list-group-item + .list-group-item { border-top-width: 0; }
  233. .list-group-horizontal { flex-direction: row; }
  234. .list-group-horizontal > .list-group-item:first-child:not(:last-child) { border-bottom-left-radius: 0.375rem; border-top-right-radius: 0; }
  235. .list-group-horizontal > .list-group-item:last-child:not(:first-child) { border-bottom-left-radius: 0; border-top-right-radius: 0.375rem; }
  236. /* ---- nav / navbar / card (hand-rolled; replaces those partials) ---- */
  237. /* Base only; the theme customizes navbar heavily (.navbar.fixed/.visible, */
  238. /* .navbar .container, .site-title a) and self-styles the front-page .card. */
  239. /* transitions partial dropped entirely (no .fade/.collapse used). */
  240. .nav {
  241. display: flex;
  242. flex-wrap: wrap;
  243. list-style: none;
  244. margin-bottom: 0;
  245. padding-left: 0;
  246. }
  247. .navbar {
  248. /* no position here — the header navbar is always .fixed-top (position:fixed);
  249. a `position: relative` would win on source order and drop it into flow,
  250. adding ~85px above the content and causing a scroll-jump (single.js). */
  251. display: flex;
  252. flex-wrap: wrap;
  253. align-items: center;
  254. justify-content: space-between;
  255. padding: 0.5rem 0;
  256. }
  257. .navbar-brand {
  258. padding-top: 0.3125rem;
  259. padding-bottom: 0.3125rem;
  260. margin-right: 1rem;
  261. font-size: 1.45rem;
  262. white-space: nowrap;
  263. text-decoration: none;
  264. }
  265. .card { /* front-page only; matches former bootstrap output (bg = body-bg #d3d3d3) */
  266. position: relative;
  267. display: flex;
  268. flex-direction: column;
  269. min-width: 0;
  270. word-wrap: break-word;
  271. color: #232323;
  272. background-color: #d3d3d3;
  273. border: 1px solid rgba(0, 0, 0, 0.175);
  274. border-radius: 0.375rem;
  275. }
  276. /* ---- forms + buttons (hand-rolled; replaces those partials) ---- */
  277. /* Only used classes. btn-default/btn-danger never compiled (theme-colors */
  278. /* trimmed) so they fall back to the base .btn, same as before. */
  279. .form-control {
  280. display: block;
  281. width: 100%;
  282. padding: 0.375rem 0.75rem;
  283. font-size: 1rem;
  284. font-weight: 400;
  285. line-height: 1.5;
  286. color: #232323;
  287. background-color: #d3d3d3;
  288. background-clip: padding-box;
  289. border: 1px solid #dee2e6;
  290. border-radius: 0.375rem;
  291. appearance: none;
  292. transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  293. }
  294. .form-control:focus {
  295. color: #232323;
  296. background-color: #d3d3d3;
  297. border-color: #86b7fe;
  298. outline: 0;
  299. box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  300. }
  301. .input-group {
  302. position: relative;
  303. display: flex;
  304. flex-wrap: wrap;
  305. align-items: stretch;
  306. width: 100%;
  307. }
  308. .btn {
  309. display: inline-block;
  310. padding: 0.375rem 0.75rem;
  311. font-size: 1rem;
  312. font-weight: 400;
  313. line-height: 1.5;
  314. color: #232323;
  315. text-align: center;
  316. text-decoration: none;
  317. vertical-align: middle;
  318. cursor: pointer;
  319. user-select: none;
  320. background-color: transparent;
  321. border: 1px solid transparent;
  322. border-radius: 0.375rem;
  323. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  324. }
  325. .btn-dark {
  326. color: #fff;
  327. background-color: #535763;
  328. border-color: #535763;
  329. }
  330. .btn-dark:hover {
  331. color: #fff;
  332. background-color: #6d707a;
  333. border-color: #646873;
  334. }
  335. .btn-lg {
  336. padding: 0.5rem 1rem;
  337. font-size: 1.25rem;
  338. border-radius: 0.5rem;
  339. }
  340. /* Bootstrap Icons font dropped (2026-06-19): the header's 8 nav icons are now
  341. inline SVG in parts/header.html, so the full icon font + its ~2000 CSS rules
  342. are no longer imported. */
  343. /***********************************************************
  344. ##################### Overrides ############################
  345. ************************************************************/
  346. /* Bootstrap 5.3 changed .table to default --bs-table-bg to --bs-body-bg */
  347. /* (it was transparent in 5.2). Keep the About icon grid transparent. */
  348. .table.icons {
  349. --bs-table-bg: transparent;
  350. }
  351. /* Sprite icons (dw_icon() / <use href="#dw-…">, from the FA Pro kit → icons.svg). */
  352. /* Sized like a font icon: 1em square, inherits text color. */
  353. .dw-icon {
  354. width: 1em;
  355. height: 1em;
  356. fill: currentColor;
  357. vertical-align: -0.125em;
  358. }
  359. /* Social icons (was fa-2x). Baseline-aligned since they stand alone. */
  360. .dw-icon-2x {
  361. width: 2em;
  362. height: 2em;
  363. vertical-align: middle;
  364. }
  365. /* Offcanvas top-nav — self-contained, CSS-only (replaces Bootstrap's offcanvas */
  366. /* component + JS). The brand link is <a href="#nav">, so :target drives */
  367. /* the open state; a backdrop <a href="#"> and the × link close it. Tradeoffs vs */
  368. /* the BS JS version: no ESC-to-close, no focus-trap, no body-scroll-lock. */
  369. .dw-offcanvas {
  370. position: fixed;
  371. top: 0;
  372. left: 0;
  373. right: 0;
  374. z-index: 1045; /* above .navbar.fixed-top (1030) */
  375. display: flex;
  376. flex-direction: column;
  377. height: 85px; /* match the scroll-up navbar dropdown (~84.6px) */
  378. visibility: hidden;
  379. transform: translateY(-100%);
  380. transition: transform 0.3s ease-in-out, visibility 0.3s;
  381. overflow-y: auto;
  382. background: rgba(72, 76, 87, 0.7); /* footer color (#484c57), translucent */
  383. backdrop-filter: blur(6px);
  384. }
  385. .dw-offcanvas:target {
  386. visibility: visible;
  387. transform: none;
  388. }
  389. .dw-offcanvas-backdrop {
  390. display: none;
  391. position: fixed;
  392. inset: 0;
  393. z-index: 1040; /* below .dw-offcanvas */
  394. background: rgba(0, 0, 0, 0.4);
  395. }
  396. .dw-offcanvas:target ~ .dw-offcanvas-backdrop {
  397. display: block;
  398. }
  399. @media (prefers-reduced-motion: reduce) {
  400. .dw-offcanvas {
  401. transition: none;
  402. }
  403. }
  404. /* Gallery carousel — CSS scroll-snap (replaces the Bootstrap carousel on the */
  405. /* art page). Swipe / trackpad / scrollbar natively; prev-next + arrow keys via */
  406. /* a tiny vanilla script (js/art.js). No autoplay (was 5s) by design. */
  407. .dw-carousel {
  408. position: relative;
  409. }
  410. .dw-carousel-track {
  411. display: flex;
  412. overflow-x: auto;
  413. scroll-snap-type: x mandatory;
  414. scroll-behavior: smooth;
  415. scrollbar-width: none; /* Firefox */
  416. }
  417. .dw-carousel-track::-webkit-scrollbar {
  418. display: none; /* WebKit */
  419. }
  420. .dw-carousel-slide {
  421. flex: 0 0 100%;
  422. scroll-snap-align: center;
  423. display: flex;
  424. justify-content: center;
  425. }
  426. .dw-carousel-prev,
  427. .dw-carousel-next {
  428. position: absolute;
  429. top: 50%;
  430. transform: translateY(-50%);
  431. z-index: 2;
  432. width: 3rem;
  433. height: 3rem;
  434. border: 0;
  435. background: transparent;
  436. color: #fff;
  437. font-size: 1.75rem;
  438. line-height: 1;
  439. cursor: pointer;
  440. }
  441. .dw-carousel-prev {
  442. left: 1rem;
  443. }
  444. .dw-carousel-next {
  445. right: 1rem;
  446. }
  447. @media (prefers-reduced-motion: reduce) {
  448. .dw-carousel-track {
  449. scroll-behavior: auto;
  450. }
  451. }
  452. /* Studio hero — vanilla fade-carousel (replaces Bootstrap carousel-fade + the */
  453. /* backstretch background). #studio-caro keeps its caro-grad* solid-colour */
  454. /* classes + 1s transition from style.css; the bg layer / <video> show through */
  455. /* when the gradient is caro-grad5 (transparent). Driven by js/studio.js. */
  456. #studio-caro {
  457. position: relative;
  458. overflow: hidden;
  459. min-height: 40vh;
  460. }
  461. .dw-studio-bg {
  462. position: absolute;
  463. inset: 0;
  464. z-index: 0;
  465. background-size: cover;
  466. background-position: center;
  467. }
  468. .dw-studio-video,
  469. .dw-studio-tv {
  470. position: absolute;
  471. inset: 0;
  472. width: 100%;
  473. height: 100%;
  474. object-fit: cover;
  475. display: none; /* shown per-slide by studio.js (camera → Media, tv → fact intro) */
  476. }
  477. .dw-studio-tv {
  478. filter: saturate(0); /* grayscale, as it was behind the About fact slides */
  479. }
  480. .dw-fade-carousel {
  481. position: relative;
  482. z-index: 1;
  483. }
  484. .dw-fade-slide {
  485. position: absolute;
  486. inset: 0;
  487. opacity: 0;
  488. visibility: hidden;
  489. transition: opacity 0.8s ease;
  490. }
  491. .dw-fade-slide.active {
  492. position: relative; /* the active slide defines the track height */
  493. opacity: 1;
  494. visibility: visible;
  495. }
  496. @media (prefers-reduced-motion: reduce) {
  497. .dw-fade-slide {
  498. transition: none;
  499. }
  500. }
  501. /* Studio tab panes — vanilla show/hide (replaces Bootstrap Tab). */
  502. #studio-tab .tab-pane {
  503. display: none;
  504. }
  505. #studio-tab .tab-pane.active {
  506. display: block;
  507. }
  508. /* About fade-carousel indicator dots (replaces Bootstrap .carousel-indicators). */
  509. .dw-fade-dots {
  510. position: absolute;
  511. bottom: 1.5rem;
  512. left: 0;
  513. right: 0;
  514. z-index: 3;
  515. display: flex;
  516. justify-content: center;
  517. gap: 0.5rem;
  518. }
  519. .dw-fade-dot {
  520. width: 12px;
  521. height: 12px;
  522. padding: 0;
  523. border: 1px solid #fff;
  524. border-radius: 50%;
  525. background: transparent;
  526. opacity: 0.6;
  527. cursor: pointer;
  528. }
  529. .dw-fade-dot.active {
  530. background: #fff;
  531. opacity: 1;
  532. }