0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-25 18:47:57 +01:00
doodle3d-client/css/styles.css

810 lines
11 KiB
CSS
Raw Normal View History

/*
2013-10-11 11:44:28 +02:00
GLOBAL CONTAINER
2013-10-11 11:44:28 +02:00
*/
body {
2013-10-11 11:44:28 +02:00
background-color: #fcfcfc;
2013-10-11 11:44:28 +02:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none; /* disable cut copy paste */
/* disable cut copy paste */
overflow: hidden; /* This chops off any overhanging divs */
}
2013-10-11 11:44:28 +02:00
img {
z-index: 5; /*pointer-events: none;
*/
/*-webkit-touch-callout: none;
*/
/*disable callout, image save panel */
/*-webkit-tap-highlight-color: transparent;
*/
/* "turn off" link highlight */
}
2013-10-11 11:44:28 +02:00
/* http://stackoverflow.com/questions/5348092/prevent-default-press-but-not-default-drag-in-ios-mobilesafari */
.btn {
2013-10-11 11:44:28 +02:00
background-repeat: no-repeat; /* -webkit-user-select: none;
*/
cursor: pointer;
}
2013-10-11 11:44:28 +02:00
#landscape {
2013-10-11 11:44:28 +02:00
position: absolute;
background-color: #fff;
width: 100%;
max-width: 1024px;
max-height: 768px;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: 5;
overflow: hidden;
margin: 0px auto;
outline: 2px solid #5e8c71;
-webkit-box-shadow: 0 0 8px rgba(8, 8, 8, 0.25);
box-shadow: 0 0 8px rgba(8, 8, 8, 0.25);
}
2013-10-11 11:44:28 +02:00
#portrait {
2013-10-11 11:44:28 +02:00
display: none;
}
2013-10-11 11:44:28 +02:00
.bgContainer {
2013-10-11 11:44:28 +02:00
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
2013-10-11 11:44:28 +02:00
.bgTop,.bgMiddle,.bgBottom {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1.0;
-webkit-transition: opacity .35s linear;
-moz-transition: opacity .35s linear;
-o-transition: opacity .35s linear;
-ms-transition: opacity .35s linear;
transition: opacity .35s linear;
position: absolute;
left: 0px;
z-index: -5;
}
2013-10-11 11:44:28 +02:00
.bgTop {
2013-10-11 11:44:28 +02:00
top: 0px;
}
2013-10-11 11:44:28 +02:00
.bgMiddle {
2013-10-11 11:44:28 +02:00
top: 30%;
}
2013-10-11 11:44:28 +02:00
.bgBottom {
2013-10-11 11:44:28 +02:00
bottom: 0px;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
CENTER PANEL
2013-10-11 11:44:28 +02:00
*/
.centerpanel {
2013-10-11 11:44:28 +02:00
position: absolute;
left: 50%;
margin-left: -33%;
width: 66%;
height: 100%;
z-index: 5;
}
2013-10-11 11:44:28 +02:00
.logopanel {
2013-10-11 11:44:28 +02:00
height: 25%;
}
2013-10-11 11:44:28 +02:00
.d3dlogo {
2013-10-11 11:44:28 +02:00
position: relative;
top: 15%;
width: 100%;
height: 100%;
margin: 0px auto;
max-width: 399px;
height: 139px;
background: url('../img/logo/logo_full.png') no-repeat center center;
cursor: pointer;
}
2013-10-11 11:44:28 +02:00
#verticalShapes {
position: absolute;
right: 0;
bottom: 15px;
margin-right: -8.5%;
width: 8%;
}
#verticalShapes > div {
border: 2px solid #333;
border-radius: 0px 5px 5px 0px;
margin-top: 4px;
background-color: #fff;
cursor: pointer;
}
#verticalShapes > div img.verticalshape {
width: 100%;
max-width: 50px;
height: auto;
vertical-align: bottom;
}
.drawareacontainer {
2013-10-11 11:44:28 +02:00
position: relative;
width: 100%;
height: 65%;
background-color: #fff;
border: 4px solid #000;
border-radius: 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
z-index: 15;
}
2013-10-11 11:44:28 +02:00
#canvasContainers {
2013-10-11 11:44:28 +02:00
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
2013-10-11 11:44:28 +02:00
#mycanvasContainer {
2013-10-11 11:44:28 +02:00
position: absolute;
top: 0;
left: 0;
width: 78%;
height: 100%;
}
2013-10-11 11:44:28 +02:00
#mycanvas {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
border-right: 2px solid #333;
}
2013-10-11 11:44:28 +02:00
#previewContainer {
2013-10-11 11:44:28 +02:00
position: absolute;
top: 0;
right: 0;
width: 22%;
height: 100%;
}
2013-10-11 11:44:28 +02:00
#preview {
2013-10-11 11:44:28 +02:00
min-width: 50px;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
2013-10-11 11:44:28 +02:00
/* DEBUG THING */
#preview_tmp {
2013-10-11 11:44:28 +02:00
position: absolute;
top: 0px;
left: 0px;
z-index: 500;
border: 1px solid #f80;
display: none;
}
2013-10-11 11:44:28 +02:00
.bottompanel {
2013-10-11 11:44:28 +02:00
position: relative;
bottom: 0px;
width: 100%;
height: 10%;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
DOODLE UP/DOWN/LEFT/RIGHT buttons
*/
.manipulationBtns {
2013-10-11 11:44:28 +02:00
margin: 2px 5px;
position: absolute;
right: 0;
top: 0;
max-width: 340px;
max-height: 70px;
width: 45%;
}
2013-10-11 11:44:28 +02:00
.manipulationBtn {
2013-10-11 11:44:28 +02:00
width: 45%;
height: auto;
cursor: pointer;
}
2013-10-11 11:44:28 +02:00
#btnsUpDown {
2013-10-11 11:44:28 +02:00
float: left;
width: 45%;
}
2013-10-11 11:44:28 +02:00
#btnsUpDown > div {
2013-10-11 11:44:28 +02:00
float: left;
padding-right: 8px;
background-repeat: no-repeat;
}
2013-10-11 11:44:28 +02:00
#btnsTurnLeftRight {
2013-10-11 11:44:28 +02:00
float: right;
width: 45%;
}
2013-10-11 11:44:28 +02:00
#btnsTurnLeftRight > div {
2013-10-11 11:44:28 +02:00
float: left;
padding-right: 8px;
background-repeat: no-repeat;
}
2013-10-11 11:44:28 +02:00
#btnMoveUp {
2013-10-11 11:44:28 +02:00
max-width: 65px;
}
2013-10-11 11:44:28 +02:00
#btnMoveDown {
2013-10-11 11:44:28 +02:00
max-width: 64px;
}
2013-10-11 11:44:28 +02:00
#btnTwistLeft {
2013-10-11 11:44:28 +02:00
max-width: 59px;
}
2013-10-11 11:44:28 +02:00
#btnTwistRight {
2013-10-11 11:44:28 +02:00
max-width: 64px;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
HEIGHT-related RESPONSIVE STUFF
*/
@media screen and (max-height: 700px) {
2013-10-11 11:44:28 +02:00
.logopanel {
height: 22%;
}
2013-10-11 11:44:28 +02:00
.doodlecontainer {
height: 68%;
}
.d3dlogo {
top: 25%;
max-width: 399px;
height: 74px;
background-image: url('../img/logo/logo_small.png');
}
}
@media screen and (max-height: 655px) {
2013-10-11 11:44:28 +02:00
.bgMiddle {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
}
}
2013-10-11 11:44:28 +02:00
@media screen and (max-height: 525px) {
2013-10-11 11:44:28 +02:00
.d3dlogo {
top: 20%;
height: 57px;
max-width: 307px;
background-image: url('../img/logo/logo_smaller.png');
2013-10-11 11:44:28 +02:00
}
}
2013-10-11 11:44:28 +02:00
@media screen and (max-height: 375px) {
2013-10-11 11:44:28 +02:00
.d3dlogo {
height: 40px;
max-width: 216px;
background-image: url('../img/logo/logo_smallest.png');
2013-10-11 11:44:28 +02:00
}
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
LEFT PANEL
2013-10-11 11:44:28 +02:00
*/
.leftpanel {
2013-10-11 11:44:28 +02:00
position: absolute;
width: 17%; /* background-color: rgba(67, 204, 67, 0.4);
*/
top: 0px;
left: 0px;
bottom: 0px;
}
2013-10-11 11:44:28 +02:00
.btnNew {
2013-10-11 11:44:28 +02:00
margin: 5% 0% 1% 5%;
width: 100%;
max-width: 180px;
height: auto;
}
2013-10-11 11:44:28 +02:00
.btnsPrevNext {
2013-10-11 11:44:28 +02:00
margin: 1% 7%;
max-width: 160px;
}
2013-10-11 11:44:28 +02:00
.btnPrevious {
2013-10-11 11:44:28 +02:00
width: 40%;
max-width: 56px;
height: auto;
}
2013-10-11 11:44:28 +02:00
.btnNext {
2013-10-11 11:44:28 +02:00
width: 40%;
max-width: 56px;
height: auto;
float: right;
}
2013-10-11 11:44:28 +02:00
.btnSave {
2013-10-11 11:44:28 +02:00
margin: 5% 5% 1% 5%;
width: 90%;
max-width: 144px;
height: auto;
}
2013-10-11 11:44:28 +02:00
.btnOops {
2013-10-11 11:44:28 +02:00
margin: 5% 5% 1% 5%;
width: 90%;
max-width: 144px;
height: auto;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
RIGHT PANEL
2013-10-11 11:44:28 +02:00
*/
.rightpanel {
2013-10-11 11:44:28 +02:00
position: absolute;
width: 17%; /* background-color: rgba(255, 0, 254, 0.4);
*/
top: 0px;
right: 0px;
bottom: 0px;
}
2013-10-11 11:44:28 +02:00
.btnPrint {
2013-10-11 11:44:28 +02:00
margin: 1% 5% 5% 0%;
width: 100%;
max-width: 163px;
height: auto;
float: right;
}
.btnStop {
2013-10-11 11:44:28 +02:00
margin: 5% 10% 1% 5%;
float: right;
width: 90%;
max-width: 98px;
height: auto;
}
2013-10-11 11:44:28 +02:00
.btnsSettingsInfo {
2013-10-11 11:44:28 +02:00
position: absolute;
bottom: 25px;
right: 5px;
width: 80%;
margin: 1% 5%;
max-width: 160px;
}
2013-10-11 11:44:28 +02:00
.btnInfo {
2013-10-11 11:44:28 +02:00
width: 40%;
max-width: 53px;
height: auto;
}
2013-10-11 11:44:28 +02:00
.btnSettings {
2013-10-11 11:44:28 +02:00
width: 40%;
max-width: 53px;
height: auto;
float: right;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
PRINT PROGRESS DISPLAY
2013-10-11 11:44:28 +02:00
*/
#printProgressContainer {
2013-10-11 11:44:28 +02:00
position: absolute;
right: 30px;
top: 370px;
width: 110px;
margin: 5px 0px;
font-weight: bold;
display: none;
}
2013-10-11 11:44:28 +02:00
#progressbarContainer {
2013-10-11 11:44:28 +02:00
margin: 3px 0px;
width: inherit;
height: 20px;
background-color: #fff;
border: 2px solid #333;
border-radius: 5px;
}
2013-10-11 11:44:28 +02:00
.progressAmount {
2013-10-11 11:44:28 +02:00
margin: 0px 5px;
}
2013-10-11 11:44:28 +02:00
#progressbar {
2013-10-11 11:44:28 +02:00
position: relative; /*margin-bottom: -20px;
*/
width: 0%;
height: 100%;
background-color: #4c4;
border: 0px solid #f0f;
border-radius: 3px;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
THERMOMETER
2013-10-11 11:44:28 +02:00
*/
#thermometerContainer {
2013-10-11 11:44:28 +02:00
position: absolute;
right: 25px;
top: 370px;
}
2013-10-11 11:44:28 +02:00
#thermometerCanvas {
/*background: #59b2b8;
*/
/*zoom: 2;
*/
}
2013-10-11 11:44:28 +02:00
/*
under all the above styles w.r.t. the cascading effect
*/
.disabled {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
opacity: 0.3;
cursor: default;
}
#btnStop.disabled {
display: none;
}
/*
2013-10-11 11:44:28 +02:00
REST
2013-10-11 11:44:28 +02:00
*/
/* CLEARFIX */
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
2013-10-11 11:44:28 +02:00
.clearfix:before,.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
2013-10-11 11:44:28 +02:00
.clearfix:after {
2013-10-11 11:44:28 +02:00
clear: both;
}
2013-10-11 11:44:28 +02:00
/* For IE 6/7 only*/
.clearfix {
2013-10-11 11:44:28 +02:00
*zoom: 1;
}
2013-10-11 11:44:28 +02:00
/*
2013-10-11 11:44:28 +02:00
SETTINGS POPUP
2013-10-11 11:44:28 +02:00
*/
#contentOverlay {
2013-10-11 11:44:28 +02:00
background-color: rgba(255, 255, 255, 0.65);
z-index: 20;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
display: none;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings {
2013-10-11 11:44:28 +02:00
background-color: #fff;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 15;
max-width: 775px;
2013-10-11 11:44:28 +02:00
max-height: 540px;
width: 80%;
height: 75%;
margin: 7% 8%;
-webkit-box-shadow: 0px 2px 6px 0px rgba(16, 16, 16, 0.65);
box-shadow: 0px 2px 6px 0px rgba(16, 16, 16, 0.65);
border: 2px solid #222;
border-radius: 15px;
padding: 2%;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .toppanel {
height: 10%;
}
#contentOverlay #settings .toppanel .settingsLabelContainer {
2013-10-11 11:44:28 +02:00
width: 100%;
height: auto;
margin-bottom: 1%;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .toppanel .settingsLabelContainer .settingsLabelImg {
2013-10-11 11:44:28 +02:00
width: 45%;
max-width: 373px;
height: auto;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .bottompanel {
2013-10-11 11:44:28 +02:00
width: 100%;
height: 90%;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .bottompanel > .settingsContainer {
float: left;
width: 83%;
height: 98%;
margin: .5%;
-ms-overflow-y: scroll;
overflow-y: scroll;
2013-10-11 11:44:28 +02:00
border: 1px solid #bbbbbb;
border-radius: 5px;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .bottompanel > .btnContainer {
2013-10-11 11:44:28 +02:00
width: 15%;
height: 100%;
float: right;
2013-10-11 11:44:28 +02:00
position: relative;
right: 0;
}
2013-10-11 11:44:28 +02:00
#contentOverlay #settings .bottompanel > .btnContainer > .btnOK {
2013-10-11 11:44:28 +02:00
position: absolute;
bottom: 3%;
right: 7%;
2013-10-11 11:44:28 +02:00
max-width: 85px;
min-width: 42px;
width: 88%;
2013-10-11 11:44:28 +02:00
height: auto;
margin: 0 2% 2% 0;
cursor: pointer;
}
@media only screen and (max-width: 480px),only screen and (max-width: 720px) and (min-device-pixel-ratio: 1.5),only screen and (max-width: 720px) and (-webkit-min-device-pixel-ratio: 1.5) {
/*
TOP LOGO
*/
.centerpanel {
left: 0;
margin-left: 0;
width: 100%; /* background-color: rgba(0, 135, 255, 0.4);
*/
}
.logopanel {
height: 40px;
}
.d3dlogo {
top: 0;
height: 40px;
max-width: 216px;
background-image: url('../img/logo/logo_smallest.png');
2013-10-11 11:44:28 +02:00
}
.doodlecontainer {
/* position: absolute;
*/
height: 85%;
}
/*.bottompanel {
display: none;
}
*/
/*
LEFT
*/
.leftpanel {
width: 100px;
background-color: #fff;
z-index: 50;
-webkit-transition: left 0.3s ease-out;
-moz-transition: left 0.3s ease-out;
-o-transition: left 0.3s ease-out;
-ms-transition: left 0.3s ease-out;
transition: left 0.3s ease-out;
}
.hideleft {
left: -101px;
}
.shadowright {
-webkit-box-shadow: 2px 0 4px rgba(42, 42, 41, 0.6);
box-shadow: 2px 0 4px rgba(42, 42, 41, 0.6);
}
.btnNew {
margin: 5% 5% 1% 5%;
width: 90%;
}
.btnSave {
margin-left: 9%;
width: 75%;
}
.btnOops {
margin-left: 6%;
width: 71%;
}
2013-10-11 11:44:28 +02:00
/*
RIGHT
*/
.rightpanel {
width: 100px;
background-color: #fff;
z-index: 50;
-webkit-transition: right 0.3s ease-out;
-moz-transition: right 0.3s ease-out;
-o-transition: right 0.3s ease-out;
-ms-transition: right 0.3s ease-out;
transition: right 0.3s ease-out;
}
.hideright {
right: -101px;
}
.shadowleft {
-webkit-box-shadow: -2px 0 4px rgba(42, 42, 41, 0.6);
box-shadow: -2px 0 4px rgba(42, 42, 41, 0.6);
}
.btnPrint {
margin: 1% 5% 5% 5%;
width: 90%;
}
.btnStop {
margin: 5% 6% 1% 5%;
width: 70%;
}
/*
REST
*/
.sidebutton {
display: block;
position: absolute; /* top: 50%;
*/
/* margin-top: -20px;
*/
top: 0px; /*float: right;
*/
width: 25px;
height: 38px;
border: 1px solid #808;
background: url('../img/arrows.png') no-repeat;
background-color: #eee;
cursor: pointer;
}
.sidebutton:active {
background-color: #aaa;
}
.leftpanel .sidebutton {
right: -27px;
background-position: 0px 0px;
}
.rightpanel .sidebutton {
left: -27px;
background-position: -25px 0px;
}
.sidebuttonin:active {
background-color: #888;
}
.leftpanel .sidebuttonin {
background-color: #ccc;
background-position: -25px 0px;
}
.rightpanel .sidebuttonin {
background-color: #ccc;
background-position: 0px 0px;
}
/*
SETTINGS POPUP -MOBILE
*/
#contentOverlay {
z-index: 200;
}
#contentOverlay #settings {
width: 87%;
height: 82%;
margin: 6% 4%;
}
#contentOverlay #settings > .right {
width: 14%;
}
}
@media only screen and (orientation: portrait) {
2013-10-11 11:44:28 +02:00
#landscape {
display: none;
}
#portrait {
display: block;
}
.vertImage {
margin: 0px;
padding: 0px; /*border: 2px solid #f0f;
*/
max-width: 100%;
height: auto;
width: auto; /* for ie9 */
}
}