style: 合并 username 样式

This commit is contained in:
Argo Zhang 2019-08-18 14:52:11 +08:00
parent 41c673f7f3
commit 34ec8f6213
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 7 additions and 11 deletions

View File

@ -37,13 +37,16 @@
}
.username {
margin-left: 0.625rem;
font-size: 1rem;
font-weight: 500;
vertical-align: middle;
max-width: 120px;
}
.username, aside:hover .nav-header span, .userinfo .dropdown-item .username + div {
margin-left: 0.625rem;
}
.userinfo img {
border-radius: 4px;
width: 40px;
@ -84,10 +87,6 @@
max-width: 180px;
}
.userinfo .dropdown-item .username + div {
margin-left: 0.625rem;
}
.userinfo .dropdown-item a {
padding: 0.25rem 0.625rem;
}
@ -259,10 +258,6 @@ body {
transition: top .3s linear;
}
aside, aside .nav-header img {
transition: width .3s linear;
}
aside .sub .nav-tem, .sidebar-open aside:hover .sidebar .sub .nav-item {
margin-left: 10px;
}
@ -290,7 +285,7 @@ body {
color: #eee;
}
aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item {
aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item, aside, aside .nav-header img {
transition: all .3s linear;
}
@ -319,7 +314,8 @@ body {
}
.sidebar-open aside .nav-header img {
width: 2.25rem
width: 2.25rem;
height: 2.25rem;
}
.sidebar-open aside .nav-brand img, .sidebar-open aside:hover .nav-brand span, .sidebar-open aside:hover .nav-header span, .sidebar-open aside:hover .nav-item span {