Files
FixIt/assets/scss/pages/_base.scss
T
Cell dd6d320654 refactor!: build with Dart Sass and update Vercel deployment scripts (#746)
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741)

* chore: update .gitignore to include .vercel and .env*.local

* CI: add build script for Hugo site deployment on Vercel

* CI: update build script for Hugo site deployment on Vercel

* refactor: update SCSS layout styles and introduce page-style mixin

* refactor: reorganize SCSS files and improve layout structure

* refactor: rename copy button classes and update related styles
2026-05-10 23:02:54 +08:00

43 lines
1.3 KiB
SCSS

@use "core/functions" as *;
@use "core/mixins" as *;
.page {
padding-inline: 0.5rem;
box-sizing: border-box;
.content {
[id] {
scroll-margin-top: fi-var(scroll-margin-top, 0.5rem);
@include media('sm', 'up') {
[data-header-desktop='sticky'] &,
[data-header-desktop='auto'] & {
@include set-fi-var(scroll-margin-top, calc(#{fi-var(header-height)} + 0.5rem));
}
[data-header-desktop='sticky']:has(.breadcrumb-container.sticky) &,
[data-header-desktop='auto']:has(.breadcrumb-container.sticky) & {
@include set-fi-var(scroll-margin-top, calc(#{fi-var(header-height)} + #{fi-var(breadcrumb-height, 0px)} + 0.5rem));
}
}
@include media('xs') {
[data-header-mobile='sticky'] &,
[data-header-mobile='auto'] & {
@include set-fi-var(scroll-margin-top, calc(#{fi-var(header-height)} + 0.5rem));
}
[data-header-mobile='sticky']:has(.breadcrumb-container.sticky) &,
[data-header-mobile='auto']:has(.breadcrumb-container.sticky) & {
@include set-fi-var(scroll-margin-top, calc(#{fi-var(header-height)} + #{fi-var(breadcrumb-height, 0px)} + 0.5rem));
}
}
}
}
@include media('print') {
width: 100% !important;
padding-top: 0 !important;
}
}