1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-21 21:19:36 +01:00

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:
8n-tech 2015-04-20 02:30:51 +10:00
parent 41f2156b2b
commit aa370fe797
8 changed files with 159 additions and 12 deletions

View File

@ -168,14 +168,10 @@ foreach ($response['boards'] as $boardUri => &$board) {
$board['active'] = (int) $boardActivity['active'][ $boardUri ];
}
if (isset($boardActivity['average'][ $boardUri ])) {
$precision = 4 - strlen( $boardActivity['average'][ $boardUri ] );
$precision = 1;
if( $precision < 0 ) {
$precision = 0;
}
$board['pph'] = round( $boardActivity['average'][ $boardUri ], 2 );
$board['ppd'] = round( $boardActivity['today'][ $boardUri ], 2 );
$board['pph'] = round( $boardActivity['average'][ $boardUri ], $precision );
$board['ppd'] = round( $boardActivity['today'][ $boardUri ], $precision );
unset( $precision );
}

View File

@ -46,6 +46,8 @@ $tagQueryGet['tags'] = $tagQueryTags;
$tag_query = "?" . http_build_query( $tagQueryGet ) . ($tagQueryTags != "" ? "+" : "");
/* Create and distribute page */
// buildJavascript();
$boardsHTML = Element("8chan/boards-table.html", array(
"config" => $config,
"boards" => $boards,
@ -87,6 +89,7 @@ $searchHTML = Element("8chan/boards-search.html", array(
);
$pageHTML = Element("page.html", array(
"title" => _("Boardlist"),
"config" => $config,
"body" => $searchHTML
)
@ -101,9 +104,6 @@ if (php_sapi_name() == 'cli') {
file_write("boards.html", $pageHTML);
file_write("boards.json", json_encode($nonAssociativeBoardList));
file_write("boards-top20.json", json_encode(array_splice($nonAssociativeBoardList, 0, 48)));
echo "The board directories have regenerated.";
exit;
}
echo $pageHTML;

View File

@ -198,3 +198,34 @@ div.report {
.modlog tr:nth-child(even), .modlog th {
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;
}

View File

@ -329,3 +329,31 @@ form table tr td div {
.desktop-style div.boardlist:not(.bottom) {
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;
}

View File

@ -57,4 +57,33 @@ p.intro a.email span.name {
a {
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;
}

View File

@ -86,6 +86,10 @@ table.mod.config-editor input[type="text"] {
width: 100%;
}
#post-form-inner .post-table tr {
background-color: transparent;
}
.post-table th, .post-table-options th {
width: 85px;
}
@ -363,6 +367,7 @@ p.intro a {
color: maroon;
}
p.body-line,
div.post p {
display: block;
margin: 0;

View File

@ -156,3 +156,32 @@ div#watchlist a:hover,a.watchThread:hover {
.modlog tr:nth-child(even), .modlog th {
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;
}

View File

@ -3,10 +3,10 @@ body {
color: #800000;
}
a:link, a:visited, p.intro a.email span.name {
color: #0000ff;
color: #800;
}
a:link:hover {
color: #d00;
color: #e00;
}
a.post_no {
color: #800000;
@ -66,3 +66,32 @@ table.modlog tr th {
.desktop-style div.boardlist:nth-child(1) {
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;
}