Skip to content

Commit dda1c80

Browse files
authored
Merge pull request #223 from online-go/postcss
Switch from stylus to css
2 parents 9da6095 + 68f891c commit dda1c80

File tree

4 files changed

+11
-170
lines changed

4 files changed

+11
-170
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ all dev:
66
yarn run dev
77

88
build: build-debug build-production
9-
cp src/Goban.styl build/Goban.styl
9+
cp src/Goban.css build/Goban.css
1010

1111
build-debug:
1212
yarn run build-debug

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"react-dom": "19.2.0",
8585
"react-router": "^7.9.4",
8686
"react-router-dom": "7.9.4",
87-
"stylus": "0.64.0",
8887
"svg-inline-loader": "0.8.2",
8988
"thread-loader": "^3.0.4",
9089
"ts-jest": "^29.4.5",

src/Goban.styl renamed to src/Goban.css

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
position: relative;
1919
background-color: #DCB35C;
2020
display: inline-block;
21-
themed box-shadow goban-shadow
21+
box-shadow: var(--goban-shadow);
2222

2323
-webkit-touch-callout: none;
2424
-webkit-user-select: none;
@@ -27,7 +27,6 @@
2727
-ms-user-select: none;
2828
user-select: none;
2929

30-
3130
.GobanMessage {
3231
position: absolute;
3332
top: 0;
@@ -38,26 +37,26 @@
3837
height: 100%;
3938
font-size: large;
4039
text-align: center;
41-
z-index: z.goban.message;
40+
z-index: var(--z-goban-message);
4241
}
4342

4443
.PenLayer {
4544
position: absolute;
4645
left: 0;
4746
right: 0;
48-
z-index: z.goban.pen-layer;
47+
z-index: var(--z-goban-pen-layer);
4948
}
5049

5150
.StoneLayer {
5251
position: absolute;
5352
left: 0;
5453
right: 0;
55-
z-index: z.goban.stone-layer;
54+
z-index: var(--z-goban-stone-layer);
5655
}
5756

5857
.ShadowLayer {
5958
position: absolute;
60-
z-index: z.goban.shadow-layer;
59+
z-index: var(--z-goban-shadow-layer);
6160
left: 0;
6261
right: 0;
6362
}
@@ -86,9 +85,8 @@
8685
display: none;
8786
}
8887

89-
9088
&.borderless {
91-
themed box-shadow goban-shadow-borderless
89+
box-shadow: var(--goban-shadow-borderless);
9290
width: 100%;
9391
text-align: center;
9492
margin: 0;
@@ -97,7 +95,8 @@
9795

9896
&.small {
9997
font-size: small;
100-
box-shadow:0px 2px 5px rgba(0, 0, 0, 0.26);
98+
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.26);
99+
101100
canvas {
102101
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.16);
103102
}
@@ -113,5 +112,3 @@
113112
}
114113
}
115114
}
116-
117-

0 commit comments

Comments
 (0)