-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.css
More file actions
139 lines (114 loc) · 2.2 KB
/
global.css
File metadata and controls
139 lines (114 loc) · 2.2 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@tailwind base;
@tailwind components;
@tailwind utilities;
::selection {
background-color: #47a3f3;
color: #fefefe;
}
:root {
--sh-class: #2d5e9d;
--sh-identifier: #354150;
--sh-sign: #8996a3;
--sh-string: #007f7a;
--sh-keyword: #e02518;
--sh-comment: #a19595;
--sh-jsxliterals: #6266d1;
--sh-property: #e25a1c;
--sh-entity: #e25a1c;
}
@media (prefers-color-scheme: dark) {
:root {
--sh-class: #4c97f8;
--sh-identifier: white;
--sh-keyword: #f47067;
--sh-string: #0fa295;
}
html {
color-scheme: dark;
}
}
html {
min-width: 360px;
}
.prose .anchor {
@apply absolute invisible no-underline;
margin-left: -1em;
padding-right: 0.5em;
width: 80%;
max-width: 700px;
cursor: pointer;
}
.anchor:hover {
@apply visible;
}
.prose a {
@apply transition-all decoration-neutral-400 dark:decoration-neutral-600 underline-offset-2 decoration-[0.1em];
}
.prose .anchor:after {
@apply text-neutral-300 dark:text-neutral-700;
content: '#';
}
.prose *:hover > .anchor {
@apply visible;
}
.prose pre {
@apply bg-neutral-50 dark:bg-neutral-900 rounded-lg overflow-x-auto border border-neutral-200 dark:border-neutral-900;
}
.prose code {
@apply px-1 py-0.5 rounded-lg;
}
.prose pre code {
@apply p-0;
border: initial;
line-height: 1.5;
}
.prose code span {
@apply font-medium;
}
.prose img {
/* Don't apply styles to next/image */
@apply m-0;
}
.prose h2,
h3,
h4 {
@apply font-medium tracking-tighter !important;
}
.prose strong {
@apply font-medium;
}
.prose > :first-child {
/* Override removing top margin, causing layout shift */
margin-top: 1.25em !important;
margin-bottom: 1.25em !important;
}
pre::-webkit-scrollbar {
display: none;
}
pre {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Remove Safari input shadow on mobile */
input[type='text'],
input[type='email'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.prose .tweet a {
text-decoration: inherit;
font-weight: 500;
}
table {
display: block;
max-width: fit-content;
overflow-x: auto;
white-space: nowrap;
}
.prose .callout > p {
margin: 0 !important;
}
.title {
text-wrap: balance;
}