@objectifthunes/whiteboard 0.2.2 → 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 +78 -0
- 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,75 @@
|
|
|
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);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* ── Base element styles ─────────────────────────────── */
|
|
85
|
+
|
|
86
|
+
button,
|
|
87
|
+
input,
|
|
88
|
+
textarea,
|
|
89
|
+
select {
|
|
90
|
+
font: inherit;
|
|
91
|
+
color: inherit;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
button {
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
gap: 0.35rem;
|
|
99
|
+
border: 1px solid transparent;
|
|
100
|
+
border-radius: var(--wb-radius-sm);
|
|
101
|
+
padding: 0.34rem 0.62rem;
|
|
102
|
+
font-size: var(--wb-fs-base);
|
|
103
|
+
line-height: 1;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
color: var(--wb-btn-text);
|
|
107
|
+
background: var(--wb-primary);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
transition: background-color var(--wb-transition-fast), transform var(--wb-transition-fast);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
button:hover:not(:disabled) {
|
|
113
|
+
transform: translateY(-1px);
|
|
114
|
+
background: var(--wb-primary-pressed);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
button:active:not(:disabled) { transform: translateY(0); }
|
|
118
|
+
|
|
119
|
+
button:disabled { cursor: not-allowed; opacity: 0.58; }
|
|
120
|
+
|
|
121
|
+
input,
|
|
122
|
+
textarea,
|
|
123
|
+
select {
|
|
124
|
+
width: 100%;
|
|
125
|
+
border: 1px solid var(--wb-border);
|
|
126
|
+
border-radius: var(--wb-radius-sm);
|
|
127
|
+
padding: 0.45rem 0.56rem;
|
|
128
|
+
font-size: var(--wb-fs-base);
|
|
129
|
+
line-height: 1.3;
|
|
130
|
+
color: var(--wb-text);
|
|
131
|
+
background: var(--wb-surface);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
input::placeholder,
|
|
135
|
+
textarea::placeholder {
|
|
136
|
+
color: var(--wb-text-muted);
|
|
137
|
+
opacity: 1;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
textarea { min-height: 86px; resize: vertical; }
|
|
141
|
+
|
|
142
|
+
input:focus,
|
|
143
|
+
textarea:focus,
|
|
144
|
+
select:focus {
|
|
145
|
+
outline: none;
|
|
146
|
+
border-color: var(--wb-focus-border);
|
|
147
|
+
box-shadow: 0 0 0 3px var(--wb-focus-shadow);
|
|
76
148
|
}
|
|
77
149
|
|
|
78
150
|
/* ── Whiteboard Shell ────────────────────────────────── */
|
|
@@ -357,6 +429,12 @@
|
|
|
357
429
|
cursor: pointer;
|
|
358
430
|
transition: background-color var(--wb-transition-fast), border-color var(--wb-transition-fast);
|
|
359
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);
|
|
360
438
|
}
|
|
361
439
|
|
|
362
440
|
.wb-btn:disabled {
|