forgeplus-react/src/factory/components/Resource/index.scss

422 lines
8.4 KiB
SCSS

.factory-resource {
position: relative;
min-height: 2300px;
overflow: hidden;
margin-top: 56px;
.resource-container {
opacity: 0;
transform: scale(0.9);
position: relative;
width: 100%;
background: linear-gradient(180deg, #ffffff 0%, #ffffff 84.87%, rgba(255, 255, 255, 0) 100%);
min-height: 1000px;
border-top-left-radius: 36px;
border-top-right-radius: 36px;
}
.module-title {
opacity: 0;
font-family: alibabaBold;
color: #091221;
font-size: 44px;
line-height: 50px;
font-weight: 700;
text-align: center;
margin-bottom: 60px;
position: sticky;
top: 67px;
z-index: 100;
}
// 面板堆叠容器
.panels-stack {
position: relative;
height: 1000px;
display: flex;
justify-content: center;
margin-top: 100px;
}
// 面板基础样式
.resource-1,
.resource-2,
.resource-3,
.resource-4 {
position: absolute;
width: 1600px;
border-radius: 30px;
// box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
// transition: transform 0.3s ease;
padding: 50px;
z-index: 1;
// transform-origin: center center;
}
.resource-2 {
top: 430px;
height: 663px;
background: #d3ecfc;
z-index: 2;
.panel-content .content-right {
.content-item1 {
width: 385px;
height: 252px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0px 0px 18px rgba(0, 74, 168, 0.05);
padding: 25px 35px;
display: flex;
flex-direction: column;
margin-right: 15px;
.item-head {
display: flex;
align-items: center;
img {
width: 53px;
height: 53px;
border-radius: 50%;
margin-right: 10px;
}
.item-name {
max-width: 240px;
}
}
.item-tags {
margin-top: 16px;
max-width: 315px;
overflow: hidden;
.item-tags-item {
display: inline-block;
margin-right: 10px;
height: 32px;
padding: 0 10px;
background: #eaeff9;
border-radius: 4px;
font-family: alibabareg;
color: #0742a4;
font-size: 15px;
}
}
.item-desc {
margin-top: 16px;
max-width: 315px;
line-height: 24px;
}
.item-data {
margin-top: auto;
span {
line-height: 18px;
font-family: alibabareg;
color: #5d6a80;
font-size: 13px;
padding-right: 15px;
margin-right: 15px;
position: relative;
}
span:not(:last-child) {
&::after {
position: absolute;
right: 0;
top: 50%;
transform: translate(0, -50%);
content: "";
width: 1px;
height: 9px;
background: rgba(9, 18, 33, 0.22);
}
}
}
}
}
}
.resource-1 {
top: 0;
height: 350px;
background: #e6ecff;
z-index: 1;
.panel-content .content-right {
.content-item2 {
width: 280.75px;
height: 220px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0px 0px 18px rgba(0, 74, 168, 0.05);
display: flex;
flex-direction: column;
align-items: center;
padding: 30px 35px;
margin-right: 18px;
.item-name {
max-width: 210px;
}
.item-desc {
margin-top: 21px;
line-height: 26px;
}
button {
&:hover {
border-color: #164ce4;
color: #164ce4;
}
}
}
}
}
.resource-3 {
top: 1170px;
height: 622px;
background: #d5dfff;
z-index: 3;
.content-item3 {
width: 385px;
height: 246px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0px 0px 18px rgba(0, 74, 168, 0.05);
padding: 48px 35px 35px 35px;
display: flex;
flex-direction: column;
margin-right: 15px;
.item-desc {
margin-top: 27px;
}
.item-btn {
margin-top: auto;
button {
margin-right: 20px;
background-color: #ffffff;
color: #091221;
&:nth-child(1) {
background-color: #091221;
color: #ffffff;
border: none;
}
&:nth-child(2) {
&:hover {
border-color: #164ce4;
color: #164ce4;
}
}
}
}
}
}
.resource-4 {
top: 1810px;
height: 622px;
background: #DFF0EC;
z-index: 4;
.content-item3 {
width: 385px;
height: 246px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0px 0px 18px rgba(0, 74, 168, 0.05);
padding: 48px 35px 35px 35px;
display: flex;
flex-direction: column;
margin-right: 15px;
.item-desc {
margin-top: 27px;
}
.item-btn {
margin-top: auto;
button {
margin-right: 20px;
background-color: #ffffff;
color: #091221;
&:nth-child(1) {
background-color: #091221;
color: #ffffff;
border: none;
}
&:nth-child(2) {
&:hover {
border-color: #164ce4;
color: #164ce4;
}
}
}
}
}
}
// 收起来时
.animated-panel {
.panel-content-1,
.panel-content-2,
.panel-content-3 {
.content-left {
.icon-container {
display: none !important;
}
h3 {
margin-top: 0 !important;
}
p {
display: none;
transition: display 0.3s ease;
}
}
}
}
// 面板内容样式
.panel-content {
height: 100%;
display: flex;
.content-left {
width: 260px;
display: flex;
flex-direction: column;
margin-right: 40px;
flex-shrink: 0;
.icon-container {
transition: display 0.3s ease;
width: 58px;
height: 58px;
background: #ffffff;
border-radius: 10px;
box-shadow: 0px 0px 18px rgba(0, 74, 168, 0.18);
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
h3 {
margin-top: 25px;
line-height: 35px;
font-family: alibabaBold;
font-weight: 700;
color: #091221;
font-size: 26px;
transition: margin-top 0.3s ease;
}
p {
margin-top: 20px;
line-height: 32px;
font-family: alibabareg;
color: #091221;
font-size: 15px;
transition: display 0.3s ease;
}
a {
margin-top: 15px;
line-height: 32px;
font-family: alibabareg;
color: #164ce4;
font-size: 14px;
width: fit-content;
&:hover {
opacity: 0.7;
}
span {
display: inline-block;
// overflow: hidden;
i {
height: 16px;
width: 16px;
overflow: hidden;
position: relative;
svg {
position: absolute;
top: -15px;
left: 0;
}
}
}
}
}
.content-right {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
width: 100%;
.item-name {
line-height: 33px;
font-family: alibaba;
font-weight: 500;
color: #091221;
font-size: 24px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
word-break: break-all;
}
.item-desc {
word-break: break-all;
font-family: alibabareg;
color: #091221;
font-size: 15px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
button {
margin-top: auto;
width: 84px;
height: 36px;
border: 1px solid;
border-color: #091221;
border-radius: 9px;
font-family: alibaba;
font-weight: 500;
color: #091221;
font-size: 14px;
cursor: pointer;
// &:hover {
// background: #091221;
// color: #ffffff;
// }
}
}
}
}