styles.css 17 KB

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