2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2019-02-19 11:42:05 +08:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@typography-prefix-cls: ~'@{ant-prefix}-typography';
|
|
|
|
|
|
|
|
// =============== Basic ===============
|
|
|
|
.@{typography-prefix-cls} {
|
|
|
|
color: @text-color;
|
|
|
|
|
2019-04-24 15:03:03 +08:00
|
|
|
&&-secondary {
|
2019-02-19 11:42:05 +08:00
|
|
|
color: @text-color-secondary;
|
|
|
|
}
|
|
|
|
|
2019-04-24 15:03:03 +08:00
|
|
|
&&-warning {
|
2019-05-29 19:19:32 +08:00
|
|
|
color: @warning-color;
|
2019-02-19 11:42:05 +08:00
|
|
|
}
|
|
|
|
|
2019-04-24 15:03:03 +08:00
|
|
|
&&-danger {
|
2019-05-29 19:19:32 +08:00
|
|
|
color: @error-color;
|
2019-02-19 11:42:05 +08:00
|
|
|
}
|
|
|
|
|
2019-04-24 15:03:03 +08:00
|
|
|
&&-disabled {
|
2019-02-19 11:42:05 +08:00
|
|
|
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-11 14:28:57 +08:00
|
|
|
a&-ellipsis,
|
2019-02-19 11:42:05 +08:00
|
|
|
span&-ellipsis {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2020-05-11 14:28:57 +08:00
|
|
|
a&,
|
2019-02-19 11:42:05 +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-16 14:43:29 +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;
|
2019-02-19 11:42:05 +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;
|
|
|
|
|
2019-03-11 16:00:12 +08:00
|
|
|
div& {
|
|
|
|
left: -@input-padding-horizontal - 1px;
|
|
|
|
margin-top: -@input-padding-vertical-base - 1px;
|
2019-09-16 20:38:20 +08:00
|
|
|
// stylelint-disable-next-line function-calc-no-invalid
|
2019-03-11 16:00:12 +08:00
|
|
|
margin-bottom: calc(1em - @input-padding-vertical-base - 2px);
|
|
|
|
}
|
|
|
|
|
2019-02-19 11:42:05 +08:00
|
|
|
&-confirm {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
bottom: 8px;
|
|
|
|
color: @text-color-secondary;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2019-12-06 11:45:40 +08:00
|
|
|
|
|
|
|
// Fix Editable Textarea flash in Firefox
|
|
|
|
textarea {
|
|
|
|
-moz-transition: none;
|
|
|
|
}
|
2019-02-19 11:42:05 +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-17 11:30:16 +08:00
|
|
|
ul {
|
2019-02-19 11:42:05 +08:00
|
|
|
list-style-type: circle;
|
|
|
|
|
2020-03-17 11:30:16 +08:00
|
|
|
ul {
|
2019-02-19 11:42:05 +08:00
|
|
|
list-style-type: disc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-17 11:30:16 +08:00
|
|
|
ol {
|
2019-02-19 11:42:05 +08:00
|
|
|
list-style-type: decimal;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============ Ellipsis ============
|
|
|
|
&-ellipsis-single-line {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2020-04-01 23:31:22 +08:00
|
|
|
|
|
|
|
// https://blog.csdn.net/iefreer/article/details/50421025
|
2020-05-11 14:28:57 +08:00
|
|
|
a&,
|
2020-04-01 23:31:22 +08:00
|
|
|
span& {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2019-02-19 11:42:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-ellipsis-multiple-line {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
/*! autoprefixer: ignore next */
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|