diff --git a/lib/gallery.common.css b/lib/gallery.common.css index f199ba45..c80dc90f 100644 --- a/lib/gallery.common.css +++ b/lib/gallery.common.css @@ -12,22 +12,21 @@ * 7) Right to left language styles * * @todo Update .g-message-block, don't force it to 100%, bad things happen is themes when you do. - * @todo Remove extra white space at the top of the add comment form, above the first field */ /** ******************************************************************* * 1) Text **********************************************************************/ -.g-txt-small { +.g-text-small { font-size: .8em; } -.g-txt-big { +.g-text-big { font-size: 1.2em; } -.g-txt-right { +.g-text-right { text-align: right; } @@ -41,7 +40,7 @@ form { fieldset { border: 1px solid #ccc; - padding: .4em 1em .8em 1em; + padding: 0 1em .8em 1em; } #g-banner fieldset, @@ -52,7 +51,8 @@ fieldset { legend { font-weight: bold; - margin: 0 0 .4em .8em; + margin: 0; + padding: 0 .2em; } #g-banner legend, @@ -99,7 +99,11 @@ input[type=radio] { form li { margin: 0; - padding: .3em 0; + padding: 0 0 .2em 0; +} + +form ul { + margin-top: 0; } form ul ul { @@ -125,13 +129,22 @@ input[type="reset"] { float: left; } -/* Forms in dialogs ~~~~~~~~~~~~~~~~~~ */ +/* Forms in dialogs and panels ~~~~~~~~~ */ -#g-dialog form fieldset { +#g-dialog ul li { + padding-bottom: .8em; +} + +#g-dialog fieldset, +#g-panel fieldset { border: none; padding: 0; } +#g-panel legend { + display: none; +} + #g-dialog input.textbox, #g-dialog input[type=text], #g-dialog input[type=password], @@ -549,7 +562,7 @@ div#g-action-status { width: 40%; } -/* Dialogs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ +/* Dialogs and panels ~~~~~~~~~~~~~~~~~~ */ #g-dialog { text-align: left; @@ -563,6 +576,11 @@ div#g-action-status { margin: .4em 1em; } +#g-panel { + display: none; + padding: 1em; +} + /* Inline layout ~~~~~~~~~~ */ .g-inline li { @@ -596,7 +614,7 @@ div#g-action-status { text-align: right; } -.rtl .g-txt-right { +.rtl .g-text-right { text-align: left; } @@ -649,7 +667,7 @@ div#g-action-status { width: 35%; } -.rtl .g-pager .g-txt-right { +.rtl .g-pager .g-text-right { margin-left: 0; } diff --git a/lib/gallery.common.js b/lib/gallery.common.js index da69e476..9aaac1ce 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -125,7 +125,7 @@ // Initialize context menus $.fn.gallery_context_menu = function() { - if ($(".g-context-menu li").length) { + if ($(".g-context-menu li").length) { var hover_target = ".g-context-menu"; var in_progress = 0; $(hover_target + " *").removeAttr('title'); diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index 6200e8b4..5e78376b 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -66,7 +66,7 @@ class Movies_Controller extends Items_Controller { if ($valid) { $new_ext = pathinfo($form->edit_item->filename->value, PATHINFO_EXTENSION); - $old_ext = pathinfo($photo->name, PATHINFO_EXTENSION); + $old_ext = pathinfo($movie->name, PATHINFO_EXTENSION); if (strcasecmp($new_ext, $old_ext)) { $form->edit_item->filename->add_error("illegal_extension", 1); $valid = false; diff --git a/modules/gallery/views/admin_maintenance.html.php b/modules/gallery/views/admin_maintenance.html.php index 107b35cc..7ad75f85 100644 --- a/modules/gallery/views/admin_maintenance.html.php +++ b/modules/gallery/views/admin_maintenance.html.php @@ -116,6 +116,9 @@ count()): ?>
+ " + class="g-button g-right ui-icon-left ui-state-default ui-corner-all"> +

@@ -135,9 +138,6 @@ diff --git a/modules/gallery/views/admin_maintenance_show_log.html.php b/modules/gallery/views/admin_maintenance_show_log.html.php index ff7ac50e..d2472fdc 100644 --- a/modules/gallery/views/admin_maintenance_show_log.html.php +++ b/modules/gallery/views/admin_maintenance_show_log.html.php @@ -11,7 +11,7 @@ appendTo('body').submit().remove();

name ?>

-
+
get_log()) ?>
diff --git a/modules/gallery/views/admin_maintenance_task.html.php b/modules/gallery/views/admin_maintenance_task.html.php index 53972b70..76756b66 100644 --- a/modules/gallery/views/admin_maintenance_task.html.php +++ b/modules/gallery/views/admin_maintenance_task.html.php @@ -57,7 +57,7 @@
-
+
diff --git a/modules/gallery/views/login_ajax.html.php b/modules/gallery/views/login_ajax.html.php index 9741db0c..36647f9d 100644 --- a/modules/gallery/views/login_ajax.html.php +++ b/modules/gallery/views/login_ajax.html.php @@ -38,7 +38,7 @@
  • - +
  • diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index 661f1532..18ad9403 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -85,7 +85,7 @@
    -
    - " - class="g-button g-right ui-icon-left ui-state-default ui-corner-all"> -
    last_login == 0) ? "" : gallery::date($user->last_login) ?> + id") ?>" open_text="" class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left"> diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css index 4aa02023..73ec8ac5 100644 --- a/themes/admin_wind/css/screen.css +++ b/themes/admin_wind/css/screen.css @@ -12,8 +12,7 @@ * 6) jQuery and jQuery UI * 7) Right-to-left language styles * - * @todo Consider moving g-panel to gallery.common - * @todo Review g-actions along with g-buttonset-vertical + * @todo Review g-buttonset-vertical */ /** ******************************************************************* @@ -92,6 +91,10 @@ fieldset { margin-bottom: 1em; } +#g-content form ul li { + padding: .4em 0; +} + #g-dialog form { width: 270px; } @@ -124,6 +127,7 @@ td { } th { + vertical-align: bottom; white-space: nowrap; } @@ -156,6 +160,12 @@ th { padding: 0; } +#g-content .g-selected, +#g-content .g-available .g-block { + border: 1px solid #ccc; + padding: .8em; +} + .g-selected img, .g-available .g-block img { float: left; @@ -358,11 +368,6 @@ th { margin-right: 1em; } -.g-actions a, -.g-actions span { - margin-right: 3em; -} - /* Block admin ~~~~~~~~~~~~~~~~~~~~~~~~~ */ .g-admin-blocks-list { @@ -427,19 +432,6 @@ th { /* jQuery UI Dialog ~~~~~~~~~~~~~~~~~~~~~~ */ -#g-panel { - display: none; - padding: 1em; -} - -#g-panel legend { - display: none; -} - -#g-panel fieldset { - border: none; -} - #g-admin-dashboard .ui-state-highlight, #g-sidebar .ui-state-highlight { height: 2em; diff --git a/themes/admin_wind/views/pager.html.php b/themes/admin_wind/views/pager.html.php index e4fbd5d5..7870ef3f 100644 --- a/themes/admin_wind/views/pager.html.php +++ b/themes/admin_wind/views/pager.html.php @@ -25,7 +25,7 @@
  • -
  • +
  • diff --git a/themes/night_wind/css/fix-ie.css b/themes/night_wind/css/fix-ie.css index cb51f349..fcebeea8 100644 --- a/themes/night_wind/css/fix-ie.css +++ b/themes/night_wind/css/fix-ie.css @@ -20,7 +20,7 @@ input.submit { float: none !important; } -.g-pager .g-txt-right { +.g-pager .g-text-right { width: 29%; } diff --git a/themes/night_wind/views/movie.html.php b/themes/night_wind/views/movie.html.php index 9254c7fe..a791f2d8 100644 --- a/themes/night_wind/views/movie.html.php +++ b/themes/night_wind/views/movie.html.php @@ -13,7 +13,7 @@
  • $position, "total" => $sibling_count)) ?>
  • -
  • +
  • diff --git a/themes/night_wind/views/pager.html.php b/themes/night_wind/views/pager.html.php index ba325d03..af82b835 100644 --- a/themes/night_wind/views/pager.html.php +++ b/themes/night_wind/views/pager.html.php @@ -25,7 +25,7 @@
  • -
  • +
  • diff --git a/themes/night_wind/views/photo.html.php b/themes/night_wind/views/photo.html.php index e1231f65..a748daf2 100644 --- a/themes/night_wind/views/photo.html.php +++ b/themes/night_wind/views/photo.html.php @@ -26,7 +26,7 @@
  • $position, "total" => $sibling_count)) ?>
  • -
  • +
  • diff --git a/themes/wind/css/fix-ie.css b/themes/wind/css/fix-ie.css index cb51f349..fcebeea8 100644 --- a/themes/wind/css/fix-ie.css +++ b/themes/wind/css/fix-ie.css @@ -20,7 +20,7 @@ input.submit { float: none !important; } -.g-pager .g-txt-right { +.g-pager .g-text-right { width: 29%; } diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css index 74771e07..e46ba8e6 100644 --- a/themes/wind/css/screen.css +++ b/themes/wind/css/screen.css @@ -11,8 +11,6 @@ * 5) Navigation and menus * 6) jQuery and jQuery UI * 7) Right-to-left language styles - * - * @todo Review g-buttonset and it's usage here and admin_wind */ /** ******************************************************************* @@ -73,7 +71,9 @@ h3 { font-size: .8em; } -#g-content #g-album-grid .g-item { +#g-album-grid .g-item, +#g-item #g-photo, +#g-item #g-movie { font-size: .7em; } @@ -129,6 +129,9 @@ td { border: none; border-bottom: 1px solid #ccc; padding: .5em; +} + +td { vertical-align: top; } @@ -274,18 +277,21 @@ td { /* Individual photo content ~~~~~~~~~~~~~~ */ -#g-content #g-item { +#g-item { position: relative; width: 100%; } -#g-content #g-photo { +#g-item #g-photo, +#g-item #g-movie { + padding: 2.2em 0; position: relative; } -#g-content #g-item .g-fullsize-link img { +#g-item img.g-resize, +#g-item a.g-movie object { display: block; - margin: 1em auto; + margin: 0 auto; } /* Footer content ~~~~~~~~~~~~~~~~~~~~~~~~ */ diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index 0126c36b..be03b6a8 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -87,12 +87,12 @@ $(document).ready(function() { } // Photo/Item item view - if ($("#g-item").length) { + if ($("#g-photo").length) { // Ensure the resized image fits within its container - $("#g-item").gallery_fit_photo(); + $("#g-photo").gallery_fit_photo(); // Initialize context menus - var resize = $("#g-item").gallery_get_photo(); + var resize = $("#g-photo").gallery_get_photo(); $(resize).hover(function(){ $(this).gallery_context_menu(); }); diff --git a/themes/wind/views/movie.html.php b/themes/wind/views/movie.html.php index 9254c7fe..d91ffbc5 100644 --- a/themes/wind/views/movie.html.php +++ b/themes/wind/views/movie.html.php @@ -2,7 +2,7 @@
    photo_top() ?> -
      + - - movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?> - +
      + movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?> + context_menu($item, "#g-movie-id-{$item->id}") ?> +
      +

      title) ?>

      -
      description)) ?>
      +
      description)) ?>
      photo_bottom() ?> - context_menu($item, "#g-movie-id-{$item->id}") ?>
    diff --git a/themes/wind/views/pager.html.php b/themes/wind/views/pager.html.php index 36b2c13f..1dfe7eac 100644 --- a/themes/wind/views/pager.html.php +++ b/themes/wind/views/pager.html.php @@ -25,7 +25,7 @@
  • -
  • +
  • diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php index cee44134..e17dcdb3 100644 --- a/themes/wind/views/photo.html.php +++ b/themes/wind/views/photo.html.php @@ -26,7 +26,7 @@
  • $position, "total" => $sibling_count)) ?>
  • -
  • +