forked from GithubBackups/vichan
Sweeping CSS fixes.
#467 - Added a title to the board list page. #467 - Fixed every single custom stylesheet. #467 - Fixed several stray CSS isues. #467 - Removed most precision from the PPH. Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
This commit is contained in:
parent
41f2156b2b
commit
aa370fe797
@ -168,14 +168,10 @@ foreach ($response['boards'] as $boardUri => &$board) {
|
|||||||
$board['active'] = (int) $boardActivity['active'][ $boardUri ];
|
$board['active'] = (int) $boardActivity['active'][ $boardUri ];
|
||||||
}
|
}
|
||||||
if (isset($boardActivity['average'][ $boardUri ])) {
|
if (isset($boardActivity['average'][ $boardUri ])) {
|
||||||
$precision = 4 - strlen( $boardActivity['average'][ $boardUri ] );
|
$precision = 1;
|
||||||
|
|
||||||
if( $precision < 0 ) {
|
$board['pph'] = round( $boardActivity['average'][ $boardUri ], $precision );
|
||||||
$precision = 0;
|
$board['ppd'] = round( $boardActivity['today'][ $boardUri ], $precision );
|
||||||
}
|
|
||||||
|
|
||||||
$board['pph'] = round( $boardActivity['average'][ $boardUri ], 2 );
|
|
||||||
$board['ppd'] = round( $boardActivity['today'][ $boardUri ], 2 );
|
|
||||||
|
|
||||||
unset( $precision );
|
unset( $precision );
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,8 @@ $tagQueryGet['tags'] = $tagQueryTags;
|
|||||||
$tag_query = "?" . http_build_query( $tagQueryGet ) . ($tagQueryTags != "" ? "+" : "");
|
$tag_query = "?" . http_build_query( $tagQueryGet ) . ($tagQueryTags != "" ? "+" : "");
|
||||||
|
|
||||||
/* Create and distribute page */
|
/* Create and distribute page */
|
||||||
|
// buildJavascript();
|
||||||
|
|
||||||
$boardsHTML = Element("8chan/boards-table.html", array(
|
$boardsHTML = Element("8chan/boards-table.html", array(
|
||||||
"config" => $config,
|
"config" => $config,
|
||||||
"boards" => $boards,
|
"boards" => $boards,
|
||||||
@ -87,6 +89,7 @@ $searchHTML = Element("8chan/boards-search.html", array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$pageHTML = Element("page.html", array(
|
$pageHTML = Element("page.html", array(
|
||||||
|
"title" => _("Boardlist"),
|
||||||
"config" => $config,
|
"config" => $config,
|
||||||
"body" => $searchHTML
|
"body" => $searchHTML
|
||||||
)
|
)
|
||||||
@ -101,9 +104,6 @@ if (php_sapi_name() == 'cli') {
|
|||||||
file_write("boards.html", $pageHTML);
|
file_write("boards.html", $pageHTML);
|
||||||
file_write("boards.json", json_encode($nonAssociativeBoardList));
|
file_write("boards.json", json_encode($nonAssociativeBoardList));
|
||||||
file_write("boards-top20.json", json_encode(array_splice($nonAssociativeBoardList, 0, 48)));
|
file_write("boards-top20.json", json_encode(array_splice($nonAssociativeBoardList, 0, 48)));
|
||||||
|
|
||||||
echo "The board directories have regenerated.";
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $pageHTML;
|
echo $pageHTML;
|
@ -198,3 +198,34 @@ div.report {
|
|||||||
.modlog tr:nth-child(even), .modlog th {
|
.modlog tr:nth-child(even), .modlog th {
|
||||||
background-color: #282A2E;
|
background-color: #282A2E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background: #333333;
|
||||||
|
border-color: #555555;
|
||||||
|
color: #C5C8C6;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
.box-title {
|
||||||
|
background: transparent;
|
||||||
|
color: #32DD72;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
background: #333333;
|
||||||
|
border-color: #555555;
|
||||||
|
color: #C5C8C6;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
table tbody tr:nth-of-type( even ) {
|
||||||
|
background-color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.board-list-table .board-uri .board-sfw {
|
||||||
|
color: #446655;
|
||||||
|
}
|
||||||
|
tbody.board-list-omitted td {
|
||||||
|
background: #333333;
|
||||||
|
border-color: #555555;
|
||||||
|
}
|
@ -329,3 +329,31 @@ form table tr td div {
|
|||||||
.desktop-style div.boardlist:not(.bottom) {
|
.desktop-style div.boardlist:not(.bottom) {
|
||||||
background-color: #DDDDDD;
|
background-color: #DDDDDD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background: #DDDDDD;
|
||||||
|
border-color: #CCCCCC;
|
||||||
|
color: #333333;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
.box-title {
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
table tbody tr:nth-of-type( even ) {
|
||||||
|
background-color: #DDDDDD;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.board-list-table .board-uri .board-sfw {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
tbody.board-list-omitted td {
|
||||||
|
background: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
@ -58,3 +58,32 @@ p.intro a.email span.name {
|
|||||||
a {
|
a {
|
||||||
color: #8020FF;
|
color: #8020FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background: #343C4E;
|
||||||
|
border: none;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
.box-title {
|
||||||
|
background: #7F8CA8;
|
||||||
|
color: #0F0C5D;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
background: #343C4E;
|
||||||
|
border: none;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
table tbody tr:nth-of-type( even ) {
|
||||||
|
background-color: #343C4E;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.board-list-table .board-uri .board-sfw {
|
||||||
|
color: #D00;
|
||||||
|
}
|
||||||
|
tbody.board-list-omitted td {
|
||||||
|
background: #343C4E;
|
||||||
|
border: none;
|
||||||
|
}
|
@ -86,6 +86,10 @@ table.mod.config-editor input[type="text"] {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#post-form-inner .post-table tr {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.post-table th, .post-table-options th {
|
.post-table th, .post-table-options th {
|
||||||
width: 85px;
|
width: 85px;
|
||||||
}
|
}
|
||||||
@ -363,6 +367,7 @@ p.intro a {
|
|||||||
color: maroon;
|
color: maroon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p.body-line,
|
||||||
div.post p {
|
div.post p {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -156,3 +156,32 @@ div#watchlist a:hover,a.watchThread:hover {
|
|||||||
.modlog tr:nth-child(even), .modlog th {
|
.modlog tr:nth-child(even), .modlog th {
|
||||||
background-color: #282A2E;
|
background-color: #282A2E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background: #282a2e;
|
||||||
|
border-color: #111;
|
||||||
|
color: #C5C8C6;
|
||||||
|
}
|
||||||
|
.box-title {
|
||||||
|
background: #282a2e;
|
||||||
|
color: #C5C8C6;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
background: #282a2e;
|
||||||
|
border-color: #111;
|
||||||
|
color: #C5C8C6;
|
||||||
|
}
|
||||||
|
table tbody tr:nth-of-type( even ) {
|
||||||
|
background-color: #282a2e;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.board-list-table .board-uri .board-sfw {
|
||||||
|
color: #C5C8C6;
|
||||||
|
}
|
||||||
|
tbody.board-list-omitted td {
|
||||||
|
background: #282a2e;
|
||||||
|
border-color: #111;
|
||||||
|
}
|
@ -3,10 +3,10 @@ body {
|
|||||||
color: #800000;
|
color: #800000;
|
||||||
}
|
}
|
||||||
a:link, a:visited, p.intro a.email span.name {
|
a:link, a:visited, p.intro a.email span.name {
|
||||||
color: #0000ff;
|
color: #800;
|
||||||
}
|
}
|
||||||
a:link:hover {
|
a:link:hover {
|
||||||
color: #d00;
|
color: #e00;
|
||||||
}
|
}
|
||||||
a.post_no {
|
a.post_no {
|
||||||
color: #800000;
|
color: #800000;
|
||||||
@ -66,3 +66,32 @@ table.modlog tr th {
|
|||||||
.desktop-style div.boardlist:nth-child(1) {
|
.desktop-style div.boardlist:nth-child(1) {
|
||||||
background-color: #F0E0D6;
|
background-color: #F0E0D6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background: #fff;
|
||||||
|
border-color: #800;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
.box-title {
|
||||||
|
background: #fca;
|
||||||
|
color: #800;
|
||||||
|
}
|
||||||
|
|
||||||
|
table thead th {
|
||||||
|
border-color: #800;
|
||||||
|
background: #fca;
|
||||||
|
color: #800;
|
||||||
|
}
|
||||||
|
table tbody tr:nth-of-type( even ) {
|
||||||
|
background-color: #ede2d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.board-list-table .board-uri .board-sfw {
|
||||||
|
color: #800;
|
||||||
|
}
|
||||||
|
tbody.board-list-omitted td {
|
||||||
|
background: #fca;
|
||||||
|
border-color: #800;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user