模板:Release-date/style.css
来自康健生活
.templ-release-date {
position: relative;
padding: 100px;
display: flex;
justify-content: center;
align-items: center;
font-family: "Allerta Stencil", sans-serif;
}
.templ-release-date .unique-badge {
position: relative;
letter-spacing: 0.08em;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
transition: transform 0.3s ease !important;
transform: rotate(-14deg);
text-align: center;
filter: drop-shadow(0.25em 0.7em 0.95em rgba(0, 0, 0, 0.8));
/* min-size + (max-size - min-size) * ( (100vw - min-width) / ( max-width - min-width) ) */
font-size: calc(11px + 14 * ((100vw - 420px) / (860)));
}
.templ-release-date .unique-badge::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
width: 10em;
height: 10em;
border-radius: 100%;
background: #003399;
opacity: 0.8;
transition: opacity 0.3s linear !important;
}
.templ-release-date .unique-badge:hover {
color: #fff;
text-decoration: none;
transform: rotate(-10deg) scale(1.05);
}
.templ-release-date .unique-badge:hover::before {
opacity: 0.9;
}
.templ-release-date .unique-badge svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
z-index: 0;
width: 10em;
height: 10em;
}
.templ-release-date .unique-badge span {
display: block;
background: #0047AB;
border-radius: 0.4em;
padding: 0.4em 1em;
z-index: 1;
min-width: 11em;
border: 1px solid #0066CC;
text-transform: uppercase;
}
No categories