Actions

Template

Main page/styles.css: Difference between revisions

From Project Rebearth

Making styling a bit more comparable to the official game styling. also making things a bit more compact
No edit summary
Line 1: Line 1:
.rb-modal-box {
.rb-infobox-biome {
     box-sizing: border-box;
     float: right;
     display: inline-block;
    clear: right;
    width: 300px;
    margin: 0 0 16px 20px;
    font-size: 0.9rem;
    line-height: 1.5;
     color: #3e2318;
}
}


.rb-modal-box * {
.rb-infobox-biome .rb-ib-border {
     box-sizing: border-box;
     background-color: #e8daa8;
    padding: 3px;
}
}


.rb-scooped-corners {
.rb-infobox-biome .rb-ib-inner {
    mask:
     background-color: #faf4e0;
        radial-gradient(circle at top left, transparent 10px, black 10.5px) top left,
        radial-gradient(circle at top right, transparent 10px, black 10.5px) top right,
        radial-gradient(circle at bottom left, transparent 10px, black 10.5px) bottom left,
        radial-gradient(circle at bottom right, transparent 10px, black 10.5px) bottom right;
     mask-size: 51% 51%;
    mask-repeat: no-repeat;
}
}


.rb-modal-border {
.rb-infobox-biome .rb-ib-header {
     background-color: #e8daa8;
     background-color: #562c1b;
     padding: 2px;
    color: #e8daa8;
     width: 100%;
    text-align: center;
     margin: 0 auto;
     padding: 10px 14px;
    font-size: 1.15rem;
     font-weight: 700;
     letter-spacing: 0.5px;
}
}


.rb-modal-border-alt {
.rb-infobox-biome .rb-ib-image {
     background-color: #562c1b;
     background-color: #562c1b;
     padding: 2px;
    text-align: center;
     width: 100%;
     padding: 0 14px 10px;
}
 
.rb-infobox-biome .rb-ib-image img {
     display: block;
     margin: 0 auto;
     margin: 0 auto;
    max-width: 100%;
    height: auto;
}
}


.rb-modal-content {
.rb-infobox-biome .rb-ib-caption {
     background-color: #562c1b;
     background-color: #562c1b;
     color: #e8daa8;
     color: #c9b57a;
     text-align: center;
     text-align: center;
     padding: 20px 25px;
     padding: 0 14px 10px;
     display: flex;
     font-size: 0.82rem;
    flex-direction: column;
     font-style: italic;
    align-items: center;
     line-height: 1.3;
    gap: 6px;
}
 
.rb-modal-content-alt {
    background-color: #e8daa8;
    color: #562c1b;
     text-align: center;
    padding: 20px 25px;
     display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
}


.rb-welcome-text {
.rb-infobox-biome .rb-ib-section {
     font-size: 1.1rem;
     background-color: #6e3a24;
    font-weight: 600;
     color: #e8daa8;
     color: #e8daa8;
     margin: 0 0 4px 0;
     padding: 5px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
}


.rb-title-row {
.rb-infobox-biome .rb-ib-row {
     display: flex;
     display: flex;
     align-items: center;
     border-bottom: 1px solid #e0d5a6;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}
}


.rb-server-name {
.rb-infobox-biome .rb-ib-row:last-child {
    font-size: 1.5rem;
     border-bottom: none;
    font-weight: 700;
    color: #ebb933;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
     letter-spacing: 1.5px;
}
}


.rb-server-name-alt {
.rb-infobox-biome .rb-ib-label {
     font-size: 1.5rem;
     flex: 0 0 110px;
    padding: 6px 10px;
     font-weight: 700;
     font-weight: 700;
     color: #562c1b;
     color: #562c1b;
     margin: 0;
     background-color: #f0e6c2;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
}


.rb-stats-row {
.rb-infobox-biome .rb-ib-data {
     display: flex;
     flex: 1;
    gap: 16px;
     padding: 6px 10px;
     align-items: center;
     color: #3e2318;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
     color: rgba(255, 255, 255, 0.9);
}
}


.rb-modal-content-alt .rb-stats-row {
.rb-infobox-biome .rb-ib-fullrow {
    color: #562c1b;
    padding: 6px 10px;
    border-bottom: 1px solid #e0d5a6;
}
}


.rb-stat-item {
.rb-infobox-biome .rb-ib-fullrow:last-child {
     display: flex;
     border-bottom: none;
    align-items: center;
    gap: 6px;
}
}


.rb-description {
.rb-infobox-biome a {
    font-size: 0.95rem;
     color: #8b4513;
    line-height: 1.4;
     color: #e8daa8;
    margin: 0;
    max-width: 95%;
    font-weight: 300;
}
}


.rb-description-alt {
.rb-infobox-biome a:hover {
    font-size: 0.95rem;
     color: #ebb933;
    line-height: 1.4;
     color: #562c1b;
    margin: 0;
    max-width: 95%;
    font-weight: 300;
}
}


.rb-steps-row {
.rb-infobox-biome .rb-ib-badge {
     display: flex;
     display: inline-block;
     flex-wrap: wrap;
    background-color: #562c1b;
     justify-content: center;
    color: #e8daa8;
     margin-top: 12px;
    padding: 1px 8px;
     font-size: 0.78rem;
     font-weight: 600;
     letter-spacing: 0.3px;
}
}


.rb-step-card {
.rb-infobox-biome .rb-ib-footer {
     flex: 1 1 120px;
     background-color: #562c1b;
     max-width: 150px;
     color: #c9b57a;
     text-align: center;
     text-align: center;
     padding: 8px;
     padding: 5px 14px;
     border-left: 1px solid;
     font-size: 0.78rem;
    border-image: linear-gradient(transparent 15%, #e8daa8 15%, #562c1b 85%, transparent 85%) 1;  
}
}


.rb-modal-content-alt .rb-step-card {
.rb-infobox-biome .rb-ib-footer a {
     border-image: linear-gradient(transparent 15%, #562c1b 15%, #e8daa8 85%, transparent 85%) 1;
     color: #e8daa8;
}
 
.rb-step-card:first-child {
    border-left: none;
    border-image: none;
}
}


.rb-step-number {
.rb-infobox-biome .rb-ib-footer a:hover {
    font-size: 1.8rem;
    font-weight: 700;
     color: #ebb933;
     color: #ebb933;
    line-height: 1;
    margin-bottom: 4px;
}
}


.rb-step-text {
.rb-infobox-biome .rb-ib-subtable {
    width: 100%;
    border-collapse: collapse;
     font-size: 0.85rem;
     font-size: 0.85rem;
    color: #e8daa8;
    line-height: 1.3;
    font-weight: 300;
}
}


.rb-modal-content-alt .rb-step-text {
.rb-infobox-biome .rb-ib-subtable th {
     color: #562c1b;
     background-color: #6e3a24;
}
     color: #e8daa8;
 
     padding: 4px 8px;
.rb-info-table {
     font-weight: 600;
     width: 100%;
     text-align: left;
     max-width: 380px;
     margin: 12px auto 0;
     border-collapse: collapse;
}
}


.rb-info-table td {
.rb-infobox-biome .rb-ib-subtable td {
     padding: 4px 8px;
     padding: 4px 8px;
     border-bottom: 1px solid #562c1b;
     border-bottom: 1px solid #e0d5a6;
    font-size: 0.9rem;
    color: #562c1b;
    vertical-align: top;
}
}


.rb-info-table tr:last-child td {
.rb-infobox-biome .rb-ib-subtable tr:nth-child(even) td {
     border-bottom: none;
     background-color: #f5edd2;
}
}


.rb-info-label {
@media (max-width: 600px) {
    font-weight: 700;
    .rb-infobox-biome {
    color: #562c1b;
        float: none;
    white-space: nowrap;
        width: 100%;
     width: 1%;
        margin: 0 0 16px 0;
     }
}
}

Revision as of 17:02, 15 February 2026

.rb-infobox-biome {
    float: right;
    clear: right;
    width: 300px;
    margin: 0 0 16px 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3e2318;
}

.rb-infobox-biome .rb-ib-border {
    background-color: #e8daa8;
    padding: 3px;
}

.rb-infobox-biome .rb-ib-inner {
    background-color: #faf4e0;
}

.rb-infobox-biome .rb-ib-header {
    background-color: #562c1b;
    color: #e8daa8;
    text-align: center;
    padding: 10px 14px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rb-infobox-biome .rb-ib-image {
    background-color: #562c1b;
    text-align: center;
    padding: 0 14px 10px;
}

.rb-infobox-biome .rb-ib-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.rb-infobox-biome .rb-ib-caption {
    background-color: #562c1b;
    color: #c9b57a;
    text-align: center;
    padding: 0 14px 10px;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.3;
}

.rb-infobox-biome .rb-ib-section {
    background-color: #6e3a24;
    color: #e8daa8;
    padding: 5px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rb-infobox-biome .rb-ib-row {
    display: flex;
    border-bottom: 1px solid #e0d5a6;
}

.rb-infobox-biome .rb-ib-row:last-child {
    border-bottom: none;
}

.rb-infobox-biome .rb-ib-label {
    flex: 0 0 110px;
    padding: 6px 10px;
    font-weight: 700;
    color: #562c1b;
    background-color: #f0e6c2;
}

.rb-infobox-biome .rb-ib-data {
    flex: 1;
    padding: 6px 10px;
    color: #3e2318;
}

.rb-infobox-biome .rb-ib-fullrow {
    padding: 6px 10px;
    border-bottom: 1px solid #e0d5a6;
}

.rb-infobox-biome .rb-ib-fullrow:last-child {
    border-bottom: none;
}

.rb-infobox-biome a {
    color: #8b4513;
}

.rb-infobox-biome a:hover {
    color: #ebb933;
}

.rb-infobox-biome .rb-ib-badge {
    display: inline-block;
    background-color: #562c1b;
    color: #e8daa8;
    padding: 1px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rb-infobox-biome .rb-ib-footer {
    background-color: #562c1b;
    color: #c9b57a;
    text-align: center;
    padding: 5px 14px;
    font-size: 0.78rem;
}

.rb-infobox-biome .rb-ib-footer a {
    color: #e8daa8;
}

.rb-infobox-biome .rb-ib-footer a:hover {
    color: #ebb933;
}

.rb-infobox-biome .rb-ib-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rb-infobox-biome .rb-ib-subtable th {
    background-color: #6e3a24;
    color: #e8daa8;
    padding: 4px 8px;
    font-weight: 600;
    text-align: left;
}

.rb-infobox-biome .rb-ib-subtable td {
    padding: 4px 8px;
    border-bottom: 1px solid #e0d5a6;
}

.rb-infobox-biome .rb-ib-subtable tr:nth-child(even) td {
    background-color: #f5edd2;
}

@media (max-width: 600px) {
    .rb-infobox-biome {
        float: none;
        width: 100%;
        margin: 0 0 16px 0;
    }
}