2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}Card {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-bg);
|
|
|
|
border: var(--Card-borderWidth) solid var(--Card-borderColor);
|
|
|
|
border-radius: var(--Card-borderRadius);
|
|
|
|
margin-bottom: var(--gap-base);
|
2019-12-06 09:58:08 +08:00
|
|
|
position: relative;
|
2019-12-24 11:25:55 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2021-10-11 15:57:46 +08:00
|
|
|
&--link {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-title {
|
2021-12-07 20:46:41 +08:00
|
|
|
color: var(--text-color);
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--fontSizeMd);
|
2021-12-07 20:46:41 +08:00
|
|
|
font-weight: var(--fontWeightMd);
|
2019-12-06 09:58:08 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-subTitle {
|
2019-12-24 11:25:55 +08:00
|
|
|
// white-space: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
max-height: calc(var(--fontSizeBase) * var(--lineHeightBase) * 2);
|
2019-12-06 09:58:08 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2019-12-24 11:25:55 +08:00
|
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
display: -webkit-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title + &-subTitle {
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-top: var(--gap-xs);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-dragBtn {
|
2021-12-07 20:46:41 +08:00
|
|
|
display: inline-block;
|
2019-12-06 09:58:08 +08:00
|
|
|
cursor: pointer;
|
2021-12-07 20:46:41 +08:00
|
|
|
padding: 0 var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-heading {
|
2021-11-11 11:46:37 +08:00
|
|
|
display: flex;
|
2021-12-07 20:46:41 +08:00
|
|
|
padding: var(--gap-md);
|
2019-12-24 11:25:55 +08:00
|
|
|
flex: 1 0 auto;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-avtar {
|
|
|
|
float: left;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
2019-12-06 09:58:08 +08:00
|
|
|
max-width: px2rem(200px);
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-05 20:36:07 +08:00
|
|
|
&-avtarText {
|
2021-12-01 10:09:24 +08:00
|
|
|
flex-shrink: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--primary);
|
|
|
|
color: var(--white);
|
2020-03-05 20:36:07 +08:00
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
line-height: 50px;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
border-radius: 500px;
|
|
|
|
float: left;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin-right: var(--gap-base);
|
|
|
|
font-size: var(--fontSizeXl);
|
2021-12-07 20:46:41 +08:00
|
|
|
text-transform: uppercase();
|
2020-03-05 20:36:07 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-meta {
|
|
|
|
display: block;
|
2021-11-11 11:46:37 +08:00
|
|
|
flex-grow: 1;
|
2019-12-06 09:58:08 +08:00
|
|
|
height: 100%;
|
2019-04-30 11:11:25 +08:00
|
|
|
position: relative;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2021-12-07 20:46:41 +08:00
|
|
|
&-meta + &-toolbar {
|
|
|
|
margin-left: var(--gap-md);
|
|
|
|
}
|
2021-11-11 11:46:37 +08:00
|
|
|
&-toolbar {
|
2021-12-07 20:46:41 +08:00
|
|
|
line-height: normal;
|
2021-11-11 11:46:37 +08:00
|
|
|
text-align: right;
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
&-highlight {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--success);
|
2019-12-06 09:58:08 +08:00
|
|
|
width: px2rem(8px);
|
|
|
|
height: px2rem(8px);
|
|
|
|
border-radius: 100%;
|
|
|
|
display: inline-block;
|
2021-12-07 20:46:41 +08:00
|
|
|
margin: 0 var(--gap-sm);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
2021-12-07 20:46:41 +08:00
|
|
|
padding: var(--gap-md);
|
2019-12-24 11:25:55 +08:00
|
|
|
flex: 1 0 auto;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-heading + &-body {
|
2021-12-07 20:46:41 +08:00
|
|
|
padding-top: 0;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-field {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&-fieldValue {
|
|
|
|
position: relative;
|
|
|
|
flex-basis: 0;
|
|
|
|
flex-grow: 1;
|
2019-12-12 17:16:27 +08:00
|
|
|
width: 0;
|
2019-12-24 11:25:55 +08:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-fieldLabel {
|
|
|
|
width: px2rem(60px);
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-actions {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-top: var(--Card-borderWidth) solid var(--Card-actions-borderColor);
|
2020-07-28 13:14:33 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-12-06 09:58:08 +08:00
|
|
|
width: 100%;
|
2020-02-09 16:57:30 +08:00
|
|
|
table-layout: fixed;
|
2021-12-07 20:46:41 +08:00
|
|
|
white-space: nowrap;
|
2022-11-18 13:10:32 +08:00
|
|
|
align-items: center;
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
> a {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: transparent;
|
2020-07-28 13:14:33 +08:00
|
|
|
flex-grow: 1;
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Card-actions-borderColor);
|
2019-12-06 09:58:08 +08:00
|
|
|
border-style: solid;
|
2020-12-21 10:08:40 +08:00
|
|
|
border-width: 0 var(--Card-borderWidth) 0 0;
|
|
|
|
color: var(--text-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-align: center;
|
|
|
|
line-height: px2rem(40px);
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Card-actions-fontSize);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2019-12-06 15:22:17 +08:00
|
|
|
&:not(.is-disabled) {
|
2019-04-30 11:11:25 +08:00
|
|
|
cursor: pointer;
|
2019-12-06 15:22:17 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-actions-onHover-bg);
|
|
|
|
color: var(--Card-actions-onHover-color);
|
2019-12-06 15:22:17 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:last-child {
|
|
|
|
border: none;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 15:22:17 +08:00
|
|
|
&.is-disabled {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--text--muted-color);
|
2019-12-06 15:22:17 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2022-07-22 17:24:35 +08:00
|
|
|
|
|
|
|
& > .#{$ns}Button-icon:first-child:not(:last-child) {
|
2022-11-11 15:40:46 +08:00
|
|
|
margin-right: var(--button-size-sm-icon-margin);
|
2022-07-22 17:24:35 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-checked {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-onChecked-bg);
|
|
|
|
border-color: var(--Card-onChecked-borderColor);
|
|
|
|
color: var(--Card-onChecked-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-actions,
|
|
|
|
.#{$ns}Card-actions > a {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Card-onChecked-borderColor);
|
|
|
|
color: var(--Card-onChecked-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-fieldLabel {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Card-onChecked-fieldLabel-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-actions > a:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-actions-onChecked-onHover-bg);
|
|
|
|
color: var(--Card-actions-onChecked-onHover-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-modified,
|
|
|
|
&.is-moved {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-onModified-bg);
|
|
|
|
border-color: var(--Card-onModified-borderColor);
|
|
|
|
color: var(--Card-onModified-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-actions,
|
|
|
|
.#{$ns}Card-actions > a {
|
2020-12-21 10:08:40 +08:00
|
|
|
border-color: var(--Card-onModified-borderColor);
|
|
|
|
color: var(--Card-onModified-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-fieldLabel {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Card-onModified-fieldLabel-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Card-actions > a:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Card-onModified-onHover-bg);
|
|
|
|
color: var(--Card-onModified-onHover-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.is-dragging > & {
|
2020-12-21 10:08:40 +08:00
|
|
|
opacity: var(--Card-onDragging-opacity);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2021-12-07 20:46:41 +08:00
|
|
|
|
|
|
|
&-footer-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-actions-wrapper {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-end;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
&-checkbox {
|
|
|
|
margin: 0 var(--gap-sm) !important;
|
|
|
|
}
|
|
|
|
&-secondary {
|
|
|
|
max-width: 12.5rem;
|
|
|
|
color: var(--Card-secondary-color);
|
|
|
|
padding: 0 var(--gap-md);
|
|
|
|
font-size: var(--fontSizeMd);
|
|
|
|
font-weight: var(--fontWeightBase);
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
&-secondary + &-actions-wrapper {
|
|
|
|
.#{$ns}Card-actions {
|
|
|
|
margin-left: unset;
|
|
|
|
border: none;
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
.#{$ns}Card-actions > a {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--top,
|
|
|
|
&-multiMedia--bottom,
|
|
|
|
&-multiMedia--left,
|
|
|
|
&-multiMedia--right {
|
|
|
|
.#{$ns}Card-actions-wrapper {
|
|
|
|
.#{$ns}Card-actions {
|
|
|
|
margin-left: unset;
|
|
|
|
border: none;
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
.#{$ns}Card-actions > a {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--top {
|
|
|
|
display: block;
|
|
|
|
.#{$ns}Card-multiMedia-img {
|
|
|
|
border-bottom-left-radius: unset;
|
|
|
|
border-bottom-right-radius: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--bottom {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
.#{$ns}Card-actions {
|
|
|
|
border-bottom: var(--Card-borderWidth) solid
|
|
|
|
var(--Card-actions-borderColor);
|
|
|
|
}
|
|
|
|
.#{$ns}Card-multiMedia-img {
|
|
|
|
border-top-left-radius: unset;
|
|
|
|
border-top-right-radius: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--top,
|
|
|
|
&-multiMedia--bottom {
|
|
|
|
.#{$ns}Card-body {
|
|
|
|
padding-bottom: var(--gap-md);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--left {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.#{$ns}Card-actions {
|
|
|
|
margin-left: var(--gap-md);
|
|
|
|
border-left: var(--Card-borderWidth) solid var(--Card-actions-borderColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}Card-multiMedia-img,
|
|
|
|
.#{$ns}Card-multiMedia-video {
|
|
|
|
margin: var(--gap-md) 0 var(--gap-md) var(--gap-md);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia--right {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
|
|
.#{$ns}Card-actions {
|
|
|
|
margin-right: var(--gap-md);
|
|
|
|
border-right: var(--Card-borderWidth) solid
|
|
|
|
var(--Card-actions-borderColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}Card-multiMedia-img,
|
|
|
|
.#{$ns}Card-multiMedia-video {
|
|
|
|
margin: var(--gap-md) var(--gap-md) var(--gap-md) 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-multiMedia-flex {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
&-multiMedia-img {
|
|
|
|
display: block;
|
2021-12-27 14:10:33 +08:00
|
|
|
width: auto;
|
2021-12-07 20:46:41 +08:00
|
|
|
height: auto;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: var(--Card-borderRadius);
|
|
|
|
}
|
|
|
|
&-multiMedia-video {
|
|
|
|
width: px2rem(180px);
|
|
|
|
height: px2rem(120px);
|
|
|
|
.#{$ns}Video {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
min-width: unset;
|
|
|
|
border-radius: var(--Card-borderRadius);
|
|
|
|
overflow: hidden;
|
|
|
|
.#{$ns}Video-player {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
.video-react {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding-top: unset !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|