Skip to content

Commit edcabe6

Browse files
committed
feat: admin login page upgrade
1 parent 2b22257 commit edcabe6

File tree

4 files changed

+124
-70
lines changed

4 files changed

+124
-70
lines changed

public/asset/theme/default/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modstart/modstart/asset/theme/default/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modstart/modstart/resources/asset/src/theme/default/admin.less

Lines changed: 68 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,58 @@ body {
44
line-height: 1.5;
55
color: var(--color-text);
66
-webkit-font-smoothing: antialiased;
7-
//background: #222D32;
87
}
98

10-
//
11-
//html {
12-
// background: #222D32;
13-
//}
14-
159
.ub-admin-login {
16-
width: 300px;
17-
margin: 0 auto;
18-
19-
.head {
20-
color: #FFF;
21-
text-align: center;
22-
font-size: 1.3rem;
23-
padding: 50px 0 20px 0;
24-
font-weight: bold;
25-
}
10+
width: 100%;
11+
min-height: 100vh;
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
overflow: auto;
2616

27-
.form {
28-
background: #FFF;
29-
padding: 20px;
17+
.login-box {
18+
display: flex;
19+
width: 600px;
20+
box-shadow: 0px 20px 80px 0px rgba(0, 0, 0, 0.3);
3021
border-radius: 0.5rem;
31-
box-shadow: #333 0 0 0.25rem;
3222

33-
.line {
34-
padding: 15px 10px;
23+
.info {
24+
background: var(--color-primary);
25+
flex-grow: 1;
26+
border-radius: 0.5rem 0 0 0.5rem;
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: center;
30+
padding: 2rem;
31+
color: #FFF;
32+
text-align: center;
3533

36-
input {
37-
width: 100%;
38-
font-size: 14px;
39-
line-height: 40px;
40-
height: 40px;
34+
.title {
35+
font-size: 1.2rem;
36+
}
37+
38+
.slogan {
39+
font-size: 0.7rem;
40+
margin-top: 1rem;
41+
}
42+
}
43+
44+
.form {
45+
background: #FFF;
46+
padding: 20px;
47+
width: 50%;
48+
border-radius: 0 0.5rem 0.5rem 0;
49+
50+
.line {
51+
padding: 15px 10px;
52+
53+
input {
54+
width: 100%;
55+
font-size: 14px;
56+
line-height: 40px;
57+
height: 40px;
58+
}
4159
}
4260
}
4361
}
@@ -51,3 +69,26 @@ body {
5169
}
5270
}
5371
}
72+
73+
@media (max-width: 800px) {
74+
.ub-admin-login {
75+
display: block;
76+
background: #FFF;
77+
78+
.login-box {
79+
display: block;
80+
border-radius: 0;
81+
width: 100%;
82+
box-shadow: none;
83+
84+
.info {
85+
border-radius: 0;
86+
}
87+
88+
.form {
89+
width: 100%;
90+
border-radius: 0;
91+
}
92+
}
93+
}
94+
}

0 commit comments

Comments
 (0)