Actions

Template

Main page/styles.css: Difference between revisions

From Project Rebearth

No edit summary
Making styling a bit more comparable to the official game styling. also making things a bit more compact
Line 10: Line 10:
.rb-scooped-corners {
.rb-scooped-corners {
     mask:
     mask:
         radial-gradient(circle at top left, transparent 15px, black 15.5px) top left,
         radial-gradient(circle at top left, transparent 10px, black 10.5px) top left,
         radial-gradient(circle at top right, transparent 15px, black 15.5px) top right,
         radial-gradient(circle at top right, transparent 10px, black 10.5px) top right,
         radial-gradient(circle at bottom left, transparent 15px, black 15.5px) bottom left,
         radial-gradient(circle at bottom left, transparent 10px, black 10.5px) bottom left,
         radial-gradient(circle at bottom right, transparent 15px, black 15.5px) bottom right;
         radial-gradient(circle at bottom right, transparent 10px, black 10.5px) bottom right;
     mask-size: 51% 51%;
     mask-size: 51% 51%;
     mask-repeat: no-repeat;
     mask-repeat: no-repeat;
Line 19: Line 19:


.rb-modal-border {
.rb-modal-border {
     background-color: #f3e5ab;
     background-color: #e8daa8;
     padding: 4px;
     padding: 2px;
     width: 100%;
     width: 100%;
     margin: 0 auto;
     margin: 0 auto;
Line 26: Line 26:


.rb-modal-border-alt {
.rb-modal-border-alt {
     background-color: #3e2318;
     background-color: #562c1b;
     padding: 4px;
     padding: 2px;
     width: 100%;
     width: 100%;
     margin: 0 auto;
     margin: 0 auto;
Line 33: Line 33:


.rb-modal-content {
.rb-modal-content {
     background-color: #3e2318;
     background-color: #562c1b;
     color: #f3e5ab;
     color: #e8daa8;
     text-align: center;
     text-align: center;
     padding: 30px 40px;
     padding: 20px 25px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
     gap: 8px;
     gap: 6px;
}
}


.rb-modal-content-alt {
.rb-modal-content-alt {
     background-color: #f3e5ab;
     background-color: #e8daa8;
     color: #3e2318;
     color: #562c1b;
     text-align: center;
     text-align: center;
     padding: 30px 40px;
     padding: 20px 25px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
     gap: 8px;
     gap: 6px;
}
}


.rb-welcome-text {
.rb-welcome-text {
     font-size: 1.4rem;
     font-size: 1.1rem;
     font-weight: 600;
     font-weight: 600;
     color: #f3e5ab;
     color: #e8daa8;
     margin: 0 0 5px 0;
     margin: 0 0 4px 0;
}
}


Line 65: Line 65:
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     gap: 12px;
     gap: 10px;
     margin-bottom: 8px;
     margin-bottom: 6px;
}
}


.rb-server-name {
.rb-server-name {
     font-size: 1.8rem;
     font-size: 1.5rem;
     font-weight: 700;
     font-weight: 700;
     color: #ffb74d;
     color: #ebb933;
     margin: 0;
     margin: 0;
     line-height: 1.2;
     line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
}


.rb-server-name-alt {
.rb-server-name-alt {
     font-size: 1.8rem;
     font-size: 1.5rem;
     font-weight: 700;
     font-weight: 700;
     color: #3e2318;
     color: #562c1b;
     margin: 0;
     margin: 0;
     line-height: 1.2;
     line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
}


.rb-stats-row {
.rb-stats-row {
     display: flex;
     display: flex;
     gap: 20px;
     gap: 16px;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     margin-bottom: 12px;
     margin-bottom: 8px;
     font-size: 1.1rem;
     font-size: 0.95rem;
     color: #e0e0e0;
     color: rgba(255, 255, 255, 0.9);
}
 
.rb-modal-content-alt .rb-stats-row {
    color: #562c1b;
}
}


Line 98: Line 106:
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     gap: 8px;
     gap: 6px;
}
}


.rb-description {
.rb-description {
     font-size: 1.1rem;
     font-size: 0.95rem;
     line-height: 1.5;
     line-height: 1.4;
     color: #f3e5ab;
     color: #e8daa8;
     margin: 0;
     margin: 0;
     max-width: 95%;
     max-width: 95%;
    font-weight: 300;
}
}


.rb-description-alt {
.rb-description-alt {
     font-size: 1.1rem;
     font-size: 0.95rem;
     line-height: 1.5;
     line-height: 1.4;
     color: #3e2318;
     color: #562c1b;
     margin: 0;
     margin: 0;
     max-width: 95%;
     max-width: 95%;
    font-weight: 300;
}
}


Line 121: Line 131:
     flex-wrap: wrap;
     flex-wrap: wrap;
     justify-content: center;
     justify-content: center;
     margin-top: 16px;
     margin-top: 12px;
}
}


.rb-step-card {
.rb-step-card {
     flex: 1 1 140px;
     flex: 1 1 120px;
     max-width: 180px;
     max-width: 150px;
     text-align: center;
     text-align: center;
     padding: 10px;
     padding: 8px;
     border-left: 1px solid;
     border-left: 1px solid;
     border-image: linear-gradient(transparent 15%, #f3e5ab 15%, #5a3a2a 85%, transparent 85%) 1;
     border-image: linear-gradient(transparent 15%, #e8daa8 15%, #562c1b 85%, transparent 85%) 1;
}
 
.rb-modal-content-alt .rb-step-card {
    border-image: linear-gradient(transparent 15%, #562c1b 15%, #e8daa8 85%, transparent 85%) 1;
}
}


Line 139: Line 153:


.rb-step-number {
.rb-step-number {
     font-size: 2.5rem;
     font-size: 1.8rem;
     font-weight: 700;
     font-weight: 700;
     color: #f3e5ab;
     color: #ebb933;
     line-height: 1;
     line-height: 1;
     margin-bottom: 8px;
     margin-bottom: 4px;
}
}


.rb-step-text {
.rb-step-text {
     font-size: 0.9rem;
     font-size: 0.85rem;
     color: #f3e5ab;
     color: #e8daa8;
     line-height: 1.4;
     line-height: 1.3;
    font-weight: 300;
}
 
.rb-modal-content-alt .rb-step-text {
    color: #562c1b;
}
}


.rb-info-table {
.rb-info-table {
     width: 100%;
     width: 100%;
     max-width: 400px;
     max-width: 380px;
     margin: 16px auto 0;
     margin: 12px auto 0;
     border-collapse: collapse;
     border-collapse: collapse;
}
}


.rb-info-table td {
.rb-info-table td {
     padding: 8px 12px;
     padding: 4px 8px;
     border-bottom: 1px solid #3e2318;
     border-bottom: 1px solid #562c1b;
     font-size: 0.95rem;
     font-size: 0.9rem;
     color: #3e2318;
     color: #562c1b;
     vertical-align: top;
     vertical-align: top;
}
}
Line 173: Line 192:
.rb-info-label {
.rb-info-label {
     font-weight: 700;
     font-weight: 700;
     color: #3e2318;
     color: #562c1b;
     white-space: nowrap;
     white-space: nowrap;
     width: 1%;
     width: 1%;
}
}

Revision as of 19:54, 9 February 2026

.rb-modal-box {
    box-sizing: border-box;
    display: inline-block;
}

.rb-modal-box * {
    box-sizing: border-box;
}

.rb-scooped-corners {
    mask:
        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 {
    background-color: #e8daa8;
    padding: 2px;
    width: 100%;
    margin: 0 auto;
}

.rb-modal-border-alt {
    background-color: #562c1b;
    padding: 2px;
    width: 100%;
    margin: 0 auto;
}

.rb-modal-content {
    background-color: #562c1b;
    color: #e8daa8;
    text-align: center;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    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 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8daa8;
    margin: 0 0 4px 0;
}

.rb-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.rb-server-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ebb933;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.rb-server-name-alt {
    font-size: 1.5rem;
    font-weight: 700;
    color: #562c1b;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.rb-stats-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.rb-modal-content-alt .rb-stats-row {
     color: #562c1b;
}

.rb-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.rb-steps-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.rb-step-card {
    flex: 1 1 120px;
    max-width: 150px;
    text-align: center;
    padding: 8px;
    border-left: 1px solid;
    border-image: linear-gradient(transparent 15%, #e8daa8 15%, #562c1b 85%, transparent 85%) 1; 
}

.rb-modal-content-alt .rb-step-card {
    border-image: linear-gradient(transparent 15%, #562c1b 15%, #e8daa8 85%, transparent 85%) 1;
}

.rb-step-card:first-child {
    border-left: none;
    border-image: none;
}

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

.rb-step-text {
    font-size: 0.85rem;
    color: #e8daa8;
    line-height: 1.3;
    font-weight: 300;
}

.rb-modal-content-alt .rb-step-text {
    color: #562c1b;
}

.rb-info-table {
    width: 100%;
    max-width: 380px;
    margin: 12px auto 0;
    border-collapse: collapse;
}

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

.rb-info-table tr:last-child td {
    border-bottom: none;
}

.rb-info-label {
    font-weight: 700;
    color: #562c1b;
    white-space: nowrap;
    width: 1%;
}