scratch-html5/player.css

478 lines
11 KiB
CSS
Raw Normal View History

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.
*/
#player-container {
2013-11-03 22:30:34 -05:00
position: relative;
width: 482px;
padding: 48px;
margin: 0 auto;
font-family: sans-serif;
2013-11-03 22:30:34 -05:00
/* 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 22:30:34 -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
}
/* Control bar above the stage */
#player-header {
width: 480px;
height: 38px;
position: relative;
2013-11-14 20:21:04 -05:00
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e6e6e6));
background: -webkit-linear-gradient(#fff, #e6e6e6);
background: -moz-linear-gradient(#fff, #e6e6e6);
background: -ms-linear-gradient(#fff, #e6e6e6);
background: -o-linear-gradient(#fff, #e6e6e6);
background: linear-gradient(#fff, #e6e6e6);
border: 1px solid #d1d1d1;
border-bottom: 0;
border-radius: 7px 7px 0 0;
}
/* Button styling */
#player-header button {
border: 0;
background: center center no-repeat;
width: 33px;
height: 38px;
float: right;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#player-header-preload {
width: 1px;
height: 1px;
2013-11-03 22:30:34 -05:00
position: absolute;
top: -1px;
left: -1px;
background: url(img/fullScreenOn.png), url(img/greenFlagOn.png), url(img/stopOn.png);
}
button#toggle-fullscreen {
background-image: url(img/fullScreenOff.png);
background-position: 10px 8px;
width: 40px;
position: absolute;
top: 0;
left: 0;
2013-10-28 16:00:20 -04:00
}
button#trigger-green-flag {
background-image: url(img/greenFlagOff.png);
2013-10-28 16:00:20 -04:00
}
button#trigger-green-flag:hover {
background-image: url(img/greenFlagOn.png);
2013-11-02 19:32:58 -04:00
}
button#trigger-stop {
background-image: url(img/stopOff.png);
}
button#trigger-stop:hover {
background-image: url(img/stopOn.png);
}
/* Version number */
#player-header-version {
position: absolute;
top: 28px;
left: 0;
width: 45px;
2013-11-03 22:30:34 -05:00
text-align: center;
color: rgba(0, 0, 0, .4);
font: 9px sans-serif;
2013-11-02 19:00:36 -04:00
}
/* Wrapper for the Stage */
#player-content {
position: relative;
border: 1px solid #d1d1d1;
border-top: 0;
width: 480px;
2013-11-03 22:30:34 -05:00
height: 360px;
2013-11-02 19:00:36 -04:00
}
/* The Stage */
#container {
position: absolute;
top: 0;
left: 0;
width: 480px;
height: 360px;
cursor: default;
overflow: hidden;
}
/* Pane over the Stage with the green flag on startup */
#overlay {
position: absolute;
top: 0;
left: 0;
width: 480px;
2013-11-03 22:30:34 -05:00
height: 360px;
z-index: 10000;
background: url(img/playerStartFlag.png) rgba(0, 0, 0, .26) center center no-repeat;
}
/* Preloader */
#preloader {
position: absolute;
z-index: 10001;
top: 50%;
left: 50%;
margin-left: -156px;
margin-top: -61px;
width: 309px;
height: 119px;
border: 1px solid rgb(208, 209, 210);
background: #fff;
border-radius: 12px;
2013-11-14 20:21:04 -05:00
-webkit-box-shadow: 4px 4px 6px rgba(0, 0, 0, .5);
box-shadow: 4px 4px 6px rgba(0, 0, 0, .5);
cursor: default;
}
#preloader-progress {
margin: 24px 30px 14px 29px;
background: rgb(185, 187, 189);
border-radius: 5px;
height: 22px;
}
#preloader-progress-bar {
height: 22px;
background: rgb(0, 161, 216);
border-radius: 5px;
width: 0;
}
#preloader-caption,
#preloader-details {
margin: 14px 0 0 8px;
2013-11-03 22:30:34 -05:00
text-align: center;
font-size: 18px;
color: rgba(0, 0, 0, .65);
2013-11-02 19:00:36 -04:00
}
#preloader-details {
margin: 6px 0 0 4px;
font-size: 12px;
}
/* iPad arrow key frame */
.arrow {
position: absolute;
top: 0;
left: 0;
width: 578px;
height: 400px;
2013-11-03 22:30:34 -05:00
text-align: center;
font: 24px/48px sans-serif;
color: rgba(0, 0, 0, .2);
cursor: default;
2013-11-02 19:32:58 -04:00
}
.arrow.vertical {
height: 48px;
2013-11-02 19:00:36 -04:00
}
.arrow.horizontal {
width: 48px;
top: 48px;
line-height: 400px;
}
#right {
left: 530px;
}
#down {
top: 448px;
}
#up::before {
content: '\25b2';
}
#down::before {
content: '\25bc';
}
#left::before {
content: '\25c0';
}
#right::before {
content: '\25b6';
}
/* Panel for project ID input */
#project-picker {
margin: 16px 0;
text-align: center;
font-size: 16px;
line-height: 18px;
}
#project-id {
border: 1px solid #aaa;
-webkit-border-radius: 0;
padding: 6px;
-webkit-box-shadow: inset 3px 3px 3px -3px rgba(0, 0, 0, .3);
box-shadow: inset 3px 3px 3px -3px rgba(0, 0, 0, .3);
background: 0;
margin: 0;
font: inherit;
width: 6em;
position: relative;
}
#project-id.error {
background: #fee;
2013-11-14 20:21:04 -05:00
-webkit-box-shadow: inset 3px 3px 3px -3px rgba(100, 0, 0, .3);
box-shadow: inset 3px 3px 3px -3px rgba(100, 0, 0, .3);
}
#project-id:focus {
z-index: 1;
}
#address-hint {
padding-left: 6px;
2013-12-19 15:17:07 -05:00
vertical-align: middle;
}
#go-project {
padding: 6px;
margin: 0;
border: 1px solid #aaa;
border-left: 0;
font: inherit;
2013-11-14 20:21:04 -05:00
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
background: -webkit-linear-gradient(#fff, #ddd);
background: -moz-linear-gradient(#fff, #ddd);
background: -ms-linear-gradient(#fff, #ddd);
background: -o-linear-gradient(#fff, #ddd);
background: linear-gradient(#fff, #ddd);
2013-11-14 20:21:04 -05:00
-webkit-box-shadow: inset 0 -1px rgba(255, 255, 255, .2);
box-shadow: inset 0 -1px rgba(255, 255, 255, .2);
cursor: pointer;
position: relative;
}
#go-project:active {
2013-11-14 20:21:04 -05:00
background: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#eee));
background: -webkit-linear-gradient(#ddd, #eee);
background: -moz-linear-gradient(#ddd, #eee);
background: -ms-linear-gradient(#ddd, #eee);
background: -o-linear-gradient(#ddd, #eee);
background: linear-gradient(#ddd, #eee);
2013-11-14 20:21:04 -05:00
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, .3), inset 0 2px 5px rgba(0, 0, 0, .1);
box-shadow: inset 0 1px rgba(255, 255, 255, .3), inset 0 2px 5px rgba(0, 0, 0, .1);
}
#project-id,
#go-project {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 18px;
vertical-align: middle;
}
#go-project::-moz-focus-inner {
border: 0;
padding: 0;
}
2013-10-28 16:00:20 -04:00
/* Reporter styles */
.reporter-normal {
2013-11-03 22:30:34 -05:00
display: inline-block;
padding: 2px 7px 3px 5px;
2013-11-03 22:30:34 -05:00
background-color: rgb(193, 196, 199);
border: 1px solid rgb(148, 145, 145);
border-radius: 6px;
font: bold 11px/15px sans-serif;
2013-11-03 22:30:34 -05:00
color: #000;
position: absolute;
2013-10-28 16:00:20 -04:00
}
.reporter-inset {
2013-11-03 22:30:34 -05:00
display: inline-block;
vertical-align: top;
min-width: 38px;
margin-left: 6px;
2013-11-03 22:30:34 -05:00
padding: 1px;
border: 1px solid #fff;
border-radius: 6px;
-webkit-box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.7), inset 1px 1px 2px rgba(0, 0, 0, 0.35);
box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.7), inset 1px 1px 2px rgba(0, 0, 0, 0.35);
2013-11-03 22:30:34 -05:00
text-align: center;
font: bold 9px/11px sans-serif;
height: 11px;
2013-11-03 22:30:34 -05:00
color: #fff;
2013-10-28 16:00:20 -04:00
}
.reporter-large {
2013-11-03 22:30:34 -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, 0 3px 3px -3px #000 inset, 3px 0 3px -3px #000 inset;
font-family: bold 15px sans-serif;
2013-11-03 22:30:34 -05:00
text-align: center;
color: #fff;
position: absolute;
2013-10-28 16:00:20 -04:00
}
/* List watcher styles */
.list {
float: left;
border-radius: 7px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
border-style: solid;
border-color: gray;
border-width: 2px;
background-color: #C1C4C7;
padding-left: 3px;
2013-11-04 16:06:54 -05:00
font: bold 11px sans-serif;
position: absolute;
}
.list .list-title {
padding-top: 2px;
text-align: center;
color: black;
font-weight: bold;
2013-11-04 16:06:54 -05:00
margin-bottom: 4px;
}
.list .list-scrollbar-container {
float: right;
width: 10px;
position: relative;
}
.list .list-scrollbar {
position: absolute;
top: 0px;
width: 10px;
background-color: #a8aaad;
border-radius: 10px;
}
.list .list-index {
color: rgb(81, 81, 81);
float: left;
padding: 2px;
margin-top: 0px;
2013-11-04 16:06:54 -05:00
text-align: right;
font: bold 11px;
}
.list .list-item {
2013-11-04 16:06:54 -05:00
float: right;
2013-11-03 10:47:32 -05:00
height: 16px;
overflow: hidden;
margin-bottom: 0px;
margin-right: 2px;
2013-11-04 16:06:54 -05:00
padding-top: 2px;
padding-left: 5px;
border-color: white;
border-style: solid;
border-width: 1px;
border-radius: 4px;
2013-11-04 16:06:54 -05:00
background-color: #cc5b22;
color: white;
word-wrap: break-word;
2013-11-04 16:06:54 -05:00
font: bolder 11px sans-serif;
}
.list .list-add {
2013-10-30 15:47:46 -04:00
clear: both;
background-color: #dedede;
width: 12px;
height: 12px;
border-radius: 12px;
color: #707070;
2013-11-04 16:06:54 -05:00
font: bold 10px sans-serif;
2013-10-30 15:47:46 -04:00
text-align: center;
position: absolute;
bottom: 2px;
left: 2px;
}
.list .list-length {
font-size: 10px;
font-weight: normal;
text-align: center;
color: black;
2013-10-30 15:47:46 -04:00
position: absolute;
bottom: 2px;
left: 0px;
right: 0px;
}
2013-10-28 16:00:20 -04:00
/* Say/think bubble styles */
2014-03-08 02:46:59 -05:00
.bubble-container {
2013-11-03 22:30:34 -05:00
position: absolute;
2013-10-28 16:00:20 -04:00
}
.bubble {
2013-11-03 22:30:34 -05:00
position: relative;
display: inline-block;
max-width: 120px;
min-width: 40px;
padding: 6px 11px 6px 11px;
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
}
2014-03-08 02:46:59 -05:00
.bubble.say-think-border {
border: 3px solid rgb(160, 160, 160);
}
.bubble.ask-border, .ask-container {
border: 3px solid rgb(74, 173, 222);
}
.bubble-ask {
position: absolute;
margin-top: -3px;
margin-left: 8px;
width: 44px;
height: 18px;
background: url(img/ask-bottom.png) transparent no-repeat;
}
2013-10-28 16:00:20 -04:00
.bubble-say {
2013-11-03 22:30:34 -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 22:30:34 -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
}
2014-03-08 02:46:59 -05:00
.ask-container {
position: absolute;
display: inline-block;
padding: 5px 0px 0px 5px;
border-radius: 5px;
background: #fff;
font-family: sans-serif;
font-weight: bold;
font-size: 14px;
color: #000;
}
.ask-container .ask-field .ask-text-field {
width: 405px;
height: 16px;
font-family: sans-serif;
font-weight: light;
font-size: 12px;
background: #EAEAEA;
}
.ask-container .ask-button {
position: absolute;
right: 2px;
top: 2px;
width: 25px;
height: 25px;
background: url(img/ask-button.png) transparent no-repeat;
}