CSS for Travel and Wikipedia: fix table styles

This commit is contained in:
Dmitriy Prodchenko 2018-05-04 13:44:24 +03:00
parent 32a1e729d9
commit abcaaa4bf4

View file

@ -242,7 +242,8 @@ p {
color: var(--main-text-color-night); color: var(--main-text-color-night);
} }
ul, dl { /* Lists */
ul, dl, ol {
/* font-size: var(--main-text-font-size); */ /* font-size: var(--main-text-font-size); */
color: var(--main-text-color-day); color: var(--main-text-color-day);
font-size: inherit; font-size: inherit;
@ -259,15 +260,10 @@ li {
padding-bottom: 1%; padding-bottom: 1%;
} }
.nightmode ul, .nightmode dl { .nightmode ul, .nightmode dl, .nightmode ol {
color: #cccccc; color: #cccccc;
} }
.toc {
font-size: var(--main-text-font-size);
}
img { img {
width: 100%; width: 100%;
} }
@ -327,10 +323,47 @@ a.geo {
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
} }
/* Tables */
td { table {
display: inline-block; display: block;
overflow-y: scroll;
word-wrap: break-word; word-wrap: break-word;
color: var(--main-text-color-day);
border: 1px solid var(--divider-color-day);
background: var(--divider-color-day);
margin-left: 0% !important;
margin-right: 0% !important;
margin-bottom: 7% !important;
font-size: inherit;
}
.nightmode table {
color: var(--main-text-color-night);
border: 1px solid var(--background-color-night);
background: var(--divider-color-night) !important;
}
td, tr, th {
border: 1px solid var(--divider-color-day);
color: var(--main-text-color-night);
background: var(--divider-color-day);
}
.nightmode td, .nightmode tr, .nightmode th {
color: var(--main-text-color-night);
border: 1px solid var(--background-color-night);
background: var(--divider-color-night) !important;
}
.toc, .toc td, .toc tr {
border: 0px solid;
background: var(--background-color-day);
}
.nightmode .toc, .toc td, .toc tr {
border: 0px solid;
background: var(--background-color-night) !important;
} }
.thumb-tright, .thumbinner { .thumb-tright, .thumbinner {