Commit 6536c3d1 authored by haemmer's avatar haemmer

Minor HMTL and CSS optimizations

parent 1766687e
......@@ -96,7 +96,7 @@ input {
list-style:none;
}
#container {
#container, .container {
position: absolute;
left: 50%;
top: 50%;
......@@ -104,7 +104,7 @@ input {
margin-top: -200px;
}
#content {
#content, .content {
width: 98%;
}
......@@ -125,7 +125,7 @@ input {
float: right;
}
#userInputArea {
#userInputArea, .userInputArea {
width: 100%;
margin-left: auto;
margin-right: auto;
......@@ -136,7 +136,7 @@ input {
padding: 6px;
}
#userIdPSelection {
#userIdPSelection, .userIdPSelection {
width: 480px;
font-size: 12px;
}
......@@ -154,11 +154,11 @@ input {
padding: 0;
}
#content {
#content, .content {
width: 96%;
}
#container {
#container, .container {
width: 96%;
position: auto;
left: auto;
......@@ -167,7 +167,7 @@ input {
margin-top: 0;
}
#userIdPSelection {
#userIdPSelection, .userIdPSelection {
width: 60%;
}
}
......
......@@ -19,7 +19,7 @@
<?php if ($showPermanentSetting) : ?>
<!-- Value permanent must be a number which is equivalent to the days the cookie should be valid -->
<input type="checkbox" name="permanent" id="rememberPermanent" value="100">
<label for="rememberPermanent" /><?php echo getLocalString('permanently_remember_selection') ?></label>
<label for="rememberPermanent"><?php echo getLocalString('permanently_remember_selection') ?></label>
<?php endif ?>
</p>
</div>
......
......@@ -131,13 +131,15 @@ function getTextElement(sourceElement, imgElement) {
var newID = sourceElement.attr('id');
var newTextElement = $('<input type="text" />');
// For some reason we have to substract 2px from the height when using <!DOCTYPE HTML>
var quirksModeOffset = 2;
var controlWidth = Math.max(sourceElement.innerWidth() - imgElement.outerWidth(),40);
newTextElement.attr('id', newID + idd_text_suffix)
.addClass('idd_textbox')
.attr('value', sourceElement.find('option:selected').text())
.css('height', imgElement.outerHeight() + 'px')
.css('height', (imgElement.innerHeight() - quirksModeOffset) + 'px')
.css('font-family', sourceElement.css('font-family'))
.css('font-size', sourceElement.css('font-size'))
.css('border-width', '1px')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment