0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

fixed Firefox layouting issue of settings popup

This commit is contained in:
Adriaan Wormgoor 2013-10-11 23:33:19 +02:00
parent 632a0a0895
commit 613be4e619
6 changed files with 64 additions and 66 deletions

View File

@ -1,5 +1,6 @@
form { form {
margin: 10px; margin: 10px;
max-width: 600px;
} }
form input { form input {
margin: 1px; margin: 1px;
@ -11,7 +12,6 @@ body,th,td {
} }
.settingsContainer { .settingsContainer {
position:relative; position:relative;
max-width: 600px;
/*min-width: 370px;*/ /*min-width: 370px;*/
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -422,20 +422,13 @@ top: 0px;
height: auto; height: auto;
float: right; float: right;
} }
.btnPrint.disabled {
opacity: 0.3;
}
.btnStop { .btnStop {
margin: 5% 10% 1% 5%; margin: 5% 10% 1% 5%;
float: right; float: right;
width: 90%; width: 90%;
max-width: 98px; max-width: 98px;
height: auto; height: auto;
display: block;
}
.btnStop.disabled {
display: none;
} }
.btnsSettingsInfo { .btnsSettingsInfo {
@ -563,7 +556,7 @@ SETTINGS POPUP
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 15; z-index: 15;
max-width: 835px; max-width: 775px;
max-height: 540px; max-height: 540px;
width: 80%; width: 80%;
height: 75%; height: 75%;
@ -573,58 +566,60 @@ SETTINGS POPUP
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: 2px solid #222;
border-radius: 15px; border-radius: 15px;
overflow: hidden;
display: table;
padding: 2%; padding: 2%;
} }
#contentOverlay #settings .settingsLabelContainer { #contentOverlay #settings .toppanel {
height: 10%;
}
#contentOverlay #settings .toppanel .settingsLabelContainer {
width: 100%; width: 100%;
height: auto; height: auto;
margin-bottom: 1%; margin-bottom: 1%;
} }
#contentOverlay #settings .settingsLabelImg { #contentOverlay #settings .toppanel .settingsLabelContainer .settingsLabelImg {
width: 45%; width: 45%;
max-width: 373px; max-width: 373px;
height: auto; height: auto;
} }
#contentOverlay #settings > .content { #contentOverlay #settings .bottompanel {
display: table-row;
width: 100%; width: 100%;
height: 90%;
} }
#contentOverlay #settings > .content > .settings { #contentOverlay #settings .bottompanel > .settingsContainer {
float: left;
width: 83%;
height: 98%;
margin: .5%;
-ms-overflow-y: scroll;
overflow-y: scroll;
border: 1px solid #bbbbbb; border: 1px solid #bbbbbb;
border-radius: 5px; border-radius: 5px;
overflow: scroll;
-ms-overflow-x: hidden;
overflow-x: hidden;
} }
#contentOverlay #settings > .content > .btnContainer { #contentOverlay #settings .bottompanel > .btnContainer {
width: 15%; width: 15%;
height: 100%;
float: right;
position: relative; position: relative;
display: table-cell; right: 0;
} }
#contentOverlay #settings > .content > .btnContainer > .btnOK { #contentOverlay #settings .bottompanel > .btnContainer > .btnOK {
position: absolute; position: absolute;
bottom: 3%; bottom: 3%;
right: 3%; right: 7%;
max-width: 85px; max-width: 85px;
min-width: 42px; min-width: 42px;
width: 91%; width: 88%;
height: auto; height: auto;
margin: 0 2% 2% 0; margin: 0 2% 2% 0;
cursor: pointer; cursor: pointer;
float: right;
}
#contentOverlay #settings > .content > div {
height: 100%;
} }
@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) { @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) {

2
css/styles.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -101,11 +101,13 @@
</div> </div>
<div id="contentOverlay"> <div id="contentOverlay">
<div id="settings"> <div id="settings">
<div class="settingsLabelContainer"> <div class="toppanel">
<img class="settingsLabelImg" src="img/settings_lable.png" alt="settings" /> <div class="settingsLabelContainer">
<img class="settingsLabelImg" src="img/settings_lable.png" alt="settings" />
</div>
</div> </div>
<div class="content"> <div class="bottompanel">
<div class="settings"></div> <div class="settingsContainer"></div>
<div class="btnContainer"> <div class="btnContainer">
<img src="img/buttons/btnOk_settings.png" class="btnOK" alt="settings"/> <img src="img/buttons/btnOk_settings.png" class="btnOK" alt="settings"/>
</div> </div>

View File

@ -83,7 +83,7 @@ function SettingsWindow() {
this.window = $("#settings"); this.window = $("#settings");
this.window.find(".btnOK").click(this.submitwindow); this.window.find(".btnOK").click(this.submitwindow);
this.window.find(".settings").load("settings.html", function() { this.window.find(".settingsContainer").load("settings.html", function() {
console.log("Settings:finished loading settings.html, now loading settings..."); console.log("Settings:finished loading settings.html, now loading settings...");
self.form = self.window.find("form"); self.form = self.window.find("form");

View File

@ -23,7 +23,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 15; z-index: 15;
max-width: 835px; max-width: 775px;
max-height: 540px; max-height: 540px;
width: 80%; width: 80%;
height: 75%; height: 75%;
@ -31,55 +31,56 @@
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: 2px solid #222;
border-radius: 15px; border-radius: 15px;
overflow: hidden;
display: table;
padding: 2%; padding: 2%;
.settingsLabelContainer { .toppanel {
width: 100%; height: 10%;
height: auto;
margin-bottom: 1%;
}
.settingsLabelImg {
width: 45%;
max-width: 373px;
height: auto;
}
> .content { .settingsLabelContainer {
// margin: 3% 12%; width: 100%;
// margin-top: 12%; height: auto;
// max-height: 388px; margin-bottom: 1%;
display: table-row;
width: 100%;
> .settings { .settingsLabelImg {
width: 45%;
max-width: 373px;
height: auto;
}
}
}
.bottompanel {
width: 100%;
height: 90%;
> .settingsContainer {
float:left;
width: 83%;
height: 98%;
margin: .5%;
overflow-y: scroll;
overflow-x: hidden;
border: 1px solid rgb(187, 187, 187); border: 1px solid rgb(187, 187, 187);
border-radius: 5px; border-radius: 5px;
overflow: scroll;
overflow-x: hidden;
} }
> .btnContainer { > .btnContainer {
width: 15%; width: 15%;
height: 100%;
float:right;
position:relative; position:relative;
display: table-cell; right: 0;
> .btnOK { > .btnOK {
position: absolute; position: absolute;
bottom: 3%; bottom: 3%;
right: 3%; right: 7%;
max-width: 85px; max-width: 85px;
min-width: 42px; min-width: 42px;
width: 91%; width: 88%;
height: auto; height: auto;
margin: 0 2% 2% 0; margin: 0 2% 2% 0;
cursor: pointer; cursor: pointer;
float: right;
} }
} }
> div {
height: 100%;
}
} }
} }
} }