forked from transitive-bullshit/nextjs-notion-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnotion.css
278 lines (243 loc) · 5.45 KB
/
notion.css
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
.notion-h1,
.notion-h2,
.notion-h3 {
margin-bottom: 0.25em;
}
.notion-callout {
margin: 0.75em 0;
}
.notion-hr {
margin: 2px 0;
}
@media only screen and (max-width: 920px) {
.index-page.notion-page {
padding-left: 2vw;
padding-right: 2vw;
}
}
@media only screen and (max-width: 720px) {
.notion-page {
padding-left: 2vw;
padding-right: 2vw;
}
}
@media only screen and (max-width: 600px) {
.notion-search-button {
display: none !important;
}
}
.notion .notion-page-icon-cover {
margin-left: auto;
margin-right: auto;
}
.notion-title {
display: block;
text-align: center;
}
.notion-collection-row {
padding-bottom: 1em;
}
.notion-collection-page-properties .notion-collection-column-title {
display: none;
}
.notion-collection-row-property .notion-property {
display: flex;
justify-content: center;
}
.notion-collection-row-value {
display: flex;
align-items: center;
padding: 0;
min-height: 23px;
}
.notion-page-cover-wrapper,
.notion-page-cover-wrapper span,
.notion-page-cover-wrapper img {
max-width: 1200px !important;
border-radius: 24px;
}
.notion-page-cover-wrapper {
box-shadow: 2px 2px 8px 4px rgba(15, 15, 15, 0.1);
}
@media only screen and (max-width: 1200px) {
.notion-page-cover-wrapper,
.notion-page-cover-wrapper span,
.notion-page-cover-wrapper img {
border-radius: 0;
}
}
.notion-block-ab9a258d6cf444f3bb40dc2600feae91 .notion-page-link {
justify-content: center;
padding: 2em;
}
.notion-code {
background: rgba(249, 250, 251, 1);
border: 1px solid rgba(229, 231, 235, 1);
border-radius: 0.375rem;
}
.notion-link {
position: relative;
transition: unset;
opacity: 1;
border-bottom-width: 0.1rem;
background: transparent;
background-origin: border-box;
background-repeat: no-repeat;
background-position: 50% 100%;
background-size: 0 0.1rem;
}
.notion-link:focus,
.notion-link:hover {
border-bottom-color: transparent;
background-image: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
background-repeat: no-repeat;
background-position: 0 100%;
background-size: 100% 0.1rem;
transition-property: background-position, background-size;
transition-duration: 300ms;
}
.notion-red_background,
.notion-pink_background,
.notion-blue_background,
.notion-purple_background,
.notion-teal_background,
.notion-yellow_background,
.notion-orange_background,
.notion-brown_background,
.notion-gray_background {
padding: 0 0.5rem;
margin: 0 -0.5rem 0 -0.25rem;
border-radius: 0.5rem;
border-bottom-left-radius: 0.125rem;
box-decoration-break: clone;
background-color: none;
background-image: linear-gradient(
119deg,
var(--bg-color),
#fdeed2 10.5%,
#fde4b5 85.29%,
var(--bg-color)
);
}
.notion-purple_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#e4d3fd 10.5%,
#d3b6ff 85.29%,
var(--bg-color)
);
}
.notion-pink_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#ffd2e7 10.5%,
#ffadd3 85.29%,
var(--bg-color)
);
}
.notion-blue_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#d9eafd 10.5%,
#b3d6ff 85.29%,
var(--bg-color)
);
}
.notion-gray_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#cfcfcf 10.5%,
#a0a0a0 85.29%,
var(--bg-color)
);
}
.notion-red_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#ffc3c3 10.5%,
#fba6a3 85.29%,
var(--bg-color)
);
}
.notion-orange_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#ffe6b1 10.5%,
#ffd09b 85.29%,
var(--bg-color)
);
}
.notion-teal_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#d4eabc 10.5%,
#d2eabc 85.29%,
var(--bg-color)
);
}
.notion-brown_background {
background-image: linear-gradient(
119deg,
var(--bg-color),
#cab7ae 10.5%,
#b1998d 85.29%,
var(--bg-color)
);
}
/* disable highlighting in dark mode */
.dark-mode .notion-red_background,
.dark-mode .notion-pink_background,
.dark-mode .notion-blue_background,
.dark-mode .notion-purple_background,
.dark-mode .notion-teal_background,
.dark-mode .notion-yellow_background,
.dark-mode .notion-orange_background,
.dark-mode .notion-brown_background,
.dark-mode .notion-gray_background {
/* padding: 0;
margin: 0;
border-radius: 0; */
color: var(--bg-color);
/* background: none !important; */
}
/* if you don't want rounded page icon images, remove this */
.notion-page-icon-hero.notion-page-icon-image {
border-radius: 50%;
box-shadow: 0 8px 40px 0 rgb(0 0 0 / 21%);
}
.notion-page-icon-hero.notion-page-icon-image span,
.notion-page-icon-hero.notion-page-icon-image img {
border-radius: 50%;
}
.notion-header {
background: hsla(0, 0%, 100%, 0.8);
backdrop-filter: saturate(180%) blur(16px);
}
.dark-mode .notion-header {
background: transparent;
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
backdrop-filter: saturate(180%) blur(8px);
}
/* Workaround for Firefox not supporting backdrop-filter yet */
@-moz-document url-prefix() {
.dark-mode .notion-header {
background: hsla(203, 8%, 20%, 0.8);
}
}
.notion-bookmark:hover {
border-image: linear-gradient(90.68deg, #b439df 0.26%, #e5337e 102.37%);
border-image-slice: 1;
}
.notion-block-ab9a258d6cf444f3bb40dc2600feae91 .notion-column {
padding: 0;
}
.notion-block-260baa77f1e1428b97fb14ac99c7c385 {
display: none;
}