From 3acc3fa6074bcc93dc5147a9b14434562e34e1f2 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 1 Jan 2024 16:21:43 +0000 Subject: [PATCH] [css] remove more dead css, make more extension CSS be specific --- ext/bulk_actions/script.js | 4 ++-- ext/bulk_actions/style.css | 2 +- ext/cron_uploader/style.css | 2 +- ext/cron_uploader/theme.php | 2 +- ext/index/style.css | 2 -- ext/setup/style.css | 11 ----------- ext/tag_editcloud/style.css | 2 +- ext/upload/style.css | 15 +++------------ ext/upload/theme.php | 4 ++-- themes/danbooru/style.css | 15 --------------- themes/danbooru2/style.css | 15 --------------- themes/lite/style.css | 10 ---------- 12 files changed, 11 insertions(+), 73 deletions(-) diff --git a/ext/bulk_actions/script.js b/ext/bulk_actions/script.js index 831c00870..184a4b8cb 100644 --- a/ext/bulk_actions/script.js +++ b/ext/bulk_actions/script.js @@ -68,11 +68,11 @@ function get_selected_items() { } function set_selected_items(items) { - $(".shm-thumb").removeClass('selected'); + $(".shm-thumb").removeClass('bulk_selected'); $(items).each( function(index,item) { - $('.shm-thumb[data-post-id="' + item + '"]').addClass('selected'); + $('.shm-thumb[data-post-id="' + item + '"]').addClass('bulk_selected'); } ); diff --git a/ext/bulk_actions/style.css b/ext/bulk_actions/style.css index 4e7449fc6..117a5ce87 100644 --- a/ext/bulk_actions/style.css +++ b/ext/bulk_actions/style.css @@ -1,4 +1,4 @@ -.selected { +.bulk_selected { outline: 3px solid blue; } diff --git a/ext/cron_uploader/style.css b/ext/cron_uploader/style.css index 2643a6a16..770152bde 100644 --- a/ext/cron_uploader/style.css +++ b/ext/cron_uploader/style.css @@ -1,3 +1,3 @@ -table.log th { +table.cron_uploader_log th { width: 200px; } \ No newline at end of file diff --git a/ext/cron_uploader/theme.php b/ext/cron_uploader/theme.php index e367ba195..977f40f34 100644 --- a/ext/cron_uploader/theme.php +++ b/ext/cron_uploader/theme.php @@ -115,7 +115,7 @@ public function display_documentation( $page->add_block($block_usage); if (!empty($log_entries)) { - $log_html = ""; + $log_html = "
"; foreach ($log_entries as $entry) { $log_html .= ""; } diff --git a/ext/index/style.css b/ext/index/style.css index 5ecd5a282..8fdee55d7 100644 --- a/ext/index/style.css +++ b/ext/index/style.css @@ -1,5 +1,3 @@ - -/*noinspection CssRedundantUnit*/ #image-list .blockbody { background: none; border: none; diff --git a/ext/setup/style.css b/ext/setup/style.css index 6237cd650..c8904a5b1 100644 --- a/ext/setup/style.css +++ b/ext/setup/style.css @@ -17,17 +17,6 @@ resize: vertical; } -.helpable { - border-bottom: 1px dashed gray; -} - -.ok { - background: #AFA; -} -.bad { - background: #FAA; -} - #Setupmain .blockbody { background: none; border: none; diff --git a/ext/tag_editcloud/style.css b/ext/tag_editcloud/style.css index 0c5b9566d..995d2d56a 100644 --- a/ext/tag_editcloud/style.css +++ b/ext/tag_editcloud/style.css @@ -1,4 +1,4 @@ -span.tag-selected { +.tageditcloud span.tag-selected { background:#88EE88; } diff --git a/ext/upload/style.css b/ext/upload/style.css index d6d803849..6dd19550d 100644 --- a/ext/upload/style.css +++ b/ext/upload/style.css @@ -1,17 +1,8 @@ -/* Only need to change the file/url inputs */ -#large_upload_form INPUT.wid { - width: 100%; -} -#radio_button { - width: auto; -} -#wrapper { - opacity: 0.4; - filter: alpha(opacity=40); /* msie */ +#large_upload_form TD, +#large_upload_form TH { + vertical-align: middle; } -/* This is needed since the theme style.css forcibly sets vertical align to "top". */ -TABLE.vert TD, TABLE.vert TH {vertical-align: middle;} .mini_upload INPUT { width: 100%; } diff --git a/ext/upload/theme.php b/ext/upload/theme.php index fd7ca1304..78ee4005a 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -49,7 +49,7 @@ public function display_page(Page $page): void $form = SHM_FORM("upload", "POST", true, "file_upload"); $form->appendChild( TABLE( - ["id" => "large_upload_form", "class" => "vert"], + ["id" => "large_upload_form"], TR( TD(["width" => "20"], rawHTML("Common Tags")), TD(["colspan" => "6"], INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags"])) @@ -242,7 +242,7 @@ public function display_replace_page(Page $page, int $image_id) $form = SHM_FORM("replace/".$image_id, "POST", true); $form->appendChild(emptyHTML( TABLE( - ["id" => "large_upload_form", "class" => "vert"], + ["id" => "large_upload_form"], $upload_list, TR(TD("Source"), TD(["colspan" => 3], INPUT(["name" => "source", "type" => "text"]))), TR(TD(["colspan" => 4], INPUT(["id" => "uploadbutton", "type" => "submit", "value" => "Post"]))), diff --git a/themes/danbooru/style.css b/themes/danbooru/style.css index 598c05f91..b912670b4 100644 --- a/themes/danbooru/style.css +++ b/themes/danbooru/style.css @@ -219,21 +219,6 @@ margin:16px; padding:8px; width:350px; } -.helpable { -border-bottom:1px dashed gray; -} -.ok { --moz-background-clip:border; --moz-background-inline-policy:continuous; --moz-background-origin:padding; -background:#AAFFAA none repeat scroll 0 0; -} -.bad { --moz-background-clip:border; --moz-background-inline-policy:continuous; --moz-background-origin:padding; -background:#FFAAAA none repeat scroll 0 0; -} .comment .username { font-size:1.5em; font-weight:bold; diff --git a/themes/danbooru2/style.css b/themes/danbooru2/style.css index ba42886f1..70d23acd2 100644 --- a/themes/danbooru2/style.css +++ b/themes/danbooru2/style.css @@ -269,21 +269,6 @@ width:100%; margin-top:0.4rem; padding:0.2rem 0.6rem; } -.helpable { -border-bottom:1px dashed gray; -} -.ok { -background:#AAFFAA none repeat scroll 0 0; --moz-background-clip:border; --moz-background-inline-policy:continuous; --moz-background-origin:padding; -} -.bad { -background:#FFAAAA none repeat scroll 0 0; --moz-background-clip:border; --moz-background-inline-policy:continuous; --moz-background-origin:padding; -} .comment .username { font-weight:bold; font-size:1.5em; diff --git a/themes/lite/style.css b/themes/lite/style.css index 7ee856451..6ebe6fd4d 100644 --- a/themes/lite/style.css +++ b/themes/lite/style.css @@ -316,16 +316,6 @@ ARTICLE TABLE { font-size: 0.75rem; } -.helpable { - border-bottom: 1px dashed gray; -} - -.ok { - background: #AFA; -} -.bad { - background: #FAA; -} NAV .thumbblock { float: none;
{$entry["date_sent"]}{$entry["message"]}