@semiont/react-ui 0.2.30 → 0.2.31
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/README.md +34 -1
- package/dist/{ar-TQSFB35U.mjs → ar-6QTTYSKD.mjs} +44 -2
- package/dist/ar-6QTTYSKD.mjs.map +1 -0
- package/dist/{bn-525U24T3.mjs → bn-AHD2VP4T.mjs} +44 -2
- package/dist/bn-AHD2VP4T.mjs.map +1 -0
- package/dist/{chunk-BHAP6MVA.mjs → chunk-GDEHLKCO.mjs} +44 -2
- package/dist/chunk-GDEHLKCO.mjs.map +1 -0
- package/dist/{chunk-W6E2UESX.mjs → chunk-WHI4ECK4.mjs} +89 -47
- package/dist/chunk-WHI4ECK4.mjs.map +1 -0
- package/dist/{cs-OYWTGLFM.mjs → cs-WKZ5PTM3.mjs} +44 -2
- package/dist/cs-WKZ5PTM3.mjs.map +1 -0
- package/dist/{da-BDXG2ITK.mjs → da-JLWQLEH2.mjs} +44 -2
- package/dist/da-JLWQLEH2.mjs.map +1 -0
- package/dist/{de-NB5JLMES.mjs → de-TOCT63PC.mjs} +44 -2
- package/dist/de-TOCT63PC.mjs.map +1 -0
- package/dist/{el-3SVXEAJI.mjs → el-2XXDPBHO.mjs} +44 -2
- package/dist/el-2XXDPBHO.mjs.map +1 -0
- package/dist/{en-DVB4OE2R.mjs → en-OAKDUA6C.mjs} +10 -2
- package/dist/{es-YBOFA3W5.mjs → es-VQZSZSKB.mjs} +44 -2
- package/dist/es-VQZSZSKB.mjs.map +1 -0
- package/dist/{fa-7MU36AMY.mjs → fa-HFYV6XFA.mjs} +44 -2
- package/dist/fa-HFYV6XFA.mjs.map +1 -0
- package/dist/{fi-PQKJB32G.mjs → fi-GYTT42QN.mjs} +44 -2
- package/dist/fi-GYTT42QN.mjs.map +1 -0
- package/dist/{fr-U4HK5GM6.mjs → fr-RBOM5A35.mjs} +44 -2
- package/dist/fr-RBOM5A35.mjs.map +1 -0
- package/dist/{he-F5MNZHAL.mjs → he-KNB7K2AV.mjs} +44 -2
- package/dist/he-KNB7K2AV.mjs.map +1 -0
- package/dist/{hi-2PHI37ZX.mjs → hi-QJ6E72XH.mjs} +44 -2
- package/dist/hi-QJ6E72XH.mjs.map +1 -0
- package/dist/{id-JPRBNCGS.mjs → id-EKQVDHC7.mjs} +44 -2
- package/dist/id-EKQVDHC7.mjs.map +1 -0
- package/dist/index.d.mts +775 -127
- package/dist/index.mjs +8786 -2892
- package/dist/index.mjs.map +1 -1
- package/dist/{it-MRLWI5OS.mjs → it-43QKJZRF.mjs} +44 -2
- package/dist/it-43QKJZRF.mjs.map +1 -0
- package/dist/{ja-YQ6RPI2T.mjs → ja-SZUXDDO5.mjs} +44 -2
- package/dist/ja-SZUXDDO5.mjs.map +1 -0
- package/dist/{ko-DUAVCEXX.mjs → ko-HIR2TG2Q.mjs} +44 -2
- package/dist/ko-HIR2TG2Q.mjs.map +1 -0
- package/dist/{ms-FBHSR4PG.mjs → ms-6EJXSDHO.mjs} +44 -2
- package/dist/ms-6EJXSDHO.mjs.map +1 -0
- package/dist/{nl-IC2MPZXN.mjs → nl-AAAXD3KD.mjs} +44 -2
- package/dist/nl-AAAXD3KD.mjs.map +1 -0
- package/dist/{no-LLD43NRM.mjs → no-CEBS75VU.mjs} +44 -2
- package/dist/no-CEBS75VU.mjs.map +1 -0
- package/dist/{pl-DDOJBR4D.mjs → pl-SIB6PH3I.mjs} +44 -2
- package/dist/pl-SIB6PH3I.mjs.map +1 -0
- package/dist/{pt-7TFHQRRN.mjs → pt-6BMNSQTQ.mjs} +44 -2
- package/dist/pt-6BMNSQTQ.mjs.map +1 -0
- package/dist/{ro-P4PJEGDU.mjs → ro-63CZRSZ7.mjs} +44 -2
- package/dist/ro-63CZRSZ7.mjs.map +1 -0
- package/dist/{sv-LF3VEQD2.mjs → sv-BRAAQGIC.mjs} +44 -2
- package/dist/sv-BRAAQGIC.mjs.map +1 -0
- package/dist/test-utils.mjs +2 -2
- package/dist/{th-YUQAOFXF.mjs → th-DQEDBNDR.mjs} +44 -2
- package/dist/th-DQEDBNDR.mjs.map +1 -0
- package/dist/{tr-CSIGLMJC.mjs → tr-IR5MEUEU.mjs} +44 -2
- package/dist/tr-IR5MEUEU.mjs.map +1 -0
- package/dist/{uk-LW3QBKSR.mjs → uk-BVRTOFAO.mjs} +44 -2
- package/dist/uk-BVRTOFAO.mjs.map +1 -0
- package/dist/{vi-W464Y6ZC.mjs → vi-QRBKNVJA.mjs} +44 -2
- package/dist/vi-QRBKNVJA.mjs.map +1 -0
- package/dist/{zh-R5XLM3EI.mjs → zh-VQVBROMT.mjs} +44 -2
- package/dist/zh-VQVBROMT.mjs.map +1 -0
- package/package.json +44 -6
- package/public/favicons/android-chrome-192x192.png +0 -0
- package/public/favicons/android-chrome-512x512.png +0 -0
- package/public/favicons/apple-touch-icon.png +0 -0
- package/public/favicons/favicon-128x128.png +0 -0
- package/public/favicons/favicon-16x16.png +0 -0
- package/public/favicons/favicon-32x32.png +0 -0
- package/public/favicons/favicon-48x48.png +0 -0
- package/public/favicons/favicon-64x64.png +0 -0
- package/public/favicons/favicon-96x96.png +0 -0
- package/public/favicons/favicon.ico +0 -0
- package/public/favicons/favicon.svg +47 -0
- package/public/favicons/site.webmanifest +19 -0
- package/src/examples/ButtonUsageExample.tsx +242 -0
- package/src/examples/button-css-modules.module.css +164 -0
- package/src/examples/button-styled-components.tsx +215 -0
- package/src/examples/button-tailwind.css +51 -0
- package/src/integrations/css-modules-helper.tsx +223 -0
- package/src/integrations/styled-components-theme.ts +405 -0
- package/src/integrations/tailwind-plugin.js +224 -0
- package/src/styles/base/reset.css +105 -0
- package/src/styles/base/utilities.css +465 -0
- package/src/styles/components/annotation-entries.css +138 -0
- package/src/styles/components/annotations.css +51 -0
- package/src/styles/components/auth.css +309 -0
- package/src/styles/components/branding.css +131 -0
- package/src/styles/components/cards.css +136 -0
- package/src/styles/components/collapsible-resource-navigation.css +161 -0
- package/src/styles/components/detection-widget.css +499 -0
- package/src/styles/components/footer.css +98 -0
- package/src/styles/components/header.css +109 -0
- package/src/styles/components/left-sidebar.css +138 -0
- package/src/styles/components/modals.css +672 -0
- package/src/styles/components/navigation-menu.css +59 -0
- package/src/styles/components/navigation-tabs.css +474 -0
- package/src/styles/components/panel-sections.css +440 -0
- package/src/styles/components/panels-base.css +404 -0
- package/src/styles/components/panels.css +100 -0
- package/src/styles/components/references.css +430 -0
- package/src/styles/components/resize-handle.css +110 -0
- package/src/styles/components/search-modal.css +463 -0
- package/src/styles/components/skip-links.css +101 -0
- package/src/styles/components/status-display.css +409 -0
- package/src/styles/components/tables.css +199 -0
- package/src/styles/components/toast.css +130 -0
- package/src/styles/components/toolbar.css +201 -0
- package/src/styles/core/badges.css +209 -0
- package/src/styles/core/buttons.css +781 -0
- package/src/styles/core/checkboxes.css +92 -0
- package/src/styles/core/forms.css +254 -0
- package/src/styles/core/index.css +43 -0
- package/src/styles/core/indicators.css +225 -0
- package/src/styles/core/inputs.css +117 -0
- package/src/styles/core/progress.css +170 -0
- package/src/styles/core/selects.css +135 -0
- package/src/styles/core/sliders.css +236 -0
- package/src/styles/core/tags.css +203 -0
- package/src/styles/core/textareas.css +134 -0
- package/src/styles/core/toggles.css +86 -0
- package/src/styles/features/admin.css +293 -0
- package/src/styles/features/compose.css +192 -0
- package/src/styles/features/devops.css +154 -0
- package/src/styles/features/entity-tags.css +140 -0
- package/src/styles/features/recent-docs.css +97 -0
- package/src/styles/features/resource-discovery.css +387 -0
- package/src/styles/features/resource-viewer.css +508 -0
- package/src/styles/features/resource.css +506 -0
- package/src/styles/features/schemas.css +222 -0
- package/src/styles/features/static-pages.css +589 -0
- package/src/styles/features/welcome.css +81 -0
- package/src/styles/index.css +93 -0
- package/src/styles/layout/layout.css +85 -0
- package/src/styles/motivations/motivation-assessment.css +234 -0
- package/src/styles/motivations/motivation-comment.css +245 -0
- package/src/styles/motivations/motivation-highlight.css +195 -0
- package/src/styles/motivations/motivation-reference.css +210 -0
- package/src/styles/motivations/motivation-tag.css +254 -0
- package/src/styles/panels/assessment-panel.css +91 -0
- package/src/styles/panels/collaboration-panel.css +222 -0
- package/src/styles/panels/comments-panel.css +130 -0
- package/src/styles/panels/highlight-panel.css +63 -0
- package/src/styles/panels/history-panel.css +301 -0
- package/src/styles/panels/jsonld-panel.css +41 -0
- package/src/styles/panels/references-panel.css +85 -0
- package/src/styles/panels/resource-info-panel.css +230 -0
- package/src/styles/panels/settings-panel.css +58 -0
- package/src/styles/panels/statistics-panel.css +147 -0
- package/src/styles/panels/tagging-panel.css +59 -0
- package/src/styles/panels/unified-annotations-panel.css +133 -0
- package/src/styles/panels/user-panel.css +24 -0
- package/src/styles/patterns/errors.css +24 -0
- package/src/styles/patterns/loading.css +26 -0
- package/src/styles/utilities/contrast.css +443 -0
- package/src/styles/utilities/focus-extended.css +539 -0
- package/src/styles/utilities/focus.css +108 -0
- package/src/styles/utilities/motion-overrides.css +378 -0
- package/src/styles/utilities/motion.css +370 -0
- package/src/styles/utilities/semantic-indicators.css +321 -0
- package/src/styles/variables.css +354 -0
- package/translations/ar.json +35 -1
- package/translations/bn.json +35 -1
- package/translations/cs.json +35 -1
- package/translations/da.json +35 -1
- package/translations/de.json +35 -1
- package/translations/el.json +35 -1
- package/translations/en.json +35 -1
- package/translations/es.json +35 -1
- package/translations/fa.json +35 -1
- package/translations/fi.json +35 -1
- package/translations/fr.json +35 -1
- package/translations/he.json +35 -1
- package/translations/hi.json +35 -1
- package/translations/id.json +35 -1
- package/translations/it.json +35 -1
- package/translations/ja.json +35 -1
- package/translations/ko.json +35 -1
- package/translations/ms.json +35 -1
- package/translations/nl.json +35 -1
- package/translations/no.json +35 -1
- package/translations/pl.json +35 -1
- package/translations/pt.json +35 -1
- package/translations/ro.json +35 -1
- package/translations/sv.json +35 -1
- package/translations/th.json +35 -1
- package/translations/tr.json +35 -1
- package/translations/uk.json +35 -1
- package/translations/vi.json +35 -1
- package/translations/zh.json +35 -1
- package/dist/ar-TQSFB35U.mjs.map +0 -1
- package/dist/bn-525U24T3.mjs.map +0 -1
- package/dist/chunk-BHAP6MVA.mjs.map +0 -1
- package/dist/chunk-W6E2UESX.mjs.map +0 -1
- package/dist/cs-OYWTGLFM.mjs.map +0 -1
- package/dist/da-BDXG2ITK.mjs.map +0 -1
- package/dist/de-NB5JLMES.mjs.map +0 -1
- package/dist/el-3SVXEAJI.mjs.map +0 -1
- package/dist/es-YBOFA3W5.mjs.map +0 -1
- package/dist/fa-7MU36AMY.mjs.map +0 -1
- package/dist/fi-PQKJB32G.mjs.map +0 -1
- package/dist/fr-U4HK5GM6.mjs.map +0 -1
- package/dist/he-F5MNZHAL.mjs.map +0 -1
- package/dist/hi-2PHI37ZX.mjs.map +0 -1
- package/dist/id-JPRBNCGS.mjs.map +0 -1
- package/dist/it-MRLWI5OS.mjs.map +0 -1
- package/dist/ja-YQ6RPI2T.mjs.map +0 -1
- package/dist/ko-DUAVCEXX.mjs.map +0 -1
- package/dist/ms-FBHSR4PG.mjs.map +0 -1
- package/dist/nl-IC2MPZXN.mjs.map +0 -1
- package/dist/no-LLD43NRM.mjs.map +0 -1
- package/dist/pl-DDOJBR4D.mjs.map +0 -1
- package/dist/pt-7TFHQRRN.mjs.map +0 -1
- package/dist/ro-P4PJEGDU.mjs.map +0 -1
- package/dist/sv-LF3VEQD2.mjs.map +0 -1
- package/dist/th-YUQAOFXF.mjs.map +0 -1
- package/dist/tr-CSIGLMJC.mjs.map +0 -1
- package/dist/uk-LW3QBKSR.mjs.map +0 -1
- package/dist/vi-W464Y6ZC.mjs.map +0 -1
- package/dist/zh-R5XLM3EI.mjs.map +0 -1
- /package/dist/{en-DVB4OE2R.mjs.map → en-OAKDUA6C.mjs.map} +0 -0
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Component Styles
|
|
3
|
+
*
|
|
4
|
+
* Data-attribute based button styling system
|
|
5
|
+
* Supports variants, sizes, states, and groups
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/* ============================================
|
|
9
|
+
Button Component Styles
|
|
10
|
+
============================================ */
|
|
11
|
+
|
|
12
|
+
.semiont-button {
|
|
13
|
+
/* Base styles */
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
font-family: var(--semiont-font-sans);
|
|
19
|
+
font-weight: var(--semiont-font-medium);
|
|
20
|
+
line-height: var(--semiont-leading-snug);
|
|
21
|
+
border: none;
|
|
22
|
+
outline: none;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
transition: all var(--semiont-duration-base) var(--semiont-ease);
|
|
25
|
+
user-select: none;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
|
|
29
|
+
/* Focus styles handled below */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Focus indicators for keyboard navigation */
|
|
33
|
+
.semiont-button:focus-visible {
|
|
34
|
+
outline: 2px solid var(--semiont-color-primary-500);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Remove default focus for mouse users */
|
|
41
|
+
.semiont-button:focus:not(:focus-visible) {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Dark theme focus */
|
|
46
|
+
[data-theme="dark"] .semiont-button:focus-visible {
|
|
47
|
+
outline-color: var(--semiont-color-primary-400);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* High contrast mode support */
|
|
51
|
+
@media (prefers-contrast: more) {
|
|
52
|
+
.semiont-button:focus-visible {
|
|
53
|
+
outline-width: 3px;
|
|
54
|
+
outline-color: currentColor;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Disabled state */
|
|
59
|
+
.semiont-button:disabled,
|
|
60
|
+
.semiont-button[data-disabled="true"] {
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Button content wrapper */
|
|
66
|
+
.semiont-button-content {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Button icons */
|
|
72
|
+
.semiont-button-icon {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.semiont-button-icon-left {
|
|
80
|
+
margin-right: var(--semiont-spacing-sm);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.semiont-button-icon-right {
|
|
84
|
+
margin-left: var(--semiont-spacing-sm);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Loading spinner */
|
|
88
|
+
.semiont-button-spinner {
|
|
89
|
+
position: absolute;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
inset: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.semiont-spinner-svg {
|
|
97
|
+
animation: spin 1s linear infinite;
|
|
98
|
+
width: 1.25em;
|
|
99
|
+
height: 1.25em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@keyframes spin {
|
|
103
|
+
from {
|
|
104
|
+
transform: rotate(0deg);
|
|
105
|
+
}
|
|
106
|
+
to {
|
|
107
|
+
transform: rotate(360deg);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Hide content when loading */
|
|
112
|
+
.semiont-button[data-loading="true"] .semiont-button-content,
|
|
113
|
+
.semiont-button[data-loading="true"] .semiont-button-icon {
|
|
114
|
+
visibility: hidden;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ============================================
|
|
118
|
+
Button Variants
|
|
119
|
+
============================================ */
|
|
120
|
+
|
|
121
|
+
/* Primary variant */
|
|
122
|
+
.semiont-button[data-variant="primary"] {
|
|
123
|
+
background-color: var(--semiont-color-primary-500);
|
|
124
|
+
color: var(--semiont-color-neutral-0);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-theme="dark"] .semiont-button[data-variant="primary"] {
|
|
128
|
+
background-color: var(--semiont-color-primary-600);
|
|
129
|
+
color: var(--semiont-color-neutral-0);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.semiont-button[data-variant="primary"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
133
|
+
background-color: var(--semiont-color-primary-600);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-theme="dark"] .semiont-button[data-variant="primary"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
137
|
+
background-color: var(--semiont-color-primary-500);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.semiont-button[data-variant="primary"]:active:not(:disabled):not([data-disabled="true"]),
|
|
141
|
+
.semiont-button[data-variant="primary"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
142
|
+
background-color: var(--semiont-color-primary-700);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Secondary variant */
|
|
146
|
+
.semiont-button[data-variant="secondary"] {
|
|
147
|
+
background-color: var(--semiont-bg-tertiary);
|
|
148
|
+
color: var(--semiont-color-neutral-900);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.semiont-button[data-variant="secondary"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
152
|
+
background-color: var(--semiont-color-neutral-200);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.semiont-button[data-variant="secondary"]:active:not(:disabled):not([data-disabled="true"]),
|
|
156
|
+
.semiont-button[data-variant="secondary"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
157
|
+
background-color: var(--semiont-color-neutral-300);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Tertiary variant */
|
|
161
|
+
.semiont-button[data-variant="tertiary"] {
|
|
162
|
+
background-color: transparent;
|
|
163
|
+
color: var(--semiont-color-primary-600);
|
|
164
|
+
box-shadow: inset 0 0 0 1px var(--semiont-color-primary-200);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-theme="dark"] .semiont-button[data-variant="tertiary"] {
|
|
168
|
+
background-color: transparent;
|
|
169
|
+
color: var(--semiont-color-primary-400);
|
|
170
|
+
box-shadow: inset 0 0 0 1px var(--semiont-color-primary-700);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.semiont-button[data-variant="tertiary"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
174
|
+
background-color: var(--semiont-color-primary-50);
|
|
175
|
+
box-shadow: inset 0 0 0 1px var(--semiont-color-primary-300);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.semiont-button[data-variant="tertiary"]:active:not(:disabled):not([data-disabled="true"]),
|
|
179
|
+
.semiont-button[data-variant="tertiary"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
180
|
+
background-color: var(--semiont-color-primary-100);
|
|
181
|
+
box-shadow: inset 0 0 0 1px var(--semiont-color-primary-400);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Danger variant */
|
|
185
|
+
.semiont-button[data-variant="danger"] {
|
|
186
|
+
background-color: var(--semiont-color-error);
|
|
187
|
+
color: var(--semiont-color-neutral-0);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
[data-theme="dark"] .semiont-button[data-variant="danger"] {
|
|
191
|
+
background-color: var(--semiont-color-error-dark);
|
|
192
|
+
color: var(--semiont-color-neutral-0);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.semiont-button[data-variant="danger"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
196
|
+
background-color: var(--semiont-color-error-dark);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.semiont-button[data-variant="danger"]:active:not(:disabled):not([data-disabled="true"]),
|
|
200
|
+
.semiont-button[data-variant="danger"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
201
|
+
background-color: var(--semiont-color-error-dark);
|
|
202
|
+
filter: brightness(0.9);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Warning variant */
|
|
206
|
+
.semiont-button[data-variant="warning"] {
|
|
207
|
+
background-color: var(--semiont-color-warning);
|
|
208
|
+
color: var(--semiont-color-neutral-900);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
[data-theme="dark"] .semiont-button[data-variant="warning"] {
|
|
212
|
+
background-color: var(--semiont-color-warning-dark);
|
|
213
|
+
color: var(--semiont-color-neutral-900);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.semiont-button[data-variant="warning"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
217
|
+
background-color: var(--semiont-color-warning-dark);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.semiont-button[data-variant="warning"]:active:not(:disabled):not([data-disabled="true"]),
|
|
221
|
+
.semiont-button[data-variant="warning"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
222
|
+
background-color: var(--semiont-color-warning-dark);
|
|
223
|
+
filter: brightness(0.9);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Detect variant - AI-powered detection button */
|
|
227
|
+
.semiont-button[data-variant="detect"] {
|
|
228
|
+
width: 100%;
|
|
229
|
+
padding: 0.75rem 1rem;
|
|
230
|
+
font-size: var(--semiont-text-base);
|
|
231
|
+
font-weight: var(--semiont-font-semibold);
|
|
232
|
+
border-radius: var(--semiont-radius-md);
|
|
233
|
+
gap: 0.5rem;
|
|
234
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
235
|
+
background: linear-gradient(to right, #6366f1, #8b5cf6);
|
|
236
|
+
color: var(--semiont-color-white);
|
|
237
|
+
/* These base colors will be overridden by motivation CSS via data-type attribute */
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
[data-theme="dark"] .semiont-button[data-variant="detect"] {
|
|
241
|
+
border-color: rgba(255, 255, 255, 0.1);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Ghost variant */
|
|
245
|
+
.semiont-button[data-variant="ghost"] {
|
|
246
|
+
background-color: transparent;
|
|
247
|
+
color: var(--semiont-text-primary);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
[data-theme="dark"] .semiont-button[data-variant="ghost"] {
|
|
251
|
+
background-color: transparent;
|
|
252
|
+
color: var(--semiont-text-primary);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.semiont-button[data-variant="ghost"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
256
|
+
background-color: var(--semiont-bg-tertiary);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.semiont-button[data-variant="ghost"]:active:not(:disabled):not([data-disabled="true"]),
|
|
260
|
+
.semiont-button[data-variant="ghost"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
261
|
+
background-color: var(--semiont-color-neutral-200);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* ============================================
|
|
265
|
+
Button Sizes
|
|
266
|
+
============================================ */
|
|
267
|
+
|
|
268
|
+
.semiont-button[data-size="xs"] {
|
|
269
|
+
padding: var(--semiont-spacing-xs) var(--semiont-spacing-sm);
|
|
270
|
+
font-size: var(--semiont-text-xs);
|
|
271
|
+
border-radius: var(--semiont-radius-sm);
|
|
272
|
+
min-height: 1.75rem;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.semiont-button[data-size="sm"] {
|
|
276
|
+
padding: var(--semiont-spacing-xs) var(--semiont-spacing-md);
|
|
277
|
+
font-size: var(--semiont-text-sm);
|
|
278
|
+
border-radius: var(--semiont-radius-base);
|
|
279
|
+
min-height: 2rem;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.semiont-button[data-size="md"] {
|
|
283
|
+
padding: var(--semiont-spacing-sm) var(--semiont-spacing-lg);
|
|
284
|
+
font-size: var(--semiont-text-base);
|
|
285
|
+
border-radius: var(--semiont-radius-md);
|
|
286
|
+
min-height: 2.5rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.semiont-button[data-size="lg"] {
|
|
290
|
+
padding: var(--semiont-spacing-sm) var(--semiont-spacing-xl);
|
|
291
|
+
font-size: var(--semiont-text-lg);
|
|
292
|
+
border-radius: var(--semiont-radius-md);
|
|
293
|
+
min-height: 3rem;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.semiont-button[data-size="xl"] {
|
|
297
|
+
padding: var(--semiont-spacing-md) var(--semiont-spacing-2xl);
|
|
298
|
+
font-size: var(--semiont-text-xl);
|
|
299
|
+
border-radius: var(--semiont-radius-lg);
|
|
300
|
+
min-height: 3.5rem;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Icon-only buttons have equal padding */
|
|
304
|
+
.semiont-button[data-icon-only="true"][data-size="xs"] {
|
|
305
|
+
padding: var(--semiont-spacing-xs);
|
|
306
|
+
width: 1.75rem;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.semiont-button[data-icon-only="true"][data-size="sm"] {
|
|
310
|
+
padding: var(--semiont-spacing-xs);
|
|
311
|
+
width: 2rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.semiont-button[data-icon-only="true"][data-size="md"] {
|
|
315
|
+
padding: var(--semiont-spacing-sm);
|
|
316
|
+
width: 2.5rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.semiont-button[data-icon-only="true"][data-size="lg"] {
|
|
320
|
+
padding: var(--semiont-spacing-sm);
|
|
321
|
+
width: 3rem;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.semiont-button[data-icon-only="true"][data-size="xl"] {
|
|
325
|
+
padding: var(--semiont-spacing-md);
|
|
326
|
+
width: 3.5rem;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* Full width button */
|
|
330
|
+
.semiont-button[data-full-width="true"] {
|
|
331
|
+
width: 100%;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* ============================================
|
|
335
|
+
Button Group Styles
|
|
336
|
+
============================================ */
|
|
337
|
+
|
|
338
|
+
.semiont-button-group {
|
|
339
|
+
display: flex;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Horizontal orientation (default) */
|
|
343
|
+
.semiont-button-group[data-orientation="horizontal"] {
|
|
344
|
+
flex-direction: row;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.semiont-button-group[data-orientation="vertical"] {
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Spacing between buttons */
|
|
352
|
+
.semiont-button-group[data-spacing="xs"] {
|
|
353
|
+
gap: var(--semiont-spacing-xs);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.semiont-button-group[data-spacing="sm"] {
|
|
357
|
+
gap: var(--semiont-spacing-sm);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.semiont-button-group[data-spacing="md"] {
|
|
361
|
+
gap: var(--semiont-spacing-md);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.semiont-button-group[data-spacing="lg"] {
|
|
365
|
+
gap: var(--semiont-spacing-lg);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Attached button group (no gaps) */
|
|
369
|
+
.semiont-button-group[data-attached="true"] {
|
|
370
|
+
gap: 0;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* Attached horizontal buttons */
|
|
374
|
+
.semiont-button-group[data-attached="true"][data-orientation="horizontal"] .semiont-button:not(:first-child) {
|
|
375
|
+
border-top-left-radius: 0;
|
|
376
|
+
border-bottom-left-radius: 0;
|
|
377
|
+
margin-left: -1px;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.semiont-button-group[data-attached="true"][data-orientation="horizontal"] .semiont-button:not(:last-child) {
|
|
381
|
+
border-top-right-radius: 0;
|
|
382
|
+
border-bottom-right-radius: 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* Attached vertical buttons */
|
|
386
|
+
.semiont-button-group[data-attached="true"][data-orientation="vertical"] .semiont-button:not(:first-child) {
|
|
387
|
+
border-top-left-radius: 0;
|
|
388
|
+
border-top-right-radius: 0;
|
|
389
|
+
margin-top: -1px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.semiont-button-group[data-attached="true"][data-orientation="vertical"] .semiont-button:not(:last-child) {
|
|
393
|
+
border-bottom-left-radius: 0;
|
|
394
|
+
border-bottom-right-radius: 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* Ensure attached buttons have proper z-index on hover/focus */
|
|
398
|
+
.semiont-button-group[data-attached="true"] .semiont-button:hover,
|
|
399
|
+
.semiont-button-group[data-attached="true"] .semiont-button:focus-visible,
|
|
400
|
+
.semiont-button-group[data-attached="true"] .semiont-button[data-active="true"] {
|
|
401
|
+
z-index: 1;
|
|
402
|
+
position: relative;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* ============================================
|
|
406
|
+
Dark Mode Support - Fixed to respect data-theme attribute
|
|
407
|
+
============================================ */
|
|
408
|
+
|
|
409
|
+
/* Manual dark mode override */
|
|
410
|
+
[data-theme="dark"] .semiont-button[data-variant="ghost"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
411
|
+
background-color: var(--semiont-color-neutral-800);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
[data-theme="dark"] .semiont-button[data-variant="ghost"]:active:not(:disabled):not([data-disabled="true"]),
|
|
415
|
+
[data-theme="dark"] .semiont-button[data-variant="ghost"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
416
|
+
background-color: var(--semiont-color-neutral-700);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* Secondary variant in dark mode */
|
|
420
|
+
[data-theme="dark"] .semiont-button[data-variant="secondary"] {
|
|
421
|
+
background-color: var(--semiont-color-neutral-700);
|
|
422
|
+
color: var(--semiont-color-neutral-100);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
[data-theme="dark"] .semiont-button[data-variant="secondary"]:hover:not(:disabled):not([data-disabled="true"]) {
|
|
426
|
+
background-color: var(--semiont-color-neutral-600);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
[data-theme="dark"] .semiont-button[data-variant="secondary"]:active:not(:disabled):not([data-disabled="true"]),
|
|
430
|
+
[data-theme="dark"] .semiont-button[data-variant="secondary"][data-active="true"]:not(:disabled):not([data-disabled="true"]) {
|
|
431
|
+
background-color: var(--semiont-color-neutral-500);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* Additional button styles from base.css */
|
|
435
|
+
.semiont-button__icon {
|
|
436
|
+
width: 1.25rem;
|
|
437
|
+
height: 1.25rem;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.semiont-button--full-width {
|
|
441
|
+
width: 100%;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* ============================================
|
|
445
|
+
Panel Buttons (Settings Panel, User Panel)
|
|
446
|
+
============================================ */
|
|
447
|
+
|
|
448
|
+
/* Default panel button (inactive) */
|
|
449
|
+
.semiont-panel-button {
|
|
450
|
+
background-color: var(--semiont-bg-tertiary);
|
|
451
|
+
color: var(--semiont-text-primary);
|
|
452
|
+
padding: 0.5rem 0.75rem;
|
|
453
|
+
border-radius: var(--semiont-radius-lg);
|
|
454
|
+
font-size: var(--semiont-text-sm);
|
|
455
|
+
font-weight: var(--semiont-font-medium);
|
|
456
|
+
transition: all var(--semiont-duration-base);
|
|
457
|
+
cursor: pointer;
|
|
458
|
+
border: none;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.semiont-panel-button:hover {
|
|
462
|
+
background-color: var(--semiont-color-neutral-300);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* Active/selected state */
|
|
466
|
+
.semiont-panel-button-active {
|
|
467
|
+
background-color: var(--semiont-color-primary-600);
|
|
468
|
+
color: var(--semiont-color-white);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.semiont-panel-button-active:hover {
|
|
472
|
+
background-color: var(--semiont-color-primary-700);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/* Dark mode adjustments */
|
|
476
|
+
[data-theme="dark"] .semiont-panel-button {
|
|
477
|
+
background-color: var(--semiont-color-neutral-700);
|
|
478
|
+
color: var(--semiont-text-primary);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
[data-theme="dark"] .semiont-panel-button:hover {
|
|
482
|
+
background-color: var(--semiont-color-neutral-600);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
[data-theme="dark"] .semiont-panel-button-active {
|
|
486
|
+
background-color: var(--semiont-color-primary-600);
|
|
487
|
+
color: var(--semiont-color-white);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
[data-theme="dark"] .semiont-panel-button-active:hover {
|
|
491
|
+
background-color: var(--semiont-color-primary-700);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* ============================================
|
|
495
|
+
Button Class Modifiers (for button-styles.ts)
|
|
496
|
+
============================================ */
|
|
497
|
+
|
|
498
|
+
/* Primary button with cyan/blue gradient */
|
|
499
|
+
.semiont-button--primary {
|
|
500
|
+
background: var(--semiont-gradient-primary);
|
|
501
|
+
color: var(--semiont-color-primary-700);
|
|
502
|
+
border: 1px solid var(--semiont-color-primary-300);
|
|
503
|
+
padding: 0.5rem 1.5rem;
|
|
504
|
+
border-radius: 0.5rem;
|
|
505
|
+
font-weight: 500;
|
|
506
|
+
transition: all 300ms;
|
|
507
|
+
backdrop-filter: blur(4px);
|
|
508
|
+
display: inline-flex;
|
|
509
|
+
align-items: center;
|
|
510
|
+
justify-content: center;
|
|
511
|
+
gap: 0.5rem;
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.semiont-button--primary:hover:not(:disabled) {
|
|
516
|
+
background: var(--semiont-gradient-primary-hover);
|
|
517
|
+
color: var(--semiont-color-neutral-0);
|
|
518
|
+
border-color: var(--semiont-color-primary-600);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.semiont-button--primary:disabled {
|
|
522
|
+
opacity: 0.5;
|
|
523
|
+
cursor: not-allowed;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* Dark mode primary button */
|
|
527
|
+
[data-theme="dark"] .semiont-button--primary {
|
|
528
|
+
background: var(--semiont-gradient-primary-dark);
|
|
529
|
+
color: var(--semiont-color-primary-400);
|
|
530
|
+
border-color: var(--semiont-color-primary-500);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
[data-theme="dark"] .semiont-button--primary:hover:not(:disabled) {
|
|
534
|
+
background: var(--semiont-gradient-primary-hover-dark);
|
|
535
|
+
color: var(--semiont-color-neutral-0);
|
|
536
|
+
border-color: var(--semiont-color-primary-400);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* Large variant */
|
|
540
|
+
.semiont-button--large {
|
|
541
|
+
width: 100%;
|
|
542
|
+
padding: 0.75rem 1rem;
|
|
543
|
+
font-weight: 500;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.semiont-button--large:hover:not(:disabled) {
|
|
547
|
+
transform: scale(1.02);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* Secondary button */
|
|
551
|
+
.semiont-button--secondary {
|
|
552
|
+
background: rgba(0, 0, 0, 0.1);
|
|
553
|
+
color: var(--semiont-color-gray-900);
|
|
554
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
555
|
+
padding: 0.5rem 1.5rem;
|
|
556
|
+
border-radius: 0.5rem;
|
|
557
|
+
transition: all 300ms;
|
|
558
|
+
display: inline-flex;
|
|
559
|
+
align-items: center;
|
|
560
|
+
justify-content: center;
|
|
561
|
+
cursor: pointer;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.semiont-button--secondary:hover:not(:disabled) {
|
|
565
|
+
background: rgba(0, 0, 0, 0.2);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.semiont-button--secondary:disabled {
|
|
569
|
+
opacity: 0.5;
|
|
570
|
+
cursor: not-allowed;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
[data-theme="dark"] .semiont-button--secondary {
|
|
574
|
+
background: rgba(255, 255, 255, 0.1);
|
|
575
|
+
color: var(--semiont-color-neutral-0);
|
|
576
|
+
border-color: rgba(255, 255, 255, 0.2);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
[data-theme="dark"] .semiont-button--secondary:hover:not(:disabled) {
|
|
580
|
+
background: rgba(255, 255, 255, 0.2);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* Scale modifier */
|
|
584
|
+
.semiont-button--scale:hover:not(:disabled) {
|
|
585
|
+
transform: scale(1.05);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* Tertiary button */
|
|
589
|
+
.semiont-button--tertiary {
|
|
590
|
+
color: var(--semiont-color-gray-700);
|
|
591
|
+
padding: 0.5rem 1rem;
|
|
592
|
+
border-radius: 0.5rem;
|
|
593
|
+
transition: colors 150ms;
|
|
594
|
+
background: transparent;
|
|
595
|
+
border: none;
|
|
596
|
+
display: inline-flex;
|
|
597
|
+
align-items: center;
|
|
598
|
+
justify-content: center;
|
|
599
|
+
cursor: pointer;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.semiont-button--tertiary:hover:not(:disabled) {
|
|
603
|
+
background: var(--semiont-color-gray-100);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
[data-theme="dark"] .semiont-button--tertiary {
|
|
607
|
+
color: var(--semiont-color-gray-300);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
[data-theme="dark"] .semiont-button--tertiary:hover:not(:disabled) {
|
|
611
|
+
background: var(--semiont-color-gray-700);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* Danger button */
|
|
615
|
+
.semiont-button--danger {
|
|
616
|
+
color: var(--semiont-color-red-600);
|
|
617
|
+
padding: 0.5rem 1.5rem;
|
|
618
|
+
border: 1px solid var(--semiont-color-red-200);
|
|
619
|
+
border-radius: 0.5rem;
|
|
620
|
+
transition: all 300ms;
|
|
621
|
+
background: transparent;
|
|
622
|
+
display: inline-flex;
|
|
623
|
+
align-items: center;
|
|
624
|
+
justify-content: center;
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.semiont-button--danger:hover:not(:disabled) {
|
|
629
|
+
background: var(--semiont-color-red-50);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
[data-theme="dark"] .semiont-button--danger {
|
|
633
|
+
color: var(--semiont-color-red-400);
|
|
634
|
+
border-color: var(--semiont-color-red-800);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
[data-theme="dark"] .semiont-button--danger:hover:not(:disabled) {
|
|
638
|
+
background: rgba(239, 68, 68, 0.2);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/* Warning button */
|
|
642
|
+
.semiont-button--warning {
|
|
643
|
+
background: rgba(251, 191, 36, 0.2);
|
|
644
|
+
color: var(--semiont-color-amber-800);
|
|
645
|
+
border: 1px solid var(--semiont-color-amber-300);
|
|
646
|
+
padding: 0.5rem 1.5rem;
|
|
647
|
+
border-radius: 0.5rem;
|
|
648
|
+
transition: all 300ms;
|
|
649
|
+
backdrop-filter: blur(4px);
|
|
650
|
+
display: inline-flex;
|
|
651
|
+
align-items: center;
|
|
652
|
+
justify-content: center;
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.semiont-button--warning:hover:not(:disabled) {
|
|
657
|
+
background: rgba(251, 191, 36, 0.3);
|
|
658
|
+
color: var(--semiont-color-amber-900);
|
|
659
|
+
border-color: var(--semiont-color-amber-500);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
[data-theme="dark"] .semiont-button--warning {
|
|
663
|
+
background: rgba(245, 158, 11, 0.2);
|
|
664
|
+
color: var(--semiont-color-amber-300);
|
|
665
|
+
border-color: var(--semiont-color-amber-500);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
[data-theme="dark"] .semiont-button--warning:hover:not(:disabled) {
|
|
669
|
+
background: rgba(245, 158, 11, 0.3);
|
|
670
|
+
color: var(--semiont-color-amber-200);
|
|
671
|
+
border-color: var(--semiont-color-amber-400);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/* Sign out button */
|
|
675
|
+
.semiont-signout-button {
|
|
676
|
+
background-color: var(--semiont-bg-secondary);
|
|
677
|
+
color: var(--semiont-text-primary);
|
|
678
|
+
padding: 0.5rem 1rem;
|
|
679
|
+
border-radius: var(--semiont-radius-lg);
|
|
680
|
+
font-size: var(--semiont-text-sm);
|
|
681
|
+
font-weight: var(--semiont-font-medium);
|
|
682
|
+
transition: all var(--semiont-duration-base);
|
|
683
|
+
cursor: pointer;
|
|
684
|
+
border: none;
|
|
685
|
+
width: 100%;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.semiont-signout-button:hover {
|
|
689
|
+
background-color: var(--semiont-bg-tertiary);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.semiont-signout-button:focus-visible {
|
|
693
|
+
outline: 2px solid var(--semiont-color-primary-500);
|
|
694
|
+
outline-offset: 2px;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
[data-theme="dark"] .semiont-signout-button {
|
|
698
|
+
background-color: var(--semiont-color-neutral-700);
|
|
699
|
+
color: var(--semiont-text-primary);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
[data-theme="dark"] .semiont-signout-button:hover {
|
|
703
|
+
background-color: var(--semiont-color-neutral-600);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/* Session info box */
|
|
707
|
+
.semiont-session-box {
|
|
708
|
+
background-color: var(--semiont-bg-secondary);
|
|
709
|
+
padding: 0.5rem 0.75rem;
|
|
710
|
+
border-radius: var(--semiont-radius-lg);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
[data-theme="dark"] .semiont-session-box {
|
|
714
|
+
background-color: var(--semiont-color-neutral-800);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/* ============================================
|
|
718
|
+
User Menu Dropdown
|
|
719
|
+
============================================ */
|
|
720
|
+
|
|
721
|
+
.semiont-user-menu-dropdown {
|
|
722
|
+
background-color: var(--semiont-bg-primary);
|
|
723
|
+
border: 1px solid var(--semiont-color-gray-200);
|
|
724
|
+
border-radius: var(--semiont-radius-lg);
|
|
725
|
+
box-shadow: var(--semiont-shadow-lg);
|
|
726
|
+
padding: 0.75rem;
|
|
727
|
+
width: 16rem;
|
|
728
|
+
position: absolute;
|
|
729
|
+
right: 0;
|
|
730
|
+
margin-top: 0.5rem;
|
|
731
|
+
z-index: 50;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
[data-theme="dark"] .semiont-user-menu-dropdown {
|
|
735
|
+
background-color: var(--semiont-color-gray-800);
|
|
736
|
+
border-color: var(--semiont-color-gray-700);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.semiont-user-menu-link {
|
|
740
|
+
display: block;
|
|
741
|
+
width: 100%;
|
|
742
|
+
text-align: left;
|
|
743
|
+
font-size: var(--semiont-text-sm);
|
|
744
|
+
color: var(--semiont-text-secondary);
|
|
745
|
+
padding: 0.25rem;
|
|
746
|
+
transition: all var(--semiont-duration-base);
|
|
747
|
+
text-decoration: none;
|
|
748
|
+
border-radius: var(--semiont-radius-base);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.semiont-user-menu-link:hover {
|
|
752
|
+
color: var(--semiont-text-primary);
|
|
753
|
+
background-color: var(--semiont-bg-secondary);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.semiont-user-menu-link:focus-visible {
|
|
757
|
+
outline: none;
|
|
758
|
+
background-color: var(--semiont-bg-secondary);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
[data-theme="dark"] .semiont-user-menu-link {
|
|
762
|
+
color: var(--semiont-color-gray-300);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
[data-theme="dark"] .semiont-user-menu-link:hover {
|
|
766
|
+
color: var(--semiont-color-gray-100);
|
|
767
|
+
background-color: var(--semiont-color-gray-700);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
[data-theme="dark"] .semiont-user-menu-link:focus-visible {
|
|
771
|
+
background-color: var(--semiont-color-gray-700);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.semiont-user-menu-divider {
|
|
775
|
+
margin: 0.5rem 0;
|
|
776
|
+
border-top: 1px solid var(--semiont-color-gray-200);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
[data-theme="dark"] .semiont-user-menu-divider {
|
|
780
|
+
border-top-color: var(--semiont-color-gray-600);
|
|
781
|
+
}
|