mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
75ee1624bd
* feat(external-link-guard): add native redirect mode and improve external-link guard UX * fix(external-link-guard): remove redirect_url and clarify scope/new_tab_policy docs * i18n(external-link-guard): localize guard texts across non-English locales * feat(config)!: migrate `site.Params.externalIcon` to `site.Params.link.external_icon` * refactor: implement regular and card link rendering * feat(link-guard): implement link redirection page with copy and confirm functionality * revert * feat: implement link guard dialog for external links --------- Co-authored-by: Cell <1024@lruihao.cn>
49 lines
1.4 KiB
SCSS
49 lines
1.4 KiB
SCSS
.page {
|
|
padding-inline: 0.5rem;
|
|
@extend %page-style;
|
|
|
|
.content {
|
|
[id] {
|
|
scroll-margin-top: fixit-var(scroll-margin-top, 0.5rem);
|
|
|
|
@include media('sm', 'up') {
|
|
[data-header-desktop='sticky'] &,
|
|
[data-header-desktop='auto'] & {
|
|
@include set-fixit-var(scroll-margin-top, calc(#{fixit-var(header-height)} + 0.5rem));
|
|
}
|
|
|
|
[data-header-desktop='sticky']:has(.breadcrumb-container.sticky) &,
|
|
[data-header-desktop='auto']:has(.breadcrumb-container.sticky) & {
|
|
@include set-fixit-var(scroll-margin-top, calc(#{fixit-var(header-height)} + #{fixit-var(breadcrumb-height, 0px)} + 0.5rem));
|
|
}
|
|
}
|
|
|
|
@include media('xs') {
|
|
[data-header-mobile='sticky'] &,
|
|
[data-header-mobile='auto'] & {
|
|
@include set-fixit-var(scroll-margin-top, calc(#{fixit-var(header-height)} + 0.5rem));
|
|
}
|
|
|
|
[data-header-mobile='sticky']:has(.breadcrumb-container.sticky) &,
|
|
[data-header-mobile='auto']:has(.breadcrumb-container.sticky) & {
|
|
@include set-fixit-var(scroll-margin-top, calc(#{fixit-var(header-height)} + #{fixit-var(breadcrumb-height, 0px)} + 0.5rem));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include media('print') {
|
|
width: 100% !important;
|
|
padding-top: 0 !important;
|
|
}
|
|
}
|
|
|
|
@import '_single';
|
|
@import '_special';
|
|
@import '_archive';
|
|
@import '404';
|
|
@import 'home';
|
|
@import 'link';
|
|
@import 'offline';
|
|
@import "patch";
|