Skip to content

Commit ee8d30d

Browse files
committed
chore(docs): update math examples styles
1 parent 5e953bd commit ee8d30d

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

docs/examples/math/ResultNode.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const result = computed(() => {
6464
6565
<span> = </span>
6666
67-
<span class="counter" :style="{ color: result > 0 ? '#5EC697' : '#f15a16' }">
67+
<span class="result" :style="{ color: result > 0 ? '#5EC697' : '#f15a16' }">
6868
{{ result }}
6969
</span>
7070

docs/examples/math/style.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515
stroke-width: 3;
1616
}
1717

18+
.vue-flow__node {
19+
background-color: #f3f4f6;
20+
}
21+
1822
.vue-flow__node-value {
1923
display: flex;
2024
align-items: center;
2125
gap: 8px;
2226
padding: 8px 16px;
23-
background-color: #f3f4f6;
2427
border-radius: 8px;
2528
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
2629
}
@@ -39,6 +42,8 @@
3942

4043
.vue-flow__node-value input:focus {
4144
outline: none;
45+
box-shadow: 0 0 0 2px #ec4899;
46+
transition: box-shadow 0.2s;
4247
}
4348

4449
.vue-flow__node-value .vue-flow__handle {
@@ -51,7 +56,6 @@
5156
align-items: center;
5257
gap: 8px;
5358
padding: 16px 24px;
54-
background-color: #f3f4f6;
5559
border-radius: 8px;
5660
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
5761
}
@@ -112,7 +116,6 @@
112116
align-items: center;
113117
gap: 8px;
114118
padding: 16px 24px;
115-
background-color: #f3f4f6;
116119
border-radius: 8px;
117120
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
118121
}
@@ -121,8 +124,18 @@
121124
box-shadow: 0 0 0 2px #5EC697;
122125
}
123126

124-
.vue-flow__node-result .calculation {
127+
.vue-flow__node-result .result {
125128
display: flex;
126129
gap: 8px;
127130
font-size: 24px;
128131
}
132+
133+
input::-webkit-outer-spin-button,
134+
input::-webkit-inner-spin-button {
135+
-webkit-appearance: none;
136+
margin: 0;
137+
}
138+
139+
input[type="number"] {
140+
-moz-appearance: textfield;
141+
}

0 commit comments

Comments
 (0)