antd
Version:
An enterprise-class UI design language and React components implementation
370 lines (369 loc) • 8.71 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-typography {
color: rgba(0, 0, 0, 0.85);
word-break: break-word;
}
.ant-typography.ant-typography-secondary {
color: rgba(0, 0, 0, 0.45);
}
.ant-typography.ant-typography-success {
color: #52c41a;
}
.ant-typography.ant-typography-warning {
color: #faad14;
}
.ant-typography.ant-typography-danger {
color: #ff4d4f;
}
a.ant-typography.ant-typography-danger:active,
a.ant-typography.ant-typography-danger:focus {
color: #d9363e;
}
a.ant-typography.ant-typography-danger:hover {
color: #ff7875;
}
.ant-typography.ant-typography-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div.ant-typography,
.ant-typography p {
margin-bottom: 1em;
}
h1.ant-typography,
div.ant-typography-h1,
div.ant-typography-h1 > textarea,
.ant-typography h1 {
margin-bottom: 0.5em;
color: rgba(0, 0, 0, 0.85);
font-weight: 600;
font-size: 38px;
line-height: 1.23;
}
h2.ant-typography,
div.ant-typography-h2,
div.ant-typography-h2 > textarea,
.ant-typography h2 {
margin-bottom: 0.5em;
color: rgba(0, 0, 0, 0.85);
font-weight: 600;
font-size: 30px;
line-height: 1.35;
}
h3.ant-typography,
div.ant-typography-h3,
div.ant-typography-h3 > textarea,
.ant-typography h3 {
margin-bottom: 0.5em;
color: rgba(0, 0, 0, 0.85);
font-weight: 600;
font-size: 24px;
line-height: 1.35;
}
h4.ant-typography,
div.ant-typography-h4,
div.ant-typography-h4 > textarea,
.ant-typography h4 {
margin-bottom: 0.5em;
color: rgba(0, 0, 0, 0.85);
font-weight: 600;
font-size: 20px;
line-height: 1.4;
}
h5.ant-typography,
div.ant-typography-h5,
div.ant-typography-h5 > textarea,
.ant-typography h5 {
margin-bottom: 0.5em;
color: rgba(0, 0, 0, 0.85);
font-weight: 600;
font-size: 16px;
line-height: 1.5;
}
.ant-typography + h1.ant-typography,
.ant-typography + h2.ant-typography,
.ant-typography + h3.ant-typography,
.ant-typography + h4.ant-typography,
.ant-typography + h5.ant-typography {
margin-top: 1.2em;
}
.ant-typography div + h1,
.ant-typography ul + h1,
.ant-typography li + h1,
.ant-typography p + h1,
.ant-typography h1 + h1,
.ant-typography h2 + h1,
.ant-typography h3 + h1,
.ant-typography h4 + h1,
.ant-typography h5 + h1,
.ant-typography div + h2,
.ant-typography ul + h2,
.ant-typography li + h2,
.ant-typography p + h2,
.ant-typography h1 + h2,
.ant-typography h2 + h2,
.ant-typography h3 + h2,
.ant-typography h4 + h2,
.ant-typography h5 + h2,
.ant-typography div + h3,
.ant-typography ul + h3,
.ant-typography li + h3,
.ant-typography p + h3,
.ant-typography h1 + h3,
.ant-typography h2 + h3,
.ant-typography h3 + h3,
.ant-typography h4 + h3,
.ant-typography h5 + h3,
.ant-typography div + h4,
.ant-typography ul + h4,
.ant-typography li + h4,
.ant-typography p + h4,
.ant-typography h1 + h4,
.ant-typography h2 + h4,
.ant-typography h3 + h4,
.ant-typography h4 + h4,
.ant-typography h5 + h4,
.ant-typography div + h5,
.ant-typography ul + h5,
.ant-typography li + h5,
.ant-typography p + h5,
.ant-typography h1 + h5,
.ant-typography h2 + h5,
.ant-typography h3 + h5,
.ant-typography h4 + h5,
.ant-typography h5 + h5 {
margin-top: 1.2em;
}
a.ant-typography-ellipsis,
span.ant-typography-ellipsis {
display: inline-block;
max-width: 100%;
}
a.ant-typography,
.ant-typography a {
color: #1890ff;
outline: none;
cursor: pointer;
transition: color 0.3s;
text-decoration: none;
}
a.ant-typography:focus-visible,
.ant-typography a:focus-visible,
a.ant-typography:hover,
.ant-typography a:hover {
color: #40a9ff;
}
a.ant-typography:active,
.ant-typography a:active {
color: #096dd9;
}
a.ant-typography:active,
.ant-typography a:active,
a.ant-typography:hover,
.ant-typography a:hover {
text-decoration: none;
}
a.ant-typography[disabled],
.ant-typography a[disabled],
a.ant-typography.ant-typography-disabled,
.ant-typography a.ant-typography-disabled {
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
}
a.ant-typography[disabled]:active,
.ant-typography a[disabled]:active,
a.ant-typography.ant-typography-disabled:active,
.ant-typography a.ant-typography-disabled:active,
a.ant-typography[disabled]:hover,
.ant-typography a[disabled]:hover,
a.ant-typography.ant-typography-disabled:hover,
.ant-typography a.ant-typography-disabled:hover {
color: rgba(0, 0, 0, 0.25);
}
a.ant-typography[disabled]:active,
.ant-typography a[disabled]:active,
a.ant-typography.ant-typography-disabled:active,
.ant-typography a.ant-typography-disabled:active {
pointer-events: none;
}
.ant-typography code {
margin: 0 0.2em;
padding: 0.2em 0.4em 0.1em;
font-size: 85%;
background: rgba(150, 150, 150, 0.1);
border: 1px solid rgba(100, 100, 100, 0.2);
border-radius: 3px;
}
.ant-typography kbd {
margin: 0 0.2em;
padding: 0.15em 0.4em 0.1em;
font-size: 90%;
background: rgba(150, 150, 150, 0.06);
border: 1px solid rgba(100, 100, 100, 0.2);
border-bottom-width: 2px;
border-radius: 3px;
}
.ant-typography mark {
padding: 0;
background-color: #ffe58f;
}
.ant-typography u,
.ant-typography ins {
text-decoration: underline;
-webkit-text-decoration-skip: ink;
text-decoration-skip-ink: auto;
}
.ant-typography s,
.ant-typography del {
text-decoration: line-through;
}
.ant-typography strong {
font-weight: 600;
}
.ant-typography-expand,
.ant-typography-edit,
.ant-typography-copy {
color: #1890ff;
outline: none;
cursor: pointer;
transition: color 0.3s;
margin-left: 4px;
}
.ant-typography-expand:focus-visible,
.ant-typography-edit:focus-visible,
.ant-typography-copy:focus-visible,
.ant-typography-expand:hover,
.ant-typography-edit:hover,
.ant-typography-copy:hover {
color: #40a9ff;
}
.ant-typography-expand:active,
.ant-typography-edit:active,
.ant-typography-copy:active {
color: #096dd9;
}
.ant-typography-copy-success,
.ant-typography-copy-success:hover,
.ant-typography-copy-success:focus {
color: #52c41a;
}
.ant-typography-edit-content {
position: relative;
}
div.ant-typography-edit-content {
left: -12px;
margin-top: -5px;
margin-bottom: calc(1em - 4px - 1px);
}
.ant-typography-edit-content-confirm {
position: absolute;
right: 10px;
bottom: 8px;
color: rgba(0, 0, 0, 0.45);
font-weight: normal;
font-size: 14px;
font-style: normal;
pointer-events: none;
}
.ant-typography-edit-content textarea {
height: 1em;
margin: 0 ;
/* stylelint-disable-next-line property-no-vendor-prefix */
-moz-transition: none;
}
.ant-typography ul,
.ant-typography ol {
margin: 0 0 1em;
padding: 0;
}
.ant-typography ul li,
.ant-typography ol li {
margin: 0 0 0 20px;
padding: 0 0 0 4px;
}
.ant-typography ul {
list-style-type: circle;
}
.ant-typography ul ul {
list-style-type: disc;
}
.ant-typography ol {
list-style-type: decimal;
}
.ant-typography pre,
.ant-typography blockquote {
margin: 1em 0;
}
.ant-typography pre {
padding: 0.4em 0.6em;
white-space: pre-wrap;
word-wrap: break-word;
background: rgba(150, 150, 150, 0.1);
border: 1px solid rgba(100, 100, 100, 0.2);
border-radius: 3px;
}
.ant-typography pre code {
display: inline;
margin: 0;
padding: 0;
font-size: inherit;
font-family: inherit;
background: transparent;
border: 0;
}
.ant-typography blockquote {
padding: 0 0 0 0.6em;
border-left: 4px solid rgba(100, 100, 100, 0.2);
opacity: 0.85;
}
.ant-typography-single-line {
white-space: nowrap;
}
.ant-typography-ellipsis-single-line {
overflow: hidden;
text-overflow: ellipsis;
}
a.ant-typography-ellipsis-single-line,
span.ant-typography-ellipsis-single-line {
vertical-align: bottom;
}
.ant-typography-ellipsis-multiple-line {
/* stylelint-disable-next-line value-no-vendor-prefix */
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 3;
/*! autoprefixer: ignore next */
-webkit-box-orient: vertical;
}
.ant-typography-rtl {
direction: rtl;
}
.ant-typography-rtl .ant-typography-expand,
.ant-typography-rtl .ant-typography-edit,
.ant-typography-rtl .ant-typography-copy {
margin-right: 4px;
margin-left: 0;
}
.ant-typography-rtl .ant-typography-expand {
float: left;
}
div.ant-typography-edit-content.ant-typography-rtl {
right: -12px;
left: auto;
}
.ant-typography-rtl .ant-typography-edit-content-confirm {
right: auto;
left: 10px;
}
.ant-typography-rtl.ant-typography ul li,
.ant-typography-rtl.ant-typography ol li {
margin: 0 20px 0 0;
padding: 0 4px 0 0;
}