fix: 修复侧边栏下拉菜单右侧小箭头折行问题
This commit is contained in:
parent
7d36830838
commit
33102a6e35
|
@ -356,9 +356,12 @@ footer {
|
||||||
width: 3.375rem;
|
width: 3.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
|
.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 {
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -371,7 +374,7 @@ footer {
|
||||||
height: 2.25rem;
|
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;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,10 @@
|
||||||
.sidebar-open aside {
|
.sidebar-open aside {
|
||||||
transform: translate(0);
|
transform: translate(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bootstrap-table .fixed-table-body td .btn-group {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 769px) {
|
@media (min-width: 769px) {
|
||||||
|
|
|
@ -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;
|
transition: background .3s linear, color .3s linear;
|
||||||
display: block;
|
display: block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .nav-link i:first-child {
|
.sidebar .nav-link i:first-child {
|
||||||
|
@ -622,10 +623,6 @@ input.pending {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-body td .btn-group {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
|
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
padding: 16px 12px;
|
padding: 16px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header nav, userinfo, .userinfo .dropdown-toggle:after {
|
.header nav, .userinfo .dropdown-toggle:after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,10 @@
|
||||||
transition: all .3s ease-in-out;
|
transition: all .3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-open .sidebar-toggle-box .fa-bars {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
.header .badge {
|
.header .badge {
|
||||||
top: 4px;
|
top: 4px;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +45,6 @@
|
||||||
|
|
||||||
.username {
|
.username {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 500;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
max-width: 120px;
|
max-width: 120px;
|
||||||
}
|
}
|
||||||
|
@ -52,21 +55,26 @@
|
||||||
|
|
||||||
.userinfo img {
|
.userinfo img {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 40px;
|
width: 2rem;
|
||||||
height: 40px;
|
height: 2rem;
|
||||||
|
margin: 0.25rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo .username {
|
.userinfo .username {
|
||||||
max-width: 110px;
|
max-width: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo .dropdown-toggle, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover {
|
.userinfo .dropdown-toggle {
|
||||||
border: none !important;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo .shadow-default, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover {
|
.userinfo .dropdown-toggle, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover {
|
||||||
box-shadow: none;
|
border: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.userinfo .shadow-default, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
.userinfo .dropdown-item {
|
.userinfo .dropdown-item {
|
||||||
border-bottom: solid 1px rgba(255, 255, 255, 0.4);
|
border-bottom: solid 1px rgba(255, 255, 255, 0.4);
|
||||||
|
@ -111,17 +119,17 @@
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userinfo.show .dropdown-menu {
|
.userinfo.show .dropdown-menu {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
left: auto !important;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside, .main-content {
|
aside, .main-content {
|
||||||
top: 55px;
|
top: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside {
|
aside {
|
||||||
background-color: #1a2226;
|
background-color: #222d32;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-brand, .sidebar-open aside:hover .nav-brand {
|
aside .nav-brand, .sidebar-open aside:hover .nav-brand {
|
||||||
|
@ -130,23 +138,27 @@ aside {
|
||||||
padding: 0 0.625rem;
|
padding: 0 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-brand span, .header .sidebar-toggle-box {
|
aside .nav-brand a {
|
||||||
font-size: 1.25rem;
|
|
||||||
font-weight: 700;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-brand img, .sidebar-open aside:hover .nav-brand img {
|
aside .nav-brand img, aside:hover .nav-brand img {
|
||||||
opacity: 0;
|
width: 2.125rem;
|
||||||
visibility: hidden;
|
|
||||||
width: 2.75rem;
|
|
||||||
height: auto;
|
height: auto;
|
||||||
border-radius: 0.42rem;
|
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 {
|
aside .nav-link span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -155,11 +167,11 @@ aside {
|
||||||
.main-content {
|
.main-content {
|
||||||
transition: margin-left .3s linear;
|
transition: margin-left .3s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header .breadcrumb {
|
.main-header .breadcrumb {
|
||||||
margin-top: -10px;
|
margin-top: -10px;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -174,17 +186,25 @@ aside {
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color */
|
.card-header {
|
||||||
body {
|
padding: 0.625rem 1rem;
|
||||||
background: #ecf0f5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.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;
|
background: #3c8dbc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header .nav .dropdown:hover, .userinfo:hover {
|
.header .nav .dropdown:hover, .userinfo .dropdown-toggle:hover {
|
||||||
background-color: rgba(0,0,0,0.1);
|
background-color: rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
aside .nav-brand {
|
||||||
|
background: #367fa9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .nav-link {
|
.sidebar .nav-link {
|
||||||
|
@ -195,9 +215,9 @@ body {
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-toggle-box:hover, aside .nav-brand a:hover, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"]:hover, .sidebar .nav-link:hover, .userinfo .dropdown-item:hover, .userinfo .dropdown-item a:hover, .userinfo .dropdown-item:last-child a:hover {
|
.sidebar-toggle-box:hover, aside .nav-brand a:hover, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"]:hover, .sidebar .nav-link:hover, .userinfo .dropdown-item:hover, .userinfo .dropdown-item a:hover, .userinfo .dropdown-item:last-child a:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .nav-sidebar .has-treeview .nav-link.active {
|
.sidebar .nav-sidebar .has-treeview .nav-link.active {
|
||||||
background-color: rgba(60, 141, 188, 0.8);
|
background-color: rgba(60, 141, 188, 0.8);
|
||||||
|
@ -208,8 +228,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .nav-sidebar > .nav-item > .nav-link[aria-expanded="true"],
|
.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);
|
background-color: rgba(59, 141, 188, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +237,11 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.header, aside .nav-brand {
|
.header, aside .nav-brand {
|
||||||
border-bottom: 1px solid #3c8dbc;
|
border-bottom: 1px solid #367fa9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb > li > a {
|
||||||
|
color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
|
@ -230,10 +253,19 @@ body {
|
||||||
border-top-color: #2c6ca2;
|
border-top-color: #2c6ca2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-header, .modal-footer {
|
||||||
|
border-bottom: 1px solid #f4f4f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background: #2c3b41;
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 667px) {
|
@media (min-width: 667px) {
|
||||||
.header .nav {
|
.header .nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-toggle-box {
|
.sidebar-toggle-box {
|
||||||
|
@ -251,26 +283,22 @@ body {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-open .header .sidebar-toggle-box span {
|
.header .bg {
|
||||||
opacity: 1;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside {
|
aside {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .bg {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
aside .sidebar, .sidebar-open aside:hover .sidebar {
|
aside .sidebar, .sidebar-open aside:hover .sidebar {
|
||||||
top: 136px;
|
top: 136px;
|
||||||
transition: top .3s linear;
|
transition: top .3s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .sub .nav-tem, .sidebar-open aside:hover .sidebar .sub .nav-item {
|
aside .sub .nav-tem, .sidebar-open aside:hover .sidebar .sub .nav-item {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-brand, .sidebar-open aside:hover .nav-brand, aside .nav-header {
|
aside .nav-brand, .sidebar-open aside:hover .nav-brand, aside .nav-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -284,51 +312,69 @@ body {
|
||||||
aside .nav-header a {
|
aside .nav-header a {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-header img, .sidebar-open aside:hover .nav-header img {
|
aside .nav-header img, .sidebar-open aside:hover .nav-header img {
|
||||||
width: 3.75rem;
|
width: 3.75rem;
|
||||||
height: 3.75rem;
|
height: 3.75rem;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-header span, .sidebar-open aside:hover .nav-header span {
|
aside .nav-header span, .sidebar-open aside:hover .nav-header span {
|
||||||
color: #eee;
|
color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item, aside, aside .nav-header img {
|
||||||
|
transition: all .3s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
aside .nav-link span, aside .nav-brand span, aside .nav-header span, aside .nav-brand img {
|
||||||
|
transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-open .header {
|
||||||
|
margin-left: 3.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-open .header .sidebar-toggle-box span {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item, aside, aside .nav-header img {
|
.sidebar-open aside {
|
||||||
transition: all .3s linear;
|
z-index: 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside .nav-link span, aside .nav-brand span, aside .nav-header span, aside .nav-brand img {
|
|
||||||
transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-open aside:hover {
|
.sidebar-open aside:hover {
|
||||||
width: 13.375rem;
|
width: 13.375rem;
|
||||||
z-index: 15;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-open .header {
|
.sidebar-open aside:hover .nav-brand img {
|
||||||
margin-left: 3.375rem;
|
margin-left: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-open aside {
|
|
||||||
transform: translate(0);
|
|
||||||
width: 3.375rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-open aside .nav-item span, .sidebar-open aside .nav-header span, .sidebar-open .nav-brand span {
|
|
||||||
opacity: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
margin-left: -10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-open aside {
|
||||||
|
transform: translate(0);
|
||||||
|
width: 3.375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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 {
|
.sidebar-open aside .nav-header img {
|
||||||
width: 2.25rem;
|
width: 2.25rem;
|
||||||
height: 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;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
@ -341,14 +387,14 @@ body {
|
||||||
top: 115px;
|
top: 115px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-open .main-content {
|
.sidebar-open .main-content {
|
||||||
margin-left: 3.375rem;
|
margin-left: 3.375rem;
|
||||||
transition: margin-left .3s linear;
|
transition: margin-left .3s linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-open aside .sidebar .sub .nav-item {
|
.sidebar-open aside .sidebar .sub .nav-item {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
aside {
|
aside {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -82,6 +82,10 @@
|
||||||
.sidebar-open aside {
|
.sidebar-open aside {
|
||||||
transform: translate(0);
|
transform: translate(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bootstrap-table .fixed-table-body td .btn-group {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 769px) {
|
@media (min-width: 769px) {
|
||||||
|
@ -108,10 +112,6 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-body td .btn-group {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 940px) {
|
@media (min-width: 940px) {
|
||||||
|
|
|
@ -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;
|
transition: background .3s linear, color .3s linear;
|
||||||
display: block;
|
display: block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .nav-link i:first-child {
|
.sidebar .nav-link i:first-child {
|
||||||
|
@ -622,10 +623,6 @@ input.pending {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-body td .btn-group {
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
|
.bootstrap-table .fixed-table-toolbar .columns-right .btn-group .dropdown-menu {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue