Files
windows95/src/css/start.css
Felix Rieseberg c847467de6 Recover user files from orphaned state-vN.bin after a version bump (#365)
* Detect orphaned state-vN.bin and offer file recovery to a host folder

When STATE_VERSION is bumped, users previously lost their C:\ silently.
The Welcome card now detects an older state file (v4+), explains what
happened, and offers a one-click recovery: spin up a throwaway v86
(no boot), restore the legacy state to populate the hda dirty-block
overlay, walk the FAT32 tree reading overlay-if-dirty-else-base, and
copy any file the guest ever wrote out to ~/Downloads/Recovered C Drive.

Directories are created lazily so empty branches never appear; success
and failure render in the panel (no native dialogs). The geometry
constraint that keeps overlay+new-base valid is documented next to
STATE_VERSION. Also makes the dev-mode CDP port overridable via
WIN95_DEBUG_PORT so worktree instances don't fight over 9222.

* prettier
2026-04-12 12:38:28 -07:00

118 lines
1.8 KiB
CSS

/* "Welcome to Windows" splash — modelled on the real first-boot dialog. */
.welcome {
width: 540px;
}
.welcome-body {
display: flex;
align-items: stretch;
gap: 12px;
margin: 4px;
min-height: 250px;
}
.welcome-stripe {
width: 26px;
background: linear-gradient(180deg, #000 0%, navy 60%, #1084d0 100%);
position: relative;
flex-shrink: 0;
span {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%) rotate(180deg);
writing-mode: vertical-rl;
color: #fff;
font-weight: 700;
font-size: 14px;
letter-spacing: 1px;
white-space: nowrap;
}
}
.welcome-main {
flex: 1;
display: flex;
flex-direction: column;
padding: 8px 4px;
}
.welcome-title {
font-family: "Times New Roman", serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-size: 24px;
margin: 0 0 14px;
color: #000;
span {
font-weight: 700;
}
small {
color: #fff;
font-size: 24px;
font-weight: 700;
vertical-align: baseline;
margin-left: 1px;
}
}
.welcome-tip {
flex: 1;
background: #ffffe1;
box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf,
inset 2px 2px #0a0a0a;
padding: 12px 14px;
.welcome-tip-header {
border-bottom: 1px solid grey;
box-shadow: 0 1px 0 #fff;
padding-bottom: 6px;
margin-bottom: 8px;
font-size: 11px;
}
p {
margin: 0;
}
}
.welcome-warn {
background: #fff;
p {
margin: 0 0 8px;
}
.welcome-warn-buttons {
display: flex;
gap: 6px;
margin-top: 4px;
button {
height: 24px;
}
}
}
.welcome-actions {
width: 130px;
display: flex;
flex-direction: column;
gap: 6px;
padding: 8px 4px;
flex-shrink: 0;
button {
width: 100%;
height: 24px;
}
.welcome-spacer {
flex: 1;
}
}