mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-12-03 10:23:39 +08:00
Protect route drafts and refine keyboard, responsive, and primary button behavior. Add CURD workspace examples with tests and bilingual documentation.
181 lines
3.1 KiB
SCSS
181 lines
3.1 KiB
SCSS
.login {
|
|
min-block-size: 100vh;
|
|
min-block-size: 100dvh;
|
|
box-sizing: border-box;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
gap: clamp(20px, 4vw, 52px);
|
|
padding: clamp(16px, 4vw, 54px);
|
|
background: var(--r-canvas);
|
|
color: var(--r-text);
|
|
|
|
&__header,
|
|
&__grid,
|
|
&__footer {
|
|
width: min(100%, 1120px);
|
|
margin-inline: auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
&__header,
|
|
&__footer,
|
|
&__brand,
|
|
&__secondary {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
&__brand {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
&__grid {
|
|
display: grid;
|
|
align-self: center;
|
|
grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
|
|
grid-template-areas: 'story panel';
|
|
border: 1px solid var(--r-line);
|
|
border-radius: 20px;
|
|
overflow: clip;
|
|
background: var(--r-surface);
|
|
box-shadow: var(--r-shadow-soft);
|
|
}
|
|
|
|
&__story,
|
|
&__panel {
|
|
min-width: 0;
|
|
padding: clamp(24px, 4vw, 54px);
|
|
}
|
|
|
|
&__story {
|
|
grid-area: story;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 44px;
|
|
color: #f1f7ff;
|
|
background:
|
|
radial-gradient(ellipse at 95% 88%, #204c7e, transparent 64%), #132743;
|
|
|
|
.login__eyebrow {
|
|
color: #9ce7ff;
|
|
}
|
|
|
|
h2 {
|
|
max-width: 14ch;
|
|
margin: 18px 0;
|
|
font-size: clamp(2rem, 1.2rem + 2.2vw, 3.6rem);
|
|
line-height: 1.12;
|
|
letter-spacing: -0.035em;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
h2 + p {
|
|
max-width: 36ch;
|
|
color: #c6d7eb;
|
|
line-height: 1.75;
|
|
}
|
|
}
|
|
|
|
&__stack {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 24px 0 0;
|
|
|
|
li {
|
|
border: 1px solid #6983a3;
|
|
border-radius: 100px;
|
|
padding: 5px 12px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
&__mark {
|
|
align-self: end;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 196px;
|
|
aspect-ratio: 1;
|
|
border-radius: 50%;
|
|
background: repeating-radial-gradient(
|
|
circle,
|
|
transparent 0 29px,
|
|
rgb(156 231 255 / 20%) 30px 31px
|
|
);
|
|
}
|
|
|
|
&__eyebrow {
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
font-weight: 700;
|
|
letter-spacing: 0.12em;
|
|
color: var(--r-text-secondary);
|
|
}
|
|
|
|
&__panel {
|
|
grid-area: panel;
|
|
}
|
|
|
|
&__panel-heading {
|
|
margin-bottom: 20px;
|
|
|
|
h1 {
|
|
font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
|
|
margin-block: 8px;
|
|
}
|
|
|
|
h1 + p {
|
|
color: var(--r-text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
}
|
|
|
|
&__method {
|
|
margin-block-start: 12px;
|
|
}
|
|
|
|
&__secondary {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--r-line);
|
|
}
|
|
|
|
&__footer,
|
|
&__secondary {
|
|
color: var(--r-text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.login {
|
|
&__grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
grid-template-areas: 'panel' 'story';
|
|
}
|
|
|
|
&__story h2 {
|
|
max-width: 24ch;
|
|
}
|
|
|
|
&__mark {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.login__story,
|
|
.login__story .login__eyebrow,
|
|
.login__story h2 + p {
|
|
color: CanvasText;
|
|
}
|
|
}
|