235 lines
6.1 KiB
CSS
235 lines
6.1 KiB
CSS
/* App layout */
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
display: flex;
|
|
flex-flow: column;
|
|
color: #fff;
|
|
font: normal 14px Roboto, sans-serif;
|
|
background-color: #282a36;
|
|
}
|
|
* {
|
|
font-variant-ligatures: none;
|
|
}
|
|
|
|
#editor {
|
|
flex-grow: 1;
|
|
margin-top: -3px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#controls,
|
|
#copy,
|
|
footer {
|
|
background-color: #3b3b47;
|
|
z-index: 10;
|
|
}
|
|
|
|
#progress {
|
|
min-height: 3px;
|
|
background: #ff79c6;
|
|
z-index: 15;
|
|
width: 0;
|
|
}
|
|
|
|
.hidden,
|
|
select,
|
|
#copy:not(.hidden) + #controls,
|
|
body.readonly .hide-readonly,
|
|
body:not(.readonly) .show-readonly,
|
|
body.readonly:not(:hover) #footer {
|
|
display: none;
|
|
}
|
|
|
|
#copy-link {
|
|
font-family: JetBrainsMono, sans-serif;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Styling */
|
|
.shadow-bottom {
|
|
box-shadow: rgba(0, 0, 0, 0.15) 0 3px 10px;
|
|
}
|
|
.shadow-top {
|
|
box-shadow: rgba(0, 0, 0, 0.15) 0 -3px 10px;
|
|
}
|
|
a,
|
|
a:hover,
|
|
a:active,
|
|
a:focus {
|
|
color: #fff;
|
|
outline: none;
|
|
}
|
|
#controls a,
|
|
#footer a {
|
|
text-decoration: none;
|
|
}
|
|
#controls a:hover {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.CodeMirror {
|
|
height: 100%;
|
|
font-family: JetBrainsMono, sans-serif;
|
|
}
|
|
h1 {
|
|
font: normal 24px JetBrainsMono, sans-serif;
|
|
white-space: nowrap;
|
|
}
|
|
.mono {
|
|
font-family: JetBrainsMono, sans-serif;
|
|
}
|
|
.pink {
|
|
color: #ff79c6;
|
|
}
|
|
|
|
/* Modals */
|
|
|
|
.modal {
|
|
display: none;
|
|
}
|
|
.modal.is-open {
|
|
display: block;
|
|
}
|
|
.modal-content {
|
|
background-color: #3b3b47;
|
|
max-width: 600px;
|
|
max-height: 100vh;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
cursor: initial;
|
|
position: relative;
|
|
}
|
|
.modal-content .additional-info {
|
|
opacity: 0.75;
|
|
font-style: italic;
|
|
margin-top: 15px;
|
|
font-size: 0.95em;
|
|
}
|
|
.modal-overlay {
|
|
position: fixed;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
right: 0;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
.modal-close {
|
|
cursor: pointer;
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 8px;
|
|
}
|
|
|
|
/* Form elements */
|
|
|
|
#controls .ss-main {
|
|
width: 180px;
|
|
}
|
|
|
|
.ss-main .ss-single-selected,
|
|
button,
|
|
input[type='text'],
|
|
input[type='search'] {
|
|
background-color: #3b3b47 !important;
|
|
color: #fff !important;
|
|
border-radius: 2px !important;
|
|
border: 1px solid #ccc !important;
|
|
font: normal 14px Roboto, sans-serif;
|
|
height: 26px !important;
|
|
}
|
|
|
|
input::-webkit-search-cancel-button {
|
|
display: none;
|
|
}
|
|
input::-moz-selection {
|
|
background-color: rgba(90, 95, 128, 0.99);
|
|
}
|
|
input::selection {
|
|
background-color: rgba(90, 95, 128, 0.99);
|
|
}
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
button:hover {
|
|
background-color: rgba(255, 255, 255, 0.1) !important;
|
|
}
|
|
.ss-content {
|
|
background-color: #282936;
|
|
color: #dedede;
|
|
font-size: 14px;
|
|
}
|
|
.ss-content .ss-disabled {
|
|
background-color: #3b3b47 !important;
|
|
}
|
|
|
|
/* Fonts */
|
|
@font-face {
|
|
font-family: 'JetBrainsMono';
|
|
/* https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono@2.242/fonts/webfonts/JetBrainsMono-Regular.woff2 */
|
|
src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Roboto';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
/* https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2 */
|
|
src: local('Roboto'), local('Roboto-Regular'), url('fonts/roboto-v20.woff2') format('woff2');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
|
|
U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
/* Icons */
|
|
|
|
@font-face {
|
|
font-family: 'icomoon';
|
|
/* Can be updated using the JSON data from https://github.com/bokub/nopaste/issues/11 */
|
|
src: url('data:application/x-font-woff;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBccAAAC8AAAAYGNtYXAXVtKKAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZkmZnrUAAAF4AAABVGhlYWQhhmIeAAACzAAAADZoaGVhB0IDyQAAAwQAAAAkaG10eBYAAoAAAAMoAAAAIGxvY2EBLgDcAAADSAAAABJtYXhwAAwAIwAAA1wAAAAgbmFtZZlKCfsAAAN8AAABhnBvc3QAAwAAAAAFBAAAACAAAwOaAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAwPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QP//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAA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ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=')
|
|
format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
[class^='icon-'],
|
|
[class*=' icon-'] {
|
|
font-family: 'icomoon' !important;
|
|
speak: none;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-variant: normal;
|
|
text-transform: none;
|
|
line-height: 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
font-size: 21px;
|
|
}
|
|
.icon-edit {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.icon-close:before {
|
|
content: '\e900';
|
|
}
|
|
.icon-edit:before {
|
|
content: '\e901';
|
|
}
|
|
.icon-wrap-text:before {
|
|
content: '\e902';
|
|
}
|
|
.icon-notes:before {
|
|
content: '\e903';
|
|
}
|