-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
1 lines (1 loc) · 7.06 KB
/
style.css
1
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace, monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type="button"],[type="reset"],[type="submit"],button{-webkit-appearance:button}[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}@font-face{font-family:"SF Pro Display";src:local("SF Pro Display Semibold"), local("SF Pro Display-Semibold"), url("../fonts/SFProDisplay-Semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:"SF Pro Display";src:local("SF Pro Display Light"), local("SF Pro Display-Light"), url("../fonts/SFProDisplay-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:"SF Pro Display";src:local("SF Pro Display Regular"), local("SF Pro Display-Regular"), url("../fonts/SFProDisplay-Regular.woff2") format("woff2");font-weight:normal;font-style:normal;font-display:swap}*,*::after,*::before{box-sizing:border-box}:root{--accent:#0a84ff;--font-color:#f0f0f0;--alt-font-color:#0f0f0f;--background-color:#0f0f0f;--alt-background-color:#f0f0f0}@media (prefers-color-scheme: light){:root{--accent:#007aff;--alt-accent:#0a84ff;--font-color:#0f0f0f;--background-color:#f0f0f0;--alt-font-color:#f0f0f0;--alt-background-color:#0f0f0f}}@media (prefers-color-scheme: dark){:root{--accent:#0a84ff;--alt-accent:#007aff;--font-color:#f0f0f0;--background-color:#0f0f0f;--alt-font-color:#0f0f0f;--alt-background-color:#f0f0f0}}body,html{margin:0;overflow-x:hidden}body{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;background:repeating-radial-gradient(circle at 50% calc(100vh - 102px), #1f1f1f, #1f1f1f 3px, #0f0f0f 3px, #0f0f0f 180px);background-color:var(--background-color);font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Helvetica", sans-serif;font-size:18px;color:var(--font-color)}main{padding:20px;flex-grow:1;display:flex;flex-direction:column;justify-content:center;text-align:center}footer{display:flex;flex-direction:column;align-items:center;padding:20px;text-align:center;user-select:none}button,input,textarea{padding:0;margin:0;font-family:inherit;font-size:inherit;color:inherit;background-color:transparent;border:none;outline:0}a{text-decoration:none;color:var(--accent)}a:hover{color:var(--alt-accent)}button{padding:10px 20px;border-radius:13px;font-weight:bold;color:var(--accent);text-transform:uppercase;transition:color 0.125s ease-out, background-color 0.125s ease-out;cursor:pointer;font-size:0.9em}button:hover{color:white;background-color:var(--alt-accent)}button.primary{background-color:var(--accent);color:white}button.primary:hover{background-color:var(--alt-accent)}#peers:not(:empty) + #no-peers{display:none}peer{user-select:none}peer input[type="file"]{display:none}peer label{position:relative;width:100px;padding:10px;margin:10px;display:flex;flex-direction:column;align-items:center;text-align:center;touch-action:manipulation;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);cursor:pointer}peer .name{width:100px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}peer .status{font-size:0.8em;height:18px;opacity:0.6}peer .status:empty{display:none}peer[transfer] .status:before{content:"Dropping..."}peer icon{width:68px;height:68px;display:flex;padding:20px;border-radius:50%;background:var(--alt-background-color);color:var(--background-color);margin-bottom:8px;transition:transform 0.125s}peer icon{animation:pop 600ms ease-out 1}peer[drop] icon{transform:scale(1.1)}@keyframes pop{0%{transform:scale(0.7)}40%{transform:scale(1.2)}}peer[transfer] icon{opacity:0.8;transform:scale(1)}peer:not([transfer]):focus icon,peer:not([transfer]):hover icon{transform:scale(1.05)}.progress{position:absolute;top:2px;width:84px;height:84px;background-color:var(--accent);border-radius:50%;--progress:scale(0);transition:transform 0.125s;transform:var(--progress);opacity:0.3}.dialog:not([show]){pointer-events:none}.dialog .background{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(100, 100, 100, 0.1);backdrop-filter: blur(15px);transition:backdrop-filter 0.125s, opacity 0.125s;z-index:10}.dialog .dialog-box{margin:0 20px;width:100%;max-width:400px;padding:20px;background:var(--background-color);border-radius:13px;transition:transform 0.125s;z-index:3}.dialog:not([show]) .dialog-box{transform:scale(0.8)}.dialog:not([show]) .background{opacity:0}.dialog .dialog-box .title{font-weight:bold;margin:5px 0;opacity:0.8}.dialog .dialog-box .filesize{color:var(--accent)}.dialog .dialog-box .filesize{font-size:0.8em}.dialog .message{width:100%;min-height:30px;max-height:320px;overflow-x:hidden}.dialog div.message{max-height:320px;display:flex;overflow-y:auto;word-break:break-all;user-select:none}.dialog .actionbar{margin-top:20px;display:flex;flex-wrap:wrap;justify-content:flex-end}.dialog .actionbar button{margin-left:10px}toast{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;padding:0 10px 25px;overflow:hidden;pointer-events:none}#toast{width:100%;max-width:350px;min-height:48px;position:absolute;bottom:25px;padding:10px 15px;display:flex;justify-content:center;align-items:center;background-color:var(--background-color);color:var(--alt-background-color);box-shadow:0 5px 25px -5px rgba(10, 10, 10, .5);border-radius:8px;text-align:center;transition:opacity 0.125s, transform 0.125s ease-out;pointer-events:all;z-index:20}#toast:not([show]){opacity:0;transform:perspective(10px) rotateX(1deg)}@supports (backdrop-filter: blur()){#toast{background-color:rgba(100, 100, 100, .3);backdrop-filter: blur(15px)}}