fix: 修复侧边栏下拉菜单右侧小箭头折行问题

This commit is contained in:
Argo Zhang 2019-08-22 22:10:46 +08:00
parent 7d36830838
commit 33102a6e35
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
6 changed files with 145 additions and 98 deletions

View File

@ -356,9 +356,12 @@ footer {
width: 3.375rem;
}
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
opacity: 0;
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span, .sidebar-open aside .nav-item.parent .fa-angle-left {
visibility: hidden;
opacity: 0;
}
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
margin-left: -10px;
}
@ -371,7 +374,7 @@ footer {
height: 2.25rem;
}
.sidebar-open aside:hover .nav-brand span, .sidebar-open aside:hover .nav-header span, .sidebar-open aside:hover .nav-item span {
.sidebar-open aside:hover .nav-brand span, .sidebar-open aside:hover .nav-header span, .sidebar-open aside:hover .nav-item span, .sidebar-open aside:hover .nav-item.parent .fa-angle-left {
opacity: 1;
visibility: visible;
}

View File

@ -82,6 +82,10 @@
.sidebar-open aside {
transform: translate(0);
}
.bootstrap-table .fixed-table-body td .btn-group {
white-space: nowrap;
}
}
@media (min-width: 769px) {

View File

@ -267,6 +267,7 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
transition: background .3s linear, color .3s linear;
display: block;
vertical-align: middle;
white-space: nowrap;
}
.sidebar .nav-link i:first-child {
@ -622,10 +623,6 @@ input.pending {
display: block;
}
.bootstrap-table .fixed-table-body td .btn-group {
white-space: nowrap;
}
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
padding-top: 8px;
}

View File

@ -19,7 +19,7 @@
padding: 16px 12px;
}
.header nav, userinfo, .userinfo .dropdown-toggle:after {
.header nav, .userinfo .dropdown-toggle:after {
display: none;
}
@ -31,6 +31,10 @@
transition: all .3s ease-in-out;
}
.sidebar-open .sidebar-toggle-box .fa-bars {
transform: none;
}
.header .badge {
top: 4px;
}
@ -41,7 +45,6 @@
.username {
font-size: 1rem;
font-weight: 500;
vertical-align: middle;
max-width: 120px;
}
@ -52,14 +55,19 @@
.userinfo img {
border-radius: 4px;
width: 40px;
height: 40px;
width: 2rem;
height: 2rem;
margin: 0.25rem 0;
}
.userinfo .username {
max-width: 110px;
}
.userinfo .dropdown-toggle {
border-radius: 0;
}
.userinfo .dropdown-toggle, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover {
border: none !important;
}
@ -113,7 +121,7 @@
.userinfo.show .dropdown-menu {
margin-top: 4px;
left: auto !important;
cursor: default;
}
aside, .main-content {
@ -121,7 +129,7 @@ aside, .main-content {
}
aside {
background-color: #1a2226;
background-color: #222d32;
}
aside .nav-brand, .sidebar-open aside:hover .nav-brand {
@ -130,21 +138,25 @@ aside {
padding: 0 0.625rem;
}
aside .nav-brand span, .header .sidebar-toggle-box {
font-size: 1.25rem;
font-weight: 700;
aside .nav-brand a {
white-space: nowrap;
}
aside .nav-brand img, .sidebar-open aside:hover .nav-brand img {
opacity: 0;
visibility: hidden;
width: 2.75rem;
aside .nav-brand img, aside:hover .nav-brand img {
width: 2.125rem;
height: auto;
border-radius: 0.42rem;
position: absolute;
top: 6px;
left: 4px;
}
aside .nav-brand span {
line-height: 2.125rem;
vertical-align: middle;
margin-left: 6px;
}
aside .nav-link span {
display: inline-block;
white-space: nowrap;
}
aside .nav-link span {
@ -174,19 +186,27 @@ aside {
border-top: none;
}
/* color */
body {
background: #ecf0f5;
.card-header {
padding: 0.625rem 1rem;
}
.header, aside .nav-brand, .userinfo .dropdown-menu, .userinfo .dropdown-item {
/* color */
.main-content {
background-color: #ecf0f5;
}
.header, .userinfo .dropdown-menu, .userinfo .dropdown-item {
background: #3c8dbc;
}
.header .nav .dropdown:hover, .userinfo:hover {
.header .nav .dropdown:hover, .userinfo .dropdown-toggle:hover {
background-color: rgba(0,0,0,0.1);
}
aside .nav-brand {
background: #367fa9;
}
.sidebar .nav-link {
color: #b8c7ce;
}
@ -208,8 +228,7 @@ body {
}
.sidebar .nav-sidebar > .nav-item > .nav-link[aria-expanded="true"],
.sidebar .nav-sidebar .nav-item:not(.parent) .nav-link.active:before
{
.sidebar .nav-sidebar .nav-item:not(.parent) .nav-link.active:before {
background-color: rgba(59, 141, 188, 0.7);
}
@ -218,7 +237,11 @@ body {
}
.header, aside .nav-brand {
border-bottom: 1px solid #3c8dbc;
border-bottom: 1px solid #367fa9;
}
.breadcrumb > li > a {
color: #444;
}
.card {
@ -230,10 +253,19 @@ body {
border-top-color: #2c6ca2;
}
.card-header, .modal-footer {
border-bottom: 1px solid #f4f4f4;
}
footer {
background: #2c3b41;
}
@media (min-width: 667px) {
.header .nav {
display: flex;
flex: 0 1 auto;
flex-wrap: nowrap;
}
.sidebar-toggle-box {
@ -251,18 +283,14 @@ body {
opacity: 0;
}
.sidebar-open .header .sidebar-toggle-box span {
opacity: 1;
.header .bg {
display: none;
}
aside {
top: 0;
}
aside .bg {
display: block;
}
aside .sidebar, .sidebar-open aside:hover .sidebar {
top: 136px;
transition: top .3s linear;
@ -303,13 +331,24 @@ body {
transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease;
}
.sidebar-open aside:hover {
width: 13.375rem;
.sidebar-open .header {
margin-left: 3.375rem;
}
.sidebar-open .header .sidebar-toggle-box span {
opacity: 1;
}
.sidebar-open aside {
z-index: 15;
}
.sidebar-open .header {
margin-left: 3.375rem;
.sidebar-open aside:hover {
width: 13.375rem;
}
.sidebar-open aside:hover .nav-brand img {
margin-left: 0;
}
.sidebar-open aside {
@ -317,18 +356,25 @@ body {
width: 3.375rem;
}
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
opacity: 0;
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span, .sidebar-open aside .nav-item.parent .fa-angle-left {
visibility: hidden;
opacity: 0;
}
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
margin-left: -10px;
}
.sidebar-open aside .nav-brand img {
margin-left: 112px;
}
.sidebar-open aside .nav-header img {
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 {
.sidebar-open aside:hover .nav-brand span, .sidebar-open aside:hover .nav-header span, .sidebar-open aside:hover .nav-item span, .sidebar-open aside:hover .nav-item.parent .fa-angle-left {
opacity: 1;
visibility: visible;
}

View File

@ -82,6 +82,10 @@
.sidebar-open aside {
transform: translate(0);
}
.bootstrap-table .fixed-table-body td .btn-group {
white-space: nowrap;
}
}
@media (min-width: 769px) {
@ -108,10 +112,6 @@
right: 0;
overflow: hidden;
}
.bootstrap-table .fixed-table-body td .btn-group {
white-space: nowrap;
}
}
@media (min-width: 940px) {

View File

@ -267,6 +267,7 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
transition: background .3s linear, color .3s linear;
display: block;
vertical-align: middle;
white-space: nowrap;
}
.sidebar .nav-link i:first-child {
@ -622,10 +623,6 @@ input.pending {
display: block;
}
.bootstrap-table .fixed-table-body td .btn-group {
white-space: nowrap;
}
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
padding-top: 8px;
}