scratch-html5/player.css

303 lines
5.5 KiB
CSS
Raw Normal View History

2013-11-02 19:00:36 -04:00
body {
2013-11-03 21:46:05 -05:00
background: #fff;
color: #333;
margin: 0;
padding: 30px;
font-family: sans-serif;
2013-11-02 19:00:36 -04:00
}
/* Wrapper wraps the entire player, and the text below and above. Ideally,
all CSS selectors would be descendants of #wrapper so that the player
is embeddable.
*/
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#wrapper {
2013-11-03 21:46:05 -05:00
width: 540px;
height: 420px;
margin: auto;
2013-11-02 19:00:36 -04:00
}
/* Container is the Stage */
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
#container {
2013-11-03 21:46:05 -05:00
border: none;
cursor: default;
width: 480px;
height: 360px;
overflow: hidden;
position: relative;
float: left;
/* Before, we accomplished this with e.preventDefault
2013-10-28 16:00:20 -04:00
* on the context div. But, we'd like to use those click events
* for some things like reporter sliders.
*/
2013-11-03 21:46:05 -05:00
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2013-10-28 16:00:20 -04:00
}
2013-11-02 19:00:36 -04:00
/* The pane over a project with the green flag on startup. */
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
#greenSlide {
2013-11-03 21:46:05 -05:00
position: absolute;
float: left;
z-index: 500;
/* Hmm, will this break after the 501st sprite? */
margin-left: 30px;
2013-10-28 16:00:20 -04:00
}
2013-11-02 19:00:36 -04:00
/* The green flag icon. */
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
#greenSlideFg {
2013-11-03 21:46:05 -05:00
background-color: #000;
opacity: 0.2;
width: 278px;
height: 218px;
padding-top: 142px;
padding-left: 202px;
2013-10-28 16:00:20 -04:00
}
/* iPad arrow key frame */
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
/* This is the frame around the stage with various buttons. */
2013-11-03 21:46:05 -05:00
2013-11-02 19:32:58 -04:00
#ui-top {
2013-11-03 21:46:05 -05:00
width: 540px;
height: 30px;
clear: both;
background-color: #eee;
2013-11-02 19:32:58 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#up {
2013-11-03 21:46:05 -05:00
padding-top: 10px;
width: 540px;
height: 30px;
clear: both;
background-color: #eee;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
text-align: center;
color: #ccc;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#left {
2013-11-03 21:46:05 -05:00
float: left;
width: 30px;
height: 360px;
background-color: #eee;
line-height: 360px;
color: #ccc;
text-align: center;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#right {
2013-11-03 21:46:05 -05:00
float: left;
width: 30px;
height: 360px;
background-color: #eee;
line-height: 360px;
color: #ccc;
text-align: center;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#down {
2013-11-03 21:46:05 -05:00
padding-top: 10px;
width: 540px;
height: 30px;
background-color: #eee;
text-align: center;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
color: #ccc;
2013-11-02 19:32:58 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:32:58 -04:00
#ui-bottom {
2013-11-03 21:46:05 -05:00
width: 480px;
height: 30px;
background-color: #eee;
padding-left: 30px;
padding-right: 30px;
clear: both;
text-align: right;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
/* Reporter styles */
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
.reporter-normal {
2013-11-03 21:46:05 -05:00
display: inline-block;
padding: 2px 5px 2px 5px;
background-color: rgb(193, 196, 199);
border: 1px solid rgb(130, 126, 126);
border-radius: 4px;
font-family: sans-serif;
font-size: 11px;
font-weight: bold;
color: #000;
position: absolute;
2013-10-28 16:00:20 -04:00
}
.reporter-inset {
2013-11-03 21:46:05 -05:00
display: inline-block;
min-width: 40px;
margin-left: 5px;
padding: 1px;
border: 1px solid #fff;
border-radius: 4px;
-webkit-box-shadow: inset 0 0 3px #fff;
box-shadow: inset 0 0 3px #fff;
text-align: center;
color: #fff;
2013-10-28 16:00:20 -04:00
}
.reporter-large {
2013-11-03 21:46:05 -05:00
display: inline-block;
min-width: 40px;
padding: 2px 5px 1px 5px;
border-radius: 4px;
-webkit-box-shadow: 0 -3px 3px -3px #fff inset, -3px 0 3px -3px #fff inset,
0 3px 3px -3px #000 inset, 3px 0 3px -3px #000 inset;
box-shadow: 0 -3px 3px -3px #fff inset, -3px 0 3px -3px #fff inset,
2013-10-28 16:00:20 -04:00
0 3px 3px -3px #000 inset, 3px 0 3px -3px #000 inset;
2013-11-03 21:46:05 -05:00
font-family: sans-serif;
font-size: 15px;
font-weight: bold;
text-align: center;
color: #fff;
position: absolute;
2013-10-28 16:00:20 -04:00
}
/* Say/think bubble styles */
2013-11-03 21:46:05 -05:00
2013-10-28 16:00:20 -04:00
.bubble-container {
2013-11-03 21:46:05 -05:00
position: absolute;
2013-10-28 16:00:20 -04:00
}
.bubble {
2013-11-03 21:46:05 -05:00
position: relative;
display: inline-block;
max-width: 120px;
min-width: 40px;
padding: 6px 11px 6px 11px;
border: 3px solid rgb(160, 160, 160);
border-radius: 10px;
background: #fff;
font-family: sans-serif;
font-weight: bold;
font-size: 14px;
color: #000;
text-align: center;
2013-10-28 16:00:20 -04:00
}
.bubble-say {
2013-11-03 21:46:05 -05:00
position: absolute;
margin-top: -3px;
margin-left: 8px;
width: 44px;
height: 18px;
background: url(img/say-bottom.png) transparent no-repeat;
2013-10-28 16:00:20 -04:00
}
.bubble-think {
2013-11-03 21:46:05 -05:00
position: absolute;
margin-top: 0px;
margin-left: 8px;
width: 44px;
height: 19px;
background: url(img/think-bottom.png) transparent no-repeat;
2013-10-28 16:00:20 -04:00
}
2013-11-02 19:00:36 -04:00
2013-11-03 20:57:46 -05:00
#info {
2013-11-03 21:46:05 -05:00
float: left;
margin-left: 30px;
height: 24px;
padding: 3px;
color: #aaa;
font-size: 12px;
2013-11-03 20:57:46 -05:00
}
2013-11-02 19:00:36 -04:00
/* Button styling */
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
button {
2013-11-03 21:46:05 -05:00
background-color: #ddd;
border-radius: 3px;
cursor: pointer;
border-style: none;
font-family: sans-serif;
width: 24px;
padding: 3px;
margin: 3px;
margin-top: 0px;
height: 24px;
background: -webkit-gradient(linear, top left, bottom left, from(#ddd), to(#ccc));
background: -webkit-linear-gradient(#ddd, #ccc);
background: linear-gradient(#ddd, #ccc);
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
button:hover {
2013-11-03 21:46:05 -05:00
background-color: #ccc;
background: -webkit-gradient(linear, top left, bottom left, from(#ccc), to(#bbb));
background: -webkit-linear-gradient(#ccc, #bbb);
background: linear-gradient(#ccc, #bbb);
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
#trigger_green_flag,
#trigger_stop {
padding-top: 0px;
font-size: 20px;
width: 24px;
margin: 3px;
float: right;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#trigger_green_flag {
2013-11-03 21:46:05 -05:00
color: #050;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#trigger_stop {
2013-11-03 21:46:05 -05:00
color: #F33;
margin-right: 30px;
margin-left: 0px;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
#clearer {
2013-11-03 21:46:05 -05:00
clear: both;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
input[type=text] {
2013-11-03 21:46:05 -05:00
display: inline-block;
border-style: none;
border-radius: 4px;
font-family: sans-serif;
background-color: #ddd;
font-size: 14px;
padding: 3px;
height: 18px;
margin: 3px;
width: 100px;
2013-11-02 19:00:36 -04:00
}
2013-11-03 21:46:05 -05:00
2013-11-02 19:00:36 -04:00
input[type=text]:focus {
2013-11-03 21:46:05 -05:00
outline: none;
background-color: #ccc;
2013-11-02 19:00:36 -04:00
}
2013-11-03 20:57:46 -05:00
#project_id {
2013-11-03 21:46:05 -05:00
text-align: center;
2013-11-03 20:57:46 -05:00
}
#address-hint {
2013-11-03 21:46:05 -05:00
font-size: 12px;
2013-11-03 20:57:46 -05:00
}
2013-11-03 21:46:05 -05:00
2013-11-03 20:57:46 -05:00
#go_project {
2013-11-03 21:46:05 -05:00
display: table-cell;
height: 24px;
padding: 0px;
margin-right: 0px;
margin-left: 0px;
margin-top: 3px;
margin-bottom: 0px;
2013-11-02 19:00:36 -04:00
}