@@ -0,0 +1,223 @@
|
||||
.dialog-ad-mask {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1900;
|
||||
padding: 24px;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow-y: auto;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.dialog-ad-mask.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.dialog-ad-panel {
|
||||
width: 640px;
|
||||
max-width: calc(100vw - 48px);
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.dialog-ad-panel[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dialog-ad-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: #141417;
|
||||
border-radius: 20px;
|
||||
outline: 1px solid rgba(255, 255, 255, 0.12);
|
||||
outline-offset: -1px;
|
||||
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.dialog-ad-cover {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
overflow: hidden;
|
||||
background: #232328;
|
||||
}
|
||||
|
||||
.dialog-ad-media {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.dialog-ad-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.dialog-ad-tag {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
left: 12px;
|
||||
z-index: 1;
|
||||
height: 22px;
|
||||
padding: 0 8px;
|
||||
color: #f2f2f4;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.dialog-ad-close {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
z-index: 2;
|
||||
box-sizing: border-box;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
transition: opacity 180ms ease, transform 180ms ease;
|
||||
}
|
||||
|
||||
.dialog-ad-close img {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dialog-ad-close:hover,
|
||||
.dialog-ad-close:focus-visible {
|
||||
opacity: 0.85;
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.dialog-ad-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.dialog-ad-copy {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.dialog-ad-title {
|
||||
margin: 0;
|
||||
color: #f2f2f4;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 22px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dialog-ad-desc {
|
||||
margin: 0;
|
||||
color: #7c7c86;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.dialog-ad-cta {
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
height: 40px;
|
||||
padding: 0 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 20px;
|
||||
text-decoration: none;
|
||||
background: linear-gradient(135deg, #ff4a7b 0%, #ec237f 52%, #93226f 100%);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.dialog-ad-cta__icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dialog-ad-cta:hover {
|
||||
filter: brightness(1.05);
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.dialog-ad-mask {
|
||||
padding: 24px;
|
||||
-webkit-backdrop-filter: blur(2px);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.dialog-ad-panel {
|
||||
width: 327px;
|
||||
max-width: calc(100vw - 48px);
|
||||
}
|
||||
|
||||
.dialog-ad-cover {
|
||||
height: 204px;
|
||||
}
|
||||
|
||||
.dialog-ad-tag {
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
height: 20px;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.dialog-ad-foot {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.dialog-ad-copy {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.dialog-ad-title {
|
||||
font-size: 15px;
|
||||
line-height: 21px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.dialog-ad-desc {
|
||||
font-size: 11px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.dialog-ad-cta {
|
||||
align-self: stretch;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.dialog-ad-close {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user