MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
BetweenWalls (talk | contribs) (class for skill table formatting) |
BetweenWalls (talk | contribs) (testing scrollbar changes for horizontally scrollable tables) |
||
Line 164: | Line 164: | ||
.wide {white-space: nowrap;} |
.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 { |
.scroll { |
||
display: block; |
display: block; |
||
max-width: fit-content; |
max-width: fit-content; |
||
max-width: -moz-fit-content; |
max-width: -moz-fit-content; |
||
max-width: -webkit-fit-content; |
max-width: -webkit-fit-content; |
||
overflow-x: |
overflow-x: scroll; |
||
white-space: nowrap; |
white-space: nowrap; |
||
padding: 0 0 10px; |
padding: 0 0 10px; |
||
margin: 1em 0 -4px; |
margin: 1em 0 -4px; |
||
background-color: #150D0A; |
background-color: #150D0A; |
||
border-width: 0; |
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;} |
.wikitable-3col > * > tr > td {width: 33% !important;} |