Template:Navbox/styles.css: Difference between revisions
From Space Station 14 Wiki
(wip) |
(wip) |
||
Line 16: | Line 16: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background-color: var(--navbox-bg-color); | background-color: var(--navbox-bg-color); | ||
text-align: left; | |||
} | } | ||
.navbox-inner, | .navbox-inner, |
Latest revision as of 13:24, 17 September 2024
.navbox {
--navbox-bg-color: var(--bg-color-light);
--navbox-border-color: var(--border-color);
--navbox-accent-label-color: var(--code-color-text);
--navbox-accent-color: var(--action-color);
--navbox-header-bg-color: var(--bg-color-light-x5);
--navbox-content-text-color: var(--text-color);
--navbox-accent-link-color: var(--link-color);
clear: both;
margin: 1em 0;
padding: 3px;
font-size: 90%;
width: 100%;
border: 1px solid var(--navbox-border-color);
box-sizing: border-box;
background-color: var(--navbox-bg-color);
text-align: left;
}
.navbox-inner,
.navbox-subgroup {
border-spacing: 0;
width: 100%;
}
/* Reduce spacing between adjacent navboxes */
.navbox + .navbox {
margin-top: -1px;
}
/* Spacing between rows */
.navbox-spacer {
height: 2px;
}
/* Title bars and labels */
.navbox-title {
font-weight: bold;
font-size: 115%;
padding: 0.25em 0.6em;
line-height: 1.5em;
color: var(--navbox-accent-label-color);
background: var(--navbox-accent-color);
}
.navbox-title,
.navbox-abovebelow {
padding-left: 1em;
padding-right: 1em;
text-align: center;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: var(--navbox-header-bg-color);
color: var(--navbox-content-text-color);
border: 1px solid var(--navbox-border-color);
}
.navbox .navbox-title a,
.navbox .navbox-title a:visited,
.navbox .navbox-title a.external,
.navbox .navbox-title a.external:visited {
color: var(--navbox-accent-link-color);
}
.navbox-title .mw-collapsible-toggle {
font-weight: normal;
text-align: right;
}
.navbox-title-text {
font-size: 105%;
}
/* Navbox-related links */
.navbox-title .navbar {
float: left;
margin-right: 0.5em;
}
.navbox-title .navbar a.external::after {
content: unset;
}
/* Groups */
.navbox-group {
font-weight: bold;
padding: 0 0.5em;
white-space: nowrap;
text-align: center;
}
/* Zebra colouring for rows */
.navbox-even {
background: #fff1;
}
/* Subgroups: equal group labels between different child navboxes */
.navbox-subgroup > tbody > tr {
display: flex;
}
.navbox-subgroup .navbox-group {
display: flex;
align-items: center;
justify-content: center;
flex-basis: 11em;
flex-grow: 1;
flex-shrink: 0;
white-space: normal;
}
.navbox-subgroup .navbox-title {
width:100%;
}
/* Lists */
.navbox-list {
width: 100%;
}
/* Mobile adjustments */
@media screen and (max-width: 1280px) {
.mw-body .navbox-inner table {
display: table;
}
}
@media screen and (max-width: 720px) {
.mw-body .navbox {
display: none;
}
}
tr + tr > .navbox-list,
tr + tr > .navbox-image {
border: none;
}
.navbox .mw-collapsible-text {
color: var(--navbox-accent-label-color);
}