Skip to content

Commit 173e771

Browse files
committed
fix: user-layout styles
1 parent 5e3e30a commit 173e771

File tree

1 file changed

+63
-52
lines changed

1 file changed

+63
-52
lines changed

src/layouts/UserLayout.vue

Lines changed: 63 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@
22

33
<div id="userLayout" :class="['user-layout-wrapper', isMobile && 'mobile']">
44
<div class="container">
5-
<div :class="wrpCls">
6-
<select-lang :class="prefixCls" />
5+
<div class="user-layout-lang">
6+
<select-lang class="select-lang-trigger" />
77
</div>
8-
<div class="top">
9-
<div class="header">
10-
<a href="/">
11-
<img src="~@/assets/logo.svg" class="logo" alt="logo">
12-
<span class="title">Ant Design</span>
13-
</a>
8+
<div class="user-layout-content">
9+
<div class="top">
10+
<div class="header">
11+
<a href="/">
12+
<img src="~@/assets/logo.svg" class="logo" alt="logo">
13+
<span class="title">Ant Design</span>
14+
</a>
15+
</div>
16+
<div class="desc">
17+
{{ $t('layouts.userLayout.title') }}
18+
</div>
1419
</div>
15-
<div class="desc">
16-
{{ $t('layouts.userLayout.title') }}
17-
</div>
18-
</div>
19-
20-
<router-view />
2120

22-
<div class="footer">
23-
<div class="links">
24-
<a href="_self">帮助</a>
25-
<a href="_self">隐私</a>
26-
<a href="_self">条款</a>
27-
</div>
28-
<div class="copyright">
29-
Copyright &copy; 2018 vueComponent
21+
<router-view />
22+
23+
<div class="footer">
24+
<div class="links">
25+
<a href="_self">帮助</a>
26+
<a href="_self">隐私</a>
27+
<a href="_self">条款</a>
28+
</div>
29+
<div class="copyright">
30+
Copyright &copy; 2018 vueComponent
31+
</div>
3032
</div>
3133
</div>
3234
</div>
@@ -42,20 +44,6 @@ export default {
4244
components: {
4345
SelectLang
4446
},
45-
props: {
46-
prefixCls: {
47-
type: String,
48-
default: 'ant-pro-global-header-index-action'
49-
}
50-
},
51-
computed: {
52-
wrpCls () {
53-
return {
54-
'ant-pro-global-header-index-right': true,
55-
[`ant-pro-global-header-index-${(this.isMobile || !this.topMenu) ? 'light' : this.theme}`]: true
56-
}
57-
}
58-
},
5947
mixins: [deviceMixin],
6048
mounted () {
6149
document.body.classList.add('userLayout')
@@ -68,28 +56,45 @@ export default {
6856

6957
<style lang="less" scoped>
7058
#userLayout.user-layout-wrapper {
71-
height: 100%;
59+
height: 100%;
7260
73-
&.mobile {
74-
.container {
75-
.main {
76-
max-width: 368px;
77-
width: 98%;
78-
}
61+
&.mobile {
62+
.container {
63+
.main {
64+
max-width: 368px;
65+
width: 98%;
7966
}
8067
}
68+
}
8169
82-
.container {
70+
.container {
71+
width: 100%;
72+
min-height: 100%;
73+
background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
74+
background-size: 100%;
75+
//padding: 50px 0 84px;
76+
position: relative;
77+
78+
.user-layout-lang {
8379
width: 100%;
84-
min-height: 100%;
85-
background: #f0f2f5 url(~@/assets/background.svg) no-repeat 50%;
86-
background-size: 100%;
87-
padding: 50px 0 84px;
88-
position: relative;
89-
90-
a {
91-
text-decoration: none;
80+
height: 40px;
81+
line-height: 44px;
82+
text-align: right;
83+
84+
.select-lang-trigger {
85+
cursor: pointer;
86+
padding: 12px;
87+
margin-right: 24px;
88+
display: inline-flex;
89+
align-items: center;
90+
justify-content: center;
91+
font-size: 18px;
92+
vertical-align: middle;
9293
}
94+
}
95+
96+
.user-layout-content {
97+
padding: 32px 0 24px;
9398
9499
.top {
95100
text-align: center;
@@ -163,5 +168,11 @@ export default {
163168
}
164169
}
165170
}
171+
172+
a {
173+
text-decoration: none;
174+
}
175+
166176
}
177+
}
167178
</style>

0 commit comments

Comments
 (0)