| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- /***********************************************************
- ############################################################
- . . . . . .
- . . ...-..-| |-. .-. .-.-..-| .-.. ...-|
- ` ` '' '`-'-' '-`-`-' ' '`-'-`-`-` '`-'-
- url - https://davidawindham.com
- git - https://github.com/windhamdavid/daw
- need to test
- ############################################################
- ************************************************************/
- /***********************************************************
- ################### Bootstrap Functions ####################
- ************************************************************/
- @import '../node_modules/bootstrap/scss/functions';
- @import '../node_modules/bootstrap/scss/variables';
- @import '../node_modules/bootstrap/scss/variables-dark';
- @import '../node_modules/bootstrap/scss/maps';
- @import '../node_modules/bootstrap/scss/mixins';
- /***********************************************************
- ####################### Custom ############################
- ************************************************************/
- $body-bg: #d3d3d3;
- $body-color: #232323;
- $link-color: #67000a;
- $theme-colors: (
- "dark": #535763,
- );
- $custom-colors: (
- 'dw-blue-dark': #484C57,
- 'dw-blue':#535763,
- 'dw-light':#e2e2e2,
- 'dw-bright':#e3e3e3,
- );
- $theme-colors: map-merge($theme-colors, $custom-colors);
- $theme-colors: map-remove($theme-colors, 'primary','secondary','success','warning', 'info');
- $colors: map-remove($colors, 'white','black','gray','gray-dark','dark','blue','indigo','purple','pink', 'orange', 'yellow', 'green', 'teal', 'cyan');
- $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
- $utilities-colors: map-merge($utilities-colors, $theme-colors-rgb);
- $utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text");
- $utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg");
- $enable-negative-margins: true;
- /***********************************************************
- ########## Bootstrap 5 — subset to used parts #############
- Being removed incrementally (Phases 1-3, 2026-07-13).
- Dropped (unused / migrated): dropdown, button-group, accordion,
- breadcrumb, progress, toasts, modal, tooltip, popover, spinners,
- placeholders, carousel (→ native .dw-carousel), tables, close,
- images, badge, alert, pagination (→ custom CSS below), helpers,
- and the whole utilities API (→ hand-rolled ~35-class layer below —
- the API generated hundreds of responsive variants; the theme uses ~35).
- Kept for now: grid + nav/navbar + forms/buttons + list-group + card.
- Phase 4 target: grid → WordPress block grid, then drop Bootstrap.
- (offcanvas nav is self-contained CSS via :target — see .dw-offcanvas.)
- ************************************************************/
- @import '../node_modules/bootstrap/scss/root';
- @import '../node_modules/bootstrap/scss/reboot';
- @import '../node_modules/bootstrap/scss/type';
- @import '../node_modules/bootstrap/scss/containers';
- @import '../node_modules/bootstrap/scss/grid';
- @import '../node_modules/bootstrap/scss/forms';
- @import '../node_modules/bootstrap/scss/buttons';
- @import '../node_modules/bootstrap/scss/transitions';
- @import '../node_modules/bootstrap/scss/nav';
- @import '../node_modules/bootstrap/scss/navbar';
- @import '../node_modules/bootstrap/scss/card';
- @import '../node_modules/bootstrap/scss/list-group';
- // ---- replacements for dropped Bootstrap partials (Phase 1 + 2) ----
- // images partial: only .img-fluid was used (art page).
- .img-fluid {
- max-width: 100%;
- height: auto;
- }
- // badge: last.fm stat counts (music) + analytics hit counts. Matches the
- // former bootstrap/badge output exactly (incl. the theme's top:-1px nudge).
- .badge {
- display: inline-block;
- padding: 0.35em 0.65em;
- font-size: 0.75em;
- font-weight: 700;
- line-height: 1;
- color: #fff;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- border-radius: 0.375rem;
- position: relative;
- top: -1px;
- }
- // alert: contact-form success / error messages (inc/tweaks.php). The BS
- // colour variants no longer compiled (theme-colors trimmed) — give them
- // real green/red here.
- .alert {
- position: relative;
- padding: 1rem;
- margin-bottom: 1rem;
- border: 1px solid transparent;
- border-radius: 0.375rem;
- }
- .alert-success {
- color: #0a3622;
- background-color: #d1e7dd;
- border-color: #a3cfbb;
- }
- .alert-danger {
- color: #58151c;
- background-color: #f8d7da;
- border-color: #f1aeb5;
- }
- // pagination: flex container only. WP paginate_links() emits .page-numbers /
- // .pagination a, styled in style.css; margin/padding also live there.
- .pagination {
- display: flex;
- list-style: none;
- }
- // ---- utilities (hand-rolled; replaces bootstrap utilities/api + helpers) ----
- // Only the ~35 utility classes actually used in the theme markup; values match
- // the former Bootstrap output exactly. Spacers: 1=.25 2=.5 3=1 4=1.5 5=3rem.
- // Breakpoints: md=768px, lg=992px, xl=1200px. (mb-n1 was a no-op — BS doesn't
- // generate negative margins by default — so it's intentionally omitted.)
- .mt-0 { margin-top: 0 !important; }
- .mt-1 { margin-top: .25rem !important; }
- .mt-2 { margin-top: .5rem !important; }
- .mt-3 { margin-top: 1rem !important; }
- .mt-4 { margin-top: 1.5rem !important; }
- .mt-5 { margin-top: 3rem !important; }
- .mb-1 { margin-bottom: .25rem !important; }
- .mb-2 { margin-bottom: .5rem !important; }
- .mb-3 { margin-bottom: 1rem !important; }
- .mb-5 { margin-bottom: 3rem !important; }
- .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
- .pt-3 { padding-top: 1rem !important; }
- .pt-5 { padding-top: 3rem !important; }
- .pb-2 { padding-bottom: .5rem !important; }
- .pb-5 { padding-bottom: 3rem !important; }
- .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
- .d-flex { display: flex !important; }
- .align-items-end { align-items: flex-end !important; }
- .justify-content-center { justify-content: center !important; }
- .float-end { float: right !important; }
- .overflow-hidden { overflow: hidden !important; }
- .fs-2 { font-size: calc(1.325rem + .9vw) !important; }
- .fs-5 { font-size: 1.25rem !important; }
- .fw-bold { font-weight: 700 !important; }
- .fw-light { font-weight: 300 !important; }
- .lh-base { line-height: 1.5 !important; }
- .text-muted { color: rgba(33, 37, 41, .75) !important; }
- .bg-dark { background-color: rgb(83, 87, 99) !important; }
- @media (min-width: 768px) {
- .mt-md-0 { margin-top: 0 !important; }
- .text-md-start { text-align: left !important; }
- .text-md-end { text-align: right !important; }
- }
- @media (min-width: 992px) {
- .d-lg-block { display: block !important; }
- }
- @media (min-width: 1200px) {
- .fs-2 { font-size: 2rem !important; }
- }
- /* Bootstrap Icons font dropped (2026-06-19): the header's 8 nav icons are now
- inline SVG in parts/header.html, so the full icon font + its ~2000 CSS rules
- are no longer imported. */
- /***********************************************************
- ##################### Overrides ############################
- ************************************************************/
- // Bootstrap 5.3 changed .table to default --bs-table-bg to --bs-body-bg
- // (it was transparent in 5.2). Keep the About icon grid transparent.
- .table.icons {
- --bs-table-bg: transparent;
- }
- // Sprite icons (dw_icon() / <use href="#dw-…">, from the FA Pro kit → icons.svg).
- // Sized like a font icon: 1em square, inherits text color.
- .dw-icon {
- width: 1em;
- height: 1em;
- fill: currentColor;
- vertical-align: -0.125em;
- }
- // Social icons (was fa-2x). Baseline-aligned since they stand alone.
- .dw-icon-2x {
- width: 2em;
- height: 2em;
- vertical-align: middle;
- }
- // Offcanvas top-nav — self-contained, CSS-only (replaces Bootstrap's offcanvas
- // component + JS). The brand link is <a href="#nav">, so :target drives
- // the open state; a backdrop <a href="#"> and the × link close it. Tradeoffs vs
- // the BS JS version: no ESC-to-close, no focus-trap, no body-scroll-lock.
- .dw-offcanvas {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- z-index: 1045; // above .navbar.fixed-top (1030)
- display: flex;
- flex-direction: column;
- height: 85px; // match the scroll-up navbar dropdown (~84.6px)
- visibility: hidden;
- transform: translateY(-100%);
- transition: transform 0.3s ease-in-out, visibility 0.3s;
- overflow-y: auto;
- background: rgba(72, 76, 87, 0.7); // footer color (#484c57), translucent
- backdrop-filter: blur(6px);
- }
- .dw-offcanvas:target {
- visibility: visible;
- transform: none;
- }
- .dw-offcanvas-backdrop {
- display: none;
- position: fixed;
- inset: 0;
- z-index: 1040; // below .dw-offcanvas
- background: rgba(0, 0, 0, 0.4);
- }
- .dw-offcanvas:target ~ .dw-offcanvas-backdrop {
- display: block;
- }
- @media (prefers-reduced-motion: reduce) {
- .dw-offcanvas {
- transition: none;
- }
- }
- // Gallery carousel — CSS scroll-snap (replaces the Bootstrap carousel on the
- // art page). Swipe / trackpad / scrollbar natively; prev-next + arrow keys via
- // a tiny vanilla script (js/art.js). No autoplay (was 5s) by design.
- .dw-carousel {
- position: relative;
- }
- .dw-carousel-track {
- display: flex;
- overflow-x: auto;
- scroll-snap-type: x mandatory;
- scroll-behavior: smooth;
- scrollbar-width: none; // Firefox
- &::-webkit-scrollbar {
- display: none; // WebKit
- }
- }
- .dw-carousel-slide {
- flex: 0 0 100%;
- scroll-snap-align: center;
- display: flex;
- justify-content: center;
- }
- .dw-carousel-prev,
- .dw-carousel-next {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- z-index: 2;
- width: 3rem;
- height: 3rem;
- border: 0;
- border-radius: 50%;
- background: rgba(0, 0, 0, 0.5);
- color: #fff;
- font-size: 1.75rem;
- line-height: 1;
- cursor: pointer;
- }
- .dw-carousel-prev {
- left: 1rem;
- }
- .dw-carousel-next {
- right: 1rem;
- }
- @media (prefers-reduced-motion: reduce) {
- .dw-carousel-track {
- scroll-behavior: auto;
- }
- }
- // Studio hero — vanilla fade-carousel (replaces Bootstrap carousel-fade + the
- // backstretch background). #studio-caro keeps its caro-grad* solid-colour
- // classes + 1s transition from style.css; the bg layer / <video> show through
- // when the gradient is caro-grad5 (transparent). Driven by js/studio.js.
- #studio-caro {
- position: relative;
- overflow: hidden;
- min-height: 80vh;
- }
- .dw-studio-bg {
- position: absolute;
- inset: 0;
- z-index: 0;
- background-size: cover;
- background-position: center;
- }
- .dw-studio-video,
- .dw-studio-tv {
- position: absolute;
- inset: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- display: none; // shown per-slide by studio.js (camera → Media, tv → fact intro)
- }
- .dw-studio-tv {
- filter: saturate(0); // grayscale, as it was behind the About fact slides
- }
- .dw-fade-carousel {
- position: relative;
- z-index: 1;
- }
- .dw-fade-slide {
- position: absolute;
- inset: 0;
- opacity: 0;
- visibility: hidden;
- transition: opacity 0.8s ease;
- }
- .dw-fade-slide.active {
- position: relative; // the active slide defines the track height
- opacity: 1;
- visibility: visible;
- }
- @media (prefers-reduced-motion: reduce) {
- .dw-fade-slide {
- transition: none;
- }
- }
- // Studio tab panes — vanilla show/hide (replaces Bootstrap Tab).
- #studio-tab .tab-pane {
- display: none;
- }
- #studio-tab .tab-pane.active {
- display: block;
- }
- // About fade-carousel indicator dots (replaces Bootstrap .carousel-indicators).
- .dw-fade-dots {
- position: absolute;
- bottom: 1.5rem;
- left: 0;
- right: 0;
- z-index: 3;
- display: flex;
- justify-content: center;
- gap: 0.5rem;
- }
- .dw-fade-dot {
- width: 12px;
- height: 12px;
- padding: 0;
- border: 1px solid #fff;
- border-radius: 50%;
- background: transparent;
- opacity: 0.6;
- cursor: pointer;
- }
- .dw-fade-dot.active {
- background: #fff;
- opacity: 1;
- }
|