Skip to content

Commit

Permalink
[css] remove more dead css, make more extension CSS be specific
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Jan 1, 2024
1 parent 7264683 commit 3acc3fa
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 73 deletions.
4 changes: 2 additions & 2 deletions ext/bulk_actions/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
);

Expand Down
2 changes: 1 addition & 1 deletion ext/bulk_actions/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.selected {
.bulk_selected {
outline: 3px solid blue;
}

Expand Down
2 changes: 1 addition & 1 deletion ext/cron_uploader/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
table.log th {
table.cron_uploader_log th {
width: 200px;
}
2 changes: 1 addition & 1 deletion ext/cron_uploader/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function display_documentation(
$page->add_block($block_usage);

if (!empty($log_entries)) {
$log_html = "<table class='log'>";
$log_html = "<table class='cron_uploader_log'>";
foreach ($log_entries as $entry) {
$log_html .= "<tr><th>{$entry["date_sent"]}</th><td>{$entry["message"]}</td></tr>";
}
Expand Down
2 changes: 0 additions & 2 deletions ext/index/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

/*noinspection CssRedundantUnit*/
#image-list .blockbody {
background: none;
border: none;
Expand Down
11 changes: 0 additions & 11 deletions ext/setup/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@
resize: vertical;
}

.helpable {
border-bottom: 1px dashed gray;
}

.ok {
background: #AFA;
}
.bad {
background: #FAA;
}

#Setupmain .blockbody {
background: none;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion ext/tag_editcloud/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
span.tag-selected {
.tageditcloud span.tag-selected {
background:#88EE88;
}

Expand Down
15 changes: 3 additions & 12 deletions ext/upload/style.css
Original file line number Diff line number Diff line change
@@ -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%;
}
4 changes: 2 additions & 2 deletions ext/upload/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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&nbsp;Tags")),
TD(["colspan" => "6"], INPUT(["name" => "tags", "type" => "text", "placeholder" => "tagme", "class" => "autocomplete_tags"]))
Expand Down Expand Up @@ -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"]))),
Expand Down
15 changes: 0 additions & 15 deletions themes/danbooru/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
15 changes: 0 additions & 15 deletions themes/danbooru2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 0 additions & 10 deletions themes/lite/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3acc3fa

Please sign in to comment.