mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
- Create shared/ directory with centralized SCSS partials and site-head.html so site subsites (about, community, newsletter) no longer duplicate inline header config or reference book-only styles - Fix subscribe modal: change script src from broken relative path (../../book/quarto/assets/scripts/subscribe-modal.js) to absolute URL (https://mlsysbook.ai/vol1/assets/scripts/subscribe-modal.js) which the rewrite-dev-urls.sh script converts for dev preview automatically
31 lines
1.2 KiB
SCSS
31 lines
1.2 KiB
SCSS
// =============================================================================
|
|
// ECOSYSTEM BASE — Shared styles for ALL MLSysBook projects
|
|
// =============================================================================
|
|
// This file imports all universal UI partials. Theme-specific variables
|
|
// ($accent, $accent-dark, callout palette) must be set by a theme file
|
|
// BEFORE this file is imported.
|
|
//
|
|
// Usage:
|
|
// @import 'themes/theme-harvard'; // sets $accent, callout palette
|
|
// @import 'ecosystem-base'; // imports tokens + all partials
|
|
//
|
|
// Projects that need textbook-specific styles (foldbox, margin notes, listings)
|
|
// should additionally import '_book-only'.
|
|
// =============================================================================
|
|
|
|
// Design tokens (typography, callout palette, link colors)
|
|
@import 'partials/tokens';
|
|
|
|
// Universal UI components
|
|
@import 'partials/callouts';
|
|
@import 'partials/links';
|
|
@import 'partials/navbar';
|
|
@import 'partials/sidebar';
|
|
@import 'partials/buttons';
|
|
@import 'partials/headers';
|
|
@import 'partials/figures';
|
|
@import 'partials/toc';
|
|
@import 'partials/tables';
|
|
@import 'partials/blockquotes';
|
|
@import 'partials/mobile';
|