Navbox/styles.css: Difference between revisions
From Project Rebearth
Created page with ".rb-navbox { border: 2px solid #e8daa8; background: #faf4e0; margin: 1.5em 0 0.5em; font-size: 0.875em; line-height: 1.6; } .rb-navbox-header { background: #562c1b; color: #e8daa8; text-align: center; padding: 6px 12px; font-weight: bold; font-size: 1.1em; } .rb-navbox-header a { color: #e8daa8; text-decoration: none; } .rb-navbox-header a:hover { color: #ebb933; } .rb-navbox-body { padding: 0; } .rb-navbox..." |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.rb-navbox { | .rb-navbox { | ||
margin: 1.5em 0 0.5em; | margin: 1.5em 0 0.5em; | ||
font-size: 0. | font-size: 0.88rem; | ||
line-height: 1.6; | line-height: 1.6; | ||
color: #3e2318; | |||
} | |||
.rb-navbox-border { | |||
background-color: #e8daa8; | |||
padding: 3px; | |||
} | |||
.rb-navbox-inner { | |||
background-color: #faf4e0; | |||
} | } | ||
.rb-navbox-header { | .rb-navbox-header { | ||
background: #562c1b; | background-color: #562c1b; | ||
color: #e8daa8; | color: #e8daa8; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 8px 14px; | ||
font-weight: | font-weight: 700; | ||
font-size: | font-size: 1rem; | ||
letter-spacing: 0.5px; | |||
} | } | ||
| Line 23: | Line 32: | ||
.rb-navbox-header a:hover { | .rb-navbox-header a:hover { | ||
color: #ebb933; | color: #ebb933; | ||
} | } | ||
.rb-navbox-group { | .rb-navbox-group { | ||
display: flex; | display: flex; | ||
border-top: 1px solid # | border-top: 1px solid #e0d5a6; | ||
} | } | ||
.rb-navbox-label { | .rb-navbox-label { | ||
background: #6e3a24; | background-color: #6e3a24; | ||
color: #e8daa8; | color: #e8daa8; | ||
font-weight: | font-weight: 700; | ||
font-size: 0.78rem; | |||
padding: | text-transform: uppercase; | ||
min-width: | letter-spacing: 0.8px; | ||
text-align: | padding: 8px 14px; | ||
width: 130px; | |||
min-width: 130px; | |||
max-width: 130px; | |||
text-align: center; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
.rb-navbox-list { | .rb-navbox-list { | ||
padding: | padding: 8px 14px; | ||
flex: 1; | flex: 1; | ||
display: flex; | |||
align-items: center; | |||
flex-wrap: wrap; | |||
} | |||
.rb-navbox-sep { | |||
display: inline-block; | |||
width: 6px; | |||
height: 6px; | |||
background-color: #c9b57a; | |||
border-radius: 50%; | |||
margin: 0 8px; | |||
vertical-align: middle; | |||
} | |||
/* Explicit zebra striping */ | |||
.rb-navbox-even > .rb-navbox-list { | |||
background-color: #f5edce; | |||
} | } | ||
| Line 64: | Line 90: | ||
.rb-navbox-list a.new { | .rb-navbox-list a.new { | ||
color: #cc4444; | color: #cc4444; | ||
} | |||
/* Collapsible section */ | |||
.rb-navbox-more { | |||
display: flex; | |||
flex-direction: column; | |||
} | |||
.rb-navbox-more > .mw-collapsible-content { | |||
order: 1; | |||
} | |||
.rb-navbox-more > .mw-collapsible-toggle { | |||
order: 2; | |||
display: block; | |||
background-color: #562c1b; | |||
text-align: center; | |||
padding: 6px 14px; | |||
font-size: 0.82rem; | |||
letter-spacing: 0.5px; | |||
cursor: pointer; | |||
border-top: 1px solid #e0d5a6; | |||
} | |||
.rb-navbox-more > .mw-collapsible-toggle a { | |||
color: #e8daa8; | |||
text-decoration: none; | |||
font-weight: 700; | |||
} | |||
.rb-navbox-more > .mw-collapsible-toggle a:hover { | |||
color: #ebb933; | |||
} | |||
@media (max-width: 600px) { | |||
.rb-navbox-group { | |||
flex-direction: column; | |||
} | |||
.rb-navbox-label { | |||
width: auto; | |||
min-width: auto; | |||
max-width: none; | |||
padding: 4px 14px; | |||
} | |||
} | } | ||
Latest revision as of 18:03, 18 February 2026
.rb-navbox {
margin: 1.5em 0 0.5em;
font-size: 0.88rem;
line-height: 1.6;
color: #3e2318;
}
.rb-navbox-border {
background-color: #e8daa8;
padding: 3px;
}
.rb-navbox-inner {
background-color: #faf4e0;
}
.rb-navbox-header {
background-color: #562c1b;
color: #e8daa8;
text-align: center;
padding: 8px 14px;
font-weight: 700;
font-size: 1rem;
letter-spacing: 0.5px;
}
.rb-navbox-header a {
color: #e8daa8;
text-decoration: none;
}
.rb-navbox-header a:hover {
color: #ebb933;
}
.rb-navbox-group {
display: flex;
border-top: 1px solid #e0d5a6;
}
.rb-navbox-label {
background-color: #6e3a24;
color: #e8daa8;
font-weight: 700;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.8px;
padding: 8px 14px;
width: 130px;
min-width: 130px;
max-width: 130px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.rb-navbox-list {
padding: 8px 14px;
flex: 1;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.rb-navbox-sep {
display: inline-block;
width: 6px;
height: 6px;
background-color: #c9b57a;
border-radius: 50%;
margin: 0 8px;
vertical-align: middle;
}
/* Explicit zebra striping */
.rb-navbox-even > .rb-navbox-list {
background-color: #f5edce;
}
.rb-navbox-list a {
color: #8b4513;
text-decoration: none;
}
.rb-navbox-list a:hover {
color: #ebb933;
}
.rb-navbox-list a.new {
color: #cc4444;
}
/* Collapsible section */
.rb-navbox-more {
display: flex;
flex-direction: column;
}
.rb-navbox-more > .mw-collapsible-content {
order: 1;
}
.rb-navbox-more > .mw-collapsible-toggle {
order: 2;
display: block;
background-color: #562c1b;
text-align: center;
padding: 6px 14px;
font-size: 0.82rem;
letter-spacing: 0.5px;
cursor: pointer;
border-top: 1px solid #e0d5a6;
}
.rb-navbox-more > .mw-collapsible-toggle a {
color: #e8daa8;
text-decoration: none;
font-weight: 700;
}
.rb-navbox-more > .mw-collapsible-toggle a:hover {
color: #ebb933;
}
@media (max-width: 600px) {
.rb-navbox-group {
flex-direction: column;
}
.rb-navbox-label {
width: auto;
min-width: auto;
max-width: none;
padding: 4px 14px;
}
}