body { overflow: hidden; margin: 0; background: white; display: flex; height: 100vh; } a { color: #000; transition: color .5s; } a:hover { color: #666; } img.icon { height: 1.4em; vertical-align: middle; } input:disabled + span { color: rgb(128, 128, 128); } #header, .warnings { flex: 0 0 var(--header-width); box-sizing: border-box; padding: 1rem; box-shadow: 0 0 50px -18px black; word-break: break-all; overflow-wrap: break-word; overflow-y: auto; z-index: 100; } #header { --child-gap: 1rem; } #header-contents > :nth-last-child(n + 2) { margin-bottom: var(--child-gap); } #header.meta-init-error { display: none; } #header-contents ul { margin: 0; } .warnings { display: none; padding-bottom: 0; flex-basis: auto; background: #ffe2e2; border-right: none; border-bottom: 1px dashed #aaa; } .has-warnings .warnings { display: flex; } .warning { font-weight: bold; font-size: 125%; margin-bottom: 1em; } .warning pre { overflow-wrap: break-word; white-space: pre-wrap; margin: 1ex 0 0; font-family: monospace; font-weight: normal; font-size: 80%; } h1 { margin-top: 0; display: flex; align-items: baseline; flex-wrap: wrap; } .meta-name { margin-right: .5em; } .meta-version { font-size: 0.6em; white-space: nowrap; } .meta-version::before { content: "v"; } .checkbox-wrapper { padding-left: 16px; position: relative; box-sizing: border-box; display: block; } .set-update-url p { word-break: break-all; opacity: .5; margin: .25em 0 0; } #install-wrapper { display: flex; align-items: center; flex-wrap: wrap; } #install-wrapper > :nth-last-child(n + 2) { margin-right: .5rem; } #live-reload-install-hint { color: darkcyan; } .w100 { width: 100%; } .install { background-color: hsl(0, 0%, 33%); color: #eee; border-radius: 4px; padding: 4px 38px 4px 10px; position: relative; display: inline-block; text-shadow: 1px 1px 1px #333; -webkit-appearance: none; -moz-appearance: none; border-style: none; cursor: pointer; box-shadow: inset 0 -1px 0 0 hsl(0, 0%, 24%), inset 0 1px 0 0 hsl(0, 0%, 30%), inset 1px 0 0 0 hsl(0, 0%, 24%); transition: color .25s, background-color .25s; } .install, .install:before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAeCAYAAAAGos/EAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gINFiccyZ2qfAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAb0lEQVQY012OwQ3CUAzFnNeMAfsv1hk4VDTm0H6ByMmyLL2U+lRowKobwAVFEEWbwqKIIGDXBTQqBU3VbWYk0CTLIAxNEHI1s5oAYXAYm2AIfZ64Ab1ta4s/yHv908twHB5gqf0Tvyg1l9l3efC9Dw0XRC2vHIXXAAAAAElFTkSuQmCC); background-size: 100% 100%; background-repeat: repeat-x; } .install:hover:not(:disabled) { background-color: hsl(0, 0%, 38%); color: #fff; text-shadow: none; } .install:before, .install:after { content: ""; vertical-align: middle; box-sizing: border-box; border-radius: 0 4px 4px 0; position: absolute; right: 0; top: 0; bottom: 0; width: 30px; } .install:before { border-left: 1px solid rgba(0, 0, 0, .3); box-shadow: inset 0 -1px 0 0 hsl(0, 0%, 24%), inset 0 1px 0 0 hsl(0, 0%, 30%), inset -1px 0 0 0 hsl(0, 0%, 38%); padding: 5px 8px; transition: background-color .25s; } .install:before, .install:active:before, .install:active:hover:before { background-color: hsl(176, 50%, 35%); } .install:hover:before { background-color: hsl(176, 50%, 40%); } .install:active, .install:active:before { background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAeCAYAAAAGos/EAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gINFioX6+ENuQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAc0lEQVQY003OwQ0CQQxD0edsRBX03xg9cFjBhMPuSOT0ZdmxuS/zesWTzExBI7xlZhrKeeYkmZkH1Icg3Rfs1D98v3Kgj+NSypJlpZWU0tbKKlpVCm0JSyuxPbbnqpiJ0JLr8+w9sbtGxqRFInvYbLiVGX46ECZMv8VvjwAAAABJRU5ErkJggg==); background-size: 100% 100%; background-repeat: repeat-x; } .install:active, .install:active:hover { background-color: hsl(0, 0%, 33%); } .install:after { background-image: url(../images/icon/16.png); background-repeat: no-repeat; background-position: center center; } .install:disabled { opacity: .25; color: white; cursor: auto; } .install.reinstall:after { filter: grayscale(100%); } .install.reinstall:before, .install.reinstall:active:before, .install.reinstall:active:hover:before { background-color: hsl(0, 0%, 20%); } .install.reinstall:hover:before { background-color: hsl(0, 0%, 25%); } .install.reinstall:hover:before { background-color: #444; } .install.update:before, .install.update:active:before, .install.update:active:hover:before { background-color: hsl(140, 100%, 13%); } .install.update:hover:before { background-color: hsl(140, 100%, 18%); } .install.update:after { filter: hue-rotate(-18deg) brightness(.7) contrast(2); } h2 { font-weight: bold; margin: 0; color: darkcyan; } .installed .configure-usercss svg { fill: hsl(180, 100%, 20%); } .installed .configure-usercss:hover svg { fill: hsl(180, 100%, 30%); } #header-contents > .hide-empty:empty, body:not(.installed) .install-show, .installed .install-hide { display: none !important; } .installed .install-dim { opacity: .5; } .external { text-align: center; } .external > * { margin: 0 7.5px; } li { margin-left: -2em; } .main { overflow: hidden; } .main, .main .CodeMirror { height: 100%; width: 100%; border: none; } /* spinner-related */ #header { position: relative; } #header:not(.meta-init) > *:not(.lds-spinner), #header.meta-init > .lds-spinner { -moz-user-select: none; user-select: none; pointer-events: none; opacity: 0; } #header.meta-init > * { transition: opacity .5s; } .meta-init[data-arrived-fast="true"] > * { transition-duration: .1s; } .lds-spinner { top: 50px; opacity: .2; transition: opacity .5s; animation: none; } .configure-usercss .svg-icon.config { width: 20px; height: 20px; } #message-box.config-dialog { width: 0; height: 0; background: none; } #message-box.config-dialog > div { box-shadow: 5px 5px 50px rgba(0, 0, 0, 0.75); /* copied from message-box.css + darkened the color */ } /************ reponsive layouts ************/ @media (max-width: 850px) { body { flex-direction: column; } #header { border-bottom: 1px dashed #AAA; min-height: 6rem; max-height: 40vh; resize: vertical; flex: 0 1 auto; --child-gap: .75rem; } #header:not(.meta-init) { min-height: 300px; } #header-contents { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; } #header-contents > :not(.w100) { margin-right: 1rem; } .set-update-url { display: flex; white-space: nowrap; box-sizing: border-box; } .set-update-url p { margin: 0 0 0 1rem; overflow: hidden; text-overflow: ellipsis; } .warning:not(:last-child) { border-bottom: 1px dashed #b57c7c; padding-bottom: 1em; } #header-contents h3 { margin: 0 0 .5rem; } #message-box.config-dialog > div { top: auto; bottom: 3rem; } h1 { flex-wrap: nowrap; } .meta-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .main { height: auto; flex: 1; } } @media (min-width: 850px) { #header { height: 100% !important; /* overrides user resize */ } #ss-scheme > label { display: block; } .w100-full { width: 100%; margin-top: var(--child-gap); } } /* Retina-specific stuff here */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .install:after { background-image: url(../images/icon/32.png); background-size: 16px 16px; } }