Skip to content

Commit 9dbb8ff

Browse files
Remove unused bulma table, tags, and progress (#405)
* Remove unused bulma table, tags, and progress * Fix table headers
1 parent fd807ab commit 9dbb8ff

3 files changed

Lines changed: 6 additions & 161 deletions

File tree

assets/theme-css/bulma.css

Lines changed: 1 addition & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@
5555
.content:not(:last-child),
5656
.level:not(:last-child),
5757
.message:not(:last-child),
58-
.progress:not(:last-child),
59-
.table:not(:last-child),
6058
.title:not(:last-child) {
6159
margin-bottom: 1.5rem;
6260
}
@@ -160,18 +158,6 @@ video {
160158
iframe {
161159
border: 0;
162160
}
163-
table {
164-
border-collapse: collapse;
165-
border-spacing: 0;
166-
}
167-
td,
168-
th {
169-
padding: 0;
170-
}
171-
td:not([align]),
172-
th:not([align]) {
173-
text-align: inherit;
174-
}
175161
article,
176162
aside,
177163
figure,
@@ -201,14 +187,6 @@ span {
201187
font-style: inherit;
202188
font-weight: inherit;
203189
}
204-
table td,
205-
table th {
206-
vertical-align: top;
207-
}
208-
table td:not([align]),
209-
table th:not([align]) {
210-
text-align: inherit;
211-
}
212190
.box {
213191
background-color: #fff;
214192
border-radius: 6px;
@@ -267,140 +245,6 @@ a.box:active {
267245
height: auto;
268246
width: 100%;
269247
}
270-
.progress {
271-
-moz-appearance: none;
272-
-webkit-appearance: none;
273-
border: none;
274-
border-radius: 9999px;
275-
display: block;
276-
height: 1rem;
277-
overflow: hidden;
278-
padding: 0;
279-
width: 100%;
280-
}
281-
.progress::-webkit-progress-bar {
282-
background-color: #ededed;
283-
}
284-
.progress::-webkit-progress-value {
285-
background-color: #4a4a4a;
286-
}
287-
.progress::-moz-progress-bar {
288-
background-color: #4a4a4a;
289-
}
290-
.progress::-ms-fill {
291-
background-color: #4a4a4a;
292-
border: none;
293-
}
294-
.progress:indeterminate {
295-
-webkit-animation-duration: 1.5s;
296-
animation-duration: 1.5s;
297-
-webkit-animation-iteration-count: infinite;
298-
animation-iteration-count: infinite;
299-
-webkit-animation-name: moveIndeterminate;
300-
animation-name: moveIndeterminate;
301-
-webkit-animation-timing-function: linear;
302-
animation-timing-function: linear;
303-
background-color: #ededed;
304-
background-image: linear-gradient(to right, #4a4a4a 30%, #ededed 30%);
305-
background-position: top left;
306-
background-repeat: no-repeat;
307-
background-size: 150% 150%;
308-
}
309-
.progress:indeterminate::-webkit-progress-bar {
310-
background-color: transparent;
311-
}
312-
.progress:indeterminate::-moz-progress-bar {
313-
background-color: transparent;
314-
}
315-
.progress:indeterminate::-ms-fill {
316-
animation-name: none;
317-
}
318-
.table {
319-
background-color: #fff;
320-
color: #363636;
321-
}
322-
.table td,
323-
.table th {
324-
border: 1px solid #dbdbdb;
325-
border-width: 0 0 1px;
326-
padding: 0.5em 0.75em;
327-
vertical-align: top;
328-
}
329-
.table th {
330-
color: #363636;
331-
}
332-
.table th:not([align]) {
333-
text-align: left;
334-
}
335-
.table thead {
336-
background-color: transparent;
337-
}
338-
.table thead td,
339-
.table thead th {
340-
border-width: 0 0 2px;
341-
color: #363636;
342-
}
343-
.table tbody {
344-
background-color: transparent;
345-
}
346-
.table tbody tr:last-child td,
347-
.table tbody tr:last-child th {
348-
border-bottom-width: 0;
349-
}
350-
.table.is-hoverable tbody tr:not(.is-selected):hover {
351-
background-color: #fafafa;
352-
}
353-
.tags {
354-
align-items: center;
355-
display: flex;
356-
flex-wrap: wrap;
357-
justify-content: flex-start;
358-
}
359-
.tags .tag {
360-
margin-bottom: 0.5rem;
361-
}
362-
.tags .tag:not(:last-child) {
363-
margin-right: 0.5rem;
364-
}
365-
.tags:last-child {
366-
margin-bottom: -0.5rem;
367-
}
368-
.tags:not(:last-child) {
369-
margin-bottom: 1rem;
370-
}
371-
.tag:not(body) {
372-
align-items: center;
373-
background-color: #f5f5f5;
374-
border-radius: 4px;
375-
color: #4a4a4a;
376-
display: inline-flex;
377-
font-size: 0.75rem;
378-
height: 2em;
379-
justify-content: center;
380-
line-height: 1.5;
381-
padding-left: 0.75em;
382-
padding-right: 0.75em;
383-
white-space: nowrap;
384-
}
385-
.tag:not(body) .delete {
386-
margin-left: 0.25rem;
387-
margin-right: -0.375rem;
388-
}
389-
.tag:not(body) .icon:first-child:not(:last-child) {
390-
margin-left: -0.375em;
391-
margin-right: 0.1875em;
392-
}
393-
.tag:not(body) .icon:last-child:not(:first-child) {
394-
margin-left: 0.1875em;
395-
margin-right: -0.375em;
396-
}
397-
.tag:not(body) .icon:first-child:last-child {
398-
margin-left: -0.375em;
399-
margin-right: -0.375em;
400-
}
401-
a.tag:hover {
402-
text-decoration: underline;
403-
}
404248
.title {
405249
font-size: 2rem;
406250
font-weight: 600;
@@ -700,7 +544,7 @@ a.tag:hover {
700544
.message strong {
701545
color: currentColor;
702546
}
703-
.message a:not(.button):not(.tag):not(.dropdown-item) {
547+
.message a:not(.button):not(.dropdown-item) {
704548
color: currentColor;
705549
text-decoration: underline;
706550
}

assets/theme-css/styles.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ hr {
1010
background-color: var(--pst-color-text-muted);
1111
}
1212

13-
table th {
14-
color: var(--pst-color-text-muted);
15-
}
16-
1713
/**
1814
* See `code.literal` in
1915
* src/pydata_sphinx_theme/assets/styles/content/_code.scss

assets/theme-css/tables.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
table th {
2+
color: var(--pst-color-text-muted);
3+
text-align: inherit;
4+
}
5+
16
table td:not(:last-child),
27
table th {
38
padding-bottom: 0.25rem;

0 commit comments

Comments
 (0)