summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/component/modal.css
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-10-10 21:24:05 -0400
committerFrank <[email protected]>2025-10-10 21:24:05 -0400
commit2d35b783335cae9898ec80362934bab892fcf973 (patch)
tree146ba002b1bd58044bcac15c5ced977c086a9bd1 /packages/console/app/src/component/modal.css
parent07645e070525e627cda5cd4ad7f001f70cbc57dc (diff)
parentc7dfbbeed0e7b5a7421b4b0d8c115a24f5ba7534 (diff)
downloadopencode-2d35b783335cae9898ec80362934bab892fcf973.tar.gz
opencode-2d35b783335cae9898ec80362934bab892fcf973.zip
Merge branch 'console-workspaces' into dev
Diffstat (limited to 'packages/console/app/src/component/modal.css')
-rw-r--r--packages/console/app/src/component/modal.css66
1 files changed, 66 insertions, 0 deletions
diff --git a/packages/console/app/src/component/modal.css b/packages/console/app/src/component/modal.css
new file mode 100644
index 000000000..23b6831c9
--- /dev/null
+++ b/packages/console/app/src/component/modal.css
@@ -0,0 +1,66 @@
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+
+ to {
+ opacity: 1;
+ }
+}
+
+@keyframes slideUp {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+[data-component="modal"][data-slot="overlay"] {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 9999;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: rgba(0, 0, 0, 0.5);
+ animation: fadeIn 0.2s ease;
+
+ @media (prefers-color-scheme: dark) {
+ background-color: rgba(0, 0, 0, 0.7);
+ }
+
+ [data-slot="content"] {
+ background-color: var(--color-bg);
+ border: 1px solid var(--color-border);
+ border-radius: var(--border-radius-md);
+ padding: var(--space-6);
+ min-width: 400px;
+ max-width: 90vw;
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
+ animation: slideUp 0.2s ease;
+
+ @media (max-width: 30rem) {
+ min-width: 300px;
+ padding: var(--space-4);
+ }
+
+ @media (prefers-color-scheme: dark) {
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
+ }
+ }
+
+ [data-slot="title"] {
+ margin: 0 0 var(--space-4) 0;
+ font-size: var(--font-size-lg);
+ font-weight: 600;
+ color: var(--color-text);
+ }
+} \ No newline at end of file