mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-02 19:52:40 +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>
99 lines
1.6 KiB
SCSS
99 lines
1.6 KiB
SCSS
@import "../../lib/normalize/normalize";
|
|
|
|
html {
|
|
font-family: fixit-var(global-font-family);
|
|
font-weight: fixit-var(global-font-weight);
|
|
font-display: swap;
|
|
font-size: fixit-var(global-font-size);
|
|
line-height: fixit-var(global-line-height);
|
|
width: 100%;
|
|
scroll-behavior: smooth;
|
|
overflow: auto;
|
|
container-type: scroll-state;
|
|
container-name: scroller;
|
|
|
|
&:has(dialog[open]) {
|
|
overflow: hidden;
|
|
}
|
|
|
|
@include media('reduce-motion') {
|
|
scroll-behavior: auto;
|
|
}
|
|
}
|
|
|
|
::selection {
|
|
background-color: fixit-var(selection-color);
|
|
}
|
|
|
|
body {
|
|
background-color: fixit-var(global-background-color);
|
|
color: fixit-var(global-font-color);
|
|
@include overflow-wrap(break-word);
|
|
}
|
|
|
|
iframe {
|
|
border: 0;
|
|
@include border-radius;
|
|
}
|
|
|
|
button {
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.65;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
summary {
|
|
cursor: pointer;
|
|
}
|
|
|
|
abbr[title] {
|
|
cursor: help;
|
|
text-decoration-skip-ink: none;
|
|
}
|
|
|
|
img {
|
|
object-fit: cover;
|
|
}
|
|
|
|
img,
|
|
video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
@include border-radius;
|
|
}
|
|
|
|
dialog {
|
|
padding: 0;
|
|
}
|
|
|
|
details {
|
|
&.center {
|
|
summary {
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
%code {
|
|
padding: 0.2em 0.4em;
|
|
margin: 0;
|
|
font-size: fixit-var(code-font-size);
|
|
line-height: fixit-var(code-font-size);
|
|
font-family: fixit-var(code-font-family);
|
|
color: fixit-var(code-color);
|
|
background-color: fixit-var(code-inline-background-color);
|
|
text-decoration: inherit;
|
|
@include border-radius;
|
|
@include overflow-wrap(break-word);
|
|
}
|
|
|
|
@include link(true, true);
|