Hide horizontal scrollbar

This "fixes" issue #91
This commit is contained in:
Qwerty-Space 2018-06-10 19:33:08 +01:00 committed by GitHub
parent d922667f56
commit 9a507219cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 82 additions and 81 deletions

View File

@ -1,133 +1,134 @@
body { body {
background: #002B36; background: #002B36;
padding: 20px 50px; padding: 20px 50px;
margin: 0px; margin: 0px;
overflow-x: hidden;
} }
/* textarea */ /* textarea */
textarea { textarea {
background: transparent; background: transparent;
border: 0px; border: 0px;
color: #fff; color: #fff;
padding: 0px; padding: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
font-family: monospace; font-family: monospace;
outline: none; outline: none;
resize: none; resize: none;
font-size: 13px; font-size: 13px;
} }
/* the line numbers */ /* the line numbers */
#linenos { #linenos {
color: #7d7d7d; color: #7d7d7d;
z-index: -1000; z-index: -1000;
position: absolute; position: absolute;
top: 20px; top: 20px;
left: 0px; left: 0px;
width: 30px; /* 30 to get 20 away from box */ width: 30px; /* 30 to get 20 away from box */
font-size: 13px; font-size: 13px;
font-family: monospace; font-family: monospace;
text-align: right; text-align: right;
} }
/* code box when locked */ /* code box when locked */
#box { #box {
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
width: 100%; width: 100%;
border: 0px; border: 0px;
outline: none; outline: none;
font-size: 13px; font-size: 13px;
padding-right: 360px; padding-right: 360px;
overflow: inherit; overflow: inherit;
} }
#box code { #box code {
padding: 0px; padding: 0px;
background: transparent !important; /* don't hide hastebox */ background: transparent !important; /* don't hide hastebox */
} }
/* key */ /* key */
#key { #key {
position: fixed; position: fixed;
top: 0px; top: 0px;
right: 0px; right: 0px;
z-index: +1000; /* watch out */ z-index: +1000; /* watch out */
} }
#box1 { #box1 {
padding: 5px; padding: 5px;
text-align: center; text-align: center;
background: #00222b; background: #00222b;
} }
#box2 { #box2 {
background: #08323c; background: #08323c;
font-size: 0px; font-size: 0px;
padding: 0px 5px; padding: 0px 5px;
} }
#box1 a.logo, #box1 a.logo:visited { #box1 a.logo, #box1 a.logo:visited {
display: inline-block; display: inline-block;
background: url(logo.png); background: url(logo.png);
width: 126px; width: 126px;
height: 42px; height: 42px;
} }
#box1 a.logo:hover { #box1 a.logo:hover {
background-position: 0 bottom; background-position: 0 bottom;
} }
#box2 .function { #box2 .function {
background: url(function-icons.png); background: url(function-icons.png);
width: 32px; width: 32px;
height: 37px; height: 37px;
display: inline-block; display: inline-block;
position: relative; position: relative;
} }
#box2 .link embed { #box2 .link embed {
vertical-align: bottom; /* fix for zeroClipboard style */ vertical-align: bottom; /* fix for zeroClipboard style */
} }
#box2 .function.enabled:hover { #box2 .function.enabled:hover {
cursor: hand; cursor: hand;
cursor: pointer; cursor: pointer;
} }
#pointer { #pointer {
display: block; display: block;
height: 5px; height: 5px;
width: 10px; width: 10px;
background: url(hover-dropdown-tip.png); background: url(hover-dropdown-tip.png);
bottom: 0px; bottom: 0px;
position: absolute; position: absolute;
margin: auto; margin: auto;
left: 0px; left: 0px;
right: 0px; right: 0px;
} }
#box3, #messages li { #box3, #messages li {
background: #173e48; background: #173e48;
font-family: Helvetica, sans-serif; font-family: Helvetica, sans-serif;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
padding: 10px 15px; padding: 10px 15px;
} }
#box3 .label, #messages li { #box3 .label, #messages li {
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
} }
#box3 .shortcut { #box3 .shortcut {
color: #c4dce3; color: #c4dce3;
font-weight: normal; font-weight: normal;
} }
#box2 .function.save { background-position: -5px top; } #box2 .function.save { background-position: -5px top; }
@ -152,21 +153,21 @@ textarea {
#box2 .button-picture{ border-width: 0; font-size: inherit; } #box2 .button-picture{ border-width: 0; font-size: inherit; }
#messages { #messages {
position:fixed; position:fixed;
top:0px; top:0px;
right:138px; right:138px;
margin:0; margin:0;
padding:0; padding:0;
width:400px; width:400px;
} }
#messages li { #messages li {
background:rgba(23,62,72,0.8); background:rgba(23,62,72,0.8);
margin:0 auto; margin:0 auto;
list-style:none; list-style:none;
} }
#messages li.error { #messages li.error {
background:rgba(102,8,0,0.8); background:rgba(102,8,0,0.8);
} }