jsbin/css/style.css

451 lines
6.2 KiB
CSS

body {
margin: 0;
padding: 0;
font-family: "Helvetica Neue";
font-size: 13px;
min-width: 976px;
overflow: hidden;
background: url(/images/jsbin-bg.gif) repeat-x top left;
}
p {
margin: 0;
}
#control {
height: 61px;
position: relative;
width: 100%;
}
.control, .help, .starting {
width: 100px;
padding: 15px;
float: left;
}
.control, .starting {
width: 30%;
}
.control {
padding-right: 0;
width: 33%;
}
.starting {
text-align: center;
}
.help {
width: 250px;
text-align: right;
float: right;
}
.help a {
outline: 0;
}
.starting, .help {
line-height: 32px;
}
ul.flat {
margin: 0;
padding: 0;
}
ul.flat li {
float: left;
display: block;
list-style: none;
margin: 0 0 0 15px;
padding: 0;
}
.help ul.flat {
float: right;
}
#control > *, a {
color: #232323;
text-shadow: #fff 1px 1px 1px;
}
a {
font-weight: bold;
}
a:hover {
text-shadow: #fff -1px -1px 3px;
}
.light {
font-weight: normal;
text-decoration: none;
}
.stretch {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#bin {
top: 62px;
width: 100%;
}
div.html {
left: 50%;
}
/*.mozilla #bin div.html {
margin-left: -2px;
}
.mozilla #bin.javascript div.javascript,
.mozilla #bin div.html {
border: 1px solid #0080FF;
}
#bin.javascript div.html,
#bin div.javascript {
border: 0;
}
*/
div.code {
width: 50%;
}
div.preview {
display: none;
width: 100%;
}
.code .label {
padding: 10px;
margin: 0 10px;
padding-right: 0;
margin-left: 1px;
position: absolute;
z-index: 10;
}
.code .label p {
/* display: inline;*/
font-weight: bold;
cursor: pointer;
}
.code .label label {
margin-top: 10px;
}
.code .label p span {
opacity: 0;
filter:alpha(opacity=0);
-webkit-transition: opacity 250ms linear;
-moz-transition: opacity 250ms linear;
}
.html .label p span {
display: none;
}
.html-only .html .label p span {
display: inline;
}
.code .label p:hover span {
opacity: 1;
filter:alpha(opacity=1);
}
#library {
padding: 2px;
width: 110px;
}
iframe.javascript {
border-right: 1px solid #ccc !important;
}
.buttons {
float: left;
display: block;
margin-right: 10px;
}
a.button {
border: 1px solid #ccc;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
height: 12px;
line-height: 12px;
padding: 10px;
display: block;
float: left;
text-decoration: none;
margin: 0px 5px;
background: #fff;
background: rgba(255, 255, 255, 0.3);
}
.button:hover {
-moz-box-shadow: #fff 0px 0px 5px;
-webkit-box-shadow: #fff 0px 0px 5px;
background: rgba(0, 0, 0, 0.05);
}
.button:active, .button:focus {
-moz-box-shadow: #C8C8C8 0px 0px 3px;
-webkit-box-shadow: #C8C8C8 0px 0px 3px;
border-color: #fff;
outline: 0;
text-shadow: none;
}
body.source a.source,
body.preview a.preview {
background: #000;
background: rgba(0, 0, 0, 0.25);
text-shadow: none;
border: 1px solid #ccc;
-moz-box-shadow: #fff 0px 0px 5px;
-webkit-box-shadow: #fff 0px 0px 5px;
background-image:
-webkit-gradient(
radial,
center center,
0,
center center,
50,
color-stop(0, #BFBFBF),
color-stop(1, #949494)
);
}
#preview iframe {
height: 100%;
width: 100%;
border: 0;
}
body.source #preview {
display: none;
}
body.preview #source {
opacity: 0;
filter:alpha(opacity=0);
}
body.preview #preview,
body.source #source {
display: block;
}
body.preview #source select {
display: none;
}
.overlay {
z-index: 98;
background: #000;
background: rgba(255, 255, 255, 0.3);
}
.html-only div.javascript {
left: -50%;
display: none;
}
.html-only div.html {
left: 0%;
width: 100%;
}
/* lightbox */
.lightboxWrapper {
position: absolute;
top: 0;
height: 100%;
left: 0;
width: 100%;
}
.overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 11;
}
.overlay {
opacity: 0.5;
-moz-opacity: 0.5;
filter:alpha(opacity=50);
background: #fff;
}
.lightbox {
position: relative;
width: 600px;
z-index: 12;
border: 10px solid #ccc;
margin: 0 auto;
overflow-y: auto;
overflow-x: hidden;
background: #fff;
-moz-box-shadow: #666 0px 0px 5px;
-webkit-box-shadow: #666 0px 0px 5px;
box-shadow: #666 0px 0px 5px;
top: 75px;
width: 80%;
max-height: 65%;
}
.lightbox h1 {
margin: 0;
background: #000;
padding: 20px;
color: #fff;
position: relative;
/* width: 100%;*/
}
.lightbox p,
.lightbox h2,
.lightbox h3 {
margin: 14px 20px;
}
.lightbox p,
.lightbox li {
font-size: 16px;
}
.lightbox li {
margin: 8px 0;
}
.video {
padding-left: 20px;
background: url(/images/play.gif) no-repeat left center;
}
#info {
display: inline-block;
background: url(/images/info.gif) no-repeat bottom left;
color: #fff;
font-weight: bold;
font-style: italic;
font-family: georgia;
font-size: 10px;
height: 14px;
line-height: 14px;
width: 14px;
text-align: center;
text-shadow: none;
}
#info:hover {
background: url(/images/info.gif) no-repeat top left;
}
#startingpoint {
outline: 0;
}
textarea {
opacity: 0;
-moz-opacity: 0;
filter:alpha(opacity=0);
}
/* tab based help pages */
#navigation {
margin: 0;
float: left;
display: block;
width: 200px;
padding-left: 0px;
list-style: none;
}
#navigation li {
margin: 1px 0;
}
#navigation a {
background: #A2B2CC;
display: block;
color: #fff;
text-decoration: none;
padding: 10px;
margin: 1px 0;
text-shadow: none;
}
#navigation a:hover,
#navigation a.selected:hover {
background: #89C;
font-weight: bold;
}
#navigation a:active {
border: 2px solid #647ECC;
padding: 8px;
}
#navigation a.selected {
background: #768BCC;
font-weight: bold;
}
.panels {
margin-left: 210px;
}
.panels li {
margin: 14px 0;
}
.panels code {
font-size: 16px;
}
/* hud - apply style hud */
.hud {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99;
background: url(/images/op7.png) repeat;
}
.hud .outercontainer {
background: #1B1B1B;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
color: #fff;
position: relative;
}
.hud .title {
text-align: center;
text-shadow: #000 1px 1px 1px;
background: #454645;
}