Skip to content

Commit

Permalink
First round of CSS refactor updates. Added calls to gallery.common.cs…
Browse files Browse the repository at this point in the history
…s from wind and admin_wind. Replaced basic text align and block float classes. Removed section #2 from both themes screen styles.
  • Loading branch information
ckieffer committed Sep 30, 2009
1 parent fbb6a86 commit daa3a2b
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 65 deletions.
10 changes: 6 additions & 4 deletions lib/gallery.common.css
Expand Up @@ -108,12 +108,14 @@ form .g-error {
* 3) Positioning and order
**********************************************************************/

.g-right {
float: right;
}

.g-left {
float: left;
margin: 1em 1em 1em 0;
}

.g-right {
float: right;
margin: 1em 0 1em 1em;
}

.g-first {
Expand Down
2 changes: 1 addition & 1 deletion modules/comment/views/admin_comments.html.php
Expand Up @@ -116,7 +116,7 @@ class="gAvatar"
title="<?= html::clean_attribute($comment->author_email()) ?>"> <?= html::clean($comment->author_name()) ?> </a></p>
</td>
<td>
<div class="right">
<div class="g-right">
<? $item = $comment->item() ?>
<div class="gItem gPhoto">
<a href="<?= $item->url() ?>">
Expand Down
6 changes: 3 additions & 3 deletions modules/gallery/views/admin_maintenance.html.php
Expand Up @@ -63,7 +63,7 @@ class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">
<th>
<?= t("Action") ?>
<a href="<?= url::site("admin/maintenance/cancel_running_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
class="gButtonLink g-right ui-icon-left ui-state-default ui-corner-all">
<?= t("cancel all") ?></a>
</th>
</tr>
Expand Down Expand Up @@ -102,7 +102,7 @@ class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
</a>
<? endif ?>
<a href="<?= url::site("admin/maintenance/cancel/$task->id?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
class="gButtonLink g-right ui-icon-left ui-state-default ui-corner-all">
<?= t("cancel") ?>
</a>
</td>
Expand Down Expand Up @@ -136,7 +136,7 @@ class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
<th>
<?= t("Action") ?>
<a href="<?= url::site("admin/maintenance/remove_finished_tasks?csrf=$csrf") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all right">
class="gButtonLink g-right ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-trash"></span><?= t("remove all finished") ?></a>
</th>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/views/admin_maintenance_task.html.php
Expand Up @@ -57,7 +57,7 @@
<div id="gStatus">
<?= t("Starting up...") ?>
</div>
<div class="txtright">
<div class="g-txt-right">
<button id="gPauseButton" class="ui-state-default ui-corner-all" onclick="dismiss()"><?= t("Pause") ?></button>
<button id="gDoneButton" class="ui-state-default ui-corner-all" style="display: none" onclick="dismiss()"><?= t("Close") ?></button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions modules/tag/views/admin_tags.html.php
Expand Up @@ -23,7 +23,7 @@
<? $column_tag_count = 0 ?>

<table id="gTagAdmin" class="gBlockContent">
<caption class="understate">
<caption class="g-understate">
<?= t2("There is one tag", "There are %count tags", $tags->count()) ?>
</caption>
<tr>
Expand All @@ -48,7 +48,7 @@

<li>
<span id="gTag-<?= $tag->id ?>" class="gEditable tag-name"><?= html::clean($tag->name) ?></span>
<span class="understate">(<?= $tag->count ?>)</span>
<span class="g-understate">(<?= $tag->count ?>)</span>
<a href="<?= url::site("admin/tags/form_delete/$tag->id") ?>"
class="gDialogLink delete-link gButtonLink">
<span class="ui-icon ui-icon-trash"><?= t("Delete this tag") ?></span></a>
Expand Down
2 changes: 1 addition & 1 deletion modules/user/views/admin_users.html.php
Expand Up @@ -43,7 +43,7 @@ function() {
</script>
<div class="gBlock">
<a href="<?= url::site("admin/users/add_user_form") ?>"
class="gDialogLink gButtonLink right ui-icon-left ui-state-default ui-corner-all"
class="gDialogLink gButtonLink g-right ui-icon-left ui-state-default ui-corner-all"
title="<?= t("Create a new user")->for_html_attr() ?>">
<span class="ui-icon ui-icon-circle-plus"></span>
<?= t("Add a new user") ?>
Expand Down
24 changes: 0 additions & 24 deletions themes/admin_wind/css/screen.css
Expand Up @@ -5,7 +5,6 @@
*
* Sheet organization:
* 1) Basic HTML elements
* 2) Reusable classes
* 3) Reusable content blocks
* 4) Page layout containers
* 5) Content blocks in specific layout containers
Expand Down Expand Up @@ -239,29 +238,6 @@ li.gError select {
border: 2px solid red;
}

/** *******************************************************************
* 2) Reusable generic classes
*********************************************************************/

.inactive, .understate {
color: #ccc;
font-weight: normal;
}

.left {
float: left;
margin: 1em 1em 1em 0;
}

.right {
float: right;
margin: 1em 0 1em 1em;
}

.txtright {
text-align: right;
}

/** *******************************************************************
* 3) Reusable content blocks
*********************************************************************/
Expand Down
1 change: 1 addition & 0 deletions themes/admin_wind/views/admin.html.php
Expand Up @@ -10,6 +10,7 @@
<?= $theme->css("yui/reset-fonts-grids.css") ?>
<?= $theme->css("themeroller/ui.base.css") ?>
<?= $theme->css("superfish/css/superfish.css") ?>
<?= $theme->css("gallery.common.css") ?>
<?= $theme->css("screen.css") ?>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?= $theme->url("fix-ie.css") ?>"
Expand Down
2 changes: 1 addition & 1 deletion themes/admin_wind/views/pager.html.php
Expand Up @@ -25,7 +25,7 @@
<? endif ?>
</li>
<li class="gInfo"><?= $from_to_msg ?></li>
<li class="txtright">
<li class="g-txt-right">
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
Expand Down
2 changes: 1 addition & 1 deletion themes/wind/css/fix-ie.css
Expand Up @@ -28,7 +28,7 @@ input.submit {
float: none !important;
}

.gPager .txtright {
.gPager .g-txt-right {
width: 29%;
}

Expand Down
24 changes: 0 additions & 24 deletions themes/wind/css/screen.css
Expand Up @@ -5,7 +5,6 @@
*
* Sheet organization:
* 1) Basic HTML elements
* 2) Reusable classes
* 3) Reusable content blocks
* 4) Page layout containers
* 5) Content blocks in specific layout containers
Expand Down Expand Up @@ -242,29 +241,6 @@ li.gError select {
border: 2px solid red;
}

/** *******************************************************************
* 2) Reusable generic classes
*********************************************************************/

.inactive, .understate {
color: #ccc;
font-weight: normal;
}

.left {
float: left;
margin: 1em 1em 1em 0;
}

.right {
float: right;
margin: 1em 0 1em 1em;
}

.txtright {
text-align: right;
}

/** *******************************************************************
* 3) Reusable content blocks
*********************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion themes/wind/views/movie.html.php
Expand Up @@ -13,7 +13,7 @@
<? endif; ?>
</li>
<li class="gInfo"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
<li class="txtright">
<li class="g-txt-right">
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
Expand Down
1 change: 1 addition & 0 deletions themes/wind/views/page.html.php
Expand Up @@ -27,6 +27,7 @@
<?= $theme->css("yui/reset-fonts-grids.css") ?>
<?= $theme->css("superfish/css/superfish.css") ?>
<?= $theme->css("themeroller/ui.base.css") ?>
<?= $theme->css("gallery.common.css") ?>
<?= $theme->css("screen.css") ?>
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/fix-ie.css") ?>"
Expand Down
2 changes: 1 addition & 1 deletion themes/wind/views/pager.html.php
Expand Up @@ -25,7 +25,7 @@
<? endif ?>
</li>
<li class="gInfo"><?= $from_to_msg ?></li>
<li class="txtright">
<li class="g-txt-right">
<? if ($next_page): ?>
<a href="<?= str_replace('{page}', $next_page, $url) ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-seek-next"></span><?= t("next") ?></a>
Expand Down
2 changes: 1 addition & 1 deletion themes/wind/views/photo.html.php
Expand Up @@ -26,7 +26,7 @@
<? endif; ?>
</li>
<li class="gInfo"><?= t("%position of %total", array("position" => $position, "total" => $sibling_count)) ?></li>
<li class="txtright">
<li class="g-txt-right">
<? if ($next_item): ?>
<a href="<?= $next_item->url() ?>" class="gButtonLink ui-icon-right ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-triangle-1-e"></span><?= t("next") ?></a>
Expand Down

0 comments on commit daa3a2b

Please sign in to comment.