Our SCSS is split into three folders and compiled by tools inside Docker, so developers do not need Sass installed on the host. The source and generated files still live on a bind-mounted project directory. Here's the setup and why it matters.
The Directory Structure
assets/scss/site/ βββ common/ β variables, breakpoints, shared partials βββ mobile/ β base styles and small-screen adjustments β βββ _catalog_list.scss β βββ _catalog_item.scss β βββ _account.scss β βββ _main.scss βββ desktop/ β wider-screen overrides βββ _catalog_list.scss βββ _catalog_item.scss βββ _main.scss
Enter fullscreen mode
Exit fullscreen mode
The mobile folder contains the base appearance. It still has a few targeted media and accessibility queries; βmobile-firstβ does not have to mean βno media queries.β
The desktop folder primarily contains wider-screen overrides.β¦