nicecode-v2/packages/biz/es/BigImageModal/index.less

515 lines
8.4 KiB
Plaintext

.zhst-image {
.zhst-dialog-content {
box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}
.zhst-tabs .zhst-tabs-nav-wrap {
background-color: #f6f6f6;
}
&-view-container {
position: relative;
width: 100%;
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__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__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__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;
}
.disabled {
color: rgba(0, 0, 0, 25%);
}
.relatedBtn {
flex: 1;
font-size: 14px;
color: #333;
display: flex;
align-items: flex-end;
cursor: pointer;
&:hover {
color: #09f;
}
}
}
: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;
}
}
}