/
main.pcss
99 lines (81 loc) · 1.5 KB
/
main.pcss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display&display=swap');
@import 'floating-vue/dist/style.css';
@import '@histoire/controls/dist/style.css';
@import 'floating.pcss';
@import 'transitions.pcss';
*,
::before,
::after {
box-sizing: border-box;
border-width: 0;
border-style: solid;
border-color: #e5e7eb;
}
a,
input,
button {
color: inherit;
}
a {
text-decoration: inherit;
}
input, button {
font-family: inherit;
}
a,
button {
user-select: none;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
body,
pre {
margin: 0;
}
html,
body,
#app {
height: 100%;
}
html {
font-family: 'Noto Sans Display', system-ui, sans-serif;
font-size: 1rem;
}
body {
font-size: 1.125rem;
}
@media (min-width: 640px) {
body {
font-size: .875rem;
}
}
.htw-sandbox-contain {
contain: content;
}
.__histoire-code .shiki {
background: transparent !important;
}
.htw-prose {
h1, h2, h3, h4 {
&:not(:hover) {
.header-anchor[aria-hidden="true"] {
visibility: hidden;
}
}
}
hr {
margin: 1rem 0;
}
}
.__histoire-pane-shadow-from-right {
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
background-size: 24px;
background-repeat: no-repeat;
background-position: right;
.htw-dark & {
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}
}
}