Skip to content

Commit 86e806b

Browse files
committed
More CSS linting
1 parent 74afa7b commit 86e806b

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ export default defineConfig([
1010
{
1111
files: ['src/**/*.css'],
1212
plugins: { css },
13-
language: 'css/css'
13+
language: 'css/css',
14+
...css.configs.recommended,
15+
rules: {
16+
"css/use-baseline": ["warn", {
17+
available: 'newly'
18+
}]
19+
}
1420
},
1521

1622
// Lint javascripts

src/ui/styles/app.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ button[danger] {
4747

4848
summary {
4949
user-select: none;
50+
-webkit-user-select: none;
5051
}
5152

5253
pre {
@@ -281,6 +282,7 @@ h2 {
281282
margin-left: 1rem;
282283
transition: background 700ms;
283284
user-select: none;
285+
-webkit-user-select: none;
284286
}
285287
.EnergyBadge > span {
286288
transform: rotate(-45deg);

src/ui/styles/card.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
/* background-color: #111;
114114
background-image: linear-gradient(to bottom, hsla(0, 0%, 0%, 0.2), transparent); */
115115
user-select: none;
116+
-webkit-user-select: none;
116117
}
117118

118119
.Card-type {

src/ui/styles/map.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ slay-map-node[type]:hover > span {
118118
/* the map node-types (what happens in this node) */
119119
slay-map-node[node-type] span {
120120
user-select: none;
121+
-webkit-user-select: none;
121122
/* min-height: 3em; */
122123
/* min-width: 3em; */
123124
border-radius: 50%;

0 commit comments

Comments
 (0)