Skip to content

Commit 97a5511

Browse files
committed
DOC: Improve table apearance
Improve table appearance
1 parent c4ecd02 commit 97a5511

File tree

3 files changed

+48
-9
lines changed

3 files changed

+48
-9
lines changed

doc/source/_static/css/overrides.css

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
a {
2+
color: #180CD2;
3+
}
4+
table a:not(.btn),
5+
.table a:not(.btn) {
6+
text-decoration: none;
7+
}
8+
body {
9+
font-size: 16px;
10+
}
11+
code {
12+
font-size: 100%;
13+
}
14+
table {
15+
font-size: 16px;
16+
}
17+
.navbar {
18+
font-size: 16px;
19+
}
20+
.navbar .dropdown-menu > li > a,
21+
.navbar .dropdown-menu > li > a:focus {
22+
font-size: 15px;
23+
}
24+
thead tr {
25+
background-color: #337ab7;
26+
color: #ffffff;
27+
}
28+
thead tr th {
29+
padding: 6px 3px;
30+
}
31+
tbody tr:nth-child(even) {
32+
background: #f0f0f0
33+
}
34+
tbody tr:hover td {
35+
background-color: #ddd;
36+
}
37+
tbody tr td {
38+
text-align: right;
39+
padding: 5px;
40+
}
41+
tbody tr td:first-child {
42+
text-align: left;
43+
padding-left: 5px;
44+
}

doc/source/_static/style-changes.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/source/_templates/layout.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{# Import the theme's layout. #}
22
{% extends "!layout.html" %}
33

4-
{# Custom CSS overrides #}
5-
{% set bootswatch_css_custom = ['_static/style-changes.css'] %}
4+
{%- block extrahead %}
5+
{{ super() }}
6+
<link rel="stylesheet" href="{{ pathto('_static/css/overrides.css', 1) }}" type="text/css" />
7+
{% endblock %}

0 commit comments

Comments
 (0)