2020-03-05 12:17:50 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@typography-prefix-cls: ~'@{ant-prefix}-typography';
|
|
|
|
|
|
|
|
// =============== Basic ===============
|
|
|
|
.@{typography-prefix-cls} {
|
|
|
|
color: @text-color;
|
|
|
|
|
|
|
|
&&-secondary {
|
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-warning {
|
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-danger {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-disabled {
|
|
|
|
color: @disabled-color;
|
|
|
|
cursor: not-allowed;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tag
|
|
|
|
div&,
|
|
|
|
p {
|
|
|
|
.typography-paragraph();
|
|
|
|
}
|
|
|
|
|
|
|
|
h1&,
|
|
|
|
h1 {
|
|
|
|
.typography-title-1();
|
|
|
|
}
|
|
|
|
h2&,
|
|
|
|
h2 {
|
|
|
|
.typography-title-2();
|
|
|
|
}
|
|
|
|
h3&,
|
|
|
|
h3 {
|
|
|
|
.typography-title-3();
|
|
|
|
}
|
|
|
|
h4&,
|
|
|
|
h4 {
|
|
|
|
.typography-title-4();
|
|
|
|
}
|
|
|
|
|
|
|
|
h1&,
|
|
|
|
h2&,
|
|
|
|
h3&,
|
|
|
|
h4& {
|
|
|
|
.@{typography-prefix-cls} + & {
|
|
|
|
margin-top: @typography-title-margin-top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div,
|
|
|
|
ul,
|
|
|
|
li,
|
|
|
|
p,
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
+ h1,
|
|
|
|
+ h2,
|
|
|
|
+ h3,
|
|
|
|
+ h4 {
|
|
|
|
margin-top: @typography-title-margin-top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-31 16:00:40 +08:00
|
|
|
a&-ellipsis,
|
2020-03-05 12:17:50 +08:00
|
|
|
span&-ellipsis {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2020-05-31 16:00:40 +08:00
|
|
|
a&,
|
2020-03-05 12:17:50 +08:00
|
|
|
a {
|
|
|
|
.operation-unit();
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:hover {
|
|
|
|
text-decoration: @link-hover-decoration;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
color: @disabled-color;
|
|
|
|
cursor: not-allowed;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
margin: 0 0.2em;
|
|
|
|
padding: 0.2em 0.4em 0.1em;
|
|
|
|
font-size: 85%;
|
2020-05-31 16:00:40 +08:00
|
|
|
background: rgba(150, 150, 150, 0.1);
|
|
|
|
border: 1px solid rgba(100, 100, 100, 0.2);
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
2020-03-05 12:17:50 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
mark {
|
|
|
|
padding: 0;
|
|
|
|
background-color: @gold-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
u,
|
|
|
|
ins {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-skip-ink: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
s,
|
|
|
|
del {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
|
|
|
|
strong {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Operation
|
|
|
|
&-expand,
|
|
|
|
&-edit,
|
|
|
|
&-copy {
|
|
|
|
.operation-unit();
|
|
|
|
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-copy-success {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: @success-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Text input area
|
|
|
|
&-edit-content {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
div& {
|
|
|
|
left: -@input-padding-horizontal - 1px;
|
|
|
|
margin-top: -@input-padding-vertical-base - 1px;
|
|
|
|
// stylelint-disable-next-line function-calc-no-invalid
|
|
|
|
margin-bottom: calc(1em - @input-padding-vertical-base - 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-confirm {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
bottom: 8px;
|
|
|
|
color: @text-color-secondary;
|
|
|
|
pointer-events: none;
|
2020-03-08 15:12:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Fix Editable Textarea flash in Firefox
|
|
|
|
textarea {
|
|
|
|
-moz-transition: none;
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// list
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 0 0 1em 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0 0 0 20px;
|
|
|
|
padding: 0 0 0 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-23 13:51:37 +08:00
|
|
|
ul {
|
2020-03-05 12:17:50 +08:00
|
|
|
list-style-type: circle;
|
|
|
|
|
2020-03-23 13:51:37 +08:00
|
|
|
ul {
|
2020-03-05 12:17:50 +08:00
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-23 13:51:37 +08:00
|
|
|
ol {
|
2020-03-05 12:17:50 +08:00
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============ Ellipsis ============
|
|
|
|
&-ellipsis-single-line {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2020-04-06 17:35:04 +08:00
|
|
|
|
|
|
|
// https://blog.csdn.net/iefreer/article/details/50421025
|
2020-05-31 16:00:40 +08:00
|
|
|
a&,
|
2020-04-06 17:35:04 +08:00
|
|
|
span& {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2020-03-05 12:17:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-ellipsis-multiple-line {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
/*! autoprefixer: ignore next */
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2020-03-23 13:51:37 +08:00
|
|
|
|
|
|
|
@import './rtl';
|