Files
cz-web/src/styles/common.less
2026-10-01 17:24:57 +08:00

134 lines
2.2 KiB
Plaintext

.container {
width: 100%;
max-width: @container-width;
margin: 0 auto;
padding: 0
clamp(@spacing-base, calc((100% - @page-content) / 2), @page-gutter);
}
.container--home {
padding: 0 @home-gutter;
@media (max-width: 1919px) {
padding: 0 @spacing-lg;
}
}
.auth-page {
position: relative;
display: flex;
min-height: calc(100vh / @page-zoom);
background: @white;
@media (max-width: 1286px) {
min-height: calc(100vh / @page-zoom--sm);
}
&__brand {
.flex(column, flex-start, center);
flex: 0 0 @login-brand-width;
padding: 304px 24px 0;
background: linear-gradient(
160deg,
@auth-gradient-from 0%,
@auth-gradient-to 100%
);
color: @white;
text-align: center;
}
&__logo {
margin: 0;
font-size: 40px * @auth-font-scale;
font-weight: 700;
line-height: 58px * @auth-font-scale;
color: @white;
}
&__key {
margin: 26px 0 0;
font-size: 15px * @auth-font-scale;
font-weight: 400;
letter-spacing: 0.5px;
color: @white;
}
&__slogan {
margin: 246px 0 0;
font-size: 22px * @auth-font-scale;
font-weight: 600;
line-height: 29px * @auth-font-scale;
letter-spacing: 8px;
color: @white;
}
&__guest {
position: absolute;
top: 28px;
right: 32px;
font-size: 20px;
font-weight: 400;
color: #1f2937;
text-decoration: none;
transition: color 0.2s;
&:hover {
color: @primary-strong;
}
}
&__main {
.flex(column, center, center);
flex: 1;
min-width: 0;
padding: 40px 0;
}
&__card {
.flex(column, flex-start, flex-start);
width: 693px;
text-align: left;
}
&__title {
margin: 0;
font-size: 34px * @auth-font-scale;
font-weight: 700;
line-height: 45px * @auth-font-scale;
color: #1f2937;
}
&__title,
&__subtitle {
align-self: center;
padding-left: 17px;
text-align: center;
}
&__link {
color: @primary-strong;
&:hover {
color: @primary-hover;
}
}
}
.link {
cursor: pointer;
transition: color 0.2s;
&:hover {
color: @primary-color;
}
}
.text-ellipsis {
.ellipsis();
}
.text-secondary {
color: @text-color-secondary;
}