fastadmin/public/assets/less/frontend.less

586 lines
12 KiB
Plaintext

@import (reference) "bootstrap-less/mixins.less";
@import (reference) "bootstrap-less/variables.less";
@import "lesshat.less";
@import url("../css/bootstrap.css");
@import url("../css/fastadmin.css");
@import url("../css/iconfont.css");
@import url("../libs/font-awesome/css/font-awesome.min.css");
@import url("../libs/toastr/toastr.min.css");
@import url("../libs/fastadmin-layer/dist/theme/default/layer.css");
@import url("../libs/bootstrap-table/dist/bootstrap-table.min.css");
@import url("../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css");
@import url("../libs/bootstrap-daterangepicker/daterangepicker.css");
@import url("../libs/nice-validator/dist/jquery.validator.css");
@import url("../libs/bootstrap-select/dist/css/bootstrap-select.min.css");
@import url("../libs/fastadmin-selectpage/selectpage.css");
@import url("../libs/bootstrap-slider/slider.css");
.clearfix() {
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
html,
body {
height: 100%;
}
body {
padding-top: 50px;
font-size:13px;
background:#f4f6f8;
}
.dropdown:hover .dropdown-menu {
display: block;
margin-top: 0;
}
.navbar {
border:none;
}
.navbar-nav {
> li > a {
font-size:14px;
}
ul.dropdown-menu > li > a {
padding: 5px 20px;
font-size: 13px;
}
}
.toast-top-center{
top:50px;
}
#toast-container > div{
.box-shadow(none);
}
/*修复nice-validator和summernote的编辑框冲突*/
.nice-validator .note-editor .note-editing-area .note-editable{
display:inherit;
}
/*预览区域*/
.plupload-preview,.faupload-preview {
padding:0 10px;
margin-bottom:0;
li {
margin-top:10px;
}
.thumbnail {
margin-bottom:10px;
}
a{
display:block;
&:first-child{
height:90px;
}
img{
height:80px;
object-fit: cover;
}
}
}
.layui-layer-content {
clear: both;
}
.layui-layer-fast-msg {
min-width: 100px;
border-radius: 2px;
background-color: rgba(0,0,0,.6);
color: #fff;
.layui-layer-content {
padding: 12px 25px;
text-align: center;
}
}
.input-group > .msg-box.n-right {
position: absolute;
}
.bootstrap-select .status {
background: #f0f0f0;
clear: both;
color: #999;
font-size: 12px;
font-weight: 500;
line-height: 1;
margin-bottom: -5px;
padding: 10px 20px;
}
select.bs-select-hidden, select.selectpicker {
display: inherit !important;
max-height: 31px;
overflow: hidden;
&[multiple] {
height: 31px;
//visibility: hidden;
padding: 0;
background: #f4f4f4;
option {
color: #f4f4f4;
.opacity(0);
}
@media not all and (min-resolution: .001dpcm) {
@supports (-webkit-appearance:none) {
visibility: hidden;
}
}
}
}
input.selectpage {
color: transparent;
pointer-events: none;
}
.sp_container {
input.selectpage {
color: inherit;
pointer-events: inherit;
padding-left: 12px;
padding-right: 12px;
}
.sp_element_box {
input.selectpage {
padding-left: 0;
padding-right: 0;
}
li:first-child {
input.selectpage {
padding-left: 9px;
padding-right: 9px;
}
}
}
}
/*修复radio和checkbox样式对齐*/
.radio, .checkbox {
> label {
margin-right: 10px;
> input {
margin: 2px 0 0;
}
}
}
#header-navbar li.dropdown ul.dropdown-menu {
min-width:94px;
}
form.form-horizontal .control-label {
font-weight: normal;
}
.panel-default {
padding: 0 15px;
border: none;
.box-shadow(none);
> .panel-heading {
position: relative;
font-size: 16px;
padding: 15px 0;
background: #fff;
border-bottom: 1px solid #f5f5f5;
}
h2.page-header {
margin-top:0;
height:50px;
line-height:31px;
font-size:18px;
padding:10px 0;
border-bottom: 1px solid #f5f5f5;
}
> .panel-heading {
.panel-title {
color: #313131;
> i {
display: none;
}
}
.more {
position: absolute;
top: 13px;
right: 0;
display: block;
color: #919191;
.transition(all 0.3s ease);
}
.more:hover {
color: #616161;
.transition(all 0.3s ease);
}
.panel-bar {
position: absolute;
top: 7px;
right: 0;
display: block;
}
}
}
@media (max-width: 767px) {
.panel-default {
padding: 0 10px;
> .panel-heading {
padding: 10px 0;
.more {
top: 8px;
}
}
}
> .panel-body {
position: relative;
padding: 15px 0;
}
> .panel-footer {
padding: 15px 0;
background: none;
}
}
.panel-gray {
.box-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
> .panel-heading {
background-color: #f5f5f5;
color: #919191;
}
> .panel-body {
color: #919191;
background: #fff;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
}
.panel-page {
padding: 45px 50px 50px;
min-height: 500px;
.panel-heading {
background: transparent;
border-bottom: none;
margin: 0 0 30px 0;
padding: 0;
h2 {
font-size: 25px;
margin-top: 0;
}
}
}
@media (max-width: 767px) {
.panel-page {
padding: 15px;
min-height: 300px;
}
}
.nav-pills > li {
margin-right: 5px;
> a {
padding: 10px 15px;
color: #616161;
.transition(all 0.3s ease);
&:hover {
.transition(all 0.3s ease);
background-color: #f5f5f5;
}
}
&.active > a {
border:none;
color: #fff;
background: #46c37b;
.transition(all 0.3s ease);
border-radius: 3px;
}
}
.nav-pills.nav-pills-sm > li > a {
font-size: 12px;
line-height: 1.5;
padding: 4px 13px;
}
.fieldlist dd {
display: block;
margin: 5px 0;
input {
display: inline-block;
width: 300px;
}
input:first-child {
width: 110px;
}
ins {
width: 110px;
display: inline-block;
text-decoration: none;
font-weight: bold;
}
}
/* 弹窗中的表单 */
.form-layer {
height:100%;min-height:150px;min-width:300px;
.form-body {
width:100%;
overflow:auto;
top:0;
position:absolute;
z-index:10;
bottom:50px;
padding:15px;
}
.form-footer {
height:50px;
line-height:50px;
background-color: #ecf0f1;
width:100%;
position:absolute;
z-index:200;
bottom:0;
margin:0;
}
.form-footer .form-group{
margin-left:0;
margin-right:0;
}
}
footer.footer{
width:100%;color: #aaa;background: #555;margin-top:25px;
.copyright{
line-height: 50px;text-align: center;background: #393939;margin:0;
a{
color: #aaa;
&:hover{color: #fff;}
}
}
}
.rotate{
.transition-duration(0.8s);
.transition-property(transform);
overflow:hidden;
&:hover{
.transform(rotate(360deg));
}
}
.user-section {
background: #fff;
padding: 15px;
margin-bottom: 20px;
.border-radius(4px);
}
.login-section {
margin: 50px auto;
width: 460px;
.border-radius(0);
&.login-section-weixin {
min-height: 315px;
}
.logon-tab {
margin: -15px -15px 0 -15px;
> a {
display: block;
padding: 20px;
float: left;
width: 50%;
font-size: 16px;
text-align: center;
color: #616161;
background-color: #ececec;
.transition(all 0.3s ease);
&:hover {
background-color: #fafafa;
.transition(all 0.3s ease);
}
&.active {
background-color: #fff;
.transition(all 0.3s ease);
}
}
}
.login-main {
padding: 40px 45px 20px 45px;
}
.control-label {
font-size:13px;
}
.n-bootstrap {
.form-group {
position:relative;
}
.input-group {
position: inherit;
}
.n-right {
margin-top:0;
top:0;
position:absolute;
left:0;
text-align:right;
width:100%;
.msg-wrap {
position:relative;
}
}
}
}
main.content {
width:100%;
overflow:auto;
padding:15px;
padding-top:20px;
min-height:calc(~ '100vh - 125px');
}
.sidenav {
padding: 20px 0 10px 0;
margin-bottom: 20px;
background-color: #fff;
.list-group{
&:last-child {
margin-bottom: 0;
}
.list-group-heading {
list-style-type: none;
color: #919191;
margin-bottom: 10px;
margin-left: 35px;
font-size:14px;
}
.list-group-item {
.border-radius(0);
border: none;
padding: 0;
border-left: 2px solid transparent;
&:last-child,&:first-child {
.border-radius(0);
}
&:hover {
border-left: 2px solid rgba(245, 245, 245, 0.38);
background-color: rgba(245, 245, 245, 0.38);
}
> a {
display: block;
color: #616161;
padding: 10px 15px 10px 35px;
}
&.active {
border-left: 2px solid #46c37b;
background-color: rgba(245, 245, 245, 0.38);
> a {
color: #46c37b;
}
}
}
}
}
.nav li{
.avatar-text,.avatar-img {
height:30px;
width:30px;
line-height:30px;
font-size:14px;
}
.avatar-img{
font-size:0;
img{
border-radius:30px;
width:30px;height:30px;
}
}
}
.avatar-text,.avatar-img {
display: inline-block;
box-sizing: content-box;
color: #fff;
text-align: center;
vertical-align: top;
background-color: #e8ecf3;
font-weight: normal;
width: 48px;
height: 48px;
border-radius: 48px;
font-size: 24px;
line-height: 48px;
}
.avatar-img {
font-size:0;
img{
border-radius:48px;
width:48px;height:48px;
}
}
@media (max-width: 767px) {
main.content {
position:inherit;
padding:15px 0;
}
.login-section {
width: 100%;
margin: 20px auto;
.login-main {
padding: 20px 0 0 0;
}
}
footer.footer {
position:inherit;
.copyright{padding:10px;line-height:30px;}
}
}
.pager {
.pagination {
margin: 0;
}
li {
margin: 0 .4em;
display: inline-block;
&:first-child, &:last-child {
> a, > span {
padding: .5em 1.2em;
}
}
}
}
.pager li > a, .pager li > span {
background: none;
border: 1px solid #e6e6e6;
border-radius: 0.25em;
padding: .5em .93em;
font-size: 14px;
}
.jumpto input {
height: 31px;
width: 50px;
margin-left: 5px;
margin-right: 5px;
text-align: center;
display: inline-block;
}