yantd
Version:
React component library
657 lines (577 loc) • 14.2 kB
CSS
/* @primary-color: @blue-6;
@info-color: @primary-color;
@success-color: @green-6;
@processing-color: @blue-6;
@error-color: @red-5;
@highlight-color: @red-5;
@warning-color: @gold-6;
@normal-color: #d9d9d9;
@white: #fff;
@black: #000; */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
*,
*::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: 14px;
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 ; }
hr {
margin: 1rem 0;
color: inherit;
background-color: currentColor;
border: 0;
opacity: 0.25; }
hr:not([size]) {
height: 1px; }
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 500;
line-height: 1.2; }
h1 {
font-size: 35px; }
h2 {
font-size: 28px; }
h3 {
font-size: 24.5px; }
h4 {
font-size: 21px; }
h5 {
font-size: 17.5px; }
h6 {
font-size: 14px; }
p {
margin-top: 0;
margin-bottom: 1rem; }
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
text-decoration: underline dotted;
cursor: help;
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: .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: -.25em; }
sup {
top: -.5em; }
a {
color: #0d6efd;
text-decoration: none; }
a:hover {
color: #024dbc;
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: .5rem;
padding-bottom: .5rem;
color: #6c757d;
text-align: left;
caption-side: bottom; }
th {
text-align: inherit; }
label {
display: inline-block;
margin-bottom: .5rem; }
button {
border-radius: 0; }
button:focus {
outline: none; }
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 ; }
/* @primary-color: @blue-6;
@info-color: @primary-color;
@success-color: @green-6;
@processing-color: @blue-6;
@error-color: @red-5;
@highlight-color: @red-5;
@warning-color: @gold-6;
@normal-color: #d9d9d9;
@white: #fff;
@black: #000; */
/* @primary-color: @blue-6;
@info-color: @primary-color;
@success-color: @green-6;
@processing-color: @blue-6;
@error-color: @red-5;
@highlight-color: @red-5;
@warning-color: @gold-6;
@normal-color: #d9d9d9;
@white: #fff;
@black: #000; */
.yant-btn {
position: relative;
display: inline-block;
font-weight: 400;
line-height: 1.5;
color: #212529;
white-space: normal;
text-align: center;
vertical-align: middle;
background-image: none;
border: 1px solid transparent;
padding: 0.375rem 0.75rem;
font-size: 14px;
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; }
.yant-btn.disabled, .yant-btn[disabled] {
cursor: not-allowed;
opacity: 0.65;
box-shadow: none; }
.yant-btn.disabled > *, .yant-btn[disabled] > * {
pointer-events: none; }
.yant-btn-lg {
padding: 0.5rem 1rem;
font-size: 17.5px;
border-radius: 0.3rem; }
.yant-btn-sm {
padding: 0.25rem 0.5rem;
font-size: 12.25px;
border-radius: 0.2rem; }
.yant-btn-primary {
color: #fff;
background: #0d6efd;
border-color: #0d6efd; }
.yant-btn-primary:hover {
color: #fff;
background: #3385fd;
border-color: #408cfd; }
.yant-btn-primary:focus, .yant-btn-primary.focus {
color: #fff;
background: #3385fd;
border-color: #408cfd; }
.yant-btn-primary:disabled, .yant-btn-primary.disabled {
color: #fff;
background: #0d6efd;
border-color: #0d6efd; }
.yant-btn-dashed {
color: #212529;
background: #fff;
border-color: #ced4da;
border-style: dashed; }
.yant-btn-dashed:hover {
color: #0d6efd;
background: #fff;
border-color: #0d6efd; }
.yant-btn-dashed:focus, .yant-btn-dashed.focus {
color: #0d6efd;
background: #fff;
border-color: #0d6efd; }
.yant-btn-dashed:disabled, .yant-btn-dashed.disabled {
color: #212529;
background: #fff;
border-color: #ced4da; }
.yant-btn-danger {
color: #fff;
background: #dc3545;
border-color: #dc3545; }
.yant-btn-danger:hover {
color: #fff;
background: #e25663;
border-color: #e4606d; }
.yant-btn-danger:focus, .yant-btn-danger.focus {
color: #fff;
background: #e25663;
border-color: #e4606d; }
.yant-btn-danger:disabled, .yant-btn-danger.disabled {
color: #fff;
background: #dc3545;
border-color: #dc3545; }
.yant-btn-default {
color: #212529;
background: #fff;
border-color: #ced4da; }
.yant-btn-default:hover {
color: #0d6efd;
background: #fff;
border-color: #0d6efd; }
.yant-btn-default:focus, .yant-btn-default.focus {
color: #0d6efd;
background: #fff;
border-color: #0d6efd; }
.yant-btn-default:disabled, .yant-btn-default.disabled {
color: #212529;
background: #fff;
border-color: #ced4da; }
.yant-btn-link {
font-weight: 400;
color: #0d6efd;
text-decoration: none;
box-shadow: none;
background: transparent; }
.yant-btn-link.hover {
color: #024dbc;
text-decoration: underline; }
.yant-btn-link.focus, .yant-btn-link[focus] {
text-decoration: underline;
box-shadow: none; }
.yant-btn-text {
border: none;
background: none; }
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; }
.anticon > * {
line-height: 1; }
.anticon svg {
display: inline-block; }
.anticon::before {
display: none; }
.anticon .anticon-icon {
display: block; }
.anticon[tabindex] {
cursor: pointer; }
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear; }
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg); } }
/* @primary-color: @blue-6;
@info-color: @primary-color;
@success-color: @green-6;
@processing-color: @blue-6;
@error-color: @red-5;
@highlight-color: @red-5;
@warning-color: @gold-6;
@normal-color: #d9d9d9;
@white: #fff;
@black: #000; */
/* @primary-color: @blue-6;
@info-color: @primary-color;
@success-color: @green-6;
@processing-color: @blue-6;
@error-color: @red-5;
@highlight-color: @red-5;
@warning-color: @gold-6;
@normal-color: #d9d9d9;
@white: #fff;
@black: #000; */
.yant-spin {
box-sizing: border-box;
margin: 0;
padding: 0;
color: fade(#000, 85%);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
font-feature-settings: "tnum";
position: absolute;
display: none;
color: #0d6efd;
text-align: center;
vertical-align: middle;
opacity: 0;
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86); }
.yant-spin-spinning {
position: static;
display: inline-block;
opacity: 1; }
.yant-spin-nested-loading {
position: relative; }
.yant-spin-nested-loading > div > .yant-spin {
position: absolute;
top: 0;
left: 0;
z-index: 4;
display: block;
width: 100%;
height: 100%;
max-height: 400px; }
.yant-spin-nested-loading > div > .yant-spin .yant-spin-dot {
position: absolute;
top: 50%;
left: 50%;
margin: -10px; }
.yant-spin-nested-loading > div > .yant-spin .yant-spin-text {
position: absolute;
top: 50%;
width: 100%;
padding-top: 5px;
text-shadow: 0 1px 2px #fff; }
.yant-spin-nested-loading > div > .yant-spin.yant-spin-show-text .yant-spin-dot {
margin-top: -20px; }
.yant-spin-nested-loading > div > .yant-spin-sm .yant-spin-dot {
margin: -7px; }
.yant-spin-nested-loading > div > .yant-spin-sm .yant-spin-text {
padding-top: 2px; }
.yant-spin-nested-loading > div > .yant-spin-sm.yant-spin-show-text .yant-spin-dot {
margin-top: -17px; }
.yant-spin-nested-loading > div > .yant-spin-lg .yant-spin-dot {
margin: -16px; }
.yant-spin-nested-loading > div > .yant-spin-lg .yant-spin-text {
padding-top: 11px; }
.yant-spin-nested-loading > div > .yant-spin-lg.yant-spin-show-text .yant-spin-dot {
margin-top: -26px; }
.yant-spin-container {
position: relative;
transition: opacity 0.3s; }
.yant-spin-container::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
display: 'none';
width: 100%;
height: 100%;
background: #fff;
opacity: 0;
transition: all 0.3s;
content: '';
pointer-events: none; }
.yant-spin-blur {
clear: both;
overflow: hidden;
opacity: 0.5;
user-select: none;
pointer-events: none; }
.yant-spin-blur::after {
opacity: 0.4;
pointer-events: auto; }
.yant-spin-tip {
color: fade(#000, 45%); }
.yant-spin-dot {
position: relative;
display: inline-block;
font-size: 20px;
width: 1em;
height: 1em; }
.yant-spin-dot-item {
position: absolute;
display: block;
width: 9px;
height: 9px;
background-color: #0d6efd;
border-radius: 100%;
transform: scale(0.75);
transform-origin: 50% 50%;
opacity: 0.3;
animation: antSpinMove 1s infinite linear alternate; }
.yant-spin-dot-item:nth-child(1) {
top: 0;
left: 0; }
.yant-spin-dot-item:nth-child(2) {
top: 0;
right: 0;
animation-delay: 0.4s; }
.yant-spin-dot-item:nth-child(3) {
right: 0;
bottom: 0;
animation-delay: 0.8s; }
.yant-spin-dot-item:nth-child(4) {
bottom: 0;
left: 0;
animation-delay: 1.2s; }
.yant-spin-dot-spin {
transform: rotate(45deg);
animation: antRotate 1.2s infinite linear; }
.yant-spin-sm .yant-spin-dot {
font-size: 14px; }
.yant-spin-sm .yant-spin-dot i {
width: 6px;
height: 6px; }
.yant-spin-lg .yant-spin-dot {
font-size: 32px; }
.yant-spin-lg .yant-spin-dot i {
width: 14px;
height: 14px; }
.yant-spin-show-text .yant-spin-text {
display: block; }
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ */
.yant-spin-blur {
background: #fff;
opacity: 0.5; } }
@keyframes antSpinMove {
to {
opacity: 1; } }
@keyframes antRotate {
to {
transform: rotate(405deg); } }
.yant-spin-rtl {
direction: rtl; }
.yant-spin-rtl .yant-spin-dot-spin {
transform: rotate(-45deg);
animation-name: antRotateRtl; }
@keyframes antRotateRtl {
to {
transform: rotate(-405deg); } }