changed reward on button
This commit is contained in:
@@ -110,8 +110,12 @@
|
||||
|
||||
.f-card-reward-text {
|
||||
display: inline-block;
|
||||
font-size: .74rem; font-weight: 600; letter-spacing: .02em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Золотой переливающийся текст внутри кнопки-пилюли */
|
||||
.f-reward-btn-label {
|
||||
font-size: .74rem; font-weight: 600; letter-spacing: .02em;
|
||||
background: linear-gradient(110deg, #e6b800 30%, #ffec99 50%, #e6b800 70%);
|
||||
background-size: 200% 100%;
|
||||
-webkit-background-clip: text;
|
||||
@@ -124,6 +128,73 @@
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Кнопка «Вознаграждение» в виде пилюли в золотой обводке — видно, что
|
||||
на неё можно нажать. Заливка лёгкая, сам перелив живёт в .f-reward-btn-label */
|
||||
button.f-card-reward-btn {
|
||||
border: 1px solid rgba(230, 184, 0, 0.5);
|
||||
border-radius: 999px;
|
||||
background: rgba(230, 184, 0, 0.08);
|
||||
padding: 4px 12px;
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
line-height: inherit;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
|
||||
transition: transform .15s ease, filter .15s ease, border-color .15s ease, background .15s ease;
|
||||
}
|
||||
button.f-card-reward-btn:hover {
|
||||
transform: scale(1.08);
|
||||
border-color: rgba(230, 184, 0, 0.85);
|
||||
background: rgba(230, 184, 0, 0.16);
|
||||
filter: brightness(1.1) drop-shadow(0 0 6px rgba(230, 184, 0, 0.45));
|
||||
}
|
||||
button.f-card-reward-btn:active { transform: scale(.94); }
|
||||
button.f-card-reward-btn:focus-visible {
|
||||
outline: 2px solid rgba(230,184,0,.7);
|
||||
outline-offset: 2px;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
/* ── Всплывающее окно вознаграждения ── */
|
||||
.f-reward-popup {
|
||||
max-width: 260px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(150deg, rgba(48,39,16,.97), rgba(22,18,10,.98));
|
||||
backdrop-filter: blur(10px) saturate(140%);
|
||||
-webkit-backdrop-filter: blur(10px) saturate(140%);
|
||||
border: 1px solid rgba(230,184,0,.55);
|
||||
box-shadow:
|
||||
0 8px 30px rgba(0,0,0,.4),
|
||||
0 0 0 1px rgba(230,184,0,.12),
|
||||
0 0 26px rgba(230,184,0,.2);
|
||||
animation: f-reward-pop-in .3s cubic-bezier(.34,1.56,.64,1);
|
||||
}
|
||||
.f-reward-popup-title {
|
||||
font-size: .74rem;
|
||||
font-weight: 900;
|
||||
letter-spacing: .05em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 7px;
|
||||
white-space: nowrap;
|
||||
background: linear-gradient(110deg, #e6b800 25%, #ffec99 50%, #e6b800 75%);
|
||||
background-size: 200% 100%;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
animation: f-reward-shimmer 3.2s ease-in-out infinite;
|
||||
}
|
||||
.f-reward-popup-text {
|
||||
font-size: .92rem;
|
||||
line-height: 1.5;
|
||||
color: #ffe9a8;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
@keyframes f-reward-pop-in {
|
||||
from { opacity: 0; transform: translateY(-8px) scale(.85); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
/* ── Likes ── */
|
||||
.f-card-likes {
|
||||
padding: 2px 16px;
|
||||
|
||||
Reference in New Issue
Block a user