nicecode-v2/packages/biz/es/BigImageModal/index.less
2024-01-10 15:15:12 +08:00

1146 lines
19 KiB
Plaintext

.zhst-image {
.zhst-dialog-content {
box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}
&-view-container {
position: relative;
width: 100%;
height: 532px;
margin-bottom: 16px;
&__nav {
position: absolute;
z-index: 99;
top: 50%;
width: 40px !important;
height: 40px !important;
background: #d9d9d9;
border-radius: 100%;
cursor: pointer;
transform: translateY(-50%);
&>button {
display: flex;
align-items: center;
color: #fff !important;
}
&--disabled {
opacity: 0.3;
&>button {
color: #fff !important;
}
}
}
&__nav:hover {
background: #09f;
color: #fff !important;
}
}
&-tool-container {
width: 100%;
height: 40px;
margin-bottom: 16px;
}
&__face-score {
position: absolute;
right: 90px;
bottom: 80px;
color: red;
font-family: 'Microsoft YaHei';
font-size: 19px;
font-weight: bold;
}
&-carousel-container {
position: relative;
width: 100%;
height: 100px;
margin-top: 16px;
margin-bottom: 24px;
}
}
.zhst-image__img-view {
position: relative;
width: calc(100% - 46px - 46px - 20px - 20px);
height: 100%;
margin: 0 66px;
&-opt {
position: absolute;
z-index: 99;
top: 0;
}
&-crop-opt {
position: absolute;
z-index: 99;
top: 0;
right: 0;
}
&-align {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
&-main {
// height: 532px;
width: 100%;
height: 100%;
&--cursor {
& canvas {
cursor: pointer !important;
}
}
}
&-screenshot {
position: absolute;
z-index: 10;
}
&-attach {
position: absolute;
z-index: 11;
bottom: 0;
// left: 78px;
left: 0;
min-width: 120px;
height: 202px;
transition: all 200ms;
&--fixed {
width: 152px !important;
background-color: #fff;
}
&--zoomin {
height: 532px;
&--fixed {
width: 398px !important;
}
}
&__tab {
position: absolute;
top: 0;
left: 0;
display: flex;
&-item {
display: flex;
width: 30px;
height: 24px;
align-items: center;
justify-content: center;
background: #000;
color: #fff;
cursor: pointer;
font-size: 12px;
opacity: 0.5;
transition: all 200ms;
&--select {
width: 48px;
height: 34px;
background: #09f;
opacity: 1;
}
}
}
&__scale {
position: absolute;
top: 4px;
right: 4px;
display: flex;
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
background: rgb(0 0 0 / 60%);
border-radius: 100%;
cursor: pointer;
line-height: 30px;
text-align: center;
}
&__img {
height: 100%;
object-fit: contain;
&--fixed {
width: 100%;
object-fit: contain;
}
}
}
}
.zhst-image__video-view {
position: relative;
overflow: hidden;
width: 100%;
height: 532px;
background-color: #333;
// &-flv {
// width: 85%;
// }
&-screenshot {
position: absolute;
z-index: 10;
}
&-crop-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
&-align {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
&-opt {
position: absolute;
z-index: 99;
bottom: 0;
display: flex;
width: 100%;
height: 32px;
box-sizing: border-box;
align-items: center;
padding: 0 12px;
background-color: rgb(0 0 0 / 80%);
line-height: 32px;
&>div:first-child {
display: flex;
align-items: center;
margin-right: 12px;
}
&>div:last-child {
display: flex;
align-items: center;
margin-left: 12px;
}
&-range {
display: flex;
height: 32px;
flex: 1;
align-items: center;
line-height: 32px;
text-align: center;
&>div:first-child {
flex: 1;
}
&>div:last-child {
width: 100px;
margin-left: 8px;
color: #fff;
}
}
}
&__player-mask {
position: absolute;
z-index: 99;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgb(4 4 4 / 70%);
&--bg {
z-index: 999;
background-color: rgb(4 4 4 / 100%);
}
i {
cursor: pointer;
}
&-title {
margin-top: 12px;
color: #fff;
text-align: center;
& a {
color: #09f;
cursor: pointer;
text-decoration: underline;
}
}
}
&__icon-wraper {
display: flex;
width: 80px;
height: 80px;
align-items: center;
justify-content: center;
background-color: rgb(255 255 255 / 10%);
border-radius: 50%;
cursor: pointer;
line-height: 80px;
text-align: center;
// &:hover {
// background: #0099ff;
// }
}
}
.zhst-image__tool {
display: flex;
width: 100%;
align-items: center;
font-size: 14px;
&-split {
width: 0;
height: 14px;
&::before {
display: block;
height: 100%;
border-left: 1px solid #e6e7eb;
content: '';
}
}
&-zoom {
display: inline-flex;
align-items: center;
&> :not(:last-child) {
margin-right: 14px;
}
&__scale {
display: inline-block;
width: 38px;
height: 14px;
// margin-left: 15px;
box-sizing: content-box;
border: 1px solid rgb(77 77 77 / 100%);
margin-top: 2px; //对齐
background: rgb(255 255 255 / 100%);
border-radius: 2px;
color: #4d4d4d;
cursor: default;
font-size: 12px;
line-height: 14px;
text-align: center;
}
}
&-switch {
display: flex;
width: 30px;
flex-shrink: 0;
align-items: center;
justify-content: center;
margin: 0 26px;
}
&-left {
display: flex;
flex: 1;
align-items: center;
justify-content: flex-end;
&> :not(:last-child) {
margin-right: 14px;
}
}
&-right {
display: flex;
flex: 1;
align-items: center;
justify-content: flex-start;
&> :not(:first-child) {
margin-left: 20px;
}
}
&-icon-container {
font-size: 14px;
&--active {
color: #5584ff !important;
}
&> :first-child {
margin-right: 2px;
}
}
}
.zhst-image__carousel {
position: relative;
display: flex;
width: 742px;
height: 100px;
align-items: center;
justify-content: center;
border: 1px solid #f0f0f0;
margin: 0 auto;
background: #fafafa;
border-radius: 2px;
user-select: none;
&-container {
width: (58px + 8px) * 10;
}
&-item {
display: flex;
width: 58px + 8px;
align-items: center;
justify-content: center;
}
&-item-img {
/* 尝试消除transform 副作用 */
position: relative;
z-index: 99;
// width: 58px;
// height: 76px;
display: flex;
width: 66px;
height: 84px;
box-sizing: border-box;
align-items: center;
justify-content: center;
background: #fafafa;
cursor: pointer;
/* 尝试消除transform 副作用 end */
&--active {
border: 2px solid #09f;
border-radius: 1px;
}
&>div {
/* 尝试消除transform 副作用 */
position: relative;
z-index: 99;
overflow: hidden;
width: 58px;
height: 76px;
/* 尝试消除transform 副作用 end */
&>img {
width: 58px;
height: 76px;
object-fit: contain;
transition: all 0.2s;
&:hover {
transform: scale(1.5);
}
}
}
}
}
.zhst-image__header {
width: 100%;
// margin-top: 3px;
margin-bottom: 10px;
&__pad0 {
padding: 0;
}
&__pad66 {
padding: 0 66px;
}
&__bar {
display: flex;
width: 100%;
background: #f6f6f6;
// box-shadow: 0px 0px 8px 0px rgba(172, 172, 172, 0.5);
justify-content: center;
// border-color: #f0f0f0;
// border-bottom-width: 1px;
// border-bottom-style: solid;
}
&__barNoColor {
display: flex;
width: 100%;
justify-content: center;
border-color: #f0f0f0;
border-bottom-width: 1px;
border-bottom-style: solid;
}
&__item {
position: relative;
display: flex;
height: 40px;
align-items: center;
justify-content: center;
margin: 0 15px;
color: #999;
cursor: pointer;
font-size: 14px;
font-weight: bold;
line-height: 19px;
transition: font-size 0.3s ease;
&:hover {
// font-size: 18px;
color: #333;
}
&::before {
position: absolute;
bottom: 0;
left: 50%;
width: 0;
border-bottom: 2px solid #09f;
content: '';
transition: all 0.3s ease;
}
&--active {
background-color: transparent;
color: #333;
font-size: 18px;
// color: #0099ff;
&::before {
left: 0;
width: 100%;
}
}
}
}
.zhst-image__btn-group {
// display: flex;
width: 30px;
box-shadow: 0 2px 6px 0 rgb(0 0 0 / 40%);
&__item {
display: flex;
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
background: #000;
&>button {
padding: 0;
color: #fff;
&:hover {
color: #09f;
}
&:active {
color: #09f;
}
&:focus {
color: #fff;
}
&>span {
display: flex;
}
}
&--active {
&>button {
color: #09f;
}
}
}
&--circle {
background-color: none;
box-shadow: none;
}
&--circle &__item {
margin-bottom: 4px;
border-radius: 50%;
}
}
.zhst-image__compater-view {
display: flex;
width: 100%;
align-items: center;
justify-content: center;
&>div:first-child {
margin-right: 25px;
}
&>div:last-child {
margin-left: 25px;
}
&__container {
position: relative;
width: 345px;
height: 460px;
box-sizing: content-box;
border: 1px solid #f0f0f0;
}
&__view {
width: 345px;
height: 460px;
}
&__label {
position: absolute;
z-index: 99;
top: 0;
left: 0;
display: flex;
height: 34px;
align-items: center;
justify-content: center;
// width: 48px;
padding: 0 6px;
background: #09f;
color: #fff;
}
&__tool {
display: flex;
width: 345px;
height: 40px;
align-items: center;
justify-content: center;
background: #f9f9f9;
i,
span {
color: #333 !important;
}
i {
margin-right: 4px;
}
&>*:not(:last-child) {
margin-right: 20px;
}
&__scale {
display: inline-block;
width: 38px;
height: 16px;
// margin-left: 15px;
box-sizing: content-box;
border: 1px solid rgb(77 77 77 / 100%);
background: rgb(255 255 255 / 100%);
border-radius: 2px;
color: #4d4d4d;
cursor: default;
font-size: 12px;
line-height: 16px;
text-align: center;
}
&__line {
width: 1px;
height: 14px;
background: #e6e6e6;
}
}
&__empty {
position: absolute;
z-index: 9;
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
background: #f9f9f9;
transform: translateY(-100%);
&>img {
width: 140px;
height: 80px;
}
&--text {
color: #999;
font-size: 14px;
line-height: 22px;
}
}
&__scoll-module {
position: absolute;
top: 0%;
left: 0%;
display: flex;
width: 100%;
height: 100%;
align-items: flex-end;
justify-content: space-between;
pointer-events: none;
&__btn {
display: flex;
width: 50px;
height: 50px;
align-items: center;
justify-content: center;
margin: 6px;
border-radius: 50%;
opacity: 0.5;
pointer-events: all;
&>span {
display: flex;
align-items: center;
justify-content: center;
}
}
&__btn:hover {
background-color: #09f !important;
color: #fff !important;
}
}
}
.zhst-image__trackmodel {
&__panel {
position: relative;
z-index: 99;
top: 0;
right: 0;
width: 320px;
height: 100%;
background-color: #fff;
&--head {
width: 100%;
height: 40px;
padding: 0 16px;
border-bottom: 1px solid #f0f0f0;
color: #333;
font-size: 14px;
font-weight: bold;
line-height: 40px;
text-align: left;
}
&--track {
height: calc(100% - 40px);
}
&-date {
padding: 10px 6px;
// position: absolute;
}
}
&--bigImage {
position: absolute;
z-index: 100;
top: 0;
left: 0;
display: flex;
width: 100%;
height: 100%;
justify-content: center;
padding-top: 59px;
background: rgb(0 0 0 / 40%);
&--image {
width: 946px;
height: 532px;
&>img {
width: 946px;
height: 532px;
object-fit: contain;
}
}
&--close {
margin-left: 16px;
color: #fff;
}
}
&__flooter {
position: absolute;
z-index: 999;
bottom: -124px;
left: 0;
width: calc(100% - 320px - 10px);
height: 144px;
background: #fff;
box-shadow: 0 0 8px 0 rgb(172 172 172 / 50%);
&--head {
display: flex;
height: 20px;
align-items: center;
justify-content: center;
background: #f6f6f6;
color: #999;
line-height: 16px;
}
&--body {
display: flex;
height: calc(100% - 20px);
padding-left: 50px;
&__title {
color: #333;
font-size: 12px;
font-weight: bold;
line-height: 16px;
}
&__text {
overflow: hidden;
color: #333;
font-size: 12px;
line-height: 16px;
text-overflow: ellipsis;
white-space: nowrap;
}
&--left {
display: flex;
width: 75px;
height: 100;
align-items: center;
&>img {
width: 75px;
height: 100px;
object-fit: contain;
}
}
&--middle {
display: grid;
width: 331px;
justify-content: flex-start;
padding: 8px 20px;
border-right: 1px solid #f0f0f0;
&>div {
display: flex;
}
}
&--right {
display: grid;
width: calc(100% - 331px - 75px);
padding: 8px 20px;
&>div {
display: flex;
}
&__button-list {
display: flex;
align-items: center;
&>button {
margin-right: 20px;
&>span {
color: #09f !important;
}
&:hover {
&>span {
color: #247fdb !important;
}
}
}
}
}
}
@keyframes close {
from {
bottom: 0;
}
to {
bottom: -124px;
}
}
@keyframes open {
from {
bottom: -124px;
}
to {
bottom: 0;
}
}
&--close {
bottom: -124px;
animation-duration: 1s;
animation-name: close;
}
&--open {
bottom: 0;
animation-duration: 1s;
animation-name: open;
}
}
}
.zhst-image__null {
display: flex;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
&__text {
// margin-left: 105px;
margin-top: 8px;
color: #999;
font-size: 14px;
width: 100%;
text-align: center;
}
}
.zhst-image__score {
display: flex;
flex-direction: column;
align-items: center;
&-box {
position: relative;
display: flex;
box-sizing: border-box;
align-items: center;
justify-content: center;
margin-bottom: 12px;
border-radius: 50%;
&-bg {
display: flex;
overflow: hidden;
box-sizing: border-box;
align-items: flex-end;
justify-content: center;
border: 2px solid #fff;
background-color: #fff;
border-radius: 50%;
&-inner {
width: 100% !important;
height: 0;
}
}
}
&-score {
position: absolute;
top: 50%;
left: 50%;
color: rgb(0 0 0 / 88%);
font-size: 28px;
transform: translate(-50%, -50%);
}
&-text {
width: 54px;
height: 24px;
color: rgb(0 0 0 / 88%);
font-size: 18px;
line-height: 24px;
}
}
.zhst-image__CornerScore {
position: absolute;
right: 0;
bottom: 0;
width: 56px;
height: 22px;
line-height: 22px;
text-align: right;
vertical-align: bottom;
padding-right: 1px;
background-size: 100%;
background-image: url('./images/percent_background.png');
z-index: 99;
&>span {
padding-right: 6px;
line-height: 22px;
font-size: 12px;
vertical-align: middle;
color: rgba(255, 255, 255, 1);
}
}
.zhst-image__attributePanel {
margin: 0 66px;
background: #f6f6f6;
margin-top: 20px;
padding-top: 16px;
display: flex;
justify-content: center;
&>div:first-child {
width: fit-content;
display: flex;
flex-direction: column;
}
&-title {
color: rgb(0 0 0 / 88%);
font-weight: bold;
padding-bottom: 12px;
}
&-item {
display: flex;
}
&-label {
color: rgb(0 0 0 / 45%);
}
&-value {
color: rgb(0 0 0 / 88%);
}
}
.relatedWrapper {
width: 100%;
height: 100px;
padding: 0 30px;
margin-bottom: 30px;
box-sizing: border-box;
.relatedTabs {
width: 100%;
height: 100px;
}
.relatedContent {
width: 100%;
height: 100px;
display: flex;
.relatedPics {
width: 742px;
height: 100px;
// display: flex;
// box-sizing: border-box;
// background: #fafafa;
// border-radius: 2px;
// border: 1px solid #f0f0f0;
// .LeftBtn,
// .RighttBtn {
// width: 34px;
// height: 100%;
// display: flex;
// justify-content: center;
// align-items: center;
// }
// .ListContent {
// flex: 1;
// height: 100%;
// }
}
.disabled {
color: rgba(0, 0, 0, 0.25);
}
.relatedBtn {
flex: 1;
font-size: 14px;
color: #333333;
display: flex;
align-items: flex-end;
cursor: pointer;
&:hover {
color: #0099ff;
}
}
}
:global {
.ant-tabs-left>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane {
padding-left: 16px;
}
.ant-tabs-tab {
padding: 8px 12px !important;
text-align: right !important;
}
.ant-tabs .ant-tabs-tab {
font-size: 14px;
font-weight: bold;
text-align: right;
justify-content: flex-end;
}
}
}