scratch-html5/player.css

242 lines
4.5 KiB
CSS
Raw Normal View History

2013-11-02 19:00:36 -04:00
body {
background: #fff;
color: #333;
margin: 0;
padding: 30px;
font-family: sans-serif;
}
/* 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.
*/
#wrapper {
width: 540px;
height: 420px;
margin:auto;
}
/* Container is the Stage */
2013-10-28 16:00:20 -04:00
#container {
border: none;
cursor: default;
width: 480px;
height: 360px;
overflow: hidden;
position: relative;
float: left;
/* Before, we accomplished this with e.preventDefault
* on the context div. But, we'd like to use those click events
* for some things like reporter sliders.
*/
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
2013-11-02 19:00:36 -04:00
/* The pane over a project with the green flag on startup. */
2013-10-28 16:00:20 -04:00
#greenSlide {
position: absolute;
float: left;
z-index: 500;
margin-left: 30px;
}
2013-11-02 19:00:36 -04:00
/* The green flag icon. */
2013-10-28 16:00:20 -04:00
#greenSlideFg {
background-color: #000;
opacity: 0.4;
width: 278px;
height: 218px;
padding-top: 142px;
padding-left: 202px;;
}
/* iPad arrow key frame */
2013-11-02 19:00:36 -04:00
/* This is the frame around the stage with various buttons. */
/* up and down are 30 + 480 + 30 pixels wide */
/* left and right are 360 pixels high */
#up {
width: 540px;
height: 30px;
clear: both;
background-color: #eee;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
#left {
float: left;
width: 30px;
height: 360px;
background-color: #eee;
}
#right {
float: left;
width: 30px;
height: 360px;
background-color: #eee;
}
#down {
width: 540px;
height: 30px;
clear: both;
background-color: #eee;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
2013-10-28 16:00:20 -04:00
/* Reporter styles */
.reporter-normal {
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;
}
.reporter-inset {
display: inline-block;
min-width: 40px;
margin-left: 5px;
padding: 1px;
border: 1px solid #fff;
border-radius: 4px;
box-shadow: inset 0 0 3px #fff;
text-align: center;
color: #fff;
}
.reporter-large {
display: inline-block;
min-width: 40px;
padding: 2px 5px 1px 5px;
border-radius: 4px;
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;
font-family: sans-serif;
font-size: 15px;
font-weight: bold;
text-align: center;
color: #fff;
position: absolute;
}
/* Say/think bubble styles */
.bubble-container {
position: absolute;
}
.bubble {
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;
}
.bubble-say {
position: absolute;
margin-top: -3px;
margin-left: 8px;
width: 44px;
height: 18px;
background: url(img/say-bottom.png) transparent no-repeat;
}
.bubble-think {
position: absolute;
margin-top: 0px;
margin-left: 8px;
width: 44px;
height: 19px;
background: url(img/think-bottom.png) transparent no-repeat;
}
2013-11-02 19:00:36 -04:00
/* Button styling */
button {
background-color: #ddd;
border-radius: 3px;
border-style: none;
cursor: pointer;
font-family: sans-serif;
width:30px;
padding: 3px;
margin:3px;
height: 24px;
}
button:hover {
background-color: #ccc;
}
#trigger_green_flag, #trigger_stop {
font-size: 20px;
width:24px;
margin:3px;
float:right;
}
#trigger_green_flag {
color:#050;
}
#trigger_stop {
color:#F33;
margin-right: 30px;
}
#clearer {
clear:both;
}
input[type=text] {
border-style: none;
border-radius: 4px;
font-family: sans-serif;
background-color: #ddd;
font-size: 14px;
padding:3px;
height:18px;
margin:3px;
margin-left: 30px;
}
input[type=text]:focus {
outline:none;
background-color: #ccc;
}
#info {
float:left;
margin-left: 30px;
height:24px;
padding:3px;
color:#aaa;
font-size:12px;
}