mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 11:31:22 +00:00
163 lines
No EOL
2.2 KiB
CSS
163 lines
No EOL
2.2 KiB
CSS
body {
|
|
background: #263238;
|
|
padding: 0 0 80px;
|
|
margin: 0;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
/* textarea */
|
|
|
|
textarea {
|
|
background: transparent;
|
|
border: 0px;
|
|
color: #fff;
|
|
padding: 0px;
|
|
width: 100%;
|
|
height: 100%;
|
|
font-family: monospace;
|
|
outline: none;
|
|
resize: none;
|
|
font-size: 13px;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.logo a:hover svg path {
|
|
fill: #fff;
|
|
}
|
|
|
|
/* the line numbers */
|
|
|
|
#linenos {
|
|
color: #7d7d7d;
|
|
z-index: -1000;
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 0px;
|
|
width: 30px; /* 30 to get 20 away from box */
|
|
font-size: 13px;
|
|
font-family: monospace;
|
|
text-align: right;
|
|
user-select: none;
|
|
}
|
|
|
|
/* code box when locked */
|
|
|
|
#box {
|
|
padding: 0px;
|
|
margin: 0px;
|
|
width: 100%;
|
|
border: 0px;
|
|
outline: none;
|
|
font-size: 13px;
|
|
overflow: inherit;
|
|
}
|
|
|
|
#box.hljs {
|
|
background: transparent;
|
|
}
|
|
|
|
#box code {
|
|
padding: 0px;
|
|
background: transparent !important; /* don't hide hastebox */
|
|
}
|
|
|
|
/* key */
|
|
|
|
#key {
|
|
position: fixed;
|
|
bottom: 0px;
|
|
left: 0;
|
|
right: 0px;
|
|
z-index: +1000; /* watch out */
|
|
}
|
|
|
|
button {
|
|
font-size: 14px;
|
|
color: #929EA4;
|
|
background: transparent;
|
|
outline: none;
|
|
border: none;
|
|
padding: 4px 10px;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
button.enabled {
|
|
color: #FFF;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button-wrap .label {
|
|
display: none;
|
|
position: absolute;
|
|
top: -36px;
|
|
left: 50%;
|
|
margin-left: -46px;
|
|
text-align: center;
|
|
background: #15191b;
|
|
color: #fff;
|
|
padding: 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
width: 76px;
|
|
}
|
|
|
|
.button-wrap .label.label--small {
|
|
margin-left: -30px;
|
|
width: 44px;
|
|
}
|
|
|
|
.button-wrap:hover .label {
|
|
display: block;
|
|
}
|
|
|
|
.menu {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #263238;
|
|
}
|
|
|
|
.menu-actions {
|
|
display: flex;
|
|
}
|
|
|
|
#messages {
|
|
position: fixed;
|
|
top: 0px;
|
|
right: 138px;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 400px;
|
|
}
|
|
|
|
#messages li {
|
|
background: rgba(23,62,72,0.8);
|
|
margin: 0 auto;
|
|
list-style: none;
|
|
}
|
|
|
|
#messages li.error {
|
|
background: rgba(102,8,0,0.8);
|
|
}
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
.logo, .label {
|
|
display: none !important;
|
|
}
|
|
.menu {
|
|
padding: 24px 12px !important;
|
|
}
|
|
.menu-actions {
|
|
width: 100%;
|
|
}
|
|
.menu-actions button {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
.menu-actions .button-wrap {
|
|
flex: auto;
|
|
text-align: center;
|
|
}
|
|
} |