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

@ -17,10 +17,10 @@
padding: 16px 12px;
}
.header .badge {
.header .badge {
top: 4px;
right: auto;
}
}
.header nav, .userinfo .dropdown-toggle:after {
display: none;
@ -135,7 +135,7 @@ aside {
}
aside .nav-brand, .sidebar-open aside:hover .nav-brand {
height: 50px;
height: 51px;
align-items: center;
padding: 0 0.625rem;
}
@ -238,9 +238,9 @@ aside .nav-brand {
border-bottom: 1px solid #367fa9;
}
.header .nav .dropdown-menu a {
.header .nav .dropdown-menu a {
color: #333;
}
}
.breadcrumb > li > a {
color: #444;
@ -294,7 +294,7 @@ footer {
}
aside .sidebar, .sidebar-open aside:hover .sidebar {
top: 116px;
top: 117px;
transition: top .3s linear;
}

View File

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

View File

@ -7,8 +7,6 @@
}
.header .nav .dropdown, .userinfo {
display: flex;
align-items: center;
transition: all .3s linear;
cursor: pointer;
margin: 0;
@ -19,6 +17,11 @@
padding: 16px 12px;
}
.header .badge {
top: 4px;
right: auto;
}
.header nav, .userinfo .dropdown-toggle:after {
display: none;
}
@ -49,7 +52,6 @@
border-radius: 4px;
width: 2rem;
height: 2rem;
margin: 0.25rem 0;
}
.userinfo .username {
@ -58,13 +60,16 @@
.userinfo .dropdown-toggle {
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;
}
.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;
}
@ -105,8 +110,7 @@
.userinfo .dropdown-item a .badge {
top: 74px;
left: auto;
right: 42px;
left: 202px;
}
.userinfo .dropdown-item:last-child {
@ -118,12 +122,12 @@
}
.userinfo.show .dropdown-menu {
margin-top: 4px;
margin-top: 5px;
cursor: default;
}
aside, .main-content {
top: 55px;
top: 51px;
}
aside {
@ -131,7 +135,7 @@ aside {
}
aside .nav-brand, .sidebar-open aside:hover .nav-brand {
height: 55px;
height: 51px;
align-items: center;
padding: 0 0.625rem;
}
@ -184,10 +188,6 @@ aside {
border-top: none;
}
.card-header {
padding: 0.625rem 1rem;
}
/* color */
.main-content {
background-color: #ecf0f5;
@ -209,11 +209,11 @@ aside .nav-brand {
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;
}
.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;
}
@ -238,6 +238,10 @@ aside .nav-brand {
border-bottom: 1px solid #367fa9;
}
.header .nav .dropdown-menu a {
color: #333;
}
.breadcrumb > li > a {
color: #444;
}
@ -263,7 +267,7 @@ footer {
.header .nav {
display: flex;
flex: 0 1 auto;
flex-wrap: nowrap;
height: 3.125rem;
}
.sidebar-toggle-box {
@ -290,7 +294,7 @@ footer {
}
aside .sidebar, .sidebar-open aside:hover .sidebar {
top: 136px;
top: 117px;
transition: top .3s linear;
}
@ -312,8 +316,8 @@ footer {
}
aside .nav-header img, .sidebar-open aside:hover .nav-header img {
width: 3.75rem;
height: 3.75rem;
width: 2.8125rem;
height: 2.8125rem;
border-radius: 50%;
}
@ -382,7 +386,7 @@ footer {
}
.sidebar-open aside .sidebar {
top: 115px;
top: 107px;
}
.sidebar-open .main-content {
@ -426,6 +430,6 @@ footer {
}
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 {
margin-left: 15px;
flex-wrap: nowrap;
}
.header .nav .dropdown {
margin-right: 6px;
display: flex;
align-items: center;
}
.header .badge {
position: absolute;
right: -6px;
top: -14px;
right: -12px;
top: -4px;
opacity: 0.8;
z-index: 1;
}
.header .navbar {
@ -76,23 +80,27 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
padding: 0;
}
.userinfo img {
.userinfo {
margin-top: 2px;
}
.userinfo img {
height: 29px;
width: 29px;
border-radius: 2px;
}
}
.userinfo .dropdown-toggle {
.userinfo .dropdown-toggle {
display: block;
padding: 6px;
padding: 6px 6px;
border-radius: 4px;
transition: all .25s linear;
}
}
.userinfo .dropdown-toggle, .nav [data-toggle="dropdown"] {
.userinfo .dropdown-toggle, .header .nav .dropdown > a {
border: 1px solid #eee;
color: #777;
}
}
.userinfo .dropdown-toggle:after {
vertical-align: middle;
@ -103,13 +111,13 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
border: solid 1px #337ab7;
}
.userinfo .dropdown-item {
.userinfo .dropdown-item {
display: flex;
width: 270px;
padding: 0;
justify-content: space-around;
background-color: #fff;
}
}
.userinfo .dropdown-item a {
text-align: center;
@ -147,18 +155,18 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
color: #d40c0b;
}
.userinfo .username {
.userinfo .username {
max-width: 90px;
vertical-align: middle;
}
}
.userinfo .badge {
left: 234px;
.userinfo .badge {
left: 224px;
right: auto;
top: 6px;
}
}
.nav [data-toggle="dropdown"] {
.header .nav .dropdown > a {
border-radius: 4px;
padding: 6px 12px;
transition: all .25s linear;
@ -181,12 +189,12 @@ aside .bg, aside .nav-brand, aside .nav-header, .header .nav, .userinfo .dropdow
.nav .dropdown-header {
color: #fff;
padding: 10px;
padding: 0.5rem 0.625rem;
border-radius: 4px 4px 0 0;
}
.nav .dropdown-footer {
padding: 6px 0;
padding: 0.375rem 0;
background-color: #f1f2f7;
border-bottom-left-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 {
margin: 10px 0;
margin: 2px 0;
}
.sidebar .nav-link {
color: #aeb2b7;
padding: 10px 10px;
padding: 0.5rem 0.625rem;
transition: background .3s linear, color .3s linear;
display: block;
white-space: nowrap;
@ -273,7 +281,7 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
}
.sidebar .sub {
margin-top: 4px;
margin-top: 2px;
}
.sidebar .sub .nav-item {
@ -313,9 +321,9 @@ body, .form-control, .dropdown-menu, .btn:not(.btn-lg):not(.btn-xs), .input-grou
left: 10px;
right: 10px;
border-radius: 4px;
height: 41px;
height: 37px;
transition: all .3s linear;
margin-top: -10px;
margin-top: -8px;
}
.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;
color: #777;
flex: 1 1 auto;
padding: 12px 0;
padding: 0.625rem 0;
white-space: nowrap;
transition: color .3s linear;
}
@ -348,7 +356,7 @@ aside {
transition: transform .3s ease-in-out;
transform: translate(-100%);
position: absolute;
top: 93px;
top: 89px;
bottom: 0;
left: 0;
right: 0;
@ -550,9 +558,13 @@ input.pending {
box-shadow: none;
}
.card .card-header a {
.card-header {
padding: 0.5rem 1rem;
}
.card .card-header a {
color: #797979;
}
}
.card .card-header a[data-toggle="collapse"] {
display: block;
@ -574,9 +586,9 @@ input.pending {
color: #333;
}
.card .card-header i + span {
.card .card-header i + span {
margin-left: 6px;
}
}
.card-body .bootstrap-table {
margin-top: -10px;
@ -586,7 +598,7 @@ input.pending {
display: none;
}
.btn i + span {
.btn i + span, .badge i + span {
margin-left: 4px;
}
@ -743,6 +755,11 @@ input.pending {
margin-bottom: -5px;
}
.bootstrap-table .fixed-table-toolbar .dropdown-menu label.dropdown-item {
margin: 0;
padding: 6px 20px;
}
.fixed-table-toolbar .dropdown-menu {
min-width: unset;
}
@ -927,3 +944,12 @@ label[for] {
display: inline-block;
margin-left: 0;
}
.custom-control-label {
color: #333;
font-weight: bold;
}
.custom-control-label:before, .custom-control-label::after {
top: 3px;
}