Skip to content

Commit f34ffdb

Browse files
committed
class name fixes
1 parent beaf6f0 commit f34ffdb

File tree

3 files changed

+20
-30
lines changed

3 files changed

+20
-30
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.1.1",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const applyDecorator = (properties: DecorationType[]) => {
3535
);
3636
break;
3737
case "h":
38-
newItem = <span className={item[1]}>{newItem}</span>;
38+
newItem = <span className={`notion-${item[1]}`}>{newItem}</span>;
3939
}
4040
});
4141
}

src/styles.css

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,62 +5,60 @@
55
caret-color: rgb(55, 53, 47);
66
}
77

8-
.notion .red {
8+
.notion-red {
99
color: rgb(224, 62, 62);
1010
}
11-
.notion .pink {
11+
.notion-pink {
1212
color: rgb(173, 26, 114);
1313
}
14-
.notion .blue {
14+
.notion-blue {
1515
color: rgb(11, 110, 153);
1616
}
17-
.notion .purple {
17+
.notion-purple {
1818
color: rgb(105, 64, 165);
1919
}
20-
.notion .teal {
20+
.notion-teal {
2121
color: rgb(15, 123, 108);
2222
}
23-
.notion .yellow {
23+
.notion-yellow {
2424
color: rgb(223, 171, 1);
2525
}
26-
.notion .orange {
26+
.notion-orange {
2727
color: rgb(217, 115, 13);
2828
}
29-
.notion .brown {
29+
.notion-brown {
3030
color: rgb(100, 71, 58);
3131
}
32-
.notion .gray {
32+
.notion-gray {
3333
color: rgb(155, 154, 151);
3434
}
35-
36-
.notion .red_background {
35+
.notion-red_background {
3736
background-color: rgb(251, 228, 228);
3837
}
39-
.notion .pink_background {
38+
.notion-pink_background {
4039
background-color: rgb(244, 223, 235);
4140
}
42-
.notion .blue_background {
41+
.notion-blue_background {
4342
background-color: rgb(221, 235, 241);
4443
}
45-
.notion .purple_background {
44+
.notion-purple_background {
4645
background-color: rgb(234, 228, 242);
4746
}
48-
.notion .teal_background {
47+
.notion-teal_background {
4948
background-color: rgb(221, 237, 234);
5049
}
51-
.notion .yellow_background {
50+
.notion-yellow_background {
5251
background-color: rgb(251, 243, 219);
5352
}
54-
.notion .orange_background {
53+
.notion-orange_background {
5554
background-color: rgb(250, 235, 221);
5655
}
57-
.notion .brown_background {
56+
.notion-brown_background {
5857
background-color: rgb(233, 229, 227);
5958
}
60-
.notion .gray_background {
59+
.notion-gray_background {
6160
background-color: rgb(235, 236, 237);
6261
}
63-
6462
.notion-h1 {
6563
font-weight: 600;
6664
font-size: 1.875em;
@@ -69,7 +67,6 @@
6967
margin-top: 1.4em;
7068
margin-bottom: 1px;
7169
}
72-
7370
.notion-h2 {
7471
font-weight: 600;
7572
font-size: 1.5em;
@@ -79,7 +76,6 @@
7976
margin-top: 1.1em;
8077
margin-bottom: 1px;
8178
}
82-
8379
.notion-h3 {
8480
font-weight: 600;
8581
font-size: 1.25em;
@@ -89,7 +85,6 @@
8985
margin-top: 1em;
9086
margin-bottom: 1px;
9187
}
92-
9388
.notion-quote {
9489
white-space: pre-wrap;
9590
word-break: break-word;
@@ -98,12 +93,10 @@
9893
padding-right: 0.9em;
9994
font-size: 1.2em;
10095
}
101-
10296
.notion-hr {
10397
margin: 6px 0px;
10498
border-color: rgba(55, 53, 47, 0.09);
10599
}
106-
107100
.notion-column {
108101
padding-top: 12px;
109102
padding-bottom: 12px;
@@ -132,7 +125,6 @@
132125
.notion-list-numbered {
133126
list-style-type: decimal;
134127
}
135-
136128
.notion-list li {
137129
padding-left: 4px;
138130
}
@@ -145,11 +137,9 @@
145137
word-break: break-word;
146138
caret-color: rgb(55, 53, 47);
147139
}
148-
149140
.notion-block {
150141
padding: 3px 2px;
151142
}
152-
153143
.notion-row {
154144
display: flex;
155145
}

0 commit comments

Comments
 (0)