MediaWiki:Common.css: Difference between revisions
Tweaks to horizontal scroll tables
BetweenWalls (talk | contribs) (testing scrollbar changes for horizontally scrollable tables) |
(Tweaks to horizontal scroll tables) |
||
Line 165:
.scroll {
-moz-transition: all .25s ease-in;
-webkit-transition: all .25s ease-in;
transition: all .25s ease-in;
display: block;
max-width: fit-content;
Line 171 ⟶ 174:
overflow-x: scroll;
white-space: nowrap;
padding: 0
margin: 1em 0 -4px;
background-color: #150D0A;
border-width: 0;
scrollbar-width: thin;
scrollbar-color:
}
.scroll:hover {
Line 183 ⟶ 186:
.scroll > * > tr > th:first-child {
position: sticky;
left:
margin: 0 13px;
border-width: 1px;
box-shadow: -1px 0 0 0 #271C12, 1px 0 0 0 #271C12 inset, -1px 0 0 0 #271C12 inset;
}
/* Lower/thicken the horizontal scrollbar in Firefox
to avoid being overlapped with the table */
@supports (-moz-appearance:none) {
.scroll {
padding-bottom: 10px !important;
scrollbar-width: auto !important;
}
}
|