Template:Horizontal menu/styles.css
< Template:Horizontal menu这是此页面的最新修订,它没有已核准修订。
/**
* [[Category:Template style pages]]
*/
.horizontal-menu {
background: #f8f9fa;
border: 1px solid #a2a9b1;
box-sizing: border-box;
overflow: hidden;
margin: 1em 0;
}
.horizontal-menu-header {
background: #1b476a;
color: white;
cursor: pointer;
font-weight: bold;
margin: .5em;
position: relative;
text-align: center;
}
.horizontal-menu-header:after {
content: '\FE40';
float: right;
font-size: 20px;
position: absolute;
top: 2px;
right: 5px;
}
.horizontal-menu-header a {
color: inherit;
text-decoration: underline;
}
.horizontal-menu-content {
margin: .5em;
overflow: hidden;
}
.horizontal-menu table {
border-collapse: separate;
border-spacing: 0 .5em;
font-size: small;
}
.horizontal-menu th {
text-align: left;
vertical-align: top;
white-space: nowrap;
}
.horizontal-menu td {
text-align: left;
}
.horizontal-menu li {
display: inline;
list-style: none;
margin-right: .5em;
}
/**
* Collapse
*/
.horizontal-menu.collapse .horizontal-menu-content {
display: none;
}
/**
* Dark mode
*/
body.poncho-dark-mode .horizontal-menu {
background: #303134;
border-color: #3c4043;
color: #bdc1c6;
}
/**
* Small screens
*/
@media screen and (max-width:600px) {
.horizontal-menu {
margin: 1em 0;
}
.horizontal-menu table {
margin: 0
}
.horizontal-menu tr,
.horizontal-menu th,
.horizontal-menu td {
display: block;
}
.horizontal-menu ul {
padding-left: 0;
}
.horizontal-menu .selflink {
font-weight: bold;
}
.horizontal-menu-content {
display: none;
}
}
/**
* Minerva skin
*/
body.skin-minerva .horizontal-menu-header:after {
top: 4px;
}
body.skin-minerva .horizontal-menu-content {
display: none;
}
body.skin-minerva .horizontal-menu ul {
margin-left: 0;
}