From 42e635bff0948e3a8e7dc0003d17e709b7db2ce3 Mon Sep 17 00:00:00 2001 From: Chad Kieffer Date: Mon, 12 Jan 2009 07:57:13 +0000 Subject: Theme admin refinement. Make more room to show the preview by enlarging the iframe and removing the heading above it. --- core/views/admin_themes.html.php | 22 ++++++++-------- core/views/admin_themes_preview.html.php | 5 ++-- lib/gallery.dialog.js | 10 ++++--- themes/admin_default/css/screen.css | 45 ++++++++++++++++++++++---------- 4 files changed, 50 insertions(+), 32 deletions(-) diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php index f8dc0812..5e10a803 100644 --- a/core/views/admin_themes.html.php +++ b/core/views/admin_themes.html.php @@ -8,44 +8,44 @@ var select_url = ""; select = function(type, id) { $.post(select_url, {"type": type, "id": id, "csrf": ''}, - function() { load(type) }); + function() { load(type) }); }
-

+

- -
-

-
+

-
-

name ?>

- " +
+ " alt="name ?>" /> +

name ?>

description ?>

-
+

+

$info): ?> $type) continue ?> - diff --git a/core/views/admin_themes_preview.html.php b/core/views/admin_themes_preview.html.php index b29c2a48..acd1ba3c 100644 --- a/core/views/admin_themes_preview.html.php +++ b/core/views/admin_themes_preview.html.php @@ -1,8 +1,7 @@ -

$info->name)) ?>

-

- {{theme_name}}", array("theme_name" => $info->name)) ?> + {{theme_name}}", array("theme_name" => $info->name)) ?>

+ diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index fef44b38..d6511fd9 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -21,6 +21,7 @@ function handleDialogEvent(event) { */ function openDialog(element, on_success) { var sHref = $(element).attr("href"); + var sTitle = $(element).attr("title"); var eDialog = '
'; $("body").append(eDialog); @@ -48,11 +49,12 @@ function openDialog(element, on_success) { var parent = $("#gDialog").parent().parent(); parent.css("opacity", "0.0"); $("#gDialog").dialog("open"); - var title = $("#gDialog h1:eq(0)").html(); - if (!title) { - title = $("#gDialog fieldset legend:eq(0)").html(); + if ($("#gDialog h1").length) { + sTitle = $("#gDialog h1:eq(0)").html(); + } else if ($("#gDialog fieldset legend").length) { + sTitle = $("#gDialog fieldset legend:eq(0)").html(); } - $("#ui-dialog-title-gDialog").html(title); + $("#ui-dialog-title-gDialog").html(sTitle); if (parent.width() < 400) { parent.css("width", 400); } diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css index edc1beab..02a0aeca 100644 --- a/themes/admin_default/css/screen.css +++ b/themes/admin_default/css/screen.css @@ -88,7 +88,9 @@ *********************************************************************/ #gHeader:after, -#gAdminCommentsMenu:after { +#gAdminCommentsMenu:after, +#gThemeTabs:after, +#gSelectedTheme .gBlock:after { clear: both; content: "."; display: block; @@ -96,31 +98,46 @@ visibility: hidden; } -/* stuff that needs a home */ -#gAdminThemes .theme_block { - background: white; -} -#gAdminThemes .active { - padding: 10px; +/** ******************************************************************* + * Stuff that needs a home or needs to be organized + *********************************************************************/ + +#gAdminThemes #gSelectedTheme img { + float: left; + margin-right: 1em; } -#gAdminThemes .available .theme_block:hover { - background: #eee; + +#gAdminThemes .gBlock { + background: #fff; + padding: 1em; } -#gAdminThemes .available div { - padding: 10px; + +#gAdminThemes #gAvailableThemes .gBlock { + clear: none; cursor: pointer; -} -#gAdminThemes .available div { - width: 250px; float: left; + margin-right: 1em; + text-align: center; + width: 250px; } + +#gAdminThemes #gAvailableThemes .gBlock:hover { + background: #eee; +} + +#gAdminThemes a { + color: #333; +} + #gAdminGraphics tr { cursor: pointer; } + #gAdminGraphics tr.selected { background-color: #cfc !important; cursor: default; } + #gAdminGraphics tr:hover { background-color: #eee; } -- cgit v1.2.3