+++ author = "Hugo Authors" title = "Advanced Style" date = "2024-04-09" description = "Guide to advanced usage of Anubis2" tags = [ "emoji", ] +++
The custom .css .scss .sass file should be placed in assets/ folder. (instead of static/)
This page is affected by assets/css/custom1.scss and assets/css/custom2.css and advanced-style/style.css advanced-style/style.css affects only the current page. ```html ``` assets/css/custom1.scss and assets/css/custom2.scss will have global effect. ```scss // assets/css/custom2.css .anubis-custom-style { background-color: pink; color: black; padding: 1em; border-radius: 0.3em; border: 1px solid black; } ``` ```scss // assets/css/foundation/_code.scss code { padding: .25em; line-height: 2; background-color: rgb(189, 204, 255); } ``` ```scss // assets/css/custom1.scss @import 'foundation/code'; $font-stack: Helvetica, sans-serif; $primary-color: rgb(255, 255, 168); $background-color: rgb(85, 85, 85); junyi { display: block; font: 100% $font-stack; color: $primary-color; background-color: $background-color; margin-top: 1em; } ```