UNPKG

yrd-ui

Version:

npx create-react-app --template typescript yrd-ui

1,368 lines (1,236 loc) 30 kB
*, *::before, *::after { box-sizing: border-box; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } [tabindex="-1"]:focus:not(:focus-visible) { outline: 0 !important; } hr { margin: 1rem 0; color: inherit; background-color: currentColor; border: 0; opacity: 0.25; } hr:not([size]) { height: 1px; } h6, h5, h4, h3, h2, h1 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; } h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; } p { margin-top: 0; margin-bottom: 1rem; } abbr[title], abbr[data-original-title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; cursor: help; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none; } address { margin-bottom: 1rem; font-style: normal; line-height: inherit; } ol, ul { padding-left: 2rem; } ol, ul, dl { margin-top: 0; margin-bottom: 1rem; } ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; } dt { font-weight: 700; } dd { margin-bottom: 0.5rem; margin-left: 0; } blockquote { margin: 0 0 1rem; } b, strong { font-weight: bolder; } small { font-size: 0.875em; } sub, sup { position: relative; font-size: 0.75em; line-height: 0; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } a { color: #3c7eff; text-decoration: none; } a:hover { color: #0051ef; text-decoration: underline; } a:not([href]), a:not([href]):hover { color: inherit; text-decoration: none; } pre, code, kbd, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; } pre { display: block; margin-top: 0; margin-bottom: 1rem; overflow: auto; font-size: 0.875em; } pre code { font-size: inherit; color: inherit; word-break: normal; } code { font-size: 0.875em; color: #d63384; word-wrap: break-word; } a > code { color: inherit; } figure { margin: 0 0 1rem; } img { vertical-align: middle; } svg { overflow: hidden; vertical-align: middle; } table { border-collapse: collapse; } caption { padding-top: 0.5rem; padding-bottom: 0.5rem; color: #6c757d; text-align: left; caption-side: bottom; } th { text-align: inherit; } label { display: inline-block; margin-bottom: 0.5rem; } button { border-radius: 0; } button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; } input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; } button, input { overflow: visible; } button, select { text-transform: none; } select { word-wrap: normal; } [list]::-webkit-calendar-picker-indicator { display: none; } button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; } button:not(:disabled), [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled) { cursor: pointer; } ::-moz-focus-inner { padding: 0; border-style: none; } input[type=date], input[type=time], input[type=datetime-local], input[type=month] { -webkit-appearance: textfield; } textarea { overflow: auto; resize: vertical; } fieldset { min-width: 0; padding: 0; margin: 0; border: 0; } legend { float: left; width: 100%; padding: 0; margin-bottom: 0.5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; } mark { padding: 0.2em; background-color: #fcf8e3; } progress { vertical-align: baseline; } ::-webkit-datetime-edit { overflow: visible; line-height: 0; } [type=search] { outline-offset: -2px; -webkit-appearance: textfield; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-color-swatch-wrapper { padding: 0; } ::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; } output { display: inline-block; } summary { display: list-item; cursor: pointer; } template { display: none; } main { display: block; } [hidden] { display: none !important; } .zoom-in-top-enter { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); } .zoom-in-top-enter-active { opacity: 1; -webkit-transform: scaleY(1); transform: scaleY(1); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: center top; transform-origin: center top; } .zoom-in-top-exit { opacity: 1; } .zoom-in-top-exit-active { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: center top; transform-origin: center top; } .zoom-in-left-enter { opacity: 0; -webkit-transform: scale(0.45, 0.45); transform: scale(0.45, 0.45); } .zoom-in-left-enter-active { opacity: 1; -webkit-transform: scale(1, 1); transform: scale(1, 1); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: top left; transform-origin: top left; } .zoom-in-left-exit { opacity: 1; } .zoom-in-left-exit-active { opacity: 0; -webkit-transform: scale(0.45, 0.45); transform: scale(0.45, 0.45); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: top left; transform-origin: top left; } .zoom-in-right-enter { opacity: 0; -webkit-transform: scale(0.45, 0.45); transform: scale(0.45, 0.45); } .zoom-in-right-enter-active { opacity: 1; -webkit-transform: scale(1, 1); transform: scale(1, 1); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: top right; transform-origin: top right; } .zoom-in-right-exit { opacity: 1; } .zoom-in-right-exit-active { opacity: 0; -webkit-transform: scale(0.45, 0.45); transform: scale(0.45, 0.45); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: top right; transform-origin: top right; } .zoom-in-bottom-enter { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); } .zoom-in-bottom-enter-active { opacity: 1; -webkit-transform: scaleY(1); transform: scaleY(1); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: center bottom; transform-origin: center bottom; } .zoom-in-bottom-exit { opacity: 1; } .zoom-in-bottom-exit-active { opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms, -webkit-transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms; -webkit-transform-origin: center bottom; transform-origin: center bottom; } .btn { position: relative; display: inline-block; font-weight: 400; line-height: 1.5; color: #212529; white-space: nowrap; text-align: center; vertical-align: middle; background-image: none; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; border-radius: 0.25rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); cursor: pointer; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .btn.disabled, .btn[disabled] { cursor: not-allowed; opacity: 0.65; box-shadow: none; } .btn.disabled > *, .btn[disabled] > * { pointer-events: none; } .btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; } .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; } .btn-primary { color: #fff; background: #3c7eff; border-color: #3c7eff; } .btn-primary:hover { color: #fff; background: #6297ff; border-color: #6fa0ff; } .btn-primary:focus, .btn-primary.focus { color: #fff; background: #6297ff; border-color: #6fa0ff; } .btn-primary:disabled, .btn-primary.disabled { color: #fff; background: #3c7eff; border-color: #3c7eff; } .btn-danger { color: #fff; background: #f54e4e; border-color: #f54e4e; } .btn-danger:hover { color: #fff; background: #f77272; border-color: #f87e7e; } .btn-danger:focus, .btn-danger.focus { color: #fff; background: #f77272; border-color: #f87e7e; } .btn-danger:disabled, .btn-danger.disabled { color: #fff; background: #f54e4e; border-color: #f54e4e; } .btn-default { color: #212529; background: #fff; border-color: #ced4da; } .btn-default:hover { color: #3c7eff; background: #fff; border-color: #3c7eff; } .btn-default:focus, .btn-default.focus { color: #3c7eff; background: #fff; border-color: #3c7eff; } .btn-default:disabled, .btn-default.disabled { color: #212529; background: #fff; border-color: #ced4da; } .btn-link { font-weight: 400; color: #3c7eff; text-decoration: none; box-shadow: none; } .btn-link:hover { color: #0051ef; text-decoration: underline; } .btn-link:focus, .btn-link.focus { text-decoration: underline; box-shadow: none; } .btn-link:disabled, .btn-link.disabled { color: #6c757d; pointer-events: none; } .yrd-alert { position: relative; padding: 0.75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; } .yrd-alert .yrd-alert-close { position: absolute; top: 0; right: 0; padding: 0.75rem 1.25rem; color: inherit; cursor: pointer; } .yrd-alert .bold-title { font-weight: 700; } .yrd-alert .yrd-alert-desc { font-size: 0.875rem; margin: 0.3rem 0 0; } .yrd-alert-default { color: #fff; background: #3c7eff; border-color: #236dff; } .yrd-alert-success { color: #fff; background: #52c41a; border-color: #49ad17; } .yrd-alert-warning { color: #fff; background: #fadb14; border-color: #efd005; } .yrd-alert-danger { color: #fff; background: #f54e4e; border-color: #f43636; } .yrd-menu { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 30px; list-style: none; border-bottom: 1px solid #dee2e6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); } .yrd-menu > .menu-item { padding: 0.5rem 1rem; cursor: pointer; transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out; } .yrd-menu > .menu-item:hover, .yrd-menu > .menu-item:focus { text-decoration: none; } .yrd-menu > .menu-item.is-disabled { color: #6c757d; pointer-events: none; cursor: default; } .yrd-menu > .menu-item.is-active, .yrd-menu > .menu-item:hover { color: #3c7eff; border-bottom: 2px solid #3c7eff; } .yrd-menu .submenu-item { position: relative; } .yrd-menu .submenu-item .submenu-title { display: flex; align-items: center; } .yrd-menu .submenu-item .arrow-icon { transition: -webkit-transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out; margin-left: 3px; } .yrd-menu .submenu-item:hover .arrow-icon { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .yrd-menu .is-vertical .arrow-icon { -webkit-transform: rotate(0deg) !important; transform: rotate(0deg) !important; } .yrd-menu .is-vertical.is-opened .arrow-icon { -webkit-transform: rotate(180deg) !important; transform: rotate(180deg) !important; } .yrd-menu .yrd-submenu { list-style: none; padding-left: 0; white-space: nowrap; } .yrd-menu .yrd-submenu .menu-item { padding: 0.5rem 1rem; cursor: pointer; transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out; color: #212529; } .yrd-menu .yrd-submenu .menu-item.is-active, .yrd-menu .yrd-submenu .menu-item:hover { color: #3c7eff !important; } .menu-horizontal > .menu-item { border-bottom: 2px solid transparent; } .menu-horizontal .yrd-submenu { position: absolute; background: #fff; z-index: 100; top: calc(100% + 8px); left: 0; border: 1px solid #dee2e6; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); } .menu-vertical { flex-direction: column; border-bottom: 0px; margin: 10px 20px; border-right: 1px solid #dee2e6; } .menu-vertical > .menu-item { border-left: 2px solid transparent; } .menu-vertical > .menu-item.is-active, .menu-vertical > .menu-item:hover { border-bottom: 0px; border-left: 2px solid #3c7eff; } .yrd-tabs-nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; border-bottom: 1px solid #dee2e6; } .yrd-tabs-nav-item { display: block; padding: 0.5rem 1rem; cursor: pointer; } .yrd-tabs-nav-item:hover, .yrd-tabs-nav-item:focus { color: #3c7eff; } .yrd-tabs-nav-item.disabled { color: #6c757d; pointer-events: none; cursor: default; background-color: transparent; border-color: transparent; } .yrd-tabs-nav-item.is-active { color: #3c7eff; } .nav-line .yrd-tabs-nav-item.is-active { border-bottom: 2px solid #3c7eff; } .nav-card .yrd-tabs-nav-item { border: 1px solid transparent; margin-bottom: -1px; } .nav-card .yrd-tabs-nav-item.is-active { border-top-left-radius: 0.25rem; border-top-right-radius: 0.25rem; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; } .yrd-tabs-content { margin-top: 1rem; } .icon-primary { color: #3c7eff; } .icon-secondary { color: #6c757d; } .icon-success { color: #52c41a; } .icon-info { color: #17a2b8; } .icon-warning { color: #fadb14; } .icon-danger { color: #f54e4e; } .icon-light { color: #f8f9fa; } .icon-dark { color: #343a40; } .btn { position: relative; display: inline-block; font-weight: 400; line-height: 1.5; color: #212529; white-space: nowrap; text-align: center; vertical-align: middle; background-image: none; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; border-radius: 0.25rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075); cursor: pointer; transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .btn.disabled, .btn[disabled] { cursor: not-allowed; opacity: 0.65; box-shadow: none; } .btn.disabled > *, .btn[disabled] > * { pointer-events: none; } .btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; } .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; } .btn-primary { color: #fff; background: #3c7eff; border-color: #3c7eff; } .btn-primary:hover { color: #fff; background: #6297ff; border-color: #6fa0ff; } .btn-primary:focus, .btn-primary.focus { color: #fff; background: #6297ff; border-color: #6fa0ff; } .btn-primary:disabled, .btn-primary.disabled { color: #fff; background: #3c7eff; border-color: #3c7eff; } .btn-danger { color: #fff; background: #f54e4e; border-color: #f54e4e; } .btn-danger:hover { color: #fff; background: #f77272; border-color: #f87e7e; } .btn-danger:focus, .btn-danger.focus { color: #fff; background: #f77272; border-color: #f87e7e; } .btn-danger:disabled, .btn-danger.disabled { color: #fff; background: #f54e4e; border-color: #f54e4e; } .btn-default { color: #212529; background: #fff; border-color: #ced4da; } .btn-default:hover { color: #3c7eff; background: #fff; border-color: #3c7eff; } .btn-default:focus, .btn-default.focus { color: #3c7eff; background: #fff; border-color: #3c7eff; } .btn-default:disabled, .btn-default.disabled { color: #212529; background: #fff; border-color: #ced4da; } .btn-link { font-weight: 400; color: #3c7eff; text-decoration: none; box-shadow: none; } .btn-link:hover { color: #0051ef; text-decoration: underline; } .btn-link:focus, .btn-link.focus { text-decoration: underline; box-shadow: none; } .btn-link:disabled, .btn-link.disabled { color: #6c757d; pointer-events: none; } .yrd-input-wrapper { display: flex; width: 100%; margin-bottom: 30px; position: relative; } .yrd-input-wrapper .icon-wrapper { position: absolute; height: 100%; width: 35px; justify-content: center; color: #495057; right: 0; top: 0; display: flex; align-items: center; } .yrd-input-wrapper .icon-wrapper svg { color: #6c757d; } .icon-wrapper + .yrd-input-inner { padding-right: 35px; } .yrd-input-inner { width: 100%; padding: 0.375rem 0.75rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075); transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out; } .yrd-input-inner:focus { color: #495057; background-color: #fff; border-color: #bcd2ff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(60, 126, 255, 0.25); } .yrd-input-inner::-webkit-input-placeholder { color: #6c757d; opacity: 1; } .yrd-input-inner::placeholder { color: #6c757d; opacity: 1; } .yrd-input-inner:disabled, .yrd-input-inner[readonly] { background-color: #e9ecef; opacity: 1; } .yrd-input-group-prepend, .yrd-input-group-append { display: flex; align-items: center; padding: 0.375rem 0.75rem; margin-bottom: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; text-align: center; white-space: nowrap; background-color: #e9ecef; border: 1px solid #ced4da; border-radius: 0.25rem; } .yrd-input-group-append + .btn { padding: 0; border: 0; } .input-group > .yrd-input-group-prepend, .input-group.input-group-append > .yrd-input-inner { border-top-right-radius: 0; border-bottom-right-radius: 0; } .input-group > .yrd-input-group-append, .input-group.input-group-prepend > .yrd-input-inner { border-top-left-radius: 0; border-bottom-left-radius: 0; } .input-size-sm .yrd-input-inner { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; } .input-size-lg .yrd-input-inner { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; } .yrd-auto-complete { position: relative; } .yrd-suggestion-list { list-style: none; padding-left: 0; white-space: nowrap; position: absolute; background: #fff; z-index: 100; top: calc(100% + 8px); left: 0; border: 1px solid #dee2e6; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); width: 100%; } .yrd-suggestion-list .suggstions-loading-icon { display: flex; align-items: center; justify-content: center; min-height: 75px; } .yrd-suggestion-list .suggestion-item { padding: 0.5rem 1rem; cursor: pointer; transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out; color: #212529; } .yrd-suggestion-list .suggestion-item.is-active { background: #3c7eff !important; color: #fff !important; } .yrd-suggestion-list .suggestion-item:hover { color: #3c7eff !important; } .yrd-select { position: relative; } .yrd-select .yrd-input-wrapper { cursor: pointer; } .yrd-select .yrd-input-wrapper:hover input { border-color: #3c7eff !important; } .yrd-select input[readonly] { background-color: #fff; border-color: #ced4da; cursor: pointer; opacity: 1; } .yrd-select input:disabled { background-color: #e9ecef; opacity: 1; cursor: not-allowed; } .yrd-select .icon-wrapper { transition: -webkit-transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out; -webkit-transform: rotate(0deg) !important; transform: rotate(0deg) !important; } .yrd-select.menu-is-open .icon-wrapper { -webkit-transform: rotate(180deg) !important; transform: rotate(180deg) !important; } .yrd-select-dropdown { list-style: none; padding-left: 0; white-space: nowrap; position: absolute; background: #fff; z-index: 100; top: calc(100% + 8px); left: 0; border: 1px solid #dee2e6; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04); width: 100%; } .yrd-select-dropdown .yrd-select-item { padding: 0.5rem 1rem; cursor: pointer; transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out; color: #212529; display: flex; align-items: center; justify-content: space-between; } .yrd-select-dropdown .yrd-select-item.is-selected { color: #3c7eff; font-weight: 700; } .yrd-select-dropdown .yrd-select-item.is-disabled { color: #6c757d; pointer-events: none; cursor: default; } .yrd-select-dropdown .yrd-select-item:hover { background-color: rgba(60, 126, 255, 0.1); } .yrd-selected-tags { position: absolute; z-index: 100; top: 0; left: 0; height: 100%; max-width: 100%; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; } .yrd-selected-tags .yrd-tag { height: 80%; padding: 2px 5px; box-sizing: border-box; border: 1px solid rgba(60, 126, 255, 0.2); margin-left: 6px; border-radius: 3px; color: #3c7eff; background-color: rgba(60, 126, 255, 0.1); } .yrd-selected-tags .yrd-icon { margin-left: 3px; cursor: pointer; } .yrd-selected-tags .yrd-icon:hover { color: #095cff; } .yrd-upload-list { margin: 0; padding: 0; list-style-type: none; } .yrd-uploader-dragger { background: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 4px; cursor: pointer; padding: 20px; width: 360px; height: 180px; text-align: center; } .yrd-uploader-dragger:hover { border: 1px dashed #3c7eff; } .yrd-uploader-dragger.is-dragover { border: 2px dashed #3c7eff; background: rgba(60, 126, 255, 0.2); } .yrd-upload-list-item { transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1); font-size: 14px; line-height: 1.8; margin-top: 5px; box-sizing: border-box; border-radius: 4px; min-width: 200px; position: relative; } .yrd-upload-list-item:first-child { margin-top: 10px; } .yrd-upload-list-item .file-name { margin-left: 5px; margin-right: 40px; } .yrd-upload-list-item .file-name svg { margin-right: 5px; color: #adb5bd; } .yrd-upload-list-item .file-name-error { color: #f54e4e; } .yrd-upload-list-item .file-name-error svg { color: #f54e4e; } .yrd-upload-list-item .file-status { display: block; position: absolute; right: 5px; top: 0; line-height: inherit; } .yrd-upload-list-item .file-actions { display: none; position: absolute; right: 7px; top: 0; line-height: inherit; cursor: pointer; } .yrd-upload-list-item:hover { background-color: #e9ecef; } .yrd-upload-list-item:hover .file-status { display: none; } .yrd-upload-list-item:hover .file-actions { display: block; } .yrd-progress-bar { width: 100%; box-sizing: border-box; } .yrd-progress-bar .yrd-progress-bar-outer { border-radius: 0.25rem; background-color: #e9ecef; overflow: hidden; position: relative; } .yrd-progress-bar .yrd-progress-bar-inner { position: absolute; left: 0; top: 0; display: flex; justify-content: flex-end; align-items: center; height: 100%; border-radius: 0.25rem; line-height: 1; transition: width 0.6s ease; } .yrd-progress-bar .yrd-progress-bar-inner .inner-text { color: #fff; font-size: 0.75rem; margin: 0 5px; } .yrd-progress-bar .color-primary { background-color: #3c7eff; } .yrd-progress-bar .color-secondary { background-color: #6c757d; } .yrd-progress-bar .color-success { background-color: #52c41a; } .yrd-progress-bar .color-info { background-color: #17a2b8; } .yrd-progress-bar .color-warning { background-color: #fadb14; } .yrd-progress-bar .color-danger { background-color: #f54e4e; } .yrd-progress-bar .color-light { background-color: #f8f9fa; } .yrd-progress-bar .color-dark { background-color: #343a40; } .yrd-form .yrd-row { display: flex; align-items: center; margin-bottom: 25px; } .yrd-form .yrd-row.yrd-row-no-label { flex-direction: row-reverse; } .yrd-form .yrd-row .yrd-form-item-label { flex-basis: 30%; text-align: right; padding-right: 20px; } .yrd-form .yrd-row .yrd-form-item-label > label { margin-bottom: 0; } .yrd-form .yrd-row .yrd-form-item-label > label.yrd-form-item-required:before { display: inline-block; margin-right: 4px; color: #f54e4e; font-size: 14px; font-family: SimSun, sans-serif; line-height: 1; content: "*"; } .yrd-form .yrd-row .yrd-form-item { flex-basis: 70%; position: relative; } .yrd-form .yrd-row .yrd-form-item .yrd-input-wrapper { margin-bottom: 0; } .yrd-form .yrd-row .yrd-form-item .yrd-form-item-has-error.yrd-form-item-control .yrd-input-inner { border: 1px solid #f54e4e; } .yrd-form .yrd-row .yrd-form-item .yrd-form-item-has-error.yrd-form-item-control .yrd-input-inner:focus { box-shadow: 0 0 0 0.2rem rgba(245, 78, 78, 0.25); } .yrd-form .yrd-row .yrd-form-item .yrd-form-item-explain { position: absolute; bottom: -25px; left: 0; line-height: 25px; color: #f54e4e; min-width: 100px; } .yrd-form .yrd-form-submit-area { display: flex; align-items: center; justify-content: center; }