Skip to content

Commit 644dfd9

Browse files
Commit
1 parent 57e8a0b commit 644dfd9

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

src/style.css

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ a:hover {
8383

8484
/* ------------------------------ Metadata ---------------------------------- */
8585

86+
.metadata-table {
87+
overflow-x: auto;
88+
}
8689
table {
8790
border-collapse: collapse;
8891
}
@@ -101,30 +104,3 @@ hr {
101104
td[data-label="warnings"], td[data-label="lint"] {
102105
text-align: right;
103106
}
104-
105-
@media screen and (max-width: 600px) {
106-
table, thead, tbody, th, td, tr {
107-
display: block;
108-
}
109-
th {
110-
position: absolute;
111-
top: -9999px;
112-
left: -9999px;
113-
}
114-
tr {
115-
border: 1px solid #ccc;
116-
margin-bottom: 5px;
117-
}
118-
td {
119-
border: none;
120-
border-bottom: 1px solid #eee;
121-
padding-left: 50%;
122-
position: relative;
123-
}
124-
td:before {
125-
content: attr(data-label);
126-
font-weight: bold;
127-
left: 10px;
128-
position: absolute;
129-
}
130-
}

templates/metadata.html.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% extends "base.html.jinja" %}
22

33
{% block main %}
4+
<div class="metadata-table">
45
<table>
56
<thead>
67
<tr>
@@ -29,4 +30,5 @@
2930
</table>
3031
<p>* number of Sphinx build process warnings</p>
3132
<p>Last updated at {{ generation_time.strftime('%A, %-d %B %Y, %-H:%M:%S %Z') }} (in {{ duration // 60 }}:{{ "{:02}".format(duration % 60) }} minutes).</p>
33+
</div>
3234
{% endblock %}

0 commit comments

Comments
 (0)