Skip to content

Commit 51483a8

Browse files
committed
adjusted default table styles, added cvc-icon-table class
1 parent 6955f86 commit 51483a8

File tree

3 files changed

+57
-8
lines changed

3 files changed

+57
-8
lines changed

docs/_static/css/civic.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,31 @@ figcaption {
7373
.image-table td {
7474
vertical-align: top !important;
7575
}
76-
/* TEST */
76+
77+
/* class applied to aliases defined in generated/civic.docs-aliases.rst */
7778
.cvc-icon {
7879
display: inline-block;
7980
width: 1em;
8081
height: 1em;
8182
}
83+
84+
/* custom styles for entity-icon-description tables */
85+
.cvc-icon-table tr td {
86+
vertical-align: top !important;
87+
}
88+
89+
/* display icons in a tag-like box */
90+
.cvc-icon-table tr td:nth-child(2) p {
91+
background-color: #404040 !important;
92+
display: block;
93+
text-align: center;
94+
padding: 1px 3px 3px 3px;
95+
border-radius: 2px;
96+
}
97+
98+
/* default icon color is a light grey, use css filter to brighten them */
99+
.cvc-icon-table tr td:nth-child(2) img.cvc-icon {
100+
filter: brightness(5) !important;
101+
vertical-align: middle !important;
102+
margin-top: -2px !important;
103+
}
Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
/* override table width restrictions */
22
@media screen and (min-width: 767px) {
3-
.wy-table-responsive table td {
4-
/* !important prevents the common CSS stylesheets from overriding
3+
.wy-table-responsive table td {
4+
/* !important prevents the common CSS stylesheets from overriding
55
this as on RTD they are loaded after this stylesheet */
6-
white-space: normal !important;
7-
}
6+
white-space: normal !important;
7+
}
88

9-
.wy-table-responsive {
10-
overflow: visible !important;
11-
}
9+
.wy-table-responsive {
10+
overflow: visible !important;
11+
}
12+
}
13+
14+
/* improvements to theme's odd table defaults */
15+
table.docutils th {
16+
padding: 6px 8px !important;
17+
min-height: unset !important;
18+
}
19+
20+
table.docutils th p {
21+
line-height: 1em !important;
22+
font-weight: normal !important;
23+
font-size: 1em !important;
24+
font-style: oblique;
25+
margin: 0 !important;
26+
color: #404040 !important;
27+
}
28+
table.docutils td {
29+
padding: 6px 8px !important;
1230
}

docs/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ Navigate the CIViC Help Docs with the navigation menu to the left of each page o
4141
api
4242
help
4343

44+
..
45+
Kludge to make aliases file importable using hidden table of contents -
46+
Without this, Sphinx will display warnings about an unlinked file
47+
48+
..
49+
.. toctree::
50+
:hidden:
51+
52+
generated/civic-docs.aliases.rst

0 commit comments

Comments
 (0)