Files
garrysmod-coop/loading-screen/style.css
T

664 lines
12 KiB
CSS

* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: #070b0d;
color: #f3f7f5;
font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}
body {
min-width: 640px;
min-height: 480px;
}
.backdrop,
.slide,
.shade,
.grain {
position: absolute;
inset: 0;
}
.backdrop {
background: #0a1113;
overflow: hidden;
}
.slide {
opacity: 0;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
transform: scale(1.035);
transition: opacity 1.6s ease, transform 9s linear;
}
.slide-visible {
opacity: 1;
transform: scale(1.085);
}
.shade {
background:
linear-gradient(90deg, rgba(4, 8, 10, .94) 0%, rgba(5, 9, 11, .72) 35%, rgba(5, 8, 10, .3) 67%, rgba(4, 7, 9, .6) 100%),
linear-gradient(0deg, rgba(4, 8, 9, .94) 0%, rgba(4, 8, 9, .08) 56%, rgba(4, 8, 9, .68) 100%);
}
.grain {
opacity: .11;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
pointer-events: none;
}
.shell {
position: relative;
z-index: 2;
width: 100%;
height: 100%;
padding: 4.8vh 5.2vw;
}
.topbar {
height: 54px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(255, 255, 255, .14);
padding-bottom: 18px;
}
.brand {
display: flex;
align-items: center;
letter-spacing: .18em;
}
.brand-mark {
position: relative;
display: inline-block;
width: 34px;
height: 34px;
margin-right: 13px;
border: 2px solid #9bfbd4;
transform: rotate(45deg);
box-shadow: 0 0 24px rgba(94, 255, 192, .25);
}
.brand-mark i {
position: absolute;
width: 10px;
height: 10px;
top: 10px;
left: 10px;
background: #9bfbd4;
}
.brand strong,
.brand span {
display: block;
}
.brand strong {
font-size: 13px;
}
.brand span {
color: #9bfbd4;
font-size: 9px;
margin-top: 4px;
}
.live {
display: flex;
align-items: center;
color: rgba(238, 246, 243, .72);
font-size: 10px;
font-weight: 700;
letter-spacing: .15em;
}
.live i {
width: 7px;
height: 7px;
margin-right: 9px;
border-radius: 50%;
background: #8ff7ce;
box-shadow: 0 0 0 4px rgba(143, 247, 206, .12), 0 0 16px #8ff7ce;
animation: pulse 2s ease-in-out infinite;
}
.hero {
position: absolute;
top: 17vh;
left: 5.2vw;
right: 5.2vw;
bottom: 29vh;
display: flex;
align-items: center;
justify-content: space-between;
}
.mission {
width: 58%;
min-width: 420px;
}
.eyebrow,
.phase-label,
.profile small,
.photo-caption small {
color: #9bfbd4;
font-size: 10px;
font-weight: 800;
letter-spacing: .22em;
}
.eyebrow:before {
content: "";
display: inline-block;
width: 34px;
height: 1px;
margin: 0 11px 3px 0;
background: #9bfbd4;
}
h1 {
max-width: 900px;
margin: 14px 0 12px;
font-size: clamp(42px, 6.6vw, 106px);
line-height: .92;
letter-spacing: -.055em;
text-transform: uppercase;
text-shadow: 0 3px 38px rgba(0, 0, 0, .5);
}
.mission-meta {
display: flex;
align-items: center;
color: rgba(240, 247, 245, .72);
font-size: 10px;
font-weight: 700;
letter-spacing: .16em;
}
.mission-meta span + span:before {
content: "/";
color: #9bfbd4;
margin: 0 11px;
}
.server-name {
margin: 11px 0 0;
color: rgba(239, 246, 244, .45);
font-size: 13px;
}
.photo-caption {
display: flex;
align-items: center;
margin-top: 7.5vh;
}
.photo-caption > span {
width: 54px;
margin-right: 12px;
color: rgba(255, 255, 255, .55);
font-family: Consolas, monospace;
font-size: 11px;
}
.photo-caption div {
padding-left: 13px;
border-left: 1px solid rgba(255, 255, 255, .24);
}
.photo-caption small,
.photo-caption strong {
display: block;
}
.photo-caption small {
color: rgba(255, 255, 255, .44);
font-size: 8px;
}
.photo-caption strong {
margin-top: 5px;
font-size: 12px;
font-weight: 600;
}
.profile-column {
width: 350px;
flex: 0 0 350px;
}
.profile {
width: 100%;
min-height: 272px;
padding: 24px;
border: 1px solid rgba(255, 255, 255, .14);
background: rgba(7, 13, 15, .78);
box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}
.profile-head {
display: flex;
align-items: center;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.monogram {
display: inline-flex;
width: 44px;
height: 44px;
margin-right: 14px;
align-items: center;
justify-content: center;
border: 1px solid rgba(155, 251, 212, .6);
background: rgba(155, 251, 212, .08);
color: #9bfbd4;
font-weight: 800;
font-size: 17px;
}
.profile h2 {
overflow: hidden;
max-width: 235px;
margin: 5px 0 0;
font-size: 18px;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-loading {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(238, 246, 243, .58);
font-size: 11px;
}
.profile-loading i {
width: 13px;
height: 13px;
margin-right: 10px;
border: 2px solid rgba(155, 251, 212, .18);
border-top-color: #9bfbd4;
border-radius: 50%;
animation: spin .8s linear infinite;
}
.stats {
display: flex;
flex-wrap: wrap;
padding: 16px 0 5px;
}
.stats div {
width: 33.333%;
margin-bottom: 14px;
}
.stats div.rank {
width: 100%;
margin: 0;
padding-top: 12px;
border-top: 1px solid rgba(255, 255, 255, .08);
}
.stats strong,
.stats span {
display: block;
}
.stats strong {
font-family: Consolas, "Courier New", monospace;
font-size: 20px;
font-weight: 500;
}
.stats span {
margin-top: 4px;
color: rgba(238, 246, 243, .42);
font-size: 7px;
font-weight: 700;
letter-spacing: .12em;
}
.stats .rank strong {
color: #9bfbd4;
font-family: inherit;
font-size: 14px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.tip {
margin: 15px 0 0;
color: rgba(238, 246, 243, .5);
font-size: 10px;
line-height: 1.55;
}
.tip:before {
content: "TIP ";
color: #9bfbd4;
font-weight: 800;
letter-spacing: .12em;
}
.leaderboard {
margin-top: 11px;
padding: 15px 17px 13px;
border: 1px solid rgba(255, 255, 255, .14);
background: rgba(7, 13, 15, .82);
box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}
.leaderboard-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.leaderboard-head small {
color: #9bfbd4;
font-size: 8px;
font-weight: 800;
letter-spacing: .18em;
}
.leaderboard-head span {
color: rgba(238, 246, 243, .36);
font-family: Consolas, "Courier New", monospace;
font-size: 7px;
letter-spacing: .08em;
}
.leaderboard ol {
margin: 0;
padding: 0;
list-style: none;
}
.leaderboard li {
min-height: 27px;
display: grid;
grid-template-columns: 27px minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
border-top: 1px solid rgba(255, 255, 255, .065);
}
.leaderboard li:first-child {
border-top: 0;
}
.leaderboard-position,
.leaderboard-score {
color: #9bfbd4;
font-family: Consolas, "Courier New", monospace;
font-size: 10px;
}
.leaderboard li div {
min-width: 0;
}
.leaderboard li strong,
.leaderboard li small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.leaderboard li strong {
font-size: 10px;
font-weight: 650;
}
.leaderboard li small {
margin-top: 1px;
color: rgba(238, 246, 243, .38);
font-size: 7px;
letter-spacing: .04em;
}
.leaderboard-score {
color: rgba(243, 247, 245, .88);
text-align: right;
}
.leaderboard-loading {
display: block !important;
min-height: 30px !important;
padding-top: 8px;
color: rgba(238, 246, 243, .45);
font-size: 9px;
}
.hidden {
display: none;
}
.loader {
position: absolute;
left: 5.2vw;
right: 5.2vw;
bottom: 4.8vh;
padding-top: 19px;
border-top: 1px solid rgba(255, 255, 255, .16);
}
.status-row {
display: flex;
align-items: flex-end;
justify-content: space-between;
}
.status-row > div:first-child {
min-width: 0;
padding-right: 35px;
}
.phase-label,
.status-row strong,
.file-name {
display: block;
}
.phase-label {
margin-bottom: 6px;
font-size: 8px;
}
.status-row strong {
overflow: hidden;
max-width: 72vw;
font-size: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-name {
overflow: hidden;
max-width: 70vw;
margin-top: 5px;
color: rgba(238, 246, 243, .42);
font-family: Consolas, "Courier New", monospace;
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.percent {
display: flex;
align-items: baseline;
color: #9bfbd4;
font-family: Consolas, "Courier New", monospace;
}
.percent strong {
font-size: 36px;
font-weight: 400;
}
.percent span {
font-size: 14px;
}
.progress-track {
height: 4px;
margin-top: 15px;
overflow: hidden;
background: rgba(255, 255, 255, .12);
}
.progress-bar {
position: relative;
height: 100%;
min-width: 4px;
background: linear-gradient(90deg, #51cda0, #b5ffe3);
box-shadow: 0 0 18px rgba(81, 205, 160, .5);
transition: width .65s ease;
}
.progress-bar i {
position: absolute;
top: 0;
right: -120px;
width: 120px;
height: 100%;
background: linear-gradient(90deg, rgba(155, 251, 212, 0), rgba(255, 255, 255, .9));
animation: scan 1.8s ease-in-out infinite;
}
.loader-foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 14px;
}
.stages {
display: flex;
margin: 0;
padding: 0;
list-style: none;
}
.stages li {
display: flex;
align-items: center;
margin-right: 25px;
color: rgba(238, 246, 243, .32);
font-size: 8px;
font-weight: 700;
letter-spacing: .11em;
text-transform: uppercase;
}
.stages i {
width: 6px;
height: 6px;
margin-right: 7px;
border: 1px solid rgba(255, 255, 255, .25);
border-radius: 50%;
}
.stages li.active {
color: #f3f7f5;
}
.stages li.active i {
border-color: #9bfbd4;
background: #9bfbd4;
box-shadow: 0 0 10px rgba(155, 251, 212, .75);
}
.stages li.done {
color: rgba(155, 251, 212, .55);
}
.stages li.done i {
border-color: #63d6aa;
background: rgba(99, 214, 170, .42);
}
.file-count {
color: rgba(238, 246, 243, .42);
font-family: Consolas, "Courier New", monospace;
font-size: 9px;
letter-spacing: .04em;
}
@keyframes pulse {
0%, 100% { opacity: .55; }
50% { opacity: 1; }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes scan {
0% { right: 100%; opacity: 0; }
30% { opacity: 1; }
100% { right: -120px; opacity: 0; }
}
@media (max-width: 920px), (max-height: 650px) {
.shell { padding: 24px 34px; }
.hero { top: 100px; left: 34px; right: 34px; bottom: 190px; }
.loader { left: 34px; right: 34px; bottom: 25px; }
.profile-column { width: 310px; flex-basis: 310px; }
.profile { min-height: 230px; padding: 18px; }
.profile h2 { max-width: 195px; }
.photo-caption { margin-top: 30px; }
.tip { display: none; }
h1 { font-size: 50px; }
}
@media (max-height: 850px) {
.profile { min-height: 215px; padding: 15px 18px; }
.profile-head { padding-bottom: 10px; }
.stats { padding: 9px 0 2px; }
.stats div { margin-bottom: 7px; }
.stats div.rank { padding-top: 6px; }
.tip { display: none; }
.leaderboard { padding-top: 10px; padding-bottom: 8px; }
.leaderboard li { min-height: 24px; }
}
@media (max-width: 760px) {
.profile-column { display: none; }
.mission { width: 100%; }
.stages li { margin-right: 13px; }
.file-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.slide,
.progress-bar,
.progress-bar i,
.live i,
.profile-loading i {
animation: none;
transition: none;
}
}