[css] remove more dead css, make more extension CSS be specific

This commit is contained in:
Shish 2024-01-01 16:21:43 +00:00
parent 7264683a04
commit 3acc3fa607
12 changed files with 11 additions and 73 deletions

View file

@ -68,11 +68,11 @@ function get_selected_items() {
} }
function set_selected_items(items) { function set_selected_items(items) {
$(".shm-thumb").removeClass('selected'); $(".shm-thumb").removeClass('bulk_selected');
$(items).each( $(items).each(
function(index,item) { function(index,item) {
$('.shm-thumb[data-post-id="' + item + '"]').addClass('selected'); $('.shm-thumb[data-post-id="' + item + '"]').addClass('bulk_selected');
} }
); );

View file

@ -1,4 +1,4 @@
.selected { .bulk_selected {
outline: 3px solid blue; outline: 3px solid blue;
} }

View file

@ -1,3 +1,3 @@
table.log th { table.cron_uploader_log th {
width: 200px; width: 200px;
} }

View file

@ -115,7 +115,7 @@ class CronUploaderTheme extends Themelet
$page->add_block($block_usage); $page->add_block($block_usage);
if (!empty($log_entries)) { if (!empty($log_entries)) {
$log_html = "<table class='log'>"; $log_html = "<table class='cron_uploader_log'>";
foreach ($log_entries as $entry) { foreach ($log_entries as $entry) {
$log_html .= "<tr><th>{$entry["date_sent"]}</th><td>{$entry["message"]}</td></tr>"; $log_html .= "<tr><th>{$entry["date_sent"]}</th><td>{$entry["message"]}</td></tr>";
} }

View file

@ -1,5 +1,3 @@
/*noinspection CssRedundantUnit*/
#image-list .blockbody { #image-list .blockbody {
background: none; background: none;
border: none; border: none;

View file

@ -17,17 +17,6 @@
resize: vertical; resize: vertical;
} }
.helpable {
border-bottom: 1px dashed gray;
}
.ok {
background: #AFA;
}
.bad {
background: #FAA;
}
#Setupmain .blockbody { #Setupmain .blockbody {
background: none; background: none;
border: none; border: none;

View file

@ -1,4 +1,4 @@
span.tag-selected { .tageditcloud span.tag-selected {
background:#88EE88; background:#88EE88;
} }

View file

@ -1,17 +1,8 @@
/* Only need to change the file/url inputs */ #large_upload_form TD,
#large_upload_form INPUT.wid { #large_upload_form TH {
width: 100%; vertical-align: middle;
}
#radio_button {
width: auto;
}
#wrapper {
opacity: 0.4;
filter: alpha(opacity=40); /* msie */
} }
/* 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 { .mini_upload INPUT {
width: 100%; width: 100%;
} }

View file

@ -49,7 +49,7 @@ class UploadTheme extends Themelet
$form = SHM_FORM("upload", "POST", true, "file_upload"); $form = SHM_FORM("upload", "POST", true, "file_upload");
$form->appendChild( $form->appendChild(
TABLE( TABLE(
["id" => "large_upload_form", "class" => "vert"], ["id" => "large_upload_form"],
TR( TR(
TD(["width" => "20"], rawHTML("Common&nbsp;Tags")), TD(["width" => "20"], rawHTML("Common&nbsp;Tags")),
TD(["colspan" => "6"], INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags"])) TD(["colspan" => "6"], INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags"]))
@ -242,7 +242,7 @@ class UploadTheme extends Themelet
$form = SHM_FORM("replace/".$image_id, "POST", true); $form = SHM_FORM("replace/".$image_id, "POST", true);
$form->appendChild(emptyHTML( $form->appendChild(emptyHTML(
TABLE( TABLE(
["id" => "large_upload_form", "class" => "vert"], ["id" => "large_upload_form"],
$upload_list, $upload_list,
TR(TD("Source"), TD(["colspan" => 3], INPUT(["name" => "source", "type" => "text"]))), TR(TD("Source"), TD(["colspan" => 3], INPUT(["name" => "source", "type" => "text"]))),
TR(TD(["colspan" => 4], INPUT(["id" => "uploadbutton", "type" => "submit", "value" => "Post"]))), TR(TD(["colspan" => 4], INPUT(["id" => "uploadbutton", "type" => "submit", "value" => "Post"]))),

View file

@ -219,21 +219,6 @@ margin:16px;
padding:8px; padding:8px;
width:350px; 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 { .comment .username {
font-size:1.5em; font-size:1.5em;
font-weight:bold; font-weight:bold;

View file

@ -269,21 +269,6 @@ width:100%;
margin-top:0.4rem; margin-top:0.4rem;
padding:0.2rem 0.6rem; 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 { .comment .username {
font-weight:bold; font-weight:bold;
font-size:1.5em; font-size:1.5em;

View file

@ -316,16 +316,6 @@ ARTICLE TABLE {
font-size: 0.75rem; font-size: 0.75rem;
} }
.helpable {
border-bottom: 1px dashed gray;
}
.ok {
background: #AFA;
}
.bad {
background: #FAA;
}
NAV .thumbblock { NAV .thumbblock {
float: none; float: none;