summaryrefslogtreecommitdiffstats
path: root/src/styles/_common.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/styles/_common.scss')
-rw-r--r--src/styles/_common.scss87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/styles/_common.scss b/src/styles/_common.scss
new file mode 100644
index 0000000..2b1f6c2
--- /dev/null
+++ b/src/styles/_common.scss
@@ -0,0 +1,87 @@
1@use "sass:map";
2@use "sass:math";
3@use "pkg:iro-sass/props";
4@use "pkg:iro-sass/functions" as fn;
5@use "pkg:iro-sass/easing" as easing;
6@use "pkg:iro-design/config.defaults" as defaults;
7
8$font--standard--family: props.def(
9 --font--standard--family,
10 (
11 "Inter",
12 "Open Sans",
13 "Segoe UI",
14 "Droid Sans",
15 Roboto,
16 Oxygen,
17 "Helvetica Neue",
18 Helvetica,
19 Tahoma,
20 Arial,
21 sans-serif
22 )
23);
24
25@use "pkg:iro-design/core.vars" as core;
26
27@use "./components/site-header.vars" as site-header;
28
29@use "pkg:iro-design/layouts/split-view.vars" with (
30 $panel--sticky-offset: props.def(
31 --l-split-view--panel--sticky-offset,
32 calc(props.get(site-header.$block-size) + props.get(core.$size--400))
33 )
34);
35
36@forward "pkg:iro-design";
37
38@forward "objects/deflist" as o-deflist--*;
39@forward "objects/message" as o-message--*;
40@forward "objects/placeholder-box" as o-placeholder-box--*;
41@forward "objects/toc" as o-toc--*;
42
43@forward "components/home-banner" as c-home-banner--*;
44@forward "components/logo" as c-logo--*;
45@forward "components/site-header" as c-site-header--*;
46@forward "components/site-nav" as c-site-nav--*;
47@forward "components/site-footer" as c-site-footer--*;
48@forward "components/subtitle" as c-subtitle--*;
49@forward "components/visited-indicator" as c-visited-indicator--*;
50
51@use "pkg:iro-design" as iro;
52
53@mixin styles {
54 @font-face {
55 font-family: "Inter";
56 font-style: normal;
57 font-weight: 50 950;
58 font-display: swap;
59 src: url(load("/assets/InterVariable.woff2")) format("woff2-variations");
60 font-feature-settings: "ss01";
61 }
62
63 @font-face {
64 font-family: "Inter";
65 font-style: italic;
66 font-weight: 50 950;
67 font-display: swap;
68 src: url(load("/assets/InterVariable-Italic.woff2")) format("woff2-variations");
69 font-feature-settings: "ss01";
70 }
71
72 html {
73 scroll-behavior: smooth;
74 scroll-padding-block-start: props.get(site-header.$block-size);
75 scrollbar-gutter: stable;
76 min-block-size: 100%;
77 display: flex;
78 }
79
80 body {
81 inline-size: 100%;
82 }
83
84 [x-cloak] {
85 display: none;
86 }
87}