ext-apps/examples/shadertoy-server/src/mcp-app.css
Liad Yosef 4fc71656a3
docs: standardize UI terminology to use "view" consistently (#325)
* docs: standardize UI terminology to use "view" consistently

Replaces "widget" and "Guest UI" terminology with "view" across
the codebase as decided in the community survey.

This change updates:
- Specification document
- SDK source code and JSDoc comments
- Example servers and documentation
- Plugin documentation and skills

Closes #71

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 04:36:52 +02:00

106 lines
1.8 KiB
CSS

html, body {
margin: 0;
width: 100%;
height: 100%;
min-height: 400px;
overflow: hidden;
}
.main {
position: relative;
width: 100%;
height: 100%;
min-height: 400px;
border-radius: var(--border-radius-lg);
overflow: hidden;
}
.main.fullscreen {
border-radius: 0;
}
#canvas {
width: 100%;
height: 100%;
display: block;
}
#canvas.hidden {
display: none;
}
#code-preview {
display: none;
width: 100%;
height: 100%;
margin: 0;
padding: 16px;
box-sizing: border-box;
overflow: auto;
background: linear-gradient(
135deg,
var(--color-background-secondary) 0%,
var(--color-background-tertiary) 100%
);
color: var(--color-text-ghost);
font-family: var(--font-mono);
font-size: var(--font-text-xs-size);
line-height: var(--font-text-xs-line-height);
white-space: pre-wrap;
}
#code-preview.visible {
display: block;
}
/* Fullscreen button */
.fullscreen-btn {
position: absolute;
bottom: 16px;
right: 16px;
width: 40px;
height: 40px;
border: none;
border-radius: 8px;
background: rgba(0, 0, 0, 0.6);
color: white;
cursor: pointer;
display: none; /* Hidden by default, shown when fullscreen available */
align-items: center;
justify-content: center;
transition: background 0.2s, opacity 0.2s;
opacity: 0; /* Initially invisible, shown on View hover */
z-index: 100;
}
.fullscreen-btn:hover {
background: rgba(0, 0, 0, 0.8);
opacity: 1;
}
.fullscreen-btn svg {
width: 20px;
height: 20px;
}
.fullscreen-btn .collapse-icon {
display: none;
}
.fullscreen-btn.available {
display: flex;
}
/* Show button on View hover */
.main:hover .fullscreen-btn.available {
opacity: 0.7;
}
/* Fullscreen mode */
.main.fullscreen .fullscreen-btn .expand-icon {
display: none;
}
.main.fullscreen .fullscreen-btn .collapse-icon {
display: block;
}