|
1
|
@tailwind base; |
|
2
|
@tailwind components; |
|
3
|
@tailwind utilities; |
|
4
|
|
|
5
|
@layer base { |
|
6
|
h1 { |
|
7
|
@apply text-h1 mb-1; |
|
8
|
} |
|
9
|
|
|
10
|
h2 { |
|
11
|
@apply text-h2 mb-1; |
|
12
|
} |
|
13
|
|
|
14
|
h3 { |
|
15
|
@apply text-h3 mb-0.5; |
|
16
|
} |
|
17
|
|
|
18
|
h4 { |
|
19
|
@apply text-h4 mb-0.5; |
|
20
|
} |
|
21
|
|
|
22
|
h1, h2, h3, h4 { |
|
23
|
@apply text-medusa-fg-base; |
|
24
|
} |
|
25
|
|
|
26
|
hr { |
|
27
|
@apply h-[1px] w-full border-0 bg-medusa-border-base my-2; |
|
28
|
} |
|
29
|
|
|
30
|
p, ul, ol { |
|
31
|
@apply mb-1.5; |
|
32
|
} |
|
33
|
|
|
34
|
html { |
|
35
|
@apply antialiased; |
|
36
|
text-rendering: optimizeLegibility; |
|
37
|
} |
|
38
|
|
|
39
|
body { |
|
40
|
@apply overflow-x-hidden; |
|
41
|
} |
|
42
|
|
|
43
|
*::selection { |
|
44
|
@apply bg-medusa-fg-base text-medusa-fg-on-inverted; |
|
45
|
} |
|
46
|
|
|
47
|
* { |
|
48
|
scrollbar-color: var(--docs-border-base) var(--docs-bg-base); |
|
49
|
} |
|
50
|
|
|
51
|
aside * { |
|
52
|
scrollbar-color: var(--docs-border-base) var(--docs-bg-subtle); |
|
53
|
} |
|
54
|
|
|
55
|
body[data-modal="opened"] { |
|
56
|
@apply !overflow-hidden; |
|
57
|
} |
|
58
|
|
|
59
|
.text-wrap { |
|
60
|
text-wrap: wrap; |
|
61
|
} |
|
62
|
} |
|
63
|
|
|
64
|
.grecaptcha-badge { |
|
65
|
visibility: hidden; |
|
66
|
} |
|
67
|
|
|
68
|
/* |
|
69
|
* Consistent 96px top spacing before page content (intro and tag pages). |
|
70
|
* The shared docs-ui layout stacks several top paddings (#content padding + |
|
71
|
* the WideLayout <main> margin); collapse them to a single 96px here. |
|
72
|
*/ |
|
73
|
#content { |
|
74
|
padding-top: 96px; |
|
75
|
} |
|
76
|
|
|
77
|
#content main { |
|
78
|
margin-top: 0; |
|
79
|
} |
|
80
|
|
|
81
|
/* Hide the divider after the last intro section (the tag pages drop their last |
|
82
|
* operation's divider via the noDivider prop). */ |
|
83
|
[data-active-on-scroll] > [data-testid="section-container"]:last-child > hr { |
|
84
|
display: none; |
|
85
|
} |