summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-31 00:28:51 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-05-31 00:28:51 -0700
commit0a5ca7a76644e6535bed49736f3e848cac6c7211 (patch)
tree5938314fd5f3850b27668a23be9e33949951066d
parent45d58c8680ab9f1714798b86c0fd268199142ace (diff)
parent2e9b8277d50fc951d1acb1dd22297ff3d6016fc1 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
-rw-r--r--index.php2
-rw-r--r--modules/gallery/js/fullsize.js6
-rw-r--r--modules/gallery/js/quick.js27
-rw-r--r--themes/admin_default/css/screen.css3
-rw-r--r--themes/default/css/fix-ie.css30
-rw-r--r--themes/default/css/screen.css41
-rw-r--r--themes/default/views/page.html.php2
-rw-r--r--themes/default/views/pager.html.php2
-rw-r--r--themes/default/views/photo.html.php2
9 files changed, 64 insertions, 51 deletions
diff --git a/index.php b/index.php
index b92f7353..a70053a8 100644
--- a/index.php
+++ b/index.php
@@ -57,7 +57,7 @@ if (PHP_SAPI == 'cli') {
define('TEST_MODE', 0);
define('VARPATH', strtr(realpath('var') . '/', DIRECTORY_SEPARATOR, '/'));
}
-define('TMPPATH', VARPATH . '/tmp');
+define('TMPPATH', VARPATH . '/tmp/');
if (file_exists("local.php")) {
include("local.php");
diff --git a/modules/gallery/js/fullsize.js b/modules/gallery/js/fullsize.js
index 7428adb5..f95dc428 100644
--- a/modules/gallery/js/fullsize.js
+++ b/modules/gallery/js/fullsize.js
@@ -7,9 +7,9 @@ $(document).ready(function() {
var height = $(document).height();
$("body").append('<div id="gFullsizeOverlay" class="ui-dialog-overlay" ' +
- 'style="border: none; margin: 0; padding: 0; background: #000 ' +
- 'none repeat scroll 0% 0%; position: absolute; top: 0px; left: 0px; ' +
- 'width: ' + width + 'px; height: ' + height + 'px; opacity: 0.7; ' +
+ 'style="border: none; margin: 0; padding: 0; background-color: #000; ' +
+ 'position: absolute; top: 0px; left: 0px; ' +
+ 'width: ' + width + 'px; height: ' + height + 'px; opacity: 0.7; filter: alpha(opacity=70);' +
'-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; ' +
'-moz-background-inline-policy: -moz-initial; z-index: 1001;"> </div>');
diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js
index e7f35cea..8a87ed07 100644
--- a/modules/gallery/js/quick.js
+++ b/modules/gallery/js/quick.js
@@ -67,22 +67,22 @@ var quick_do = function(cont, pane, img) {
url: pane.attr("href"),
dataType: "json",
success: function(data) {
- img.css("opacity", "1");
- cont.removeClass("gLoadingLarge");
- if (data.src) {
- img.attr("width", data.width);
- img.attr("height", data.height);
- img.attr("src", data.src);
- if (data.height > data.width) {
- img.css("margin-top", -32);
- } else {
- img.css("margin-top", 0);
- }
+ img.css("opacity", "1");
+ cont.removeClass("gLoadingLarge");
+ if (data.src) {
+ img.attr("width", data.width);
+ img.attr("height", data.height);
+ img.attr("src", data.src);
+ if (data.height > data.width) {
+ img.css("margin-top", -32);
+ } else {
+ img.css("margin-top", 0);
+ }
} else if (data.location) {
window.location = data.location;
- } else if (data.reload) {
+ } else if (data.reload) {
window.location.reload();
- }
+ }
}
});
}
@@ -92,4 +92,3 @@ var quick_do = function(cont, pane, img) {
var hide_quick = function() {
$("#gQuickPane").remove();
};
-
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index 82cc90eb..2d5f086c 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -214,7 +214,8 @@ li.gGroup {
height: 200px;
border: 1px solid gray;
padding: .5em;
- margin-right: 1em;
+ margin-right: 0 1em 1em 0;
+ overflow: auto;
}
#gAdminAdvancedSettings tr.setting:hover {
diff --git a/themes/default/css/fix-ie.css b/themes/default/css/fix-ie.css
index adf8c6d8..0b37acd2 100644
--- a/themes/default/css/fix-ie.css
+++ b/themes/default/css/fix-ie.css
@@ -1,5 +1,5 @@
/**
- * Fix display in IE
+ * Fix display in IE 6, 7
*/
#gHeader,
#gSiteMenu,
@@ -23,16 +23,28 @@
margin-bottom: 0;
}
-#gViewMenu a {
- width: 52px !important;
+input.submit {
+ clear: none !important;
+ display: inline !important;
}
-#gPager li.gInfo {
- width: 39%;
+#gAddTagForm input.textbox {
+ width: 110px;
}
-#gPager .txtright a.gButtonLink {
- clear: none !important;
- float: right !important;
- width: 45% !important;
+#gDialog a.gCancel {
+ display: inline-block !important;
+ float: none !important;
+}
+
+.gPager .txtright {
+ width: 29%;
}
+
+.gPager .ui-icon-right {
+ width: 60px;
+}
+
+#gQuickPane {
+ height: 32px !important;
+} \ No newline at end of file
diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css
index 007f30ed..fd9f64df 100644
--- a/themes/default/css/screen.css
+++ b/themes/default/css/screen.css
@@ -64,21 +64,26 @@ h3 {
/* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
a,
+.gMenu a,
#gDialog a,
.gButtonLink,
.gButtonLink:hover {
- color: #6b8cb7;
+ color: #5382BF !important;
text-decoration: none;
-moz-outline-style: none;
}
a:hover,
#gDialog a:hover {
- color: #f30;
text-decoration: underline;
}
+.gMenu a:hover {
+ text-decoration: none;
+}
+
#gDialog .gCancel {
+ clear: none;
float: left;
margin: .3em 1em;
}
@@ -198,7 +203,8 @@ textarea {
input[type="submit"],
input[type="reset"] {
- clear: none !important;
+ display: inline;
+ clear: none;
float: left;
}
@@ -340,7 +346,7 @@ form p.gError {
}
form .gError,
-#gPager .gInfo {
+.gPager .gInfo {
background-color: #fff;
}
@@ -543,15 +549,12 @@ form .gError,
display: inline;
}
-#gHeader #gLoginMenu li:before,
-#gFooter #gCredits li:before {
- padding: 0 .6em 0 .4em;
- content: "|";
+#gHeader #gLoginMenu li {
+ padding-left: 1.2em;
}
-#gHeader #gLoginMenu li.first:before,
-#gFooter #gCredits li.first:before {
- content: "";
+#gFooter #gCredits li {
+ padding-right: 1.2em;
}
#gContent #gSearchResults {
@@ -730,20 +733,20 @@ form .gError,
/* Pagination ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-#gPager {
+.gPager {
clear: both;
margin: 0;
padding: 5px 0 !important;
width: 100%;
}
-#gPager li {
+.gPager li {
float: left;
margin: 0;
width: 30%;
}
-#gPager .gInfo {
+.gPager .gInfo {
text-align: center;
width: 40%;
}
@@ -756,7 +759,7 @@ form .gError,
#gHeader:after,
.gBreadcrumbs:after,
#gAlbumGrid:after,
-#gPager:after,
+.gPager:after,
#gViewMenu:after {
clear: both;
content: ".";
@@ -836,9 +839,7 @@ form .gError,
display: inline-block;
margin: 0 4px 0 0;
padding: .2em .4em;
- position: relative;
outline: 0;
- zoom: 1;
}
.gButtonSet {
@@ -904,7 +905,7 @@ form .gError,
}
#gServerAdd #gServerAddTree {
- border: 1px solid #CCCCCC;
+ border: 1px solid #ccc;
height: 25em;
overflow: auto;
margin-bottom: .5em;
@@ -999,8 +1000,8 @@ form .gError,
vertical-align: middle;
}
#gPermissions .gDenied {
- background-color: #FFCCCC;
+ background-color: #fcc;
}
#gPermissions .gAllowed {
- background-color: #CCFFCC;
+ background-color: #cfc;
}
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php
index fc61f52d..e2c03664 100644
--- a/themes/default/views/page.html.php
+++ b/themes/default/views/page.html.php
@@ -24,7 +24,7 @@
media="screen,print,projection" />
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/screen.css") ?>"
media="screen,print,projection" />
- <!--[if IE]>
+ <!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
media="screen,print,projection" />
<![endif]-->
diff --git a/themes/default/views/pager.html.php b/themes/default/views/pager.html.php
index de865090..f8517f78 100644
--- a/themes/default/views/pager.html.php
+++ b/themes/default/views/pager.html.php
@@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // See http://docs.kohanaphp.com/libraries/pagination ?>
-<ul id="gPager">
+<ul class="gPager">
<? /* XXX: This message isn't easily localizable */
$from_to_msg = t("Photos %from_number - %to_number of %total",
array("from_number" => $current_first_item,
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index ab46a528..63846bc1 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -2,7 +2,7 @@
<div id="gItem">
<?= $theme->photo_top() ?>
- <ul id="gPager">
+ <ul class="gPager">
<li>
<? if ($previous_item): ?>
<a href="<?= $previous_item->url() ?>" class="gButtonLink ui-icon-left ui-state-default ui-corner-all">