[themes] zebra tables are also forms
This commit is contained in:
@ -24,7 +24,7 @@ class AliasTable extends Table
|
||||
new ActionColumn("oldtag"),
|
||||
]);
|
||||
$this->order_by = ["oldtag"];
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ class AutoTaggerTable extends Table
|
||||
new ActionColumn("tag"),
|
||||
]);
|
||||
$this->order_by = ["tag"];
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ class HashBanTable extends Table
|
||||
$this->order_by = ["date DESC", "id"];
|
||||
$this->create_url = make_link("image_hash_ban/add");
|
||||
$this->delete_url = make_link("image_hash_ban/remove");
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ class IPBanTable extends Table
|
||||
];
|
||||
$this->create_url = make_link("ip_ban/create");
|
||||
$this->delete_url = make_link("ip_ban/delete");
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ class LogTable extends Table
|
||||
new ActionColumn("id"),
|
||||
]);
|
||||
$this->order_by = ["date_sent DESC"];
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ class NotATagTable extends Table
|
||||
$this->order_by = ["tag", "redirect"];
|
||||
$this->create_url = make_link("untag/add");
|
||||
$this->delete_url = make_link("untag/remove");
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,23 +1,18 @@
|
||||
|
||||
ARTICLE SELECT {width: 150px;}
|
||||
INPUT, TEXTAREA {box-sizing: border-box;}
|
||||
|
||||
TD>INPUT[type="button"], TD>SPAN>INPUT[type="button"],
|
||||
TD>INPUT[type="submit"], TD>SPAN>INPUT[type="submit"],
|
||||
TD>INPUT[type="text"], TD>SPAN>INPUT[type="text"],
|
||||
TD>INPUT[type="password"], TD>SPAN>INPUT[type="password"],
|
||||
TD>INPUT[type="email"], TD>SPAN>INPUT[type="email"],
|
||||
TD>SELECT, TD>SPAN>SELECT,
|
||||
TD>TEXTAREA, TD>SPAN>TEXTAREA,
|
||||
TD>BUTTON, TD>SPAN>BUTTON {width: 100%;}
|
||||
|
||||
TABLE.form {width: 300px;}
|
||||
TABLE.form.zebra {width: 100%;}
|
||||
|
||||
TABLE.form TD, TABLE.form TH {vertical-align: middle;}
|
||||
TABLE.form TBODY TR TD {text-align: left;}
|
||||
TABLE.form TBODY TR TH {text-align: right; padding-right: 4px; width: 1%; white-space: nowrap;}
|
||||
TABLE.form TBODY TR.header TD,
|
||||
TABLE.form TBODY TR.header TH {text-align: center; width: auto;}
|
||||
TABLE.form TD + TH {padding-left: 8px;}
|
||||
TABLE.form INPUT:not([type="checkbox"]):not([type="radio"]),
|
||||
TABLE.form SELECT,
|
||||
TABLE.form TEXTAREA,
|
||||
TABLE.form BUTTON {width: 100%;}
|
||||
|
||||
*[onclick],
|
||||
H3[class~="shm-toggler"],
|
||||
|
@ -67,7 +67,7 @@ class UserTable extends Table
|
||||
new UserActionColumn(),
|
||||
]);
|
||||
$this->order_by = ["id DESC"];
|
||||
$this->table_attrs = ["class" => "zebra"];
|
||||
$this->table_attrs = ["class" => "zebra form"];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user