zent
Version:
一套前端设计语言和基于React的实现
1,994 lines (1,982 loc) • 145 kB
CSS
.zent-alert {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
font-size: 12px;
line-height: 12px;
position: relative
}
.zent-alert.zent-alert-closable .zent-alert-content {
margin-right: 15px;
}
.zent-alert.zent-alert-closable .zent-alert-close-wrapper {
margin-left: 15px;
height: 100%;
width: 14px;
position: absolute;
top: 0;
right: 15px;
}
.zent-alert.zent-alert-closable .zent-alert-close-btn {
width: 14px;
position: absolute;
top: 50%;
-webkit-transform: translate(0, -50%);
transform: translate(0, -50%);
font-family: sans-serif;
font-size: 18px;
text-align: center;
display: inline-block;
cursor: pointer;
color: #999;
}
.zent-alert.zent-alert-size-normal {
padding: 15px;
}
.zent-alert.zent-alert-size-large {
padding: 11px 15px 11px 30px;
}
.zent-alert.zent-alert-border-rounded {
border-radius: 4px;
}
.zent-alert.zent-alert-style-info {
background: #f8f8f8;
color: #333;
}
.zent-alert.zent-alert-style-warning {
background: #fff7cc;
border: 1px solid #feb;
color: #333;
}
.zent-alert.zent-alert-style-danger {
background: #f44;
border: 1px solid #e33;
color: #fff;
}
.zent-alert.zent-alert-style-danger .zent-alert-close-btn {
color: #fff;
}
.zent-badge {
position: relative;
display: inline-block;
vertical-align: middle;
}
.zent-badge .zent-badge-count {
display: inline-block;
height: 14px;
line-height: 14px;
background: #f44;
color: #fff;
font-size: 10px;
border: 1px solid #fff;
border-radius: 14px;
text-align: center;
padding: 0 4px;
position: absolute;
top: 0;
right: 0;
-webkit-transform: translate(50%, -3px);
transform: translate(50%, -3px);
}
.zent-badge .zent-badge-dot {
height: 8px;
width: 8px;
padding: 0;
font-size: 0;
border: none;
-webkit-transform: translate(-3px, 0);
transform: translate(-3px, 0);
}
.zent-badge.zent-badge-none-cont {
font-size: 0;
}
.zent-badge.zent-badge-none-cont .zent-badge-count {
position: relative;
-webkit-transform: none;
transform: none;
margin: 0 5px;
}
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
html {
/* line-height: 1.15; 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers (opinionated).
*/
/*
body {
margin: 0;
}
*/
/**
* Add the correct display in IE 9-.
*/
article, aside, footer, header, nav, section {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
/*
h1 {
font-size: 2em;
margin: 0.67em 0;
}
*/
/* Grouping content
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in IE.
*/
figcaption, figure, main { /* 1 */
display: block;
}
/**
* Add the correct margin in IE 8.
*/
figure {
/* margin: 1em 40px; */
}
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
-webkit-box-sizing: content-box;
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
/* stylelint-disable-next-line font-family-no-duplicate-names */
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
background-color: transparent; /* 1 */
-webkit-text-decoration-skip: objects; /* 2 */
}
/**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted; /* 2 */
}
/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b, strong {
font-weight: inherit;
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b, strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code, kbd, samp {
/* stylelint-disable-next-line font-family-no-duplicate-names */
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font style in Android 4.3-.
*/
dfn {
font-style: italic;
}
/**
* Add the correct font size in all browsers.
*/
/*
small {
font-size: 80%;
}
*/
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
audio, video {
display: inline-block;
}
/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Remove the border on images inside links in IE 10-.
*/
img {
border-style: none;
}
/**
* Hide the overflow in IE.
*/
svg:not(:root) {
overflow: hidden;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button, input, optgroup, select, textarea {
/*
font-family: sans-serif; 1
font-size: 100%; 1
line-height: 1.15; 1
*/
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button, input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button, select { /* 1 */
text-transform: none;
}
/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
* controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button, html [type="button"], [type="reset"], [type="submit"] {
-webkit-appearance: button; /* 2 */
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
/*
fieldset {
padding: 0.35em 0.75em 0.625em;
}
*/
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
-webkit-box-sizing: border-box;
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"], [type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/
details, menu {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Scripting
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
canvas {
display: inline-block;
}
/**
* Add the correct display in IE.
*/
template {
display: none;
}
/* Hidden
========================================================================== */
/**
* Add the correct display in IE 10-.
*/
[hidden] {
display: none;
}
/*
* Reset styles
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
}
body {
font-family: Helvetica, STHeiti, "Microsoft YaHei", Verdana, Arial, Tahoma, sans-serif;
font-weight: 400;
/* font smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-smoothing: antialiased; /* stylelint-disable-line */
-webkit-font-smoothing: antialiased;
}
a {
text-decoration: none;
}
button, input, select, textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: inherit;
}
ul, ol {
list-style: none;
}
.zent-block-header {
position: relative;
margin-bottom: 20px;
padding: 15px;
background-color: #f8f8f8;
height: 50px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.zent-block-header__left {
display: inline-block;
}
.zent-block-header__left h3 {
margin: 0;
padding-left: 5px;
border-left: 4px solid #f60;
font-weight: normal;
font-size: 14px;
}
.zent-block-header__content {
display: inline-block;
margin-left: 10px;
}
.zent-block-header__pop {
position: absolute;
top: 15px;
right: 15px;
color: #bbb;
font-size: 16px;
}
.zent-block-header__tooltip {
max-width: 300px;
word-wrap: normal;
}
.zent-block-header__tooltip-trigger {
color: #cacaca;
font-size: 14px;
cursor: pointer;
}
/**
* zent-breadcrumb:
* `.zent-breadcrumb` - 面包屑
*
* @example
* <div class="zent-breadcrumb">
* <a href="#">微页面</a>
* <span>发布页面</span>
* </div>
*
*/
.zent-breadcrumb {
color: #333;
font-size: 0;
line-height: 0;
padding: 15px 0;
}
.zent-breadcrumb span, .zent-breadcrumb a {
font-size: 14px;
line-height: 1em;
display: inline-block;
vertical-align: middle;
text-decoration: none
}
.zent-breadcrumb span::after, .zent-breadcrumb a::after {
content: "/";
display: inline-block;
vertical-align: middle;
color: #bbb;
margin-left: 5px;
margin-right: 5px;
}
.zent-breadcrumb span:last-child::after, .zent-breadcrumb a:last-child::after {
content: "";
display: none;
}
.zent-breadcrumb span {
color: #333;
}
.zent-breadcrumb a {
color: #38f;
}
.zent-breadcrumb.zent-breadcrumb-nav {
padding: 0;
}
.zent-breadcrumb.zent-breadcrumb-nav a {
display: inline-block;
height: 50px;
line-height: 48px;
padding: 0 20px;
min-width: 0;
border: none;
background: transparent;
font-size: 14px;
color: #666;
text-align: center;
-webkit-box-sizing: border-box;
box-sizing: border-box
}
.zent-breadcrumb.zent-breadcrumb-nav a:after {
display: none;
}
.zent-breadcrumb.zent-breadcrumb-nav .zent-breadcrumb-nav-active:after {
display: block;
color: #333;
border-bottom: 2px solid #38f;
content: '';
margin: 0;
}
.zent-btn {
display: inline-block;
height: 30px;
line-height: 30px;
padding: 0 10px;
border-radius: 2px;
font-size: 12px;
font-family: inherit;
color: #333;
background: #fff;
border: 1px solid #bbb;
text-align: center;
vertical-align: middle;
-webkit-box-sizing: border-box;
box-sizing: border-box;
cursor: pointer;
-webkit-transition: all 0.3s;
transition: all 0.3s
}
.zent-btn:focus {
outline: none;
}
.zent-btn:link, .zent-btn:visited, .zent-btn:focus {
color: #333;
text-decoration: none;
}
.zent-btn:hover {
color: #59f;
border-color: #59f;
text-decoration: none;
}
.zent-btn:active {
color: #333;
background: #e5e5e5;
border-color: #bbb;
text-decoration: none;
}
.zent-btn.zent-btn-loading:hover, .zent-btn.zent-btn-loading:active {
background: #fff;
border: 1px solid #bbb;
}
.zent-btn + .zent-btn {
margin-left: 10px;
}
/* 大小相关 */
.zent-btn-large {
height: 36px;
line-height: 34px;
padding: 0 30px;
}
.zent-btn-small {
height: 26px;
line-height: 24px;
padding: 0 5px;
}
.zent-btn-block {
display: block;
width: 100%;
padding: 0;
}
/* 风格相关 */
.zent-btn-primary {
color: #fff;
background: #38f;
border-color: #38f
}
.zent-btn-primary:link, .zent-btn-primary:visited, .zent-btn-primary:focus {
color: #fff;
}
.zent-btn-primary:hover {
color: #fff;
background: #59f;
border-color: #59f;
}
.zent-btn-primary:active {
color: #fff;
background: #27f;
border-color: #27f;
}
.zent-btn-primary.zent-btn-loading:hover, .zent-btn-primary.zent-btn-loading:active {
background: #38f;
border-color: #38f;
}
.zent-btn-primary.zent-btn-loading::after {
border-color: #fff transparent transparent transparent;
}
.zent-btn-primary-outline {
color: #38f;
border-color: #38f;
background: #fff
}
.zent-btn-primary-outline:link, .zent-btn-primary-outline:visited, .zent-btn-primary-outline:focus {
color: #38f;
}
.zent-btn-primary-outline:hover {
color: #59f;
border-color: #59f;
}
.zent-btn-primary-outline:active {
color: #27f;
background: #e5e5e5;
border-color: #27f;
}
.zent-btn-primary-outline.zent-btn-loading:hover, .zent-btn-primary-outline.zent-btn-loading:active {
border-color: #38f;
background: #fff;
}
.zent-btn-primary-outline.zent-btn-loading::after {
border-color: #38f transparent transparent transparent;
}
.zent-btn-danger {
color: #fff;
background: #f44;
border-color: #f44
}
.zent-btn-danger:link, .zent-btn-danger:visited, .zent-btn-danger:focus {
color: #fff;
}
.zent-btn-danger:hover {
color: #fff;
background: #f66;
border-color: #f66;
}
.zent-btn-danger:active {
color: #fff;
background: #e33;
border-color: #e33;
}
.zent-btn-danger.zent-btn-loading:hover, .zent-btn-danger.zent-btn-loading:active {
background: #f44;
border-color: #e33;
}
.zent-btn-danger.zent-btn-loading::after {
border-color: #fff transparent transparent transparent;
}
.zent-btn-danger-outline {
color: #f44;
border-color: #f44;
background: #fff
}
.zent-btn-danger-outline:link, .zent-btn-danger-outline:visited, .zent-btn-danger-outline:focus {
color: #f44;
}
.zent-btn-danger-outline:hover {
color: #f66;
border-color: #f66;
}
.zent-btn-danger-outline:active {
color: #e33;
background: #e5e5e5;
border-color: #e33;
}
.zent-btn-danger-outline.zent-btn-loading:hover, .zent-btn-danger-outline.zent-btn-loading:active {
border-color: #f44;
background: #fff;
}
.zent-btn-danger-outline.zent-btn-loading::after {
border-color: #f44 transparent transparent transparent;
}
.zent-btn-success {
color: #fff;
background: #4b0;
border-color: #4b0
}
.zent-btn-success:link, .zent-btn-success:visited, .zent-btn-success:focus {
color: #fff;
}
.zent-btn-success:hover {
color: #fff;
background: #6c2;
border-color: #6c2;
}
.zent-btn-success:active {
color: #fff;
background: #0a0;
border-color: #0a0;
}
.zent-btn-success.zent-btn-loading:hover, .zent-btn-success.zent-btn-loading:active {
background: #4b0;
border-color: #0a0;
}
.zent-btn-success.zent-btn-loading::after {
border-color: #fff transparent transparent transparent;
}
.zent-btn-success-outline {
color: #4b0;
border-color: #4b0;
background: #fff
}
.zent-btn-success-outline:link, .zent-btn-success-outline:visited, .zent-btn-success-outline:focus {
color: #4b0;
}
.zent-btn-success-outline:hover {
color: #6c2;
border-color: #6c2;
}
.zent-btn-success-outline:active {
color: #0a0;
background: #e5e5e5;
border-color: #0a0;
}
.zent-btn-success-outline.zent-btn-loading:hover, .zent-btn-success-outline.zent-btn-loading:active {
border-color: #4b0;
background: #fff;
}
.zent-btn-success-outline.zent-btn-loading::after {
border-color: #4b0 transparent transparent transparent;
}
/* 状态相关 */
.zent-btn-disabled, .zent-btn-disabled[disabled] {
color: #bbb;
background: #f8f8f8;
border-color: #e5e5e5;
cursor: not-allowed
}
.zent-btn-disabled:link, .zent-btn-disabled:visited, .zent-btn-disabled:focus, .zent-btn-disabled[disabled]:link, .zent-btn-disabled[disabled]:visited, .zent-btn-disabled[disabled]:focus {
color: #bbb;
}
.zent-btn-disabled:hover, .zent-btn-disabled[disabled]:hover {
color: #bbb;
background: #f8f8f8;
border-color: #e5e5e5;
}
.zent-btn-disabled:active, .zent-btn-disabled[disabled]:active {
color: #bbb;
background: #f8f8f8;
border-color: #e5e5e5;
}
.zent-btn-loading {
position: relative;
color: transparent;
cursor: not-allowed
}
.zent-btn-loading:link, .zent-btn-loading:visited, .zent-btn-loading:focus, .zent-btn-loading:hover, .zent-btn-loading:active {
color: transparent;
}
.zent-btn-loading::before, .zent-btn-loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin-left: -8px;
margin-top: -8px;
border: 3px solid;
border-radius: 8px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.zent-btn-loading::after {
border-color: #666 transparent transparent;
-webkit-animation: btn-spin 0.6s linear;
animation: btn-spin 0.6s linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
@-webkit-keyframes btn-spin {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes btn-spin {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.zent-btn-border-transparent {
border-color: transparent
}
.zent-btn-border-transparent:hover {
border-color: transparent;
}
.zent-btn-border-transparent:active {
border-color: transparent;
}
.zent-card {
background-color: #fff;
border-radius: 2px;
position: relative;
-webkit-transition: all 0.3s;
transition: all 0.3s;
border: 1px solid #e5e5e5;
overflow: hidden
}
.zent-card:hover {
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
border-color: transparent;
}
.zent-card-header {
height: 48px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.zent-card-header__title {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
color: #444;
font-weight: 500;
}
.zent-card-header__action {
-webkit-box-flex: 0;
-ms-flex: none;
flex: none;
}
.zent-card-body {
padding: 20px;
font-size: 12px;
}
.zent-cascader {
display: inline-block
}
.zent-cascader.open .zent-cascader__select-text {
border-color: #27f;
-webkit-box-shadow: 0 1px 1px #bdf;
box-shadow: 0 1px 1px #bdf;
}
.zent-cascader.open .zent-cascader__select-text .zenticon {
-webkit-transform: rotate(180deg) scale(0.5);
transform: rotate(180deg) scale(0.5);
}
.zent-cascader__select {
cursor: pointer;
display: inline-block;
font-size: 0;
position: relative;
text-align: left;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 260px;
vertical-align: middle;
}
.zent-cascader__select-text {
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #bbb;
border-radius: 2px;
display: inline-block;
min-height: 30px;
line-height: 1.5;
max-height: 76px;
padding: 5px 30px 5px 10px;
-webkit-transition: border-color 0.25s;
transition: border-color 0.25s;
width: 100%;
background-color: #fff;
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 12px;
}
.zent-cascader__select-text-content {
line-height: inherit;
}
.zent-cascader__select-text.is-placeholder {
color: #999;
}
.zent-cascader__select-text .zenticon {
margin-top: -6px;
position: absolute;
right: 10px;
top: 50%;
-webkit-transition: -webkit-transform 0.25s;
transition: -webkit-transform 0.25s;
transition: transform 0.25s;
transition: transform 0.25s, -webkit-transform 0.25s;
font-size: 12px;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}
.zent-cascader__list {
font-size: 0;
padding: 10px 4px;
min-height: 80px;
}
.zent-cascader__list-item {
display: inline-block;
line-height: 30px;
height: 30px;
width: 108px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.zent-cascader__list-link {
cursor: pointer;
display: inline-block;
font-size: 12px;
padding: 0 5px;
line-height: 18px;
vertical-align: middle;
max-width: 98px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
.zent-cascader__list-link:hover {
background: #eaf3ff;
}
.zent-cascader__list-link.active {
background: #27f;
border-radius: 2px;
color: #fff;
}
.zent-cascader__tabs .zent-tabs-nav {
margin-bottom: 0;
}
.zent-cascader__tabs .zent-tabs-nav-content {
height: auto;
}
.zent-cascader__tabs .zent-tabs-tab {
border-radius: 0;
border-top: none;
width: 80px
}
.zent-cascader__tabs .zent-tabs-tab:first-child {
border-left: none;
border-top: none;
}
.zent-cascader__tabs .zent-tabs-tab-inner {
min-width: 80px;
}
.zent-cascader__popup {
z-index: 2000;
}
.zent-cascader__popup-inner {
background: #fff;
width: 440px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin-top: 5px;
}
.zent-cascader__loading {
display: inline-block;
position: relative;
vertical-align: middle;
background-color: white;
}
.zent-cascader__loading-label {
line-height: 16px;
display: inline-block;
vertical-align: middle;
}
.zent-cascader__loading-icon {
display: inline-block;
position: relative;
vertical-align: middle;
height: 12px;
width: 12px;
border-radius: 50%;
border: 1px solid #27f;
margin-left: 5px
}
.zent-cascader__loading-icon:after {
content: '';
display: inline-block;
position: absolute;
height: 10px;
width: 4px;
background: white;
-webkit-animation: 1s linear rotate infinite;
animation: 1s linear rotate infinite;
-webkit-transform-origin: 8px 3px;
transform-origin: 8px 3px;
left: -1px;
top: 4px;
}
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotate {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.zent-checkbox-wrap {
display: inline-block;
cursor: pointer;
font-weight: 400;
font-size: 12px;
line-height: 14px;
margin: 0;
padding: 0;
margin-right: 15px;
vertical-align: middle
}
.zent-checkbox-wrap.zent-checkbox-disabled {
cursor: not-allowed;
}
.zent-checkbox-wrap:last-child {
margin-right: 0;
}
.zent-checkbox {
position: relative;
display: inline-block;
width: 14px;
height: 14px;
white-space: nowrap;
outline: none;
vertical-align: middle;
line-height: 1;
margin: 0;
padding: 0;
}
.zent-checkbox input {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0;
cursor: pointer;
}
.zent-checkbox + span {
margin-left: 5px;
margin-right: 5px;
vertical-align: middle;
line-height: 16px;
}
.zent-checkbox-inner {
position: relative;
top: 0;
left: 0;
display: inline-block;
width: 14px;
height: 14px;
border-radius: 2px;
border: 1px solid #bbb;
background: #fff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.3s;
transition: all 0.3s
}
.zent-checkbox-inner::after {
-webkit-box-sizing: content-box;
box-sizing: content-box;
position: absolute;
display: block;
content: ' ';
font-size: 0;
top: 3px;
left: 2px;
width: 6px;
height: 3px;
border: 2px solid #fff;
background: transparent;
border-top: none;
border-right: none;
-webkit-transform: rotate(-45deg) scale(0);
transform: rotate(-45deg) scale(0);
-webkit-transition: all 0.12s ease-in-out;
transition: all 0.12s ease-in-out;
}
.zent-checkbox-checked .zent-checkbox-inner {
border-color: #27f;
background: #38f
}
.zent-checkbox-checked .zent-checkbox-inner::after {
-webkit-transform: rotate(-45deg) scale(1);
transform: rotate(-45deg) scale(1);
}
.zent-checkbox-indeterminate .zent-checkbox-inner {
border-color: #38f;
background: #fff
}
.zent-checkbox-indeterminate .zent-checkbox-inner::after {
top: 5px;
left: 3px;
width: 6px;
height: 2px;
border: none;
background: #38f;
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
.zent-checkbox-disabled .zent-checkbox-inner {
opacity: 0.4;
}
.zent-checkbox-disabled input[type="checkbox"] {
cursor: not-allowed;
}
.zent-color-picker-popover {
z-index: 2000;
}
.zent-color-picker {
cursor: pointer;
display: inline-block;
font-size: 12px;
margin-right: 10px;
outline: none;
position: relative;
text-align: left;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
height: 32px;
vertical-align: middle
}
.zent-color-picker.open .zent-color-picker__text {
border-color: #38f;
-webkit-box-shadow: 0 1px 1px #bdf;
box-shadow: 0 1px 1px #bdf
}
.zent-color-picker.open .zent-color-picker__text::after {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.zent-color-picker__text {
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #bbb;
border-radius: 2px;
display: inline-block;
width: 50px;
height: 30px;
outline: none;
padding: 5px;
-webkit-transition: border-color 0.25s;
transition: border-color 0.25s;
background-color: #fff;
position: relative;
}
.zent-color-picker__preview {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 38px;
height: 18px;
}
.zent-colorpicker-colors-select {
background: #fff;
width: 190px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
-webkit-box-sizing: content-box;
box-sizing: content-box;
line-height: 10px;
padding-top: 10px;
}
.zent-colorpicker-colors-select__preview {
width: 20px;
height: 20px;
display: inline-block;
margin-left: 10px;
margin-bottom: 10px;
cursor: pointer;
-webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.zent-date-range-picker__filter {
display: inline-block;
}
.zent-date-range-picker__btn {
margin-left: 10px;
display: inline-block;
padding: 2px 4px;
font-size: 12px;
color: #bbb;
cursor: pointer;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #e5e5e5;
border-radius: 2px
}
.zent-date-range-picker__btn:first-child {
margin-left: 15px;
}
.zent-date-range-picker__btn:hover {
color: #38f;
border-color: #38f;
}
.zent-date-range-picker__btn.active {
border-color: #38f;
color: #38f;
}
.zent-datetime-picker {
-webkit-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
line-height: normal;
position: relative;
}
.zent-datetime-picker .picker-seperator {
font-size: 12px;
color: #666;
padding: 0 10px;
}
.zent-datetime-picker .picker-input {
color: #999;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 183px;
height: 30px;
line-height: 30px;
font-size: 12px;
background: #fff;
border-radius: 2px;
}
.zent-datetime-picker .picker-input--combine {
border: 1px solid #bbb;
padding: 0 10px;
}
.zent-datetime-picker .picker-input .zent-input {
background: inherit;
color: inherit;
}
.zent-datetime-picker .picker-input .zenticon {
line-height: 30px;
position: absolute;
right: 10px;
top: 0;
color: #bbb;
}
.zent-datetime-picker .picker-input .zenticon-calendar-o {
display: block;
}
.zent-datetime-picker .picker-input .zenticon-close-circle {
display: none;
}
.zent-datetime-picker .picker-input--range {
width: 240px;
}
.zent-datetime-picker .picker-input--showTime {
width: 320px;
}
.zent-datetime-picker .picker-input--filled {
color: #333
}
.zent-datetime-picker .picker-input--filled:hover .zenticon-close-circle {
display: block;
}
.zent-datetime-picker .picker-input--filled:hover .zenticon-calendar-o {
display: none;
}
.zent-datetime-picker .picker-input--disabled {
background: #f8f8f8;
color: #cacaca;
cursor: not-allowed
}
.zent-datetime-picker .picker-input--disabled:hover .zenticon-close-circle {
display: none;
}
.zent-datetime-picker .picker-input--disabled:hover .zenticon-calendar-o {
display: block;
}
.zent-datetime-picker-popover {
line-height: 1;
z-index: 2000;
}
.zent-datetime-picker-popover .date-picker, .zent-datetime-picker-popover .month-picker, .zent-datetime-picker-popover .time-picker, .zent-datetime-picker-popover .range-picker, .zent-datetime-picker-popover .week-picker {
background: #fff;
width: 240px;
font-size: 12px;
border-radius: 2px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
z-index: 10;
}
.zent-datetime-picker-popover .grid-cell {
vertical-align: middle;
padding: 0;
}
.zent-datetime-picker-popover .range-picker {
width: 480px;
}
.zent-datetime-picker-popover .range-picker .date-picker {
display: inline-block;
vertical-align: top;
-webkit-box-shadow: none;
box-shadow: none
}
.zent-datetime-picker-popover .range-picker .date-picker + .date-picker {
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-left: 1px solid #e5e5e5;
left: -1px;
}
.zent-datetime-picker-popover .range-picker .date-picker .month-panel .grid-cell {
height: 41.5px;
}
.zent-datetime-picker-popover .range-picker .date-picker .year-panel .grid-cell {
height: 41.5px;
}
.zent-datetime-picker-popover .range-picker--showTime .date-picker .month-panel .grid-cell, .zent-datetime-picker-popover .range-picker--showTime .date-picker .year-panel .grid-cell {
height: 56px;
}
.zent-datetime-picker-popover .range-picker--showTime .date-picker .time-panel .hour-panel, .zent-datetime-picker-popover .range-picker--showTime .date-picker .time-panel .minute-panel, .zent-datetime-picker-popover .range-picker--showTime .date-picker .time-panel .second-panel {
height: 265px;
}
.zent-datetime-picker-popover .date-panel, .zent-datetime-picker-popover .month-panel, .zent-datetime-picker-popover .year-panel {
position: relative;
width: 240px;
background: #fff;
color: #333;
}
.zent-datetime-picker-popover .date-picker .date-panel .grid-cell, .zent-datetime-picker-popover .week-picker .date-panel .grid-cell {
padding: 2px 0;
}
.zent-datetime-picker-popover .date-picker .month-panel, .zent-datetime-picker-popover .week-picker .month-panel {
position: absolute;
top: 0;
left: 0;
}
.zent-datetime-picker-popover .date-picker .month-panel .grid-cell, .zent-datetime-picker-popover .week-picker .month-panel .grid-cell {
height: 55.5px;
vertical-align: middle;
padding: 0;
}
.zent-datetime-picker-popover .date-picker .year-panel .grid-cell, .zent-datetime-picker-popover .week-picker .year-panel .grid-cell {
height: 55.5px;
vertical-align: middle;
padding: 0;
}
.zent-datetime-picker-popover .month-picker .month-panel .grid-cell {
height: 36px;
}
.zent-datetime-picker-popover .month-picker .month-panel .year-panel .grid-cell {
height: 47.5px;
padding: 0;
}
.zent-datetime-picker-popover .panel__header {
position: relative;
text-align: center;
height: 36px;
line-height: 36px;
border-bottom: 1px solid #e5e5e5;
}
.zent-datetime-picker-popover .panel__header .link--prev {
cursor: pointer;
position: absolute;
left: 25px;
padding: 0 10px;
font-size: 8px;
}
.zent-datetime-picker-popover .panel__header .link--prev .zenticon {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.zent-datetime-picker-popover .panel__header .link--next {
cursor: pointer;
position: absolute;
right: 25px;
padding: 0 10px;
font-size: 8px;
}
.zent-datetime-picker-popover .panel__header .panel__title {
cursor: pointer;
}
.zent-datetime-picker-popover .panel__footer {
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 54px;
line-height: 54px;
padding-right: 10px;
text-align: right;
border-top: 1px solid #e5e5e5;
}
.zent-datetime-picker-popover .panel__footer .btn--confirm {
margin-left: 15px;
}
.zent-datetime-picker-popover .panel__footer .link--current {
color: #38f;
cursor: pointer;
}
.zent-datetime-picker-popover .panel__footer .link--disabled {
color: #999;
}
.zent-datetime-picker-popover .panel__footer .error-tips {
color: #f44;
font-size: 12px;
}
.zent-datetime-picker-popover .panel-table {
padding: 6px;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.zent-datetime-picker-popover .panel-table__row {
list-style: none;
padding: 0;
margin: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.zent-datetime-picker-popover .panel-table__row li {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.zent-datetime-picker-popover .panel-table__head {
padding: 6px 0;
}
.zent-datetime-picker-popover .panel-table .panel__cell {
display: inline-block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
text-align: center;
vertical-align: middle;
border-radius: 2px;
cursor: pointer;
position: relative
}
.zent-datetime-picker-popover .panel-table .panel__cell:hover {
background: #bdf;
}
.zent-datetime-picker-popover .panel-table .panel__cell--current {
color: #38f;
border: 1px solid #38f;
}
.zent-datetime-picker-popover .panel-table .panel__cell--different {
color: #999;
background: none
}
.zent-datetime-picker-popover .panel-table .panel__cell--different:before, .zent-datetime-picker-popover .panel-table .panel__cell--different:after {
display: none;
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-range {
background: #bdf;
border: none
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-range:before {
content: '';
display: block;
width: 8px;
height: 20px;
background: #bdf;
position: absolute;
right: -8px;
top: 0;
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-range:after {
content: '';
display: block;
width: 8px;
height: 20px;
background: #bdf;
position: absolute;
left: -8px;
top: 0;
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-selected {
background: #bdf;
border: none
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-selected:before {
content: '';
display: block;
width: 8px;
height: 20px;
background: #bdf;
position: absolute;
right: -8px;
top: 0;
}
.zent-datetime-picker-popover .panel-table .panel__cell--in-selected:after {
content: '';
display: block;
width: 8px;
height: 20px;
background: #bdf;
position: absolute;
left: -8px;
top: 0;
}
.zent-datetime-picker-popover .panel-table .panel__cell--disabled {
cursor: not-allowed;
color: #e5e5e5;
border-color: #e5e5e5
}
.zent-datetime-picker-popover .panel-table .panel__cell--disabled:hover {
background: #fff;
}
.zent-datetime-picker-popover .panel-table .panel__cell--disabled:before, .zent-datetime-picker-popover .panel-table .panel__cell--disabled:after {
display: none;
}
.zent-datetime-picker-popover .panel-table .panel__cell--selected {
background: #38f;
color: #fff
}
.zent-datetime-picker-popover .panel-table .panel__cell--selected:hover {
background: #38f;
}
.zent-datetime-picker-popover .panel-table .panel__cell.date-panel__cell {
width: 20px;
height: 20px;
line-height: 20px;
}
.zent-datetime-picker-popover .panel-table .panel__cell.month-panel__cell {
width: 32px;
height: 32px;
line-height: 32px;
}
.zent-datetime-picker-popover .panel-table .panel__cell.year-panel__cell {
width: 50px;
height: 30px;
line-height: 30px;
}
.zent-datetime-picker-popover .year-panel {
position: absolute;
top: 0;
left: 0;
}
.zent-datetime-picker-popover .time-panel__cell {
padding: 3px;
}
.zent-datetime-picker-popover .time-panel .panel-table__row:last-child {
display: block;
}
.zent-datetime-picker-popover .time-panel .panel-table__row:last-child .grid-cell {
width: 14.28%;
}
.zent-datetime-picker-popover .time-panel .hour-panel, .zent-datetime-picker-popover .time-panel .minute-panel, .zent-datetime-picker-popover .time-panel .second-panel {
position: absolute;
top: 0;
left: 0;
height: 327px;
width: 240px;
background: #fff;
}
.zent-datetime-picker-popover .time-panel__preview {
margin: 12px 10px;
height: 31px;
line-height: 31px;
border: 1px solid #bbb;
border-radius: 2px;
text-align: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.zent-datetime-picker-popover .time-panel__preview .time__number {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
cursor: pointer;
border-right: 1px solid #bbb
}
.zent-datetime-picker-popover .time-panel__preview .time__number:last-child {
border-right: none;
}
.zent-design-preview {
border: 1px solid #e5e5e5;
width: 320px;
min-height: 450px;
position: relative;
}
.zent-design-preview .zent-design-add-component-overlay--grouped {
background: #fff
}
.zent-design-preview .zent-design-add-component-overlay--grouped:after {
border-right-color: #fff;
}
.zent-design-preview-item {
position: relative;
}
.zent-design-editor-item {
position: absolute;
left: 100%;
top: 0;
padding: 15px;
min-height: 28px;
background: #f8f8f8;
border-radius: 5px;
border: 1px solid #e5e5e5;
width: 420px;
margin-left: 15px;
font-size: 12px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
z-index: 5;
}
.zent-design-editor-item a {
color: #38f;
text-decoration: none;
cursor: pointer;
}
.zent-design-editor-item:after, .zent-design-editor-item:before {
right: 100%;
top: 20px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.zent-design-editor-item:after {
border-color: transparent;
border-right-color: #f8f8f8;
border-width: 6px;
margin-top: -6px;
}
.zent-design-editor-item:before {
border-color: transparent;
border-right-color: #e5e5e5;
border-width: 7px;
margin-top: -7px;
}
.zent-design-preview-controller {
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border: 0;
}
.zent-design-preview-controller__actions {
display: none;
cursor: pointer;
background-color: rgba(0, 0, 0, 0.2);
z-index: 10;
font-size: 12px;
}
.zent-design-preview-controller__action-btn {
padding: 2px 6px;
outline: none;
background: transparent;
border: 0;
cursor: pointer;
color: #fff;
border-left: 1px solid #fff;
border-radius: 0
}
.zent-design-preview-controller__action-btn:first-child {
border-left: 0;
}
.zent-design-preview-controller__action-btn:hover {
color: #f2f2f2;
}
.zent-design-preview-controller:hover .zent-design-preview-controller__actions, .zent-design-preview-controller--selected .zent-design-preview-controller__actions {
display: block;
position: absolute;
right: 0;
bottom: 0;
}
.zent-design-preview-controller--dragable {
cursor: move;
}
.zent-design-preview-controller .zent-pop-wrapper {
border-left: 1px solid #fff;
}
.zent-design-preview-controller--highlight.zent-design-preview-controller:before {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
pointer-events: none;
display: none;
}
.zent-design-preview-controller--highlight.zent-design-preview-controller:hover:before, .zent-design-preview-controller--highlight.zent-design-preview-controller--selected:before {
z-index: 2;
display: block;
border: 2px dashed #f44;
}
/* stylelint-disable media-feature-name-no-unknown */
.zent-design-editor-add-component {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.zent-design-editor-add-component__mixed-title {
height: 40px;
line-height: 40px;
text-align: center;
font-weight: bold;
font-size: 14px;
color: #333;
}
.zent-design-editor-add-component__mixed-list {
overflow: hidden;
zoom: 1;
}
.zent-design-editor-add-component__mixed-btn {
float: left;
margin: 0 0 10px 5px;
outline: none;
height: 40px;
width: 56px;
border: 1px solid #e5e5e5;
color: #38f;
font-size: 12px;
background: #fff;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-radius: 0
}
.zent-design-editor-add-component__mixed-btn:hover {
color: #38f;
}
.zent-design-editor-add-component__mixed-btn--disabled {
cursor: not-allowed;
background: #f8f8f8;
color: #bbb;
}
.zent-design-editor-add-component__grouped-title {
font-size: 12px;
margin-bottom: 8px;
margin-top: 13px;
}
.zent-design-editor-add-component__grouped-list {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.zent-design-editor-add-component__grouped-btn {
border: 1px dashed #e5e5e5;
color: #666;
background: #f8f8f8;
outline: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
height: 30px;
-webkit-box-flex: 0;
-ms-flex: 0 0 96px;
flex: 0 0 96px;
font-size: 12px;
margin-bottom: 5px;
margin-right: 5px;
border-radius: 0
}
.zent-design-editor-add-component__grouped-btn:hover {
background: #e8f7fd;
border-color: #bdf;
}
.zent-design-editor-add-component__grouped-btn:nth-child(3n+3) {
margin-right: 0;
}
.zent-design-editor-add-component__grouped-btn br {
display: none;
}
.zent-design-editor-add-component__grouped-btn--disabled {
color: #bbb;
cursor: not-allowed;
}
.zent-design-editor-item .zent-design-editor-add-component--mixed {
margin: 0 39px;
}
.zent-design-editor-item .zent-design-editor-add-component--grouped {
margin: 0 44px;
}
.zent-design__add .zent-design-editor-add-component--mixed {
padding: 0 5px;
}
.zent-design__add .zent-design-editor-add-component--grouped {
padding: 0 11px;
}
.zent-design-editor__control-group:not(:last-child) {
margin-bottom: 20px;
}
.zent-design-editor__control-group-container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.zent-design-editor__control-group-label {
font-size: 12px;
width: 85px;
-ms-flex-negative: 0;
flex-shrink: 0;
text-align: right;
margin-right: 10px;
}
.zent-design-editor__control-group-label--top {
-ms-flex-item-align: start;
align-self: flex-start;
margin-top: 6px;
}
.zent-design-editor__control-group-help-desc {
color: #999;
margin-top: 20px;
}
.zent-design-editor__control-group-control {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
.zent-design-editor__control-group-error {
margin-left: 94px;
margin-top: 5px;
}
.zent-design-editor__control-group-required-star {
color: #f44;
}
.zent-design-editor__control-group.has-error {
color: #f44;
}
.zent-design {
width: 755px;
text-rendering: optimizelegibility;
font-family: inherit;
}
.zent-design__restore-cache-alert {
margin-bottom: 10px;
}
.zent-design__restore-cache-alert-use {
text-decoration: none;
}
.zent-design__item-list {
min-height: 304px;
padding-bottom: 9px;
}
.zent-design__item-list--full-height {
min-height: 450px;
padding-bottom: 0;
}
.zent-design__add {
padding-bottom: 5px;
position: relative;
border-top: 1px solid #e5e5e5
/*
三角形边框的原理:生成两个边长相差 1px 的三角形,大的颜色用边框颜色,小的颜色用背景色,小的盖在大的里面即可。
*/
}
.zent-design__add:after, .zent-design__add:before {
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
z-index: 2;
}
.zent-design__add:after {
border-width: 8px;
margin-left: -8px;
top: -16px;
}
.zent-design__add:before {
border-bottom-color: #e5e5e5;
border-width: 9px;
margin-left: -9px;
top: -18px;
}
.zent-design__add--mixed {
background: #f8f8f8
}
.zent-design__add--mixed:after {
border-bottom-color: #f8f8f8;
}
.zent-design__add--grouped {
background: #fff
}
.zent-design__add--grouped:after {
border-bottom-color: #fff;
}
.zent-