Main page/styles.css: Difference between revisions
From Project Rebearth
No edit summary |
Program Sam (talk | contribs) 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 | radial-gradient(circle at top left, transparent 10px, black 10.5px) top left, | ||
radial-gradient(circle at top right, transparent | radial-gradient(circle at top right, transparent 10px, black 10.5px) top right, | ||
radial-gradient(circle at bottom left, transparent | radial-gradient(circle at bottom left, transparent 10px, black 10.5px) bottom left, | ||
radial-gradient(circle at bottom right, transparent | 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: # | background-color: #e8daa8; | ||
padding: | 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: # | background-color: #562c1b; | ||
padding: | padding: 2px; | ||
width: 100%; | width: 100%; | ||
margin: 0 auto; | margin: 0 auto; | ||
| Line 33: | Line 33: | ||
.rb-modal-content { | .rb-modal-content { | ||
background-color: # | background-color: #562c1b; | ||
color: # | color: #e8daa8; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 20px 25px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 6px; | ||
} | } | ||
.rb-modal-content-alt { | .rb-modal-content-alt { | ||
background-color: # | background-color: #e8daa8; | ||
color: # | color: #562c1b; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 20px 25px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 6px; | ||
} | } | ||
.rb-welcome-text { | .rb-welcome-text { | ||
font-size: 1. | font-size: 1.1rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: # | color: #e8daa8; | ||
margin: 0 0 | margin: 0 0 4px 0; | ||
} | } | ||
| Line 65: | Line 65: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 10px; | ||
margin-bottom: | margin-bottom: 6px; | ||
} | } | ||
.rb-server-name { | .rb-server-name { | ||
font-size: 1. | font-size: 1.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #ebb933; | ||
margin: 0; | margin: 0; | ||
line-height: 1. | line-height: 1.1; | ||
text-transform: uppercase; | |||
letter-spacing: 1.5px; | |||
} | } | ||
.rb-server-name-alt { | .rb-server-name-alt { | ||
font-size: 1. | font-size: 1.5rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #562c1b; | ||
margin: 0; | margin: 0; | ||
line-height: 1. | line-height: 1.1; | ||
text-transform: uppercase; | |||
letter-spacing: 1.5px; | |||
} | } | ||
.rb-stats-row { | .rb-stats-row { | ||
display: flex; | display: flex; | ||
gap: | gap: 16px; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
margin-bottom: | margin-bottom: 8px; | ||
font-size: | font-size: 0.95rem; | ||
color: # | 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: | gap: 6px; | ||
} | } | ||
.rb-description { | .rb-description { | ||
font-size: | font-size: 0.95rem; | ||
line-height: 1. | line-height: 1.4; | ||
color: # | color: #e8daa8; | ||
margin: 0; | margin: 0; | ||
max-width: 95%; | max-width: 95%; | ||
font-weight: 300; | |||
} | } | ||
.rb-description-alt { | .rb-description-alt { | ||
font-size: | font-size: 0.95rem; | ||
line-height: 1. | line-height: 1.4; | ||
color: # | 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: | margin-top: 12px; | ||
} | } | ||
.rb-step-card { | .rb-step-card { | ||
flex: 1 1 | flex: 1 1 120px; | ||
max-width: | max-width: 150px; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 8px; | ||
border-left: 1px solid; | border-left: 1px solid; | ||
border-image: linear-gradient(transparent 15%, # | 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: | font-size: 1.8rem; | ||
font-weight: 700; | font-weight: 700; | ||
color: # | color: #ebb933; | ||
line-height: 1; | line-height: 1; | ||
margin-bottom: | margin-bottom: 4px; | ||
} | } | ||
.rb-step-text { | .rb-step-text { | ||
font-size: 0. | font-size: 0.85rem; | ||
color: # | color: #e8daa8; | ||
line-height: 1. | 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: | max-width: 380px; | ||
margin: | margin: 12px auto 0; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
.rb-info-table td { | .rb-info-table td { | ||
padding: 8px | padding: 4px 8px; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #562c1b; | ||
font-size: 0. | font-size: 0.9rem; | ||
color: # | 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: # | 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%;
}