MediaWiki:Common.css: Difference between revisions

testing scrollbar changes for horizontally scrollable tables
(class for skill table formatting)
(testing scrollbar changes for horizontally scrollable tables)
Line 164:
.wide {white-space: nowrap;}
 
/* Formatting for wide scrollable tables - currently unused since it isn't unobtrusive enough on all browsers (scrollbar should ideally be relatively narrow, fit the color scheme, and disappear when not being used)) */
.scroll {
display: block;
max-width: fit-content;
max-width: -moz-fit-content;
max-width: -webkit-fit-content;
overflow-x: autoscroll;
white-space: nowrap;
padding: 0 0 10px;
margin: 1em 0 -4px;
background-color: #150D0A;
border-width: 0;
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
.scroll:hover {
scrollbar-color: #B18D62 transparent;
}
.scroll > * > tr > th:first-child {
position: sticky;
left: -1px;
margin: 0 13px;
border-width: 1px;
border-left: 1px solid #271C12;
box-shadow: -1px 0 0 0 #271C12, 1px 0 0 0 #271C12 inset, -1px 0 0 0 #271C12 inset;
}
.scroll > * > tr > th:first-child {position: sticky; left: 1px; margin: 0 13px; padding: 0 -1px; border-width: 1px; border-left: 1px solid #271C12; box-shadow: -1px 0 0 0 #271C12, 1px 0 0 0 #271C12 inset, -1px 0 0 0 #271C12 inset;} /* freezes first column when scrolling */
 
.wikitable-3col > * > tr > td {width: 33% !important;}