48,403
edits
No edit summary |
No edit summary |
||
| Line 566: | Line 566: | ||
} | } | ||
.list-switcher-wrapper, | |||
:not(.list-switcher-wrapper) > .list-switcher { | |||
contain: layout; /* stop floating elements from messing with layout */ | |||
margin-top: 0.3em; /* replaces margin lost on <ul> in following ruleset */ | |||
} | |||
.list-switcher-wrapper + .list-switcher-wrapper { | |||
margin-top: 0.6em; | |||
} | |||
.list-switcher > div > ul, | |||
.list-switcher-wrapper > div > ul { | |||
margin-top: 0; /* needed to avoid jumps when collapsing/uncollapsing */ | |||
} | |||
.list-switcher ul ul { | |||
margin-top: 0.1em; /* make margin above nested lists equal to margin at bottom of <li>s */ | |||
} | |||
.list-switcher-collapsed { | |||
/* If changing this value, change .list-switcher `bottom` above */ | |||
max-height: calc(3.2 * 1.6em); /* for browsers that don't support `lh` units */ | |||
max-height: 3.2lh; | |||
overflow-y: hidden; | |||
} | |||
.list-switcher-header { | |||
background: var(--wikt-palette-grey-indigo-2); | |||
font-weight: bold; | |||
font-size: 95%; | |||
padding: 0.2em 0.4em 0.1em 0.6em; | |||
} | |||
.list-switcher-header + .list-switcher .term-list, | |||
.list-switcher-header + .term-list { | |||
padding-top: 0.1em; | |||
} | |||
.list-switcher-edit { | |||
margin-left: 1.5em; | |||
font-size: 87.75%; /* exactly match font size of [show more] button (in Chromium-based browsers at least) */ | |||
font-weight: normal; | |||
} | |||
.list-switcher-edit::before { | |||
content: "["; | |||
} | |||
.list-switcher-edit::after { | |||
content: "]"; | |||
} | |||
.list-switcher-large-text { | |||
/* Keep in sync with next ruleset */ | |||
bottom: calc(4 * 1.6em); /* for browsers that don't support `lh` units */ | |||
bottom: 4lh; | |||
} | |||
.list-switcher-large-text.list-switcher-collapsed { | |||
/* Keep in sync with previous ruleset */ | |||
max-height: calc(4 * 1.6em); /* for browsers that don't support `lh` units */ | |||
max-height: 4lh; | |||
} | |||
.list-switcher-element { | |||
text-align: center; | |||
cursor: pointer; | |||
background: var(--wikt-palette-grey-indigo-2); | |||
border-bottom-left-radius: 0.3lh; | |||
border-bottom-right-radius: 0.3lh; | |||
} | |||
.list-switcher-element .NavToggle { | |||
float: none; | |||
} | |||
/* this is a legacy rule that only applies to {{rootsee}} and | |||
{{script appendix}} - these need a fairly wide width */ | |||
.columns-bg:not(.term-list) > div > div > .CategoryTreeChildren, | |||
.columns-bg:not(.term-list) > div > .CategoryTreeChildren { | |||
-moz-column-width: 25em; | |||
column-width: 25em; | |||
} | |||
/* wikitable/prettytable class for skinning normal tables */ | /* wikitable/prettytable class for skinning normal tables */ | ||
table.wikitable, | table.wikitable, | ||