Module:NavboxUpgraded/styles.css: Difference between revisions
EnWikiAdmin (talk | contribs) No edit summary |
EnWikiAdmin (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
/* | .navbox-upgraded { | ||
box-sizing: border-box; | |||
border: 1px solid #a2a9b1; | |||
width: 100%; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
padding: 1px; | |||
margin: 1em auto 0; | |||
} | |||
.navbox-upgraded .navbox-subgroup { | |||
background-color: #fdfdfd; | |||
border: 1px solid #a2a9b1; | |||
width: 100%; | |||
/* Ensure subgroups are contained properly */ | |||
clear: both; | |||
} | |||
.navbox-upgraded .navbox-group { | |||
padding: 0.25em 1em; | |||
line-height: 1.5em; | |||
text-align: right; | |||
background-color: #ddf; /* Parent shade */ | |||
font-weight: bold; | |||
} | |||
.navbox-upgraded .navbox-title { | |||
background-color: #ccf; | |||
padding: 0.25em 1em; | |||
} | |||
.navbox-upgraded .navbox-abovebelow { | |||
background-color: #ddf; | |||
padding: 0.25em 1em; | |||
} | |||
.navbox-upgraded .navbox-list { | |||
. | line-height: 1.5em; | ||
list-style-type: disc; | |||
padding-left: 1.5em; | |||
} | } | ||
. | |||
.navbox-upgraded .navbox-list-with-group { | |||
text-align: left; | |||
border-left-width: 2px; | |||
border-left-style: solid; | |||
} | } | ||
.navbox-upgraded .navbox-odd { | |||
background-color: #f7f7f7; | |||
} | } | ||
.navbox- | .navbox-upgraded .navbox-even { | ||
background-color: transparent; | |||
background-color: | |||
} | } | ||
.navbox- | .navbox-upgraded .hlist { | ||
display: flex; | |||
flex-wrap: wrap; | |||
list-style: none; | |||
padding-left: 0; | |||
} | } | ||
.navbox- | .navbox-upgraded .hlist li { | ||
margin-right: 1em; | |||
} | } | ||
.navbox- | .navbox-upgraded .plainlist { | ||
list-style-type: none; | |||
padding-left: 0; | |||
} | } | ||
/* Additional styles to match original Navbox */ | |||
.navbox-upgraded .navbar { | |||
display: block; | |||
font-size: 100%; | |||
} | |||
.navbox-upgraded .navbox-title .navbar { | |||
.navbox | float: left; | ||
.navbox-title { | text-align: left; | ||
margin-right: 0.5em; | |||
. | } | ||
@media print { | |||
.navbox- | .navbox-upgraded { | ||
display: none; | |||
} | |||
} |
Latest revision as of 07:15, 22 November 2024
.navbox-upgraded {
box-sizing: border-box;
border: 1px solid #a2a9b1;
width: 100%;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
margin: 1em auto 0;
}
.navbox-upgraded .navbox-subgroup {
background-color: #fdfdfd;
border: 1px solid #a2a9b1;
width: 100%;
/* Ensure subgroups are contained properly */
clear: both;
}
.navbox-upgraded .navbox-group {
padding: 0.25em 1em;
line-height: 1.5em;
text-align: right;
background-color: #ddf; /* Parent shade */
font-weight: bold;
}
.navbox-upgraded .navbox-title {
background-color: #ccf;
padding: 0.25em 1em;
}
.navbox-upgraded .navbox-abovebelow {
background-color: #ddf;
padding: 0.25em 1em;
}
.navbox-upgraded .navbox-list {
line-height: 1.5em;
list-style-type: disc;
padding-left: 1.5em;
}
.navbox-upgraded .navbox-list-with-group {
text-align: left;
border-left-width: 2px;
border-left-style: solid;
}
.navbox-upgraded .navbox-odd {
background-color: #f7f7f7;
}
.navbox-upgraded .navbox-even {
background-color: transparent;
}
.navbox-upgraded .hlist {
display: flex;
flex-wrap: wrap;
list-style: none;
padding-left: 0;
}
.navbox-upgraded .hlist li {
margin-right: 1em;
}
.navbox-upgraded .plainlist {
list-style-type: none;
padding-left: 0;
}
/* Additional styles to match original Navbox */
.navbox-upgraded .navbar {
display: block;
font-size: 100%;
}
.navbox-upgraded .navbox-title .navbar {
float: left;
text-align: left;
margin-right: 0.5em;
}
@media print {
.navbox-upgraded {
display: none;
}
}