web-backset.cn/apps/web/src/view/Subscribe/index.less
2023-03-28 13:52:34 +08:00

176 lines
3.5 KiB
Plaintext

.subscribe {
padding-top: 100px;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #e9e8e5;
.container {
position: relative;
.buddy {
// position: absolute;
// top: 0;
// right: 0;
width: 96px;
height: 96px;
}
.options {
margin-top: 100px;
position: relative;
display: flex;
.popular {
position: absolute;
right: 5%;
width: 35%;
height: 120%;
top: -10%;
background: rgba(255, 255, 255, 0.7);
box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.125);
.sell {
color: rgb(var(--primary-5));
}
}
> section {
position: relative;
width: 30%;
padding: 40px;
> img {
width: 100%;
}
.original {
color: var(--color-text-3);
font-size: 16px;
text-decoration: line-through;
font-weight: 300;
letter-spacing: 3px;
}
.price {
margin-bottom: 40px;
position: relative;
display: inline-block;
font-family: DINCondensed-Bold, "Century Gothic", CenturyGothic,
AppleGothic, sans-serif;
font-weight: bold;
font-size: 48px;
color: var(--color-text-2);
letter-spacing: 1px;
line-height: 1;
&::before {
position: absolute;
content: "¥";
left: -20px;
top: 0;
font-size: 20px;
}
}
h3 {
margin: 0;
font-size: 18px;
font-weight: bold;
color: var(--color-text-2);
letter-spacing: 5px;
}
p {
margin: 10px 0 30px 0;
color: var(--color-text-3);
letter-spacing: 1px;
line-height: 1.9;
}
ul {
margin-top: 30px;
list-style: none;
padding: 0;
li {
display: flex;
align-items: center;
color: var(--color-text-2);
margin-bottom: 10px;
span {
color: var(--color-text-4);
}
div {
padding-left: 10px;
span {
padding-left: 10px;
}
}
}
}
}
@media (max-width: 1120px) {
.popular {
display: block;
text-align: left;
position: relative;
width: auto;
right: auto;
top: auto;
padding: 24px;
background: transparent;
box-shadow: none;
}
> section {
display: inline-block;
width: auto;
text-align: center;
padding: 0;
width: 50%;
p {
margin: 0;
}
img {
padding: 0 10%;
}
}
}
}
@media (max-width: 1120px) {
.options {
display: block;
}
}
}
.bg {
position: absolute;
bottom: 0;
}
h2 {
font-size: 24px;
}
h4 {
font-weight: 400;
color: var(--color-text-3);
}
}
.overlay {
width: 100%;
padding: 20px;
background: rgba(255, 255, 255, 0.375);
box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.125);
}
@media (max-width: 1120px) {
.subscribe {
position: relative;
.container {
padding-bottom: 24px;
}
}
}