mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-21 00:59:59 -04:00
Faster frames (the replay's memory work, held submits, helper threads, collection and capture cuts), the game letting old areas go (QueryMemoryInfo), the 0.5.2 stutter fixed, AMD RX 5000/6000 and integrated-GPU fixes, the GPU device chosen by name, the in-game menus and launcher reworked, controller, Linux and benchmark fixes.
114 lines
9.5 KiB
CSS
114 lines
9.5 KiB
CSS
/* Prototype only: the launcher window fitted into the browser, screens that fade, live controls. */
|
|
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; margin: 0; }
|
|
#fit { position: absolute; left: 50%; top: 50%; width: 1280px; height: 800px; transform-origin: 50% 50%; }
|
|
.win { position: relative !important; left: 0; top: 0; }
|
|
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; }
|
|
.screen.on { opacity: 1; visibility: visible; transition: opacity .32s ease; }
|
|
.bar { z-index: 20; }
|
|
.hidebits .nav, .hidebits .state { display: none; }
|
|
[data-act], .nav a, .f, .sc, .qbtn, .play, .ch, .qlink, .spk, .state, .wc span, .choices > div, .portal .qbtn, .tabbtn, .row-set, .mod { cursor: pointer; }
|
|
.play { transition: filter .15s ease, transform .15s ease; }
|
|
.play:hover { filter: brightness(1.08) saturate(1.05); }
|
|
.play:active { transform: translateY(1px); filter: brightness(.95); }
|
|
.qbtn { transition: background .15s, border-color .15s; } .qbtn:hover { background: rgba(243, 234, 213, .12); border-color: rgba(var(--gold-rgb), .65); }
|
|
.ch:hover, .qlink:hover, .links b:hover, .lnk:hover { color: var(--gold-hi); }
|
|
.nav a:hover { color: var(--text); }
|
|
.f { transition: transform .15s, outline-color .15s; } .f:hover { outline-color: var(--gold); }
|
|
.sc .p { transition: filter .15s; } .sc:hover .p { filter: brightness(1.08); }
|
|
.wc span:hover { color: var(--text); } .wc span:last-child:hover { background: #a3272f; color: #fff; }
|
|
/* the pad / keyboard focus: a gold ring, only when the last input was not the mouse */
|
|
body.kb .kf { outline: 2px solid var(--gold-hi) !important; outline-offset: 5px; box-shadow: 0 0 0 7px rgba(var(--gold-hi-rgb), .14); }
|
|
body.kb .play.kf { outline-offset: 6px; }
|
|
|
|
/* the logo rise of the reveal */
|
|
.screen.on .rlogo { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
|
|
.screen.on .rlogo .aura, .screen.on .rlogo .glowl { animation: glowin 2.2s ease both; }
|
|
.screen.on .found4, .screen.on .choices, .screen.on .buildrow, .screen.on .under { animation: fadeup .6s ease both; }
|
|
.screen.on .found4 { animation-delay: .7s; } .screen.on .choices { animation-delay: .85s; } .screen.on .buildrow { animation-delay: 1s; } .screen.on .under { animation-delay: 1.1s; }
|
|
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
|
|
@keyframes glowin { from { opacity: 0; } }
|
|
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } }
|
|
|
|
/* drop area while a file is over it, and while it is checked */
|
|
.portal::before, .portal::after, .portal .c { pointer-events: none; } .portal > div { position: relative; z-index: 1; }
|
|
.portal.hot::before { border-color: var(--gold-hi); box-shadow: 0 0 40px rgba(var(--gold-hi-rgb), .25) inset; }
|
|
.portal.checking h2::after { content: '…'; }
|
|
.portal.bad::before { border-color: #ff6b76; } .portal.bad p { color: #ff6b76; }
|
|
|
|
/* the scene backdrop and frame change with the chosen file */
|
|
.scene .img, .frame .pic { transition: background-image .4s ease; }
|
|
|
|
/* sound panel: live sliders */
|
|
.vol { display: none; } .vol.open { display: block; animation: fadeup .18s ease both; }
|
|
.slider { cursor: pointer; } .slider u { cursor: grab; }
|
|
.spk.muted svg path:last-child { display: none; }
|
|
.spk.muted::after { content: ''; position: absolute; width: 20px; height: 1.6px; background: currentColor; transform: rotate(-45deg); }
|
|
.spk { position: relative; }
|
|
.eq i { animation: eq 1s ease-in-out infinite alternate; } .eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; } .eq i:nth-child(4) { animation-delay: -.2s; }
|
|
@keyframes eq { from { height: 3px; } to { height: 14px; } }
|
|
.paused .eq i { animation-play-state: paused; }
|
|
|
|
/* toasts and sheets */
|
|
.toast { position: absolute; left: 50%; top: 70px; z-index: 40; transform: translateX(-50%); padding: 13px 22px; font-size: 14.5px; color: var(--text);
|
|
background: rgba(16, 14, 10, .96); border: 1px solid rgba(var(--gold-rgb), .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: fadeup .2s ease both; }
|
|
.toast b { color: var(--emerald); }
|
|
.sheet-bg { position: absolute; inset: 0; z-index: 30; background: rgba(5, 4, 3, .66); display: none; }
|
|
.sheet-bg.open { display: block; animation: glowin .2s ease both; }
|
|
.sheet { position: absolute; left: 50%; top: 50%; width: 560px; transform: translate(-50%, -50%); padding: 28px 30px 26px; }
|
|
.sheet h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 700; }
|
|
.sheet p { margin-top: 8px; font-size: 14.5px; color: var(--text2); }
|
|
.opt { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; }
|
|
.opt:first-of-type { margin-top: 18px; } .opt b { font-weight: 600; } .opt span { font-size: 13px; color: var(--text3); }
|
|
.opt.sel { border-color: var(--gold-hi); background: rgba(var(--gold-rgb), .08); }
|
|
.sheet .acts { margin-top: 22px; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
|
|
|
|
/* settings */
|
|
.set { position: absolute; left: 64px; top: 196px; width: 760px; }
|
|
.set h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 19px; color: var(--gold-hi); margin: 22px 0 6px; }
|
|
.set h4:first-child { margin-top: 0; }
|
|
.row-set { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
|
|
.row-set b { font-weight: 600; } .row-set span { color: var(--text2); } .row-set em { font-style: normal; color: var(--gold); font-weight: 600; font-size: 14px; }
|
|
.row-set .rng { display: flex; align-items: center; gap: 12px; } .row-set .slider { width: 260px; }
|
|
.benchcard { position: absolute; right: 64px; top: 196px; width: 330px; padding: 24px; }
|
|
.benchcard h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 700; }
|
|
.benchcard p { margin: 8px 0 18px; font-size: 14px; color: var(--text2); }
|
|
|
|
/* benchmark run */
|
|
.brun { position: absolute; inset: 0; }
|
|
.brun .placebig { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(2px) brightness(.85); transition: background-image .5s; }
|
|
.brun .hud { position: absolute; left: 64px; bottom: 64px; }
|
|
.brun .hud .eb { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 20px; color: var(--gold-hi); }
|
|
.brun .hud h1 { font-size: 58px; } .brun .fps { font-size: 64px; font-weight: 750; font-variant-numeric: tabular-nums; }
|
|
.brun .fps small { font-size: 20px; color: var(--text2); font-weight: 600; margin-left: 8px; }
|
|
.brun .prog { position: absolute; left: 64px; right: 64px; bottom: 34px; height: 4px; background: rgba(255,255,255,.12); }
|
|
.brun .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); width: 0; transition: width .2s linear; }
|
|
.brun .stop { position: absolute; right: 64px; top: 84px; font-size: 14px; color: var(--text2); }
|
|
|
|
/* mods */
|
|
.mods { position: absolute; left: 64px; right: 64px; top: 196px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
|
|
.mod { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); }
|
|
.mod b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 700; } .mod span { display: block; font-size: 13px; color: var(--text3); margin-top: 2px; }
|
|
.mod em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--gold); } .mod em.inst { color: var(--emerald); }
|
|
.search { position: absolute; left: 64px; top: 150px; width: 420px; height: 38px; display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--text3);
|
|
border: 1px solid rgba(var(--gold-rgb), .35); background: rgba(10, 9, 8, .6); }
|
|
.cats { position: absolute; left: 510px; top: 158px; display: flex; gap: 22px; font-size: 14px; color: var(--text3); }
|
|
.cats span.on { color: var(--gold-hi); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
|
|
|
|
/* the prototype's own note and jump menu (not part of the design) */
|
|
#protonote { position: fixed; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 6px; z-index: 99; font: 12px/1.3 'Segoe UI', sans-serif; color: rgba(255,255,255,.45); }
|
|
#protonote b { color: rgba(255, 220, 140, .8); }
|
|
#jump { position: fixed; right: 10px; bottom: 8px; z-index: 99; display: none; padding: 10px 12px; background: rgba(20,18,14,.96); border: 1px solid rgba(224,178,62,.5);
|
|
font: 13px/1.6 'Segoe UI', sans-serif; color: #ddd; }
|
|
#jump.open { display: block; } #jump a { display: block; color: #f7dc8c; cursor: pointer; } #jump a:hover { color: #fff; }
|
|
#gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0,0,0,.82); cursor: pointer;
|
|
font: 600 16px 'Segoe UI', sans-serif; color: #f7dc8c; text-align: center; }
|
|
#gate small { display: block; margin-top: 8px; font-weight: 400; color: #aaa; font-size: 13px; }
|
|
|
|
/* ---------------- in the real window ---------------- */
|
|
/* The bar is the title bar: drag it to move the window, double-click to maximize (WebView2's app-region). */
|
|
.bar { app-region: drag; -webkit-app-region: drag; }
|
|
.bar .nav a, .bar .state, .bar .spk, .bar .wc span { app-region: no-drag; -webkit-app-region: no-drag; }
|
|
.nochrome .wc { display: none; } /* Linux: the desktop draws the window's own buttons */
|
|
.hosted #protonote, .hosted #jump { display: none; }
|
|
.hosted.devjump #jump.open { display: block; }
|