1
0
mirror of https://github.com/kirsle/kirsle.net synced 2024-11-14 04:49:29 +00:00

CSS fixes with markdown tables and Google ads

This commit is contained in:
Noah 2015-02-24 20:17:22 +00:00
parent d93ae6cfec
commit 1fbd882bac
2 changed files with 14 additions and 1 deletions

View File

@ -17,7 +17,7 @@
{% endmacro %}
{% macro leaderboard() %}
<div style="text-align: center">
<div style="text-align: center" class="google-leaderboard">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0838718168234603";
/* Kirsle.net Leaderboard */

View File

@ -155,12 +155,14 @@ blockquote {
clear: both;
}
.markdown table,
table.table,
table.table th,
table.table td {
border: 1px solid #999999;
}
.markdown table,
table.table {
border-collapse: collapse;
border-spacing: 0;
@ -172,6 +174,7 @@ table.table-wide {
width: 100%;
}
.markdown table th,
table.table th {
background-color: #003366;
color: #FFFFFF;
@ -179,14 +182,17 @@ table.table th {
padding: 4px;
}
.markdown table tr:nth-child(even),
table.table tr:nth-child(even) {
background-color: #000000;
}
.markdown table tr:nth-child(odd),
table.table tr:nth-child(odd) {
background-color: #202020;
}
.markdown table td,
table.table td {
padding: 4px;
vertical-align: top;
@ -445,6 +451,13 @@ a.wiki-broken {
height: auto;
}
/* Hide the uber wide leaderboard Google ad on mobile */
@media (max-width: 940px) {
.google-leaderboard {
display: none;
}
}
/*************
* Eye Candy *
************/