style: 同步 LTE 样式表

This commit is contained in:
Argo Zhang 2019-10-19 17:44:33 +08:00
parent d89708a9d9
commit 288c7fd547
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
4 changed files with 168 additions and 138 deletions

View File

@ -135,7 +135,7 @@ aside {
} }
aside .nav-brand, .sidebar-open aside:hover .nav-brand { aside .nav-brand, .sidebar-open aside:hover .nav-brand {
height: 50px; height: 51px;
align-items: center; align-items: center;
padding: 0 0.625rem; padding: 0 0.625rem;
} }
@ -294,7 +294,7 @@ footer {
} }
aside .sidebar, .sidebar-open aside:hover .sidebar { aside .sidebar, .sidebar-open aside:hover .sidebar {
top: 116px; top: 117px;
transition: top .3s linear; transition: top .3s linear;
} }

View File

@ -1,4 +1,4 @@
html { html {
font-size: 16px; font-size: 16px;
-ms-overflow-style: auto; -ms-overflow-style: auto;
} }

View File

@ -7,8 +7,6 @@
} }
.header .nav .dropdown, .userinfo { .header .nav .dropdown, .userinfo {
display: flex;
align-items: center;
transition: all .3s linear; transition: all .3s linear;
cursor: pointer; cursor: pointer;
margin: 0; margin: 0;
@ -19,6 +17,11 @@
padding: 16px 12px; padding: 16px 12px;
} }
.header .badge {
top: 4px;
right: auto;
}
.header nav, .userinfo .dropdown-toggle:after { .header nav, .userinfo .dropdown-toggle:after {
display: none; display: none;
} }
@ -49,7 +52,6 @@
border-radius: 4px; border-radius: 4px;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
margin: 0.25rem 0;
} }
.userinfo .username { .userinfo .username {
@ -58,13 +60,16 @@
.userinfo .dropdown-toggle { .userinfo .dropdown-toggle {
border-radius: 0; border-radius: 0;
height: 50px;
display: flex;
align-items: center;
} }
.userinfo .dropdown-toggle, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover { .userinfo .dropdown-toggle, .userinfo .dropdown-toggle:hover, .userinfo.show .dropdown-toggle, .header .nav a, .header .nav a:hover {
border: none !important; border: none !important;
} }
.userinfo .shadow-default, .nav [data-toggle="dropdown"], .nav [data-toggle="dropdown"]:hover { .userinfo .shadow-default, .header .nav a, .header .nav a:hover {
box-shadow: none; box-shadow: none;
} }
@ -105,8 +110,7 @@
.userinfo .dropdown-item a .badge { .userinfo .dropdown-item a .badge {
top: 74px; top: 74px;
left: auto; left: 202px;
right: 42px;
} }
.userinfo .dropdown-item:last-child { .userinfo .dropdown-item:last-child {
@ -118,12 +122,12 @@
} }
.userinfo.show .dropdown-menu { .userinfo.show .dropdown-menu {
margin-top: 4px; margin-top: 5px;
cursor: default; cursor: default;
} }
aside, .main-content { aside, .main-content {
top: 55px; top: 51px;
} }
aside { aside {
@ -131,7 +135,7 @@ aside {
} }
aside .nav-brand, .sidebar-open aside:hover .nav-brand { aside .nav-brand, .sidebar-open aside:hover .nav-brand {
height: 55px; height: 51px;
align-items: center; align-items: center;
padding: 0 0.625rem; padding: 0 0.625rem;
} }
@ -184,10 +188,6 @@ aside {
border-top: none; border-top: none;
} }
.card-header {
padding: 0.625rem 1rem;
}
/* color */ /* color */
.main-content { .main-content {
background-color: #ecf0f5; background-color: #ecf0f5;
@ -209,11 +209,11 @@ aside .nav-brand {
color: #b8c7ce; color: #b8c7ce;
} }
.header, .header .breadcrumb-item a, aside .nav-brand a, .sidebar-toggle-box, .userinfo .dropdown-toggle, .nav [data-toggle="dropdown"], .userinfo .dropdown-item, .userinfo .dropdown-item a, .userinfo .dropdown-item:last-child a { .header, .header .breadcrumb-item a, aside .nav-brand a, .sidebar-toggle-box, .userinfo .dropdown-toggle, .header .nav .dropdown > a, .userinfo .dropdown-item, .userinfo .dropdown-item a, .userinfo .dropdown-item:last-child a {
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, .header .nav .dropdown > a: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;
} }
@ -238,6 +238,10 @@ aside .nav-brand {
border-bottom: 1px solid #367fa9; border-bottom: 1px solid #367fa9;
} }
.header .nav .dropdown-menu a {
color: #333;
}
.breadcrumb > li > a { .breadcrumb > li > a {
color: #444; color: #444;
} }
@ -263,7 +267,7 @@ footer {
.header .nav { .header .nav {
display: flex; display: flex;
flex: 0 1 auto; flex: 0 1 auto;
flex-wrap: nowrap; height: 3.125rem;
} }
.sidebar-toggle-box { .sidebar-toggle-box {
@ -290,7 +294,7 @@ footer {
} }
aside .sidebar, .sidebar-open aside:hover .sidebar { aside .sidebar, .sidebar-open aside:hover .sidebar {
top: 136px; top: 117px;
transition: top .3s linear; transition: top .3s linear;
} }
@ -312,8 +316,8 @@ footer {
} }
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: 2.8125rem;
height: 3.75rem; height: 2.8125rem;
border-radius: 50%; border-radius: 50%;
} }
@ -382,7 +386,7 @@ footer {
} }
.sidebar-open aside .sidebar { .sidebar-open aside .sidebar {
top: 115px; top: 107px;
} }
.sidebar-open .main-content { .sidebar-open .main-content {
@ -426,6 +430,6 @@ footer {
} }
aside .nav-brand, .sidebar-open aside:hover .nav-brand { aside .nav-brand, .sidebar-open aside:hover .nav-brand {
height: 55px; height: 51px;
} }
} }

View File

@ -28,17 +28,21 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
.header .nav { .header .nav {
margin-left: 15px; margin-left: 15px;
flex-wrap: nowrap;
} }
.header .nav .dropdown { .header .nav .dropdown {
margin-right: 6px; margin-right: 6px;
display: flex;
align-items: center;
} }
.header .badge { .header .badge {
position: absolute; position: absolute;
right: -6px; right: -12px;
top: -14px; top: -4px;
opacity: 0.8; opacity: 0.8;
z-index: 1;
} }
.header .navbar { .header .navbar {
@ -76,6 +80,10 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
padding: 0; padding: 0;
} }
.userinfo {
margin-top: 2px;
}
.userinfo img { .userinfo img {
height: 29px; height: 29px;
width: 29px; width: 29px;
@ -84,12 +92,12 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
.userinfo .dropdown-toggle { .userinfo .dropdown-toggle {
display: block; display: block;
padding: 6px; padding: 6px 6px;
border-radius: 4px; border-radius: 4px;
transition: all .25s linear; transition: all .25s linear;
} }
.userinfo .dropdown-toggle, .nav [data-toggle="dropdown"] { .userinfo .dropdown-toggle, .header .nav .dropdown > a {
border: 1px solid #eee; border: 1px solid #eee;
color: #777; color: #777;
} }
@ -153,12 +161,12 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
} }
.userinfo .badge { .userinfo .badge {
left: 234px; left: 224px;
right: auto; right: auto;
top: 6px; top: 6px;
} }
.nav [data-toggle="dropdown"] { .header .nav .dropdown > a {
border-radius: 4px; border-radius: 4px;
padding: 6px 12px; padding: 6px 12px;
transition: all .25s linear; transition: all .25s linear;
@ -181,12 +189,12 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
.nav .dropdown-header { .nav .dropdown-header {
color: #fff; color: #fff;
padding: 10px; padding: 0.5rem 0.625rem;
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
} }
.nav .dropdown-footer { .nav .dropdown-footer {
padding: 6px 0; padding: 0.375rem 0;
background-color: #f1f2f7; background-color: #f1f2f7;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
@ -257,12 +265,12 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
} }
.sidebar .nav-sidebar { .sidebar .nav-sidebar {
margin: 10px 0; margin: 2px 0;
} }
.sidebar .nav-link { .sidebar .nav-link {
color: #aeb2b7; color: #aeb2b7;
padding: 10px 10px; padding: 0.5rem 0.625rem;
transition: background .3s linear, color .3s linear; transition: background .3s linear, color .3s linear;
display: block; display: block;
white-space: nowrap; white-space: nowrap;
@ -273,7 +281,7 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
} }
.sidebar .sub { .sidebar .sub {
margin-top: 4px; margin-top: 2px;
} }
.sidebar .sub .nav-item { .sidebar .sub .nav-item {
@ -313,9 +321,9 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
left: 10px; left: 10px;
right: 10px; right: 10px;
border-radius: 4px; border-radius: 4px;
height: 41px; height: 37px;
transition: all .3s linear; transition: all .3s linear;
margin-top: -10px; margin-top: -8px;
} }
.sidebar .sub .nav-item .nav-link i, .sidebar .sub .nav-item .nav-link span { .sidebar .sub .nav-item .nav-link i, .sidebar .sub .nav-item .nav-link span {
@ -331,7 +339,7 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
display: block; display: block;
color: #777; color: #777;
flex: 1 1 auto; flex: 1 1 auto;
padding: 12px 0; padding: 0.625rem 0;
white-space: nowrap; white-space: nowrap;
transition: color .3s linear; transition: color .3s linear;
} }
@ -348,7 +356,7 @@ aside {
transition: transform .3s ease-in-out; transition: transform .3s ease-in-out;
transform: translate(-100%); transform: translate(-100%);
position: absolute; position: absolute;
top: 93px; top: 89px;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
@ -550,6 +558,10 @@ input.pending {
box-shadow: none; box-shadow: none;
} }
.card-header {
padding: 0.5rem 1rem;
}
.card .card-header a { .card .card-header a {
color: #797979; color: #797979;
} }
@ -586,7 +598,7 @@ input.pending {
display: none; display: none;
} }
.btn i + span { .btn i + span, .badge i + span {
margin-left: 4px; margin-left: 4px;
} }
@ -743,6 +755,11 @@ input.pending {
margin-bottom: -5px; margin-bottom: -5px;
} }
.bootstrap-table .fixed-table-toolbar .dropdown-menu label.dropdown-item {
margin: 0;
padding: 6px 20px;
}
.fixed-table-toolbar .dropdown-menu { .fixed-table-toolbar .dropdown-menu {
min-width: unset; min-width: unset;
} }
@ -927,3 +944,12 @@ label[for] {
display: inline-block; display: inline-block;
margin-left: 0; margin-left: 0;
} }
.custom-control-label {
color: #333;
font-weight: bold;
}
.custom-control-label:before, .custom-control-label::after {
top: 3px;
}