BootstrapAdmin/Bootstrap.Admin/wwwroot/css/site.css

446 lines
8.4 KiB
CSS
Raw Normal View History

2018-06-07 00:45:47 +08:00
html {
font-size: 16px;
2018-06-07 00:45:47 +08:00
}
body {
color: #797979;
background: #f1f2f7;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch;
}
.sidebar-open aside {
transform: translate(0);
}
.sidebar-open .site-footer {
display: none;
}
aside {
transition: transform .4s ease-in-out;
transform: translate(-100%);
position: absolute;
top: 98px;
bottom: 0;
left: 0;
right: 0;
z-index: 4;
background: #2a3542;
}
.sidebar {
padding: 20px 0;
background: inherit;
}
.sidebar .nav-item {
margin: 5px 10px;
}
.sidebar .nav-item .nav-link:hover, .sidebar .nav-item .nav-link:focus {
background: #35404d;
color: #fff;
}
.sidebar .nav-item.active > .nav-link {
color: #FF6C60;
}
.sidebar .nav-link {
color: #aeb2b7;
padding: 15px 10px;
transition: all .3s linear;
display: flex;
align-items: center;
}
.sidebar .nav-link .dcjq-icon {
height: 17px;
width: 17px;
background: url(../images/nav-expand.png) no-repeat;
margin-left: auto;
}
.sidebar .nav-link i {
width: 22px;
}
.sidebar .nav-link.active, .sidebar .nav-link.active + .sub,
.sidebar .sub .sub .nav-item .nav-link:hover, .sidebar .sub .sub .nav-item .nav-link:focus {
background: #35404D;
}
.sidebar .nav-link.active .dcjq-icon {
background-position: bottom;
}
.sidebar .sub .nav-item.dcjq-parent-li {
margin-left: 0;
margin-right: 0;
}
.sidebar .sub .nav-item.dcjq-parent-li .nav-link {
padding-left: 20px;
}
.sidebar .sub .dcjq-parent-li .nav-link.active, .sidebar .sub .dcjq-parent-li .nav-link.active + .sub,
.sidebar .sub .nav-item .nav-link:hover, .sidebar .sub .nav-item .nav-link:focus {
background: #3a4756;
}
2018-06-07 00:45:47 +08:00
.modal-body .dd {
margin-bottom: 15px;
}
2018-06-07 00:45:47 +08:00
a, a:hover, a:focus {
text-decoration: none;
outline: none;
}
.dropdown-select + .dropdown-menu a:hover {
background: #007AC0;
color: #fff;
}
.dropdown-menu a {
transition: all .25s linear;
padding: 6px 20px;
display: block;
2018-06-07 00:45:47 +08:00
}
.dropdown-menu .divider {
margin: 1px 0;
}
2018-06-07 00:45:47 +08:00
/*Title*/
.sidebar-toggle-box {
font-size: 1.25rem;
color: #333;
flex: 1 1 auto;
padding: 12px 0;
}
.sidebar-toggle-box span {
display: none;
2018-06-07 00:45:47 +08:00
}
.header {
padding: 0 15px;
height: 98px;
background: #fff;
border-bottom: 1px solid #ddd;
top: 0;
left: 0;
right: 0;
z-index: 10;
2018-06-07 00:45:47 +08:00
}
.header .bg {
background-color: #337ab7;
height: 4px;
margin: 0 -15px;
}
.header .nav {
display: none;
margin-left: 15px;
2018-06-07 00:45:47 +08:00
}
.header .nav .dropdown {
margin-right: 6px;
2018-06-07 00:45:47 +08:00
}
.header [data-toggle="dropdown"] {
border: 1px solid #eee;
border-radius: 4px;
padding: 6px 12px;
color: #777;
transition: all .25s linear;
}
.header [data-toggle="dropdown"]:hover {
color: #333;
2018-06-07 00:45:47 +08:00
}
.header .badge {
position: absolute;
right: -6px;
top: -14px;
opacity: 0.8;
}
2018-06-07 00:45:47 +08:00
.header .dropdown-item.active, .header .dropdown-item:active {
color: #fff;
text-decoration: none;
background-color: transparent;
}
.nav .dropdown-menu {
width: 235px;
border: none;
margin-left: -74px;
margin-top: 12px;
2018-06-07 00:45:47 +08:00
}
.nav .dropdown-arrow {
border-style: solid;
border-width: 0 9px 9px;
position: absolute;
left: 85px;
top: -9px;
}
.nav .dropdown-header {
color: #fff;
padding: 10px;
border-radius: 4px 4px 0 0;
}
.nav .dropdown-footer {
padding: 6px 0;
background-color: rgba(0, 0, 0, 0.1);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.nav .dropdown-item {
display: flex;
border-bottom: 1px solid #EBEBEB;
padding: 10px 12px;
font-size: 0.75rem;
}
.nav .dropdown-item:nth-of-type(odd), .cache-item:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
.nav .dropdown-item:hover {
background-color: #93c9e8;
}
.nav .dropdown-item > :nth-child(2) {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
flex: 1 1 auto;
padding: 0 6px;
}
.nav .dropdown-item .small {
font-weight: bold;
}
.userinfo img {
height: 29px;
width: 29px;
}
.userinfo .dropdown-toggle {
display: block;
padding: 6px;
}
.userinfo .dropdown-toggle:after {
vertical-align: middle;
}
.userinfo .dropdown-item {
display: flex;
flex-wrap: wrap;
width: 270px;
padding: 0;
justify-content: space-around;
}
.userinfo .dropdown-item a {
text-align: center;
color: #777;
padding: 15px 10px;
flex: 1 1 33.333%;
}
.userinfo .dropdown-item a i {
font-size: 1.025rem;
display: block;
margin-bottom: 4px;
}
.userinfo .dropdown-item:first-child {
border-radius: 4px 4px 0 0;
}
.userinfo .dropdown-item:first-child a:hover {
color: #333;
}
.userinfo .dropdown-item:last-child {
border-radius: 0 0 4px 4px;
2018-06-07 00:45:47 +08:00
}
.userinfo .dropdown-item:last-child a {
color: #ca3a39;
border-radius: 0 0 0.15rem 0.15rem;
background: #a9d96c;
background-image: linear-gradient(to bottom, #a9d96c 0%, #799e51 100%);
}
.userinfo .dropdown-item:last-child a:hover {
color: #d40c0b;
}
.userinfo .username {
max-width: 90px;
vertical-align: middle;
}
.userinfo .badge {
left: 234px;
right: auto;
top: 6px;
}
2018-06-07 00:45:47 +08:00
/*end title*/
.site-footer {
background: #5b6e84;
color: #fff;
padding: 10px 4px;
height: 40px;
left: 0;
bottom: 0;
right: 0;
z-index: 100;
display: flex;
}
.site-footer > span {
flex: 1 1 auto;
text-align: center;
margin-left: 4px;
}
2018-06-07 00:45:47 +08:00
.go-top {
background: rgba(255,255,255,.5);
width: 20px;
height: 20px;
border-radius: 50%;
-webkit-border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 4px;
2018-06-07 00:45:47 +08:00
}
.go-top:hover {
background-color: white;
}
.go-top i {
color: #2A3542;
}
/*notify bar*/
.breadcrumb {
border: solid 1px #ddd;
border-width: 1px 0 0 0;
background-color: transparent;
border-top-left-radius: 0;
border-top-right-radius: 0;
padding: 8px 10px;
2018-06-07 00:45:47 +08:00
}
2018-08-05 15:36:27 +08:00
.breadcrumb i {
padding-right: 6px;
}
2018-08-02 16:17:14 +08:00
2018-06-07 00:45:47 +08:00
.content-body {
position: fixed;
left: 0;
bottom: 40px;
right: 0;
top: 98px;
overflow: hidden;
}
.content-body iframe {
width: 100%;
height: 100%;
border: none;
}
.welcome-bg {
background-image: url('../images/bg.jpg');
background-size: 100% 100%;
}
/*bs v4.1.3*/
label.dropdown-item:first-child {
margin-top: 0.5rem;
}
.cache-title {
font-weight: bold;
color: #0077de;
background-color: #b5f1b6;
padding: 12px 15px;
border-radius: 4px 4px 0 0;
margin-bottom: 0;
}
.cache-item {
display: flex;
align-items: center;
padding: 10px 4px;
border: 1px solid #eee;
border-width: 0 1px 1px 1px;
}
.cache-item:last-child {
margin-bottom: 15px;
}
.cache-item > :not(:first-child) {
margin-left: 10px;
display: flex;
}
.cache-item > :nth-child(2) {
flex: 1 1 auto;
}
.cache-item > :nth-child(2) span:not(.badge) {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: inline-block;
width: 152px;
}
.cache-item > :nth-child(3) {
flex: 1 1 auto;
display: none;
}
.cache-item + .cache-title {
margin-top: 12px;
}
.cache-item .badge {
position: relative;
top: -8px;
margin-left: 0;
line-height: normal;
}
.cache-item .btn, td .btn:not(.btn-lg) {
margin-left: 5px;
font-size: 0.75rem;
padding: 1px 5px;
}
.card-img {
max-width: 258px;
}