MediaWiki:Section.css: Difference between revisions
From Elwiki
(Created page with "→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 > t...") |
No edit summary |
||
Line 271: | Line 271: | ||
vertical-align: middle; | vertical-align: middle; | ||
font-size: 1.15em; | 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; | |||
} | } |
Revision as of 16:11, 24 September 2022
/* 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;
}