Contractless-Faucet/styles.css

805 lines
13 KiB
CSS

:root {
--ink: #111315;
--paper: #f3f5ef;
--acid: #d9ff3f;
--cyan: #55dce7;
--blue: #245f9d;
--red: #ff5b52;
--line: rgba(17, 19, 21, 0.2);
--mono: "DM Mono", monospace;
--sans: "Manrope", sans-serif;
}
* {
box-sizing: border-box;
}
html {
background: var(--ink);
color: var(--ink);
font-family: var(--sans);
}
body {
margin: 0;
min-width: 320px;
background:
linear-gradient(rgba(17, 19, 21, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(17, 19, 21, 0.045) 1px, transparent 1px),
var(--paper);
background-size: 32px 32px;
}
a {
color: inherit;
}
button,
input {
font: inherit;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.site-shell {
min-height: 100vh;
overflow: hidden;
}
.site-header {
min-height: 76px;
display: flex;
align-items: stretch;
border-bottom: 1px solid var(--ink);
background: rgba(243, 245, 239, 0.94);
}
.brand {
width: 268px;
flex: 0 0 268px;
display: grid;
grid-template-columns: 38px 1fr;
grid-template-rows: 1fr 1fr;
column-gap: 11px;
align-items: end;
padding: 13px 22px;
color: white;
background: var(--blue);
text-decoration: none;
}
.brand img {
width: 36px;
height: 36px;
grid-row: 1 / 3;
align-self: center;
}
.brand span {
font-size: 14px;
font-weight: 800;
align-self: end;
}
.brand small {
font-family: var(--mono);
font-size: 9px;
align-self: start;
}
.site-nav {
display: flex;
align-items: stretch;
flex: 1;
}
.site-nav a {
min-width: 0;
flex: 1;
display: grid;
place-items: center;
padding: 10px 9px;
border-right: 1px solid var(--line);
font-family: var(--mono);
font-size: 10px;
line-height: 1.25;
text-align: center;
text-decoration: none;
text-transform: uppercase;
transition: background-color 160ms ease, color 160ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
color: var(--paper);
background: var(--ink);
outline: 0;
}
.site-nav .download-wallet {
border-top: 0;
border-bottom: 0;
border-left: 1px;
border-right: 0;
border-color: var(--ink);
border-style: solid;
color: var(--ink);
background: var(--acid);
font-weight: 700;
letter-spacing: 1px;
}
.site-nav .download-wallet:hover,
.site-nav .download-wallet:focus-visible {
color: white;
background: var(--blue);
}
.menu-button {
display: none;
}
.faucet-stage {
min-height: 670px;
display: grid;
grid-template-columns: minmax(340px, 0.95fr) minmax(400px, 1.05fr);
grid-template-rows: 1fr auto;
position: relative;
padding: clamp(42px, 7vw, 104px) clamp(24px, 6vw, 96px) 62px;
border-bottom: 1px solid var(--ink);
}
.faucet-stage::before {
content: "";
position: absolute;
left: 52%;
top: 0;
bottom: 0;
width: 1px;
background: var(--line);
}
.faucet-copy {
position: relative;
z-index: 2;
align-self: center;
max-width: 660px;
}
.eyebrow {
display: flex;
align-items: center;
gap: 10px;
margin: 0 0 30px;
font-family: var(--mono);
font-size: 11px;
text-transform: uppercase;
}
.eyebrow span {
width: 36px;
height: 5px;
background: var(--red);
}
h1 {
max-width: 720px;
margin: 0;
font-size: clamp(54px, 6.6vw, 104px);
line-height: 0.92;
letter-spacing: 0;
text-transform: uppercase;
}
.intro {
max-width: 550px;
margin: 30px 0 0;
font-size: 17px;
line-height: 1.65;
}
.signal-field {
position: absolute;
z-index: 1;
top: 48px;
right: max(24px, 5vw);
width: min(43vw, 620px);
aspect-ratio: 1;
opacity: 0.72;
pointer-events: none;
}
.signal {
position: absolute;
inset: 0;
border: 1px solid var(--line);
border-radius: 50%;
}
.signal-a {
inset: 8%;
border-color: var(--cyan);
border-width: 8px 1px 1px;
animation: orbit 18s linear infinite;
}
.signal-b {
inset: 22%;
border: 1px dashed var(--ink);
animation: orbit 26s linear infinite reverse;
}
.signal-c {
inset: 34%;
border-color: var(--red);
border-width: 1px 5px 1px 1px;
animation: orbit 12s linear infinite;
}
.signal-core {
position: absolute;
inset: 42%;
display: grid;
place-items: center;
background: var(--blue);
transform: rotate(45deg);
}
.signal-core img {
width: 58%;
transform: rotate(-45deg);
}
.coordinate {
position: absolute;
font-family: var(--mono);
font-size: 9px;
}
.coordinate-a {
top: 13%;
left: 13%;
}
.coordinate-b {
right: 1%;
bottom: 18%;
}
@keyframes orbit {
to { transform: rotate(360deg); }
}
.request-panel {
position: relative;
z-index: 3;
grid-column: 2;
grid-row: 1 / 3;
align-self: end;
justify-self: end;
width: min(100%, 570px);
margin-left: 60px;
border: 1px solid var(--ink);
background: var(--paper);
}
.panel-index {
position: absolute;
top: -1px;
left: -46px;
width: 45px;
height: 45px;
display: grid;
place-items: center;
color: var(--paper);
background: var(--ink);
font-family: var(--mono);
font-size: 11px;
}
.panel-heading {
height: 62px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 22px;
border-bottom: 1px solid var(--ink);
}
.panel-heading p {
margin: 0;
font-weight: 800;
text-transform: uppercase;
}
.status {
display: flex;
align-items: center;
gap: 7px;
font-family: var(--mono);
font-size: 10px;
text-transform: uppercase;
}
.status i {
width: 8px;
height: 8px;
border-radius: 50%;
background: #34a853;
animation: pulse 1.8s ease-in-out infinite;
}
.status.offline i {
background: var(--red);
}
@keyframes pulse {
50% { opacity: 0.35; }
}
form {
padding: 28px 22px 22px;
}
label {
display: block;
margin-bottom: 10px;
font-family: var(--mono);
font-size: 11px;
text-transform: uppercase;
}
.address-control {
height: 58px;
display: grid;
grid-template-columns: 1fr auto;
border: 1px solid var(--ink);
background: white;
}
.address-control:focus-within {
outline: 3px solid var(--cyan);
outline-offset: 2px;
}
input {
width: 100%;
min-width: 0;
padding: 0 15px;
border: 0;
outline: 0;
background: transparent;
font-family: var(--mono);
font-size: 12px;
}
.input-marker {
display: grid;
place-items: center;
padding: 0 14px;
border-left: 1px solid var(--ink);
font-family: var(--mono);
font-size: 10px;
}
.field-note {
margin: 9px 0 22px;
color: #4a4c49;
font-size: 12px;
}
.request-button {
width: 100%;
min-height: 62px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px 0 20px;
border: 1px solid var(--ink);
color: var(--ink);
background: var(--acid);
cursor: pointer;
font-weight: 800;
text-transform: uppercase;
transition: background-color 150ms ease;
}
.request-button b {
width: 46px;
height: 46px;
display: grid;
place-items: center;
color: white;
background: var(--ink);
font-size: 22px;
font-weight: 400;
}
.request-button:hover,
.request-button:focus-visible {
background: var(--cyan);
outline: 0;
}
.request-button:disabled {
cursor: not-allowed;
opacity: 0.52;
}
.form-message {
display: none;
margin: 0 22px 22px;
padding: 12px 14px;
border-left: 5px solid var(--red);
background: rgba(255, 91, 82, 0.1);
font-family: var(--mono);
font-size: 11px;
line-height: 1.5;
}
.form-message.visible {
display: block;
}
.form-message.success {
border-left-color: #278943;
background: rgba(39, 137, 67, 0.1);
overflow-wrap: anywhere;
}
.request-rules {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-top: 1px solid var(--ink);
}
.request-rules div {
min-width: 0;
padding: 18px 14px;
border-right: 1px solid var(--line);
}
.request-rules div:last-child {
border-right: 0;
}
.request-rules strong,
.request-rules span {
display: block;
}
.request-rules strong {
margin-bottom: 3px;
font-size: 22px;
}
.request-rules span {
font-family: var(--mono);
font-size: 8px;
line-height: 1.4;
text-transform: uppercase;
}
.faucet-support {
min-height: 86px;
display: grid;
grid-template-columns: auto minmax(280px, 1fr) auto;
gap: 30px;
align-items: center;
padding: 16px clamp(24px, 6vw, 96px);
border-bottom: 1px solid var(--ink);
background: var(--acid);
}
.faucet-support div span,
.faucet-support div strong {
display: block;
}
.faucet-support div span {
margin-bottom: 4px;
font-family: var(--mono);
font-size: 9px;
text-transform: uppercase;
}
.faucet-support div strong {
font-size: 17px;
text-transform: uppercase;
}
.faucet-support code {
min-width: 0;
overflow: hidden;
font-family: var(--mono);
font-size: 13px;
text-overflow: ellipsis;
white-space: nowrap;
}
.faucet-support button {
min-height: 42px;
padding: 0 18px;
border: 1px solid var(--ink);
color: white;
background: var(--ink);
cursor: pointer;
font-family: var(--mono);
font-size: 10px;
text-transform: uppercase;
}
.faucet-support button:hover,
.faucet-support button:focus-visible {
color: var(--ink);
background: var(--cyan);
outline: 0;
}
.network-strip {
min-height: 78px;
display: grid;
grid-template-columns: repeat(3, 1fr);
align-items: center;
color: white;
background: var(--ink);
}
.network-strip p {
margin: 0;
padding: 14px clamp(20px, 4vw, 64px);
border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.network-strip span,
.network-strip strong {
display: block;
}
.network-strip span {
margin-bottom: 5px;
color: var(--acid);
font-family: var(--mono);
font-size: 9px;
line-height: 1.5;
text-transform: uppercase;
}
.network-strip strong {
font-size: 16px;
letter-spacing: 0;
}
.lower-band {
min-height: 280px;
display: grid;
grid-template-columns: 1.25fr 1fr 0.7fr;
gap: 50px;
align-items: center;
padding: 54px clamp(24px, 6vw, 96px);
border-bottom: 1px solid var(--ink);
background: var(--cyan);
}
.section-number {
margin: 0 0 12px;
font-family: var(--mono);
font-size: 10px;
}
h2 {
margin: 0;
font-size: clamp(34px, 4vw, 60px);
line-height: 0.98;
letter-spacing: 0;
text-transform: uppercase;
}
.lower-band > p {
margin: 0;
font-size: 15px;
line-height: 1.65;
}
.lower-band > a {
justify-self: end;
padding-bottom: 8px;
border-bottom: 2px solid var(--ink);
font-weight: 800;
text-decoration: none;
}
.lower-band > a span {
margin-left: 12px;
}
footer {
min-height: 52px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 clamp(24px, 6vw, 96px);
color: white;
background: var(--blue);
font-family: var(--mono);
font-size: 9px;
}
@media (max-width: 1080px) {
.site-header {
flex-wrap: wrap;
}
.brand {
width: 240px;
flex-basis: 240px;
}
.site-nav {
order: 3;
width: 100%;
flex-basis: 100%;
border-top: 1px solid var(--ink);
}
.site-nav a {
min-height: 48px;
}
.faucet-stage {
grid-template-columns: 1fr 1fr;
}
.signal-field {
opacity: 0.42;
}
}
@media (max-width: 760px) {
.site-header {
min-height: 68px;
align-items: stretch;
justify-content: space-between;
}
.brand {
width: 234px;
flex-basis: 234px;
padding: 10px 16px;
}
.menu-button {
width: 68px;
display: grid;
place-content: center;
gap: 7px;
border: 0;
border-left: 1px solid var(--ink);
background: transparent;
}
.menu-button span:not(.sr-only) {
width: 25px;
height: 2px;
display: block;
background: var(--ink);
}
.site-nav {
display: none;
grid-template-columns: 1fr 1fr;
}
.site-nav.open {
display: grid;
}
.site-nav a {
border-bottom: 1px solid var(--line);
}
.faucet-stage {
min-height: 0;
display: block;
padding: 64px 20px 48px;
}
.faucet-stage::before {
display: none;
}
h1 {
font-size: clamp(49px, 15vw, 72px);
}
.intro {
font-size: 15px;
}
.signal-field {
top: 12px;
right: -35%;
width: 100vw;
opacity: 0.22;
}
.request-panel {
width: 100%;
margin: 72px 0 0;
}
.panel-index {
left: 0;
top: -46px;
}
.network-strip {
grid-template-columns: 1fr;
}
.network-strip p {
border-right: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.network-strip p:last-child {
border-bottom: 0;
}
.faucet-support {
grid-template-columns: 1fr auto;
gap: 14px;
}
.faucet-support code {
grid-column: 1 / 3;
grid-row: 2;
padding-top: 12px;
border-top: 1px solid rgba(17, 19, 21, 0.25);
}
.faucet-support button {
grid-column: 2;
grid-row: 1;
}
.lower-band {
grid-template-columns: 1fr;
gap: 28px;
padding: 48px 20px;
}
.lower-band > a {
justify-self: start;
}
footer {
min-height: 78px;
align-items: flex-start;
flex-direction: column;
justify-content: center;
gap: 5px;
padding: 20px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
}
}