@objectifthunes/whiteboard 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/whiteboard.css +21 -2
- package/package.json +1 -1
package/dist/whiteboard.css
CHANGED
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
|
|
47
47
|
--wb-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
|
|
48
48
|
--wb-transition-fast: 120ms ease;
|
|
49
|
+
|
|
50
|
+
--wb-btn-text: #ffffff;
|
|
51
|
+
--wb-focus-shadow: rgba(147, 197, 253, 0.38);
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/* ── Dark theme ──────────────────────────────────────── */
|
|
@@ -73,6 +76,9 @@
|
|
|
73
76
|
--wb-focus-ring: #3b82f6;
|
|
74
77
|
--wb-focus-border: #2563eb;
|
|
75
78
|
--wb-shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
79
|
+
|
|
80
|
+
--wb-btn-text: var(--wb-bg);
|
|
81
|
+
--wb-focus-shadow: rgba(59, 130, 246, 0.38);
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
/* ── Base element styles ─────────────────────────────── */
|
|
@@ -97,7 +103,7 @@ button {
|
|
|
97
103
|
line-height: 1;
|
|
98
104
|
font-weight: 500;
|
|
99
105
|
white-space: nowrap;
|
|
100
|
-
color: var(--wb-
|
|
106
|
+
color: var(--wb-btn-text);
|
|
101
107
|
background: var(--wb-primary);
|
|
102
108
|
cursor: pointer;
|
|
103
109
|
transition: background-color var(--wb-transition-fast), transform var(--wb-transition-fast);
|
|
@@ -121,9 +127,16 @@ select {
|
|
|
121
127
|
padding: 0.45rem 0.56rem;
|
|
122
128
|
font-size: var(--wb-fs-base);
|
|
123
129
|
line-height: 1.3;
|
|
130
|
+
color: var(--wb-text);
|
|
124
131
|
background: var(--wb-surface);
|
|
125
132
|
}
|
|
126
133
|
|
|
134
|
+
input::placeholder,
|
|
135
|
+
textarea::placeholder {
|
|
136
|
+
color: var(--wb-text-muted);
|
|
137
|
+
opacity: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
127
140
|
textarea { min-height: 86px; resize: vertical; }
|
|
128
141
|
|
|
129
142
|
input:focus,
|
|
@@ -131,7 +144,7 @@ textarea:focus,
|
|
|
131
144
|
select:focus {
|
|
132
145
|
outline: none;
|
|
133
146
|
border-color: var(--wb-focus-border);
|
|
134
|
-
box-shadow: 0 0 0 3px
|
|
147
|
+
box-shadow: 0 0 0 3px var(--wb-focus-shadow);
|
|
135
148
|
}
|
|
136
149
|
|
|
137
150
|
/* ── Whiteboard Shell ────────────────────────────────── */
|
|
@@ -416,6 +429,12 @@ select:focus {
|
|
|
416
429
|
cursor: pointer;
|
|
417
430
|
transition: background-color var(--wb-transition-fast), border-color var(--wb-transition-fast);
|
|
418
431
|
line-height: 1;
|
|
432
|
+
color: var(--wb-btn-text);
|
|
433
|
+
background: var(--wb-primary);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.wb-btn:hover:not(:disabled) {
|
|
437
|
+
background: var(--wb-primary-pressed);
|
|
419
438
|
}
|
|
420
439
|
|
|
421
440
|
.wb-btn:disabled {
|