This page documents every CSS rule inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mr-sunset/window/llms.txt
Use this file to discover all available pages before exploring further.
style.css. Each section below corresponds to one selector or rule block, shows the exact source declarations, and explains the role of the key properties in the Window component’s layout and behavior.
body
Sets the page canvas. margin: 0 removes browser default spacing, height: 100vh fills the viewport, and overflow: hidden prevents scrollbars from appearing when the window is dragged near an edge. The background is a 45-degree linear gradient and a system font stack is applied globally.
#window-container
The root window panel. position: absolute is required for drag repositioning via inline left/top styles. The initial centering is handled by top: 50%; left: 50% combined with transform: translate(-50%, -50%). overflow: hidden clips child content to the 14px rounded corners.
img
Constrains any <img> elements on the page to a fixed height. This rule is global — it applies to all images inside the component or anywhere on the host page.
#title-bar
The draggable header strip. user-select: none prevents the browser from selecting text during a drag gesture. cursor: default keeps the pointer consistent across the bar. The bottom border provides a visual divider between the title bar and the content area.
#window-buttons
A flex row containing the three traffic-light buttons. gap: 8px spaces them evenly without needing margins on individual buttons.
.btn
Base styles shared by all three control buttons. Each button is rendered as a perfect circle using border-radius: 50% on a 15×15px element. cursor: default prevents the pointer from changing to a hand on hover.
.close / .mini / .maxi
Color modifiers for each traffic-light button. .close is red (#ff3939), .mini is yellow (#e8c33d), and .maxi is green (#69ca66).
.btn:active
Provides a subtle press feedback on all three buttons by darkening them 10% when held down, using the brightness filter.
#window-content
The main content area below the title bar. Fixed at height: 400px. Uses a column flex layout with both axes centered so that any content placed inside is automatically centered in the panel.
button
Styles the default demo button inside #window-content. Uses a light gray background, a subtle border, 10px border-radius, and a 0.12s ease transition so that interactive state changes animate smoothly.
button:active
Scales the button down to 95% when clicked, giving a physical press effect that is smoothed by the transition declared on button.
@media (prefers-color-scheme: dark)
Overrides key background and border colors when the user’s OS is set to dark mode. The page gradient shifts to deep navy/purple tones, the title bar and window container switch to a near-black background (rgb(20, 20, 20)), and the demo button becomes black with muted gray text and border.