MediaWiki:Section.css

From Elwiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* section */

div.section-wrapper {
    padding: 0.5em;
    border-radius: 5px;
    border-width: 2px;
    border-style: solid;
    clear: both;
}

table.top-nav {
    border-spacing: 0;
    width: auto;
    margin: 1em;
    text-align: center;
    vertical-align: middle;
}

table.section,
table.section-side-column {
    position: relative;
    width: 100%;
    margin: 0;
    border-width: 1px;
    border-style: solid;
    border-spacing: 0;
}

table.section > tbody > tr:first-child {
    text-align: center;
    background-color: var(--theme-tone-7);
}

table.section > tbody > tr:first-child > th {
    line-height: 1em;
    padding: 0.5em 0;
    text-align: center;
    vertical-align: middle;
    border-width: 1px;
    border-style: solid;
    border-top: none !important;
}

table.section > tbody > tr:last-child > td {
    vertical-align: top;
    padding: 0.5em;
    border: none;
    border-bottom: none !important;
}

table.section > tbody > tr:first-child > th:first-child,
table.section > tbody > tr:last-child > td:first-child {
    border-left: none !important;
}

table.section > tbody > tr:first-child > th:last-child,
table.section > tbody > tr:last-child > td:last-child {
    border-right: none !important;
}

table.section > tbody > tr:first-child > th ~ th,
table.section > tbody > tr:last-child > td ~ td {
    border-left: none !important;
}

table.section-side-column {
    text-align: center;
}

table.section-side-column > tbody > tr > td:first-child {
    width: 50%;
    height: 400px;
    padding: 10px;
}

table.section-side-column > tbody > tr > td:last-child {
    border-left: 1px solid #000;
    height: 420px;
    padding: 0;
}

table.section-side-column > tbody > tr > td:last-child > table.section > tbody > tr:last-child > td {
    vertical-align: middle;
}

table.section-side-column > tbody > tr > td:last-child > table.section {
    text-align: center;
    border: none;
}

table.section-side-column > tbody > tr > td:last-child > table.section + table.section {
    border-top-width: 1px;
    border-top-style: solid;
}

table.section-border,
table.section-border.section > tbody > tr > th,
table.section-border.section > tbody > tr > td,
.section-border.tabdiv > ul,
.section-border:not(table) {
    border-color: var(--border-color);
    border-width: 1px !important;
}

.section-border-top-radius {
    -webkit-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -webkit-border-top-right-radius: 5px;
    border-top-right-radius: 5px;
    -moz-border-radius-topright: 5px;
}

.section-border-bottom-radius {
    -webkit-border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    -webkit-border-bottom-right-radius: 5px;
    border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
}

table.section-border.section > tbody > tr > th {
    background-color: var(--theme-tone-7);
}

.section-border .wikitable > * > tr > th {
    border-color: var(--border-color);
    background-color: var(--theme-tone-5);
}

.section-border .wikitable > * > tr > td {
    border-color: var(--border-color);
}

.wikitable > * > tr > td {
    background-color: var(--theme-tone-6);
    color: var(--text-color);
}

.wikitable > * > tr > th {
    background-color: var(--theme-tone-5);
    border-bottom-width: 1px;
    color: var(--text-color) !important;
}

table td {
    color: var(--text-color);
}

.tabber-new .wikitable tr th,
.mw-datatable tr:hover td {
    background-color: var(--theme-tone-5);
}

table.section-border {
    margin: 10px 0;
    border-radius: 4px;
}

.section-border-right td:first-of-type {
    border-right: 1px solid var(--border-color) !important;
}

.section-tabber .section-border {
    margin-top: 5px;
}

.section-tabber .tabber-ul {
    margin-top: 5px;
}

/* section - character */
.section-characters .textfloat a + a {
    font-size: 1.3em;
    margin-left: 7px;
}

.mw-content-ltr .section-characters .segment > .mw-collapsible-toggle::after {
    background-image: url("/svg/arrow.svg");
    filter: invert(1);
}

.skill-nav [class^="mw-customtoggle-"] {
    background-image: url("/svg/arrow.svg");
    filter: invert(1) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.mw-content-ltr .section-characters .mw-collapsible-toggle {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.section-characters th {
    padding: 10px !important;
    border-radius: 3px;
}

.section-characters table table td {
    font-size: 1.085em;
    font-weight: 500;
}

.section-characters table .textfloat th {
    color: white !important;
}

/* section - dungeon */
.section-dungeons table.section > tbody > tr:first-child > th,
.section-fields table.section > tbody > tr:first-child > th {
    border: 0 !important;
}

/* tabber section design */

.section-tabber .tabber-new ul:not(.tabber-ul) li {
    display: block;
}

.section-tabber .tabber-new ul:not(.tabber-ul) li a {
    color: var(--text-color) !important;
    padding: 4px;
    background: var(--theme-tone-6);
    margin: 5px 0;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s, color 0.2s;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.section-tabber .tabber-new ul:not(.tabber-ul) li a:hover,
.section-tabber .tabber-new ul:not(.tabber-ul) li a.mw-selflink {
    background: var(--accent-color);
    color: white !important;
}

.section-tabber .tabber-new ul:not(.tabber-ul) li a {
    text-decoration: none !important;
}

.section-tabber .tabber-new ul:not(.tabber-ul) {
    margin-left: 2px;
    margin-right: 2px;
}

.section-tabber .tabber-content {
    padding: 0 5px 5px 5px !important;
}

.section-fields > tbody > tr > th {
    color: black !important;
    text-shadow: none !important;
}

table.section-border .textfloat:not(.section-characters table .textfloat) {
    text-shadow: none;
    color: black;
    font-weight: 500;
}

table.section-border .textfloat th {
    font-weight: 500;
}

.section-tabber table tr.textfloat th {
    color: white;
    text-shadow: 1px 1px 1px #000;
}

.section-tabber table tr.textfloat th a {
    vertical-align: middle;
    font-size: 1.15em;
}

/* systems */
.section-systems table th:nth-of-type(2n + 1) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.section-systems table th:nth-of-type(2n) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* New section - segment */
.segment {
    position: relative;
    margin: 15px 0;
}

.segment .vgrid-table {
    margin: 0;
}

.segment .segment-header {
    color: var(--text-color);
    text-shadow: none;
    font-weight: 500;
    background-color: var(--theme-tone-5);
    border: 1px solid var(--border-color);
    padding: 7px 10px;
    border-radius: 4px 4px 0 0;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 19px;
}

.segment > .mw-collapsible-toggle::before,
.segment > .mw-collapsible-toggle::after {
    display: none;
}

.mw-content-ltr .segment > .mw-collapsible-toggle {
    position: absolute;
    padding: 6px;
    top: 5px;
    border-radius: 4px;
    right: 5px;
    transition: 0.3s;
}

.segment > .mw-collapsible-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-mode .segment > .mw-collapsible-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.segment > .mw-collapsible-toggle a,
.segment > .mw-collapsible-toggle .mw-collapsible-text {
    color: var(--text-color);
    letter-spacing: 0.5px;
    font-weight: 500;
    text-decoration: none!important;
}

.segment.section-border > .segment-contents {
    border: 1px solid var(--border-color);
}

.section-bg tr.textfloat a:not(.force-black a) {
    color: white !important;
}

.client-js .segment.mw-collapsed:not(.mw-made-collapsible):before,
.client-js .segment.mw-collapsible:not(.mw-made-collapsible):before {
    display: none !important;
}

.segment > .segment-contents {
    padding: 1em;
}

.segment .segment-header:not(.mw-collapsed .segment-header) {
    border-bottom: none;
}

.segment .segment-header.single-title {
    border-bottom: 1px solid var(--border-color) !important;
}

.segment.section-border.section-bg > .segment-contents {
    background-color: var(--theme-tone-7);
}

.segment.section-border.section-bg > .segment-headers > .segment-header {
    background-color: var(--theme-tone-6);
}

.segment.section-border.section-bg .tabber-new .tabber-tab {
    background-color: var(--theme-tone-6);
    border: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-color);
}

.segment.section-border.section-bg .tabber-new .tabber-tab:hover,
.segment.section-border.section-bg .tabber-new .tabber-tab.active {
    background-color: var(--accent-color);
    color: white;
}

.split {
    --min-side-width: 250px;
}

.split .segment-headers {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-side-width), 1fr));
    gap: 0 !important;
}

.split .segment-contents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-side-width), 1fr));
}

.split .segment-contents .mw-collapsible-content,
.instance-page .split .segment-header {
    flex-basis: 50%;
    box-sizing: border-box;
}

.split .segment-contents .mw-collapsible-content:first-child {
    padding-right: 1rem;
}

.split .segment-contents .mw-collapsible-content:nth-child(2) {
    border-left: 1px var(--border-color) solid;
    margin: -1rem -0 -1rem 0;
    padding: 1rem 0 1rem 1rem;
}

.split.uneven-split .segment-contents {
    grid-template-columns: 70% 30%;
}

.split.uneven-split .segment-headers {
    grid-template-columns: calc(70% - 0.4rem) calc(30% + 0.4rem);
}

.split .segment-header:first-of-type {
    border-top-right-radius: 0;
    margin-right: -1px;
}

.split .segment-header:nth-of-type(2) {
    border-top-left-radius: 0;
}

/* Quest */

.job-change-collapsible {
    border: 1px solid var(--border-color);
    border-radius: 7px 7px 4px 4px;
    display: flex;
    flex-direction: column;
}

.job-change-collapsible .segment-headers {
    background-color: var(--theme-tone-5);
}

.job-change-collapsible .segment-header {
    border: none;
    color: var(--text-color);
    text-shadow: none;
    padding: 0;
    font-size: 1em;
}

.job-change-collapsible .segment {
    border: none;
    margin: 0;
}

.job-change-collapsible [style*="1.25em"] * {
    font-size: 15.2px !important;
}

.job-change-collapsible > .section > .mw-collapsible-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.job-change-collapsible .section .section {
    border-bottom: 1px solid var(--border-color);
}

.job-change-collapsible .section .section:first-of-type {
    border-bottom: 1px solid var(--border-color);
}

.job-change-collapsible .mw-collapsible-toggle-default::before,
.job-change-collapsible .mw-collapsible-toggle-default::after,
.job-change-collapsible .mw-collapsible-text {
    display: none;
}

.job-change-collapsible .section {
    position: relative;
}

.mw-content-ltr .job-change-collapsible .segment > .mw-collapsible-toggle {
    display: block;
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 3px 5px;
    transition: 0.3s;
    border-radius: 4px;
}

.mw-content-ltr .job-change-collapsible > .section > .mw-collapsible-toggle {
    color: white;
    text-shadow: 1px 1px 1px #000;
    top: 5px;
    right: 7px;
    height: fit-content;
}

.job-change-collapsible .mw-collapsible-toggle:hover {
    background-color: var(--theme-tone-7);
}

.client-js .job-change-collapsible div.mw-collapsed:not(.mw-made-collapsible):before,
.client-js .generic-quest.mw-collapsed:not(.mw-made-collapsible):before {
    content: unset;
    /* (Bandaid for FoUC) */
}

.job-change-collapsible .mw-collapsible-toggle::after {
    display: block;
    content: "Hide";
    color: var(--text-color);
}

.job-change-collapsible .mw-collapsed .mw-collapsible-toggle::after {
    display: block;
    content: "Show";
    color: var(--text-color);
}

.job-change-collapsible .mw-collapsible-toggle {
    font-weight: 500;
}

.job-change-collapsible .segment > .segment-contents {
    padding: 0;
}

.job-change-collapsible > .segment > .segment-headers .segment-header {
    color: white;
    text-shadow: 1px 1px 1px #000;
}

.generic-quest {
    position: relative;
    margin-top: 5px;
    margin-bottom: 5px;
}

.generic-quest > div {
    border-radius: 4px;
}

.generic-quest .mw-collapsible-toggle {
    color: white !important;
    text-shadow: 1px 1px 1px #000;
    font-size: 1em;
    position: absolute;
    right: 7px;
    top: 11px;
}

.generic-quest .mw-collapsible-toggle a,
.generic-quest .mw-collapsible-toggle .mw-collapsible-text {
    color: white !important;
    font-weight: 500;
    text-decoration: none!important;
}

.generic-quest > .segment-contents {
    border: 1px solid var(--border-color);
}

.generic-quest .mw-collapsible-toggle-default::before,
.generic-quest .mw-collapsible-toggle-default::after,
.generic-quest .mw-collapsible-text {
    display: none;
}

.generic-quest .mw-collapsible-toggle::after {
    display: block;
    content: "(Hide)";
}

.generic-quest.mw-collapsed .mw-collapsible-toggle::after {
    display: block;
    content: "(Show)";
}

.generic-quest .mw-collapsible-toggle {
    font-weight: 500;
}

.generic-quest > div:not(.mw-collapsed > div) {
    border-radius: 4px 4px 0 0;
}

.generic-quest > .segment-header {
    color: white;
    text-shadow: 1px 1px 1px #000;
    font-size: 19px;
}

.mw-content-ltr .segment.generic-quest > .mw-collapsible-toggle {
    top: 8px;
    right: 8px;
    padding: 3px;
}

.mw-content-ltr .segment.generic-quest > .mw-collapsible-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.segment.generic-quest .segment-header {
    padding: 0;
    background: transparent;
    color: white;
    text-shadow: 1px 1px 1px #000;
}

.segment.generic-quest .segment-contents {
    padding: 0;
}