Actions

Template

Navbox/styles.css: Difference between revisions

From Project Rebearth

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 37: Line 37:
     display: flex;
     display: flex;
     border-top: 1px solid #e0d5a6;
     border-top: 1px solid #e0d5a6;
}
.rb-navbox-group:first-child {
    border-top: none;
}
}


Line 50: Line 46:
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 0.8px;
     letter-spacing: 0.8px;
     white-space: nowrap;
     padding: 8px 14px;
     padding: 6px 14px;
     width: 130px;
     min-width: 110px;
     min-width: 130px;
    max-width: 130px;
     text-align: center;
     text-align: center;
     display: flex;
     display: flex;
Line 60: Line 57:


.rb-navbox-list {
.rb-navbox-list {
     padding: 6px 14px;
     padding: 8px 14px;
     flex: 1;
     flex: 1;
     display: flex;
     display: flex;
Line 67: Line 64:
}
}


.rb-navbox-group:nth-child(even) .rb-navbox-list {
.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;
     background-color: #f5edce;
}
}
Line 84: Line 92:
}
}


.rb-navbox-footer {
/* 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;
     background-color: #562c1b;
    color: #c9b57a;
     text-align: center;
     text-align: center;
     padding: 5px 14px;
     padding: 6px 14px;
     font-size: 0.75rem;
     font-size: 0.82rem;
     letter-spacing: 0.3px;
     letter-spacing: 0.5px;
    cursor: pointer;
    border-top: 1px solid #e0d5a6;
}
}


.rb-navbox-footer a {
.rb-navbox-more > .mw-collapsible-toggle a {
     color: #e8daa8;
     color: #e8daa8;
     text-decoration: none;
     text-decoration: none;
    font-weight: 700;
}
}


.rb-navbox-footer a:hover {
.rb-navbox-more > .mw-collapsible-toggle a:hover {
     color: #ebb933;
     color: #ebb933;
}
}
Line 108: Line 130:


     .rb-navbox-label {
     .rb-navbox-label {
        width: auto;
         min-width: auto;
         min-width: auto;
         text-align: center;
         max-width: none;
         padding: 4px 14px;
         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;
    }
}