html,
body {
height: 100%;
background: #fff;
}
// 字体大小
$base-size: 14px;
$small-size: 12px;
$big-size: 16px;
// 底色
$base-bg-color: #f4f6f9;
// 描边色
$base-border-color: #e5e5e5;
// 输入框描边色
$base-input-color: #cfd7e6;
/* 公用变量 */
// 按钮背景色
$default-color: #2494ec;
$hover-color: #5fb4ff;
$active-color: #006cca;
$disbaledColor: #a4d1f6;
// 辅助颜色
$orange-color: #f37b1d;
$green-color: #5eb95e;
$red-color: #e6322c;
$blue-color: #3bb4f2;
// 字体颜色
$base-color: #333;
$deep-gray-color: #666;
$mid-gray-color: #999;
$light-gray-color: #ccc;
@mixin hw-btn {
font-size: $base-size;
color: $default-color;
border: 1px solid $default-color;
border-radius: 5px;
line-height: 30px;
min-width: 76px;
text-align: center;
padding: 0 10px;
display: inline-block;
box-sizing: border-box;
}
.hide{
display: none;
}
@mixin input-hover {}
// iconfont
@font-face {
font-family: 'iconfont'; /* project id 509426 */
src: url('//at.alicdn.com/t/font_509426_axheb2yt6j0dx6r.eot');
src: url('//at.alicdn.com/t/font_509426_axheb2yt6j0dx6r.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_509426_axheb2yt6j0dx6r.woff') format('woff'),
url('//at.alicdn.com/t/font_509426_axheb2yt6j0dx6r.ttf') format('truetype'),
url('//at.alicdn.com/t/font_509426_axheb2yt6j0dx6r.svg#iconfont') format('svg');
}
.iconfont{
font-family:"iconfont" !important;
font-size:16px;font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.hw-iconfont{
font-family:"hw-iconfont" !important;
font-size:16px;font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
.clear-both {
content: '';
clear: both;
display: table;
}
.example {
padding-top: 50px;
}
.hw-main-wrapper {
position: absolute;
background: #fff;
top: 20px;
right: 20px;
bottom: 20px;
left: 20px;
border-radius: 5px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
min-width: 1040px;
overflow: auto;
}
.input-wrap {
width: 360px;
border: 1px solid #cfd7e6;
border-radius: 5px;
display: inline-block;
margin-right: 40px;
.hw-form-control {
width: 100%;
line-height: 32px;
font-size: 100%;
padding: 0 12px;
border: none;
outline: none;
background: #fff;
border-radius: 5px;
}
}
.hw-filter-box {
width: 100%;
padding: 0 40px;
clear: both;
overflow: hidden;
.hw-search-wrap {
width: 100%;
margin-bottom: 20px;
.input-wrap-icon {
background: #CFD7E6;
.hw-form-control {
width: 82.3529411%;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
i {
color: #fff;
}
.i-wrap {
display: inline-block;
width: calc(100% - 84%);
text-align: center;
}
}
.span-wrap {
width: auto !important;
span.hw-form-control {
color: #CFD7E6;
i {
font-size: 7px;
}
}
}
}
.hw-form-group {
float: left;
width: 84.4%;
.hw-input-group {
display: inline-block;
position: relative;
margin-bottom: 15px;
label {
font-size: 14px;
color: #333;
}
.input-wrap {
width: 170px;
}
.input-wrap-icon {
background: #CFD7E6;
.hw-form-control {
width: 82.3529411%;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
i {
color: #fff;
}
}
}
}
.hw-btn-group {
position: absolute;
right: 40px;
.m-btn:first-child {
margin-right: 12px;
}
}
}
// 标题
.hw-header-wrapper {
width: 100%;
clear: both;
overflow: hidden;
padding: 18px 0;
.hw-header {
width: 100%;
font-size: 18px;
color: $base-color;
clear: both;
overflow: hidden;
.hw-header__item--left {
float: left;
line-height: 36px;
font-size: 100%;
border-left: 6px solid $default-color;
padding-left: 16px;
}
.hw-header__item--right {
float: right;
padding-right: 20px;
}
}
}
// 按钮
.hw-btn-group {
clear: both;
button {
margin-right: 14px;
&:last-child {
margin: 0;
}
}
}
// 文字按钮
.hw-btn--default {
@include hw-btn;
&:hover {
color: $hover-color;
background: #fff;
border-color: $hover-color;
}
&:active {
color: $active-color;
background: #fff;
border-color: $active-color;
}
&:disabled {
color: $disbaledColor;
background: #fff;
border-color: $disbaledColor;
}
}
// 文字按钮-三种状态
.hw-btn--normal {
@include hw-btn;
color: #fff;
background: $default-color;
&:hover {
color: #fff;
background: $hover-color;
border-color: $hover-color;
}
&:active {
color: #fff;
background: $active-color;
border-color: $active-color;
}
&:disabled {
color: #fff;
background: $disbaledColor;
border-color: $disbaledColor;
}
&:disabled {
color: #fff;
background: $disbaledColor;
border-color: $disbaledColor;
}
}
.hw-btn--hover {
@include hw-btn;
color: #fff;
background: $hover-color;
border-color: $hover-color;
}
.hw-btn--clicked {
@include hw-btn;
color: #fff;
background: $active-color;
border-color: $active-color;
}
// 中号按钮
.hw-btn--mid {
font-size: $base-size;
line-height: 24px;
}
// 图标按钮
.hw-icon-btn {
@include hw-btn;
width: 32px !important;
min-width: 32px;
padding: 0;
&:hover {
color: $hover-color;
background: #fff;
border-color: $hover-color;
}
&:active {
color: $active-color;
background: #fff;
border-color: $active-color;
}
&:disabled {
color: $disbaledColor;
background: #fff;
border-color: $disbaledColor;
}
}
// form表单部分
// 单选框
.hw-checkbox-group {
.hw-checkbox {
display: inline-block;
margin-right: 30px;
label.hw-checkbox__label {
font-size: $base-size;
color: $deep-gray-color;
padding-left: 21px;
position: relative;
cursor: pointer;
img {
width: 16px;
height: 16px;
position: absolute;
left: 0;
top: 50%;
margin-top: -8px;
display: none;
}
img.checkbox-default {
display: inline-block;
}
input[type='radio'] {
display: none;
}
input[type='checkbox'] {
display: none;
}
input:checked {
&~img.checked {
display: block;
}
}
&:hover {
img.default {
display: block;
}
color:#54698D;
img.hover {
display: block;
}
}
}
}
}
// 筛选栏
.hw-filter-wrapper {
.hw-filter__input {
min-width: 170px;
display: inline-block;
border: 1px solid #CFD7E6;
border-radius: 5px;
line-height: 32px;
padding: 0 12px;
&:hover {
border: 1px solid #5FB4FF;
}
&:focus {
border: 1px solid #2494EC;
}
}
.hw-input-wrapper {
position: relative;
display: inline-block;
}
}
// 下拉的组件
.hw-select-wrapper {
.select-group {
display: inline-block;
border: 1px solid #CFD7E6;
border-radius: 5px;
width: 170px;
position: relative;
.select-input {
position: relative;
input {
line-height: 30px;
border: none;
width: 100%;
border-radius: 5px;
padding: 0 30px 0 12px;
cursor: pointer;
}
i {
font-size: 10px;
position: absolute;
right: 8px;
color: #B4BCCC;
top: 9px;
}
}
.select-detail {
display: none;
}
&:hover {
border: 1px solid #5FB4FF;
.select-input {
i {
color: #5fb4ff;
}
}
.select-detail {
display: block;
position: absolute;
z-index: 10;
background: #fff;
width: 170px;
white-space: nowrap;
word-break: keep-all;
border: 1px solid #CFD7E6;
box-shadow: 0 2px 4px 0 #CFD7E6;
border-radius: 4px;
margin-top: 2px;
max-height: 200px;
overflow: auto;
padding: 2px 0;
.select-detail__item {
line-height: 28px;
padding: 0 10px;
cursor: pointer;
&:hover {
background: #F4F6F9;
}
}
}
}
}
}
// 有icon的input
.hw-input-icon-wrapper {
.input-icon-group {
display: inline-block;
position: relative;
border-radius: 5px;
input {
border: 1px solid #CFD7E6;
;
border-radius: 5px;
padding-right: 30px;
width: 100%;
line-height: 30px;
padding: 0 30px 0 10px;
&:hover {
border-color: #5FB4FF;
&+.icon-wrapper {
background: #5fb4ff;
}
}
&:focus {
border-color: #2494EC;
&+.icon-wrapper {
background: #2494EC;
}
}
}
.icon-wrapper {
display: inline-block;
position: absolute;
width: 30px;
line-height: 30px;
text-align: center;
color: #fff;
top: 0;
right: 0;
background: #CFD7E6;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
}
}
//数字输入框
.hw-input-cal-wrapper {
.input-cal-group {
display: inline-block;
position: relative;
border-radius: 5px;
input {
border: 1px solid #CFD7E6;
;
border-radius: 5px;
padding-right: 30px;
width: 100%;
line-height: 30px;
padding: 0 60px 0 10px;
color: $base-color;
&:hover {
border-color: #5FB4FF;
&+.cal-wrapper {
color: #5FB4FF;
.cal-item:first-child {
border-left: 1px solid #5FB4FF;
border-right: 1px solid #5FB4FF;
}
}
}
&:focus {
border-color: $default-color;
&+.cal-wrapper {
color: $default-color;
.cal-item:first-child {
border-left: 1px solid $default-color;
border-right: 1px solid $default-color;
}
}
}
}
.cal-wrapper {
display: inline-block;
position: absolute;
width: 60px;
line-height: 32px;
text-align: center;
color: #CFD7E6;
top: 0;
right: 0;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
.cal-item {
width: 30px;
display: inline-block;
float: left;
cursor: pointer;
&:first-child {
border-left: 1px solid #CFD7E6;
border-right: 1px solid #CFD7E6;
}
}
}
}
}
// 开关
.hw-switch-wrapper {
label.switch__label {
display: inline-block;
line-height: 24px;
width: 48px;
clear: both;
cursor: pointer;
position: relative;
input[type='checkbox'] {
display: none;
&:checked {
&+.switch__bg {
background: $default-color;
.circle {
right: 2px;
left: auto;
}
i {
display: inline-block;
position: absolute;
left: 8px;
color: #fff;
font-size: 12px;
}
}
}
}
.switch__bg {
display: inline-block;
width: 48px;
height: 24px;
background: #e5e5e5;
border-radius: 20px;
position: absolute;
.circle {
display: inline-block;
border-radius: 50%;
width: 20px;
height: 20px;
background: #fff;
position: absolute;
left: 2px;
top: 2px;
z-index: 10;
}
i {
display: none;
}
}
}
}
ol {
list-style: none outside none;
margin: 0;
padding: 0;
}
.ui-step {
color: #b7b7b7;
padding: 0 60px;
margin-bottom: 35px;
position: relative;
}
.ui-step:after {
display: block;
content: "";
height: 0;
font-size: 0;
clear: both;
overflow: hidden;
visibility: hidden;
}
.ui-step li {
float: left;
position: relative;
}
.ui-step .step-end {
width: 120px;
position: absolute;
top: 0;
right: -60px;
}
.ui-step-line {
height: 5px;
background-color: #e0e0e0;
margin-top: 10px;
}
.step-end .ui-step-line {
display: none;
}
.ui-step-cont {
width: 120px;
position: absolute;
top: 0;
left: -15px;
text-align: center;
}
.ui-step-cont-number {
display: inline-block;
*zoom: 1;
position: absolute;
left: 0;
top: 0;
width: 24px;
height: 24px;
line-height: 24px;
color: #ccc;
border: 1px solid #ccc;
background: #f2f5f8;
border-radius: 50%;
font-size: 14px;
}
.ui-step-cont-text {
position: relative;
top: 34px;
left: -42px;
font-size: 12px;
}
/** 步骤数定义 **/
.ui-step-3 li {
width: 50%;
}
.ui-step-4 li {
width: 33.3%;
}
.ui-step-5 li {
width: 25%;
}
.ui-step-6 li {
width: 20%;
}
/** The default style (默认风格) **/
.step-default {
// .ui-step-cont-number { background-color: #F4F6F9;}
.ui-step-line {
background-color: #F4F6F9;
}
}
/* Done */
.step-done .ui-step-cont-number {
background-color: $default-color;
border-color: $default-color;
color: #fff;
}
.step-done .ui-step-cont-text {
color: #666;
}
.step-done .ui-step-line {
background-color: $default-color;
}
// 弹出框
/* modal */
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
.modal-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background-color: #000;
opacity: 0.5;
filter: alpha(opacity = 50);
}
.modal-content {
position: relative;
z-index: 1001;
width: 640px;
margin: 5% auto;
border-radius: 4px;
background-color: #fff;
padding: 20px;
&.big-modal {
width: 800px;
}
.modal-header {
margin-bottom: 22px;
&:after {
@extend .clear-both;
}
line-height: 28px;
.modal-title {
float: left;
font-size: 18px;
}
i {
float: right;
cursor: pointer;
color: $mid-gray-color;
font-size: 12px;
&:hover {
color: $deep-gray-color;
}
&:active {
color: $base-color;
}
}
}
.modal-body {
max-height: 500px;
color: $deep-gray-color;
&:after {
@extend .clear-both;
}
.hw-input-label {
margin: 16px 0;
}
img {
width: 100%;
max-height: 500px;
}
}
.modal-footer {
&:after {
@extend .clear-both;
}
margin-top: 36px;
button {
float: right;
margin-left: 16px;
}
}
}
}
.confirm-modal {
.modal-content {
width: 380px;
}
.modal-footer {
margin-top: 32px;
}
}
/* alert-modal */
.hw-alert {
position: fixed;
top: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: none;
.hw-mask {
height: 100%;
background-color: #000;
opacity: 0;
filter: alpha(opacity=0);
}
.hw-container {
background-color: #000;
opacity: 0.8;
filter: alpha(opacity=80);
border-radius: 6px;
position: absolute;
top: 100px;
left: 46%;
color: #fff;
padding: 20px;
max-width: 200px;
}
}
html, body {
height: 97%;
background-color: #EFF3F5;
box-sizing: border-box;
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: $base-size;
}
ul, ol {
list-style: none;
}
::-webkit-input-placeholder {
color: $light-gray-color;
}
input::-webkit-inner-spin-button {
// -webkit-appearance: none !important; /* 去除阴影 */
}
input, button, textarea {
font-family: "Arial", "Microsoft Yahei" !important;
}
a {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
text-decoration: none;
}
a:focus , a:active , a:link , a:visited {
text-decoration: none;
}
input:focus {
outline: none;
}
button:focus, button {
outline: none;
border:1px solid transparent;
}
textarea:focus {
outline: none;
}
select:focus {
outline: none;
}
/* 去除select小箭头 */
// select {
// appearance: none;
// -moz-appearance:none;
// -webkit-appearance:none;
// -ms-appearance:none;
// }
// select::-ms-expand {
// display: none;
// }
img {
display: inline-block;
vertical-align: top;
border: none; /* 去除图片在ie上出现的黑边 */
}
/* 要注意表单元素并不继承父级 font 的问题 */
input, select, textarea{
font-size: 100% !important;
}
/* 去掉各Table cell 的边距并让其边重合 */
table{
border-collapse: collapse;
border-spacing: 0;
}
/* IE bug fixed: th 不继承 text-align*/
th{
text-align: inherit;
}
/* 去除默认边框 */
fieldset, img{
border: 0;
}
/* 去掉列表前的标识, li 会继承 */
ol, ul {
list-style: none;
padding-right: 0;
}
.clear-both {
content: '';
clear: both;
display: table;
}
.orange-color {
color: $orange-color;
}
.green-color {
color: $green-color;
}
.red-color {
color: $red-color;
}
.blue-color {
color: $blue-color;
}
/** 通用组件 */
.show {
display: block;
}
.hide {
display: none;
}
/* 文字按钮 */
.hw-word-btn {
color: $default-color;
&:hover {
color: $hover-color;
}
&:active {
color: $active-color;
}
}
/* 带底色的按钮 */
.hw-btn {
font-size: $base-size;
background-color: $default-color;
display: inline-block;
vertical-align: top;
color: #fff;
height: 32px;
line-height: 32px;
padding: 0 14px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid transparent;
cursor: pointer;
&.hw-small-btn {
margin-top: 4px;
height: 24px;
line-height: 24px;
padding: 0 10px;
}
&:disabled, &.disabled {
cursor: not-allowed;
opacity: 0.6;
filter: alpha(opacity = 60);
}
&:not(:disabled):not(.disabled):hover {
background-color: $hover-color;
}
&:not(:disabled):not(.disabled):active {
background-color: $active-color;
}
&.hw-default-btn {
background-color: #fff;
color: $default-color;
border: 1px solid $default-color;
&:not(:disabled):not(.disabled):hover {
color: $hover-color;
border: 1px solid $hover-color;
background-color: #fff;
}
&:not(:disabled):not(.disabled):active {
color: $active-color;
border: 1px solid $active-color;
background-color: #fff;
}
}
}
/* 按钮组 */
// .hw-btn-group {
// &:after {
// @extend .clear-both;
// }
// border: 1px solid $base-border-color;
// border-left: none;
// border-radius: 4px;
// button {
// float: left;
// border-radius: 0;
// border-left: 1px solid $base-border-color;
// &:first-child {
// border-radius: 4px 0 0 4px;
// }
// &:last-child {
// border-radius: 0 4px 4px 0;
// }
// &.hw-btn.active {
// background-color: $active-color;
// }
// &.hw-default-btn.active {
// color: $active-color;
// }
// }
// }
/* label input */
.hw-input-label {
&:after {
@extend .clear-both;
}
margin-right: 12px;
color: $deep-gray-color;
.name {
float: left;
height: 32px;
line-height: 32px;
width: 80px;
text-align: right;
margin-right: 8px;
span {
color: $red-color;
position: relative;
top: 3px;
}
}
.form-control {
line-height: 32px;
float: left;
&:after {
@extend .clear-both;
}
&.hw-detail-imgs {
img {
width: 100px;
height: 100px;
float: left;
margin-right: 20px;
}
}
& > input, & > select {
float: left;
}
& > span {
float: left;
margin: 0 10px;
line-height: 32px;
}
}
}
/* input */
.hw-input, .hw-textarea, .show-option {
width: 360px;
height: 32px;
line-height: 32px;
// padding: 0 12px;
padding-left: 12px;
border: 1px solid $base-input-color;
border-radius: 4px;
box-sizing: border-box;
&.small-size {
width: 170px;
& ~ .select-options, & ~ .show-option {
width: 170px;
}
}
&.smaller-size {
width: 113px;
margin-right: 10px;
&:last-child {
margin-right: 0;
}
& ~ .select-options, & ~ .show-option {
width: 113px;
}
}
&:hover {
border-color: $hover-color;
& ~ i {
color: $hover-color;
}
& ~ .search-btn, & ~ .time-icon, & ~ .date-icon {
background-color: $hover-color;
}
& ~ .add-btn, & ~ .subtract-btn {
color: $hover-color;
border-color: $hover-color;
background-color: #fff;
}
}
&:active, &:focus {
border-color: $active-color;
& ~ i {
color: $active-color;
}
& ~ .search-btn, & ~ .time-icon, & ~ .date-icon {
background-color: $active-color;
}
& ~ .add-btn, & ~ .subtract-btn {
color: $active-color;
border-color: $active-color;
background-color: #fff;
}
}
}
.hw-textarea {
height: 120px;
}
.hw-select {
position: relative;
float: left;
& > i {
position: absolute;
top: 0;
right: 8px;
line-height: 32px;
font-size: 20px;
color: $base-input-color;
}
& > input {
position: absolute;
top: 0;
left: 0;
z-index: 10;
opacity: 0;
cursor: pointer;
filter: alpha(opacity = 0);
&:hover ~ .show-option {
border-color: $hover-color;
}
&:active ~ .show-option, &:focus ~ .show-option {
border-color: $active-color;
}
}
.select-options {
display: none;
border: 1px solid $base-input-color;
box-shadow: 0 2px 4px 0 $base-input-color;
border-radius: 4px;
position: absolute;
top: 35px;
z-index: 100;
width: 360px;
background-color: #fff;
padding: 5px 0;
max-height: 300px;
.option {
color: $deep-gray-color;
font-size: $base-size;
position: relative;
height: 36px;
line-height: 36px;
padding-left: 40px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: default;
i {
position: absolute;
top: 0;
left: 15px;
color: $default-color;
font-size: $base-size;
display: none;
}
&:hover {
background-color: $base-bg-color;
}
&.selected {
background-color: $base-bg-color;
i {
display: block;
}
}
}
}
}
.hw-search, .hw-search-prevent, .hw-time, .hw-date, .hw-delete, .hw-edit, .hw-compute {
position: relative;
display: inline-block;
vertical-align: top;
float: left;
&:after {
@extend .clear-both;
}
&:hover {
input {
border-color: $hover-color;
}
i {
color: $hover-color;
}
.search-btn, .time-icon, .date-icon {
background-color: $hover-color;
i {
color: #fff;
}
}
.add-btn, .subtract-btn {
color: $hover-color;
border-color: $hover-color;
background-color: #fff;
}
}
.hw-input, .hw-textarea, .show-option, .hw-compute {
&:focus {
border-color: $active-color;
& ~ i {
color: $active-color;
}
& ~ .search-btn, & ~ .time-icon, & ~ .date-icon {
background-color: $active-color;
}
& ~ .add-btn, & ~ .subtract-btn {
color: $active-color;
border-color: $active-color;
background-color: #fff;
}
}
}
.search-btn, .time-icon, .date-icon, .delete-icon, .edit-icon {
background-color: $base-input-color;
position: absolute;
top: 0;
right: 0;
line-height: 32px;
font-size: 18px;
width: 32px;
height: 32px;
line-height: 30px;
text-align: center;
border-radius: 0 4px 4px 0;
color: #fff;
cursor: default;
pointer-events: none;
cursor: default;
i {
font-size: 18px;
}
}
}
.hw-search {
button.search-btn {
pointer-events: auto;
}
}
.hw-time, .hw-date {
}
.hw-compute {
position: relative;
display: inline-block;
vertical-align: top;
& > div {
position: absolute;
top: 0;
right: 0;
z-index: 99;
width: 32px;
height: 32px;
line-height: 30px;
text-align: center;
font-size: 24px;
cursor: default;
border: 1px solid $base-input-color;
user-select: none;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
&.disabled {
background-color: $base-bg-color;
}
&.add-btn {
font-size: 18px;
right: 32px;
border-right: none;
background-color: #fff;
}
&.subtract-btn {
border-radius: 0 4px 4px 0;
background-color: #fff;
}
}
}
/* hw-checkbox */
.hw-checkbox, .hw-radio {
position: relative;
font-weight: normal;
user-select: none;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
overflow: hidden;
span {
float: right;
}
i {
float: right;
margin-right: 6px;
color: $base-input-color;
&:hover {
color: $hover-color;
}
}
i.checked {
display: none;
}
&.checked {
i{
display: none;
&.checked {
display: inline;
color: $default-color;
}
}
}
input {
display: none;
// 兼容ie8
display: inline\9;
opacity: 0;
filter: alpha(opacity = 0);
position: absolute;
left: -10000px;
z-index: -1;
// IE8 不兼容:checked
&:checked {
& ~ i{
display: none;
&.checked {
display: inline;
color: $default-color;
}
}
}
}
}
.hw-radio-inline, .hw-checkbox-inline {
&:after {
@extend .clear-both;
}
.hw-radio, .hw-checkbox {
float: left;
margin-right: 44px;
height: 32px;
line-height: 32px;
&:last-child {
margin-right: 0;
}
// &:after {
// @extend .clear-both;
// }
// i {
// float: right;
// position: relative;
// left: -6px;
// }
// span {
// float: right;
// }
}
}
th, td, #infinite-sort {
.hw-radio, .hw-checkbox {
i {
float: inherit;
}
span {
float: inherit;
}
}
}
.hw-iframe {
background-color: #fff;
min-height: 100%;
border-radius: 4px;
margin: 20px;
}
/* modal */
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
.modal-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
background-color: #000;
opacity: 0.5;
filter: alpha(opacity = 50);
}
.modal-content {
position: relative;
z-index: 1001;
width: 640px;
margin: 5% auto;
border-radius: 4px;
background-color: #fff;
padding: 20px;
&.big-modal {
width: 800px;
}
.modal-header {
margin-bottom: 22px;
&:after {
@extend .clear-both;
}
line-height: 28px;
.modal-title {
float: left;
font-size: 18px;
}
i {
float: right;
cursor: pointer;
color: $mid-gray-color;
font-size: 12px;
&:hover {
color: $deep-gray-color;
}
&:active {
color: $base-color;
}
}
}
.modal-body {
max-height: 500px;
color: $deep-gray-color;
&:after {
@extend .clear-both;
}
.hw-input-label {
margin: 16px 0;
}
img {
width: 100%;
max-height: 500px;
}
}
.modal-footer {
&:after {
@extend .clear-both;
}
margin-top: 36px;
button {
float: right;
margin-left: 16px;
}
}
}
}
.confirm-modal {
.modal-content {
width: 380px;
}
.modal-footer {
margin-top: 32px;
}
}
/* alert-modal */
.hw-alert {
position: fixed;
top: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: none;
.hw-mask {
height: 100%;
background-color: #000;
opacity: 0;
filter: alpha(opacity=0);
}
.hw-container {
background-color: #000;
opacity: 0.8;
filter: alpha(opacity=80);
border-radius: 6px;
position: absolute;
top: 100px;
left: 46%;
color: #fff;
padding: 20px;
max-width: 200px;
}
}
// 验证提示
label.error {
color: $red-color;
font-size: 12px;
display: block;
}
/* tab-pane */
.hw-nav-tabs {
border-bottom: 1px solid $base-border-color;
&:after {
@extend .clear-both;
}
li {
margin-right: 2px;
margin-bottom: -1px;
float: left;
height: 40px;
line-height: 40px;
padding: 0 20px;
color: $mid-gray-color;
cursor: default;
border: 1px solid $base-border-color;
&:hover {
color: $hover-color;
}
&.active {
color: $default-color;
border-bottom-color: #fff;
}
}
}
.hw-tab-panes {
.tab-pane {
display: none;
}
}
/** 项目组件组合样式 */
/* 顶部 */
.hw-header {
&:after {
@extend .clear-both;
}
padding: 20px 20px 20px 0;
.page-title {
border-left: 6px solid $default-color;
float: left;
height: 32px;
line-height: 32px;
padding-left: 16px;
font-size: 18px;
}
/* 操作 */
.operate-btns {
float: right;
border-radius: 4px 4px 0 0;
&:after {
@extend .clear-both;
}
.operate-item {
float: right;
margin-left: 8px;
}
}
}
/* 筛选 */
.hw-filter {
margin-left: 20px;
.default-filter {
&:after {
@extend .clear-both;
}
& > div {
float: left;
&:after {
@extend .clear-both;
}
}
.filter-switch {
overflow: hidden;
float: left;
margin-left: 24px;
border: 1px solid $base-input-color;
color: $light-gray-color;
height: 32px;
line-height: 32px;
// padding: 0 12px;
padding: 0 8px 0 12px;
border-radius: 4px;
box-sizing: border-box;
cursor: default;
i {
color: $base-input-color;
float: right;
}
}
}
.filter-detail {
display: none;
margin-top: 22px;
.filter-item {
&:after {
@extend .clear-both;
}
& > div, & > .operate-btns{
float: left;
margin-bottom: 16px;
.form-control {
// width: 170px;
}
}
.operate-btns {
margin-left: 16px;
button {
float: left;
margin-left: 12px;
i {
font-size: 13px;
position: relative;
left: -2px;
}
}
}
}
}
}
/* hw-group */
.hw-group {
margin: 0 0 20px 20px;
.group-title {
border-bottom: 2px solid $base-border-color;
height: 44px;
line-height: 44px;
font-size: $base-size;
span {
color: $mid-gray-color;
}
}
.group-info {
margin: 30px 0 14px 0;
&:after {
@extend .clear-both;
}
.group-item {
&:after {
@extend .clear-both;
}
.hw-input-label {
margin: 0 25px 16px 0;
float: left;
.name {
width: 100px;
&.auto {
width: auto;
}
b {
font-weight: normal;
}
}
}
}
}
}
#main-form {
position: relative;
padding-bottom: 72px;
.group-operate {
position: absolute;
bottom: 0;
width: 100%;
background-color: $base-bg-color;
height: 72px;
text-align: center;
padding-top: 20px;
box-sizing: border-box;
.hw-container {
&:after {
@extend .clear-both;
}
display: inline-block;
vertical-align: top;
a {
float: left;
}
button {
float: left;
margin-left: 40px;
}
}
}
}
// 附件上传
.hw-file-lists {
.list {
width: 500px;
margin-top: 12px;
&:hover {
background: rgba(244, 246, 249, 0.50);
.detail {
.status {
i {
display: none;
&.delete-file {
display: inline;
}
}
}
}
}
&.fail {
&:hover {
.detail {
.process {
display: none;
& ~ .status {
display: inline;
}
}
}
}
.detail {
.process {
color: $red-color;
}
}
.process-bar {
.done {
background-color: $red-color;
}
}
}
.detail {
height: 28px;
line-height: 28px;
padding: 0 8px;
&:after {
@extend .clear-both;
}
.file-name {
color: $deep-gray-color;
float: left;
}
.process {
color: $deep-gray-color;
& ~ .status {
display: none;
}
}
.process, .status {
float: right;
}
.status {
i {
font-size: $small-size;
color: $default-color;
cursor: default;
}
i.delete-file {
display: none;
color: #8A98B0;
}
}
}
.process-bar {
position: relative;
background-color: $base-bg-color;
width: 100%;
height: 8px;
border-radius: 16px;
.done {
position: absolute;
top: 0;
left: 0;
z-index: 10;
background-color: $default-color;
height: 8px;
border-radius: 16px;
}
}
}
}
// 图片上传
.hw-img-lists {
height: 80px;
&:after {
@extend .clear-both;
}
.add-img-btn {
float: left;
margin-right: 16px;
font-size: 50px;
display: block;
width: 80px;
height: 80px;
line-height: 80px;
text-align: center;
font-family: 'simsun' !important;
color: $default-color;
border: 1px dashed $default-color;
border-radius: 4px;
span {
font-size: $base-size;
line-height: 80px;
display: block;
}
&:hover {
color: $hover-color;
border-color: $hover-color;
}
&:active {
color: $active-color;
border-color: $active-color;
}
}
.tip {
float: left;
line-height: 80px;
}
.list {
position: relative;
float: left;
margin-right: 16px;
width: 80px;
height: 100%;
&:hover {
.musk, .operate {
display: block;
}
}
&.fail {
.status {
width: 23px;
height: 23px;
div {
width: 23px;
height: 23px;
display: none;
&.fail {
display: block;
}
}
}
.process {
color: $red-color;
}
.musk {
display: block;
}
}
img {
width: 100%;
height: 100%;
border-radius: 4px;
}
.status {
position: absolute;
top: 0;
right: 0;
z-index: 10;
div {
width: 23px;
height: 23px;
color: #fff;
&.success {
background: url(hhUI/img/success-icon.png) no-repeat;
}
&.fail {
display: none;
background: url(hhUI/img/fail-icon.png) no-repeat;
}
}
}
.operate {
display: none;
.preview-img, .delete-img {
cursor: default;
color: #fff;
font-size: $base-color;
position: absolute;
top: 24px;
left: 16px;
z-index: 10;
}
.delete-img {
left: 48px;
}
}
.process {
position: absolute;
z-index: 10;
bottom: 16px;
color: $deep-gray-color;
width: 100%;
text-align: center;
line-height: 1;
cursor: default;
}
.musk {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.50);
display: none;
}
}
}
/* 附件 */
.hw-group .attachment-group {
margin-left: 44px;
}
/* 无限分类 */
#infinite-sort {
margin: 16px 16px 16px 0;
border: 1px solid #ccc;
padding: 10px;
max-height: 300px;
overflow-y: scroll;
width: 100%;
float: left;
div {
display: block;
line-height: 30px;
&:hover {
background-color: #f4f4f4;
}
input {
margin-top: 9px;
}
}
& > .checkbox-inline {
.hw-checkbox, .hw-radio {
i {
margin-right: 0;
}
}
}
.checkbox-inline {
i.slide-icon {
cursor: default;
font-size: 18px;
display: inline;
&.slide-active {
display: none;
}
}
&.active {
background-color: #eee;
}
&.slide-active {
i.slide-icon {
display: none;
&.slide-active {
display: inline;
}
}
}
}
.infinite-container {
display: none;
&:hover {
background-color: #fff;
}
& > div {
margin-left: 20px;
}
}
}
// 返回上一页
.back-last-page {
display: block;
&:after {
@extend .clear-both;
}
margin: 10px 0 -10px 32px;
i, span { // 
color: $base-color;
float: left;
margin-right: 6px;
font-size: $base-size;
line-height: 20px;
}
}
// 列表
/*14 * n + 10 + 10 + 2*/
.col-1 {
width: 36px;
}
.col-2 {
width: 50px;
}
.col-3 {
width: 64px;
}
.col-4 {
width: 78px;
}
.col-5 {
width: 92px;
}
.col-6 {
width: 106px;
}
.col-7 {
width: 120px;
}
.col-8 {
width: 134px;
}
.col-9 {
width: 148px;
}
.col-10 {
width: 162px;
}
.col-11 {
width: 176px;
}
.col-12 {
width: 190px;
}
.col-13 {
width: 204px;
}
.col-14 {
width: 218px;
}
.col-15 {
width: 232px;
}
.col-18 {
width: 274px;
}
.col-20 {
width: 302px;
}
.col-22 {
width: 330px;
}
.col-25 {
width: 372px;
}
// 列表样式
.main-table-wrap { margin: 20px; padding: 0px; display: inline-block; width: auto; max-width: 96%; /* max-width: calc(100% - 20px); */}
.main-table-wrap > * {
display: block; height: 100%;
}
.main-table-content { position: relative; width: auto; max-width: 100%; height: 100%; /* overflow: hidden; *//* border-bottom: 1px solid #e5e5e5; */}
.main-table-content table { table-layout: fixed; font-size: 14px; width: 100%;}
.main-table-content table thead tr th { line-height: 45px; line-height: 44px \9; font-weight: bold; }
.main-table-content table tbody tr { min-height: 36px; line-height: 36px; border: 1px solid #e5e5e5; }
.main-table-content table thead tr th,
.main-table-content table tbody tr td {
padding: 0 8px;
color: #666;
}
.main-table-content table tbody tr td img {
width: 44px;
height: 44px;
}
.main-table-content table tbody tr td:first-child, .main-table-content table thead tr th:first-child {
text-align: center;
}
.main-table-content .main-table-thead { overflow: hidden; }
.main-table-content .main-table-tbody { overflow-x: auto; overflow-y: auto; max-height: 100%; padding-right: 17px \9;}
.main-table-content .fixed-table { position: absolute; top: 0; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.main-table-content .fixed-left { left: 0px; }
.main-table-content .fixed-left.box-shadow { box-shadow: 4px 0 2px #F1F1F1; }
.main-table-content .fixed-right { right: 17px; }
.main-table-content .fixed-right.box-shadow { box-shadow: -4px 0 4px #F1F1F1;}
.main-table-content .fixed-table-content { position: absolute; top: 0;}
.fixed-left .fixed-table-content { left: 0; }
.fixed-right .fixed-table-content { right: 0; }
.main-table-content .fixed-tbody { top: 45px; overflow: hidden; }
.main-table-content .fixed-table-content table { width: 100%; }
/* 列表头筛选 */
// .th-filter {
// position: relative;
// .filter-content {
// position: absolute;
// top: 10px;
// right: 0;
// z-index: 100;
// background-color: #fff;
// box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.10);
// border-radius: 4px;
// width: 120px;
// text-align: center;
// padding: 10px 0;
// .list {
// height: 40px;
// line-height: 40px;
// &:hover {
// color: $default-color;
// background-color: $base-bg-color;
// }
// }
// &:before {
// content: "";
// position: absolute;
// top: 10px;
// right: 60px;
// z-index: 102;
// border-width: 8px;
// border-color: transparent transparent #fff transparent;
// border-style: dashed dashed solid dashed;
// width: 0;
// height: 0;
// overflow: hidden;
// }
// }
// }
table tbody tr td, table thead tr th {
a {
color: $default-color;
&:hover {
color: $hover-color;
}
&:active {
color: $active-color;
}
}
/* 列表操作栏 */
&.operate {
overflow: hidden;
a, div {
float: left;
margin-left: 20px;
color: $default-color;
font-size: 12px;
&:first-child {
margin-left: 0;
}
&.edit {
color: $default-color; // 
}
&.delete {
color: $red-color; // 
}
&.check {
color: $blue-color; // 
}
&.take {
color: $green-color; // 
}
&.msg {
color: $deep-gray-color; // 
i {
// font-size: $base-size;
// position: relative;
// top: 1px;
}
}
&.logistics {
color: $blue-color;
}
&.cancel {
color: #8B572A;
i {
font-size: $small-size;
}
}
i {
position: relative;
left: -1px;
font-size: $small-size;
}
}
}
}
#import-file {
display: none;
}
/* admin header */
.admin-header{
position: fixed;
top: 0;
width: 100%;
height: 50px;
line-height: 50px;
color: #fff;
// background-color: #005B99;
background-color: #3b3b3b;
z-index: 11;
}
.admin-header ul{
overflow: hidden;
height: 100%;
}
.admin-header ul li.logo{
font-size: 20px;
float: left;
height: 50px;
padding: 0 15px 0 30px;
box-sizing: border-box;
background-color: #4e4e4e;
background: rgba(255, 255, 255, 0.1);
width: 200px;
}
.admin-header ul li.logo img{
height: 30px;
margin-top: 10px;
}
.admin-header .icons {
float: right;
height: 60px;
}
.admin-header .icons a {
position: relative;
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
background: #fff;
border-radius: 50%;
margin-left: 24px;
&:hover {
i {
color: $hover-color;
}
}
.num {
position: absolute;
top: -4px;
right: -4px;
width: 14px;
height: 14px;
line-height: 14px;
border-radius: 100%;
background-color: $red-color;
font-size: 12px;
transform: scale(0.8);
}
}
.admin-header .icons a i {
font-size: 12px;
color: $default-color;
}
.admin-header ul li.quit_login{
padding: 0 35px 0 46px;
height: 60px;
float: right;
text-align: center;
font-size: 14px;
color: #fff;
cursor: pointer;
}
.admin-header ul li.quit_login .box{
overflow: hidden;
display: inline-block;
}
.admin-header ul li.quit_login span{
float: left;
margin: 0 8px;
}
.admin-header ul li.quit_login i{
font-size: 14px;
float: left;
}
.admin-header ul li.quit_login .down_sanjiao{
float: left;
z-index: 101;
margin-top: 23px;
border-width: 6px;
border-color: #fff transparent transparent transparent;
/*transparent 透明*/
border-style: solid dashed dashed dashed;
width: 0;
height: 0;
overflow: hidden;
}
.admin-header ul li.quit_login.active{
color: #fff;
background-color: #262a2d;
}
.admin-header ul li.quit_login.active .down_sanjiao{
border-color: #fff transparent transparent transparent;
}
.admin-header .admin_quit{
display: none;
}
.admin-header ul li.quit_login:hover + .admin_quit {
display: block;
}
.admin-header .admin_quit:hover {
display: block;
}
.admin-header .admin_quit:before {
content: "";
position: fixed;
top: 47px;
right: 60px;
z-index: 102;
border-width: 8px;
border-color: transparent transparent #fff transparent;
border-style: dashed dashed solid dashed;
width: 0;
height: 0;
overflow: hidden;
}
.admin-header .admin_quit:after {
content: '';
width: 180px;
height: 16px;
background-color: #EFF3F5;
opacity: 0;
filter: alpha(opacity = 0);
position: absolute;
top: 50px;
right: 30px;
z-index: -1;
}
.admin-header .admin_quit .info{
background-color: #fff;
width: 180px;
position: fixed;
top: 62px;
right: 30px;
z-index: 101;
padding-bottom: 10px;
font-size: 14px;
border: 1px solid #ebebeb;
box-shadow: 0 0 8px 4px #ebebeb;
border-radius: 5px;
}
.admin-header .admin_quit .info a{
color: #333;
}
.admin-header .admin_quit .info ul{
box-sizing: content-box;
font-size: 14px;
overflow: hidden;
padding: 10px 20px;
line-height: 20px;
}
.admin-header .admin_quit .info ul li{
float: left;
}
.admin-header .admin_quit .user_info span{
color: #696a6a;
}
.admin-header .admin_quit .user_info p{
font-weight: bold;
color: #999;
}
.admin-header .admin_quit .change_pw {
border-top: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
}
.admin-header .admin_quit .pub_style:hover ul, .admin-header .admin_quit .pub_style:hover i{
background-color: #F4F6F9;
color: $default-color;
}
.admin-header .admin_quit .pub_style ul{
color: #26292d;
height: 20px;
}
.admin-header .admin_quit .pub_style i{
font-size: 16px;
color: #666;
margin-right: 5px;
}
.admin-header .admin_quit .change_pw i {
font-size: 18px;
}
.admin-aside {
position: fixed;
top: 50px;
left: 0;
bottom: 0;
z-index: 99;
background-color: #fff;
box-shadow: 2px 0 4px 0 rgba(0, 0, 0, 0.05);
border-right: 1px solid #e5e5e5;
}
.admin-aside .company_logo{
position: absolute;
bottom: 20px;
width: 200px;
text-align: center;
}
.admin-aside .company_logo a {
color: #ccc;
}
.admin-aside .first_sidebar {
box-sizing: border-box;
width: 200px;
}
.admin-aside .toggle-in {
width: 50px;
}
.admin-aside .toggle-in li span, .admin-aside .toggle-in li .slide-icon , .admin-aside .toggle-in .second-menu span {
display: none;
}
.admin-aside .first_sidebar li{
height: 44px;
}
.admin-aside .first_sidebar li .first-menu {
line-height: 44px;
height: 44px;
color: #333;
font-size: 14px;
padding: 0 16px;
display: block;
position: relative;
}
.admin-aside .first_sidebar li .slide-icon {
position: absolute;
top: 0;
right: 16px;
font-size: 10px;
color: #999;
}
.admin-aside .first_sidebar li .slide-icon.slidedown {
display: none;
}
.admin-aside .first_sidebar .first-menu.slidedown .slide-icon.slidedown {
display: block;
}
.admin-aside .first_sidebar .first-menu.slidedown .slide-icon{
display: none;
}
.admin-aside .first_sidebar li.toggle-menu {
background-color: #f4f6f9;
height: 36px;
line-height: 36px;
text-align: center;
}
.admin-aside .first_sidebar li.toggle-menu i {
color: #999;
font-size: 20px;
cursor: default;
padding: 0 10px;
}
.admin-aside .first_sidebar li.toggle-menu i.shrink {
display: none;
}
.admin-aside .first_sidebar.toggle-in li.toggle-menu i {
display: none;
&.shrink {
display: inline;
}
}
.admin-aside .first_sidebar .first-menu i.iconfont {
font-size: 18px;
margin-right: 12px;
color: #666;
}
.admin-aside .second-menu {
display: none;
}
.admin-aside .second-menu a {
display: block;
padding-left: 32px;
height: 36px;
line-height: 36px;
color: #666;
}
.admin-aside .second-menu a i {
font-size: 10px;
margin-right: 6px;
color: #666;
}
.admin-aside .second-menu.toggle-in span{
display: none;
}
.admin-aside .second-menu a:hover,
.admin-aside .second-menu a:hover i,
.admin-aside .second-menu a.active,
.admin-aside .second-menu a.active i,
.admin-aside .first_sidebar .first-menu:hover,
.admin-aside .first_sidebar .first-menu:hover i,
.admin-aside .first_sidebar .first-menu.active,
.admin-aside .first_sidebar .first-menu.active i {
color: $default-color;
background: #F4F6F9;
cursor: default;
}
.head_img {
width: 32px;
height: 32px;
border-radius: 50%;
overflow: hidden;
margin-bottom: 14px;
margin-left: 49px;
margin-top: 15px;
}
.admin-section {
height: 100%;
margin-left: 200px;
padding-top: 50px;
box-sizing: border-box;
overflow: hidden;
background-color: #EFF3F5;
}
// 分页
.nav-route {
margin-top: 40px;
width: 100%;
background: #fff;
z-index: 10;
height: 32px;
line-height: 32px;
font-size: 12px;
box-sizing: border-box;
overflow: hidden;
padding-right: 17px;
}
.nav-route .container {
float: right;
}
.nav-route .data-summary {
float: left;
}
.nav-route .nav-pagination {
float: left;
overflow: hidden;
}
.nav-route .nav-pagination ul {
float: left;
overflow: hidden;
border: 1px solid #cfd7e6;
border-left: none;
margin: 0 20px;
height: 32px;
}
.nav-route .nav-pagination ul li {
cursor: pointer;
float: left;
border-left:1px solid #cfd7e6;
box-sizing: border-box;
a {
display: block;
padding: 0 12px;
height: 32px;
color: $deep-gray-color;
}
}
.nav-route .nav-pagination ul li.disabled {
cursor: not-allowed;
}
.nav-route .nav-pagination ul li.disabled a {
cursor: inherit;
color: #D8DCE5;
}
.nav-route .nav-pagination ul li.active {
background-color: $default-color;
}
.nav-route .nav-pagination ul li.active a {
color: #fff;
}
.nav-route .nav-pagination .page-route {
float: left;
overflow: hidden;
}
.nav-route .nav-pagination .page-route span {
float: left;
color: #666;
font-size: 14px;
}
.nav-route .nav-pagination .page-route input {
width: 60px;
height: 32px;
line-height: 32px;
box-sizing: border-box;
border: 1px solid #cfd7e6;
text-align: center;
float: left;
margin: 0 8px;
}
.nav-route .nav-pagination .page-route button {
float: left;
margin-left: 8px;
}
.upload-form, .upload-img-form {
position: fixed;
left: -100000px;
}
input[readonly], textarea[readonly] {
background-color: #fff !important;
color: #bbb;
resize: none;
}
.hw-btn--red{
@include hw-btn;
border-color: #E6322C;
color: #E6322C;
}
console