Initial upload
This commit is contained in:
1 parent
b0bf3b7167
commit
a022f29e34
65 files changed
+46484
-4339
No files matched your search
+315
-108
@@ -38,8 +38,8 @@ body {
|
||||
background: url("https://cdn.pixabay.com/photo/2024/07/19/08/16/waves-8905720_1280.png") center/cover no-repeat;
|
||||
background-attachment: fixed;
|
||||
padding: 32px clamp(20px, 6vw, 72px);
|
||||
scroll-snap-type: y mandatory;
|
||||
overflow-y: scroll;
|
||||
overscroll-behavior: none;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
@@ -193,14 +193,14 @@ html.skip-dashboard-splash #splash-screen {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
outline: none;
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: var(--color-text);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
cursor: pointer;
|
||||
transition: transform var(--transition-base), background var(--transition-base), border var(--transition-base);
|
||||
transition: transform var(--transition-base), background var(--transition-base);
|
||||
}
|
||||
|
||||
.icon-button:hover {
|
||||
@@ -217,6 +217,13 @@ html.skip-dashboard-splash #splash-screen {
|
||||
background: rgb(0, 140, 254);
|
||||
}
|
||||
|
||||
.icon-button:focus,
|
||||
.icon-button:focus-visible,
|
||||
.icon-button:active {
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.icon-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.6;
|
||||
@@ -280,12 +287,12 @@ html.skip-dashboard-splash #splash-screen {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
cursor: pointer;
|
||||
transition: transform var(--transition-base), background var(--transition-base), border var(--transition-base);
|
||||
transition: transform var(--transition-base), background var(--transition-base);
|
||||
}
|
||||
|
||||
.icon-butt {
|
||||
border: none;
|
||||
outline: none;
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.icon-butt i {
|
||||
@@ -295,7 +302,15 @@ html.skip-dashboard-splash #splash-screen {
|
||||
.icon-butt:hover:not(:disabled) {
|
||||
transform: translateY(-2px) scale(1.03);
|
||||
background: rgba(255, 0, 0, 0.841);
|
||||
border-color: rgba(0, 255, 213, 0);
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.icon-butt:focus,
|
||||
.icon-butt:focus-visible,
|
||||
.icon-butt:active {
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.icon-butt:disabled {
|
||||
@@ -306,7 +321,7 @@ html.skip-dashboard-splash #splash-screen {
|
||||
.dashboard {
|
||||
margin-top: 32px;
|
||||
display: grid;
|
||||
gap: clamp(28px, 4vw, 48px);
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
@@ -314,16 +329,32 @@ html.skip-dashboard-splash #splash-screen {
|
||||
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
|
||||
gap: clamp(24px, 4vw, 44px);
|
||||
align-items: stretch;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
position: relative;
|
||||
background: rgba(30, 30, 35, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: clamp(28px, 4vw, 40px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
backdrop-filter: blur(18px);
|
||||
box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||||
backdrop-filter: blur(40px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
||||
transition: background var(--transition-base), border-color var(--transition-base);
|
||||
}
|
||||
|
||||
.hero-copy::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 25%);
|
||||
}
|
||||
|
||||
.hero-copy:hover {
|
||||
background: rgba(30, 30, 35, 0.78);
|
||||
border-color: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.hero-copy h2 {
|
||||
@@ -345,40 +376,57 @@ html.skip-dashboard-splash #splash-screen {
|
||||
}
|
||||
|
||||
.pill {
|
||||
border-top: 20px solid black;
|
||||
border-right: 5px solid black;
|
||||
border-bottom: 20px solid black;
|
||||
border-left: 5px solid black;
|
||||
border-radius: 5px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 10px 22px;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
background: linear-gradient(135deg, #7c5cff, #4f46e5);
|
||||
color: white;
|
||||
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
||||
transition: background 0.25s ease;
|
||||
transition: filter 0.2s ease-in-out;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pill--outline {
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
border: 2px solid rgba(255, 255, 255, 0.088);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.pill--outline:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
/* Buton Create independent cu hover gri */
|
||||
.pill.pill--create-hero {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pill.pill--create-hero:hover {
|
||||
background: rgba(255, 255, 255, 0.12) !important;
|
||||
border-color: rgba(255, 255, 255, 0.35) !important;
|
||||
}
|
||||
|
||||
.pill:hover {
|
||||
transform: translateY(-1px);
|
||||
border: 2px solid rgba(255, 255, 255, 0.168);
|
||||
box-shadow: 0 12px 24px rgba(78, 70, 229, 0.129);
|
||||
background: linear-gradient(135deg, #7c5dff, #4f46e6);
|
||||
}
|
||||
|
||||
.pills {
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 10px 22px;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
background: linear-gradient(135deg, #7c5cff, #4f46e5);
|
||||
color: white;
|
||||
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
||||
transition: background 0.25s ease;
|
||||
}
|
||||
|
||||
.pills--outline {
|
||||
@@ -388,8 +436,7 @@ html.skip-dashboard-splash #splash-screen {
|
||||
}
|
||||
|
||||
.pills:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
|
||||
background: linear-gradient(135deg, #8c6cff, #6356f5);
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
@@ -398,55 +445,89 @@ html.skip-dashboard-splash #splash-screen {
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
background: var(--color-surface);
|
||||
gap: 22px;
|
||||
background: rgba(30, 30, 35, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 20px;
|
||||
box-shadow: var(--shadow-md);
|
||||
backdrop-filter: blur(20px);
|
||||
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
backdrop-filter: blur(40px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
||||
transition: background var(--transition-base), border-color var(--transition-base);
|
||||
}
|
||||
|
||||
.stat-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
background: rgba(30, 30, 35, 0.78);
|
||||
border-color: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.stat-card__icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 18px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 1.3rem;
|
||||
color: white;
|
||||
font-size: 2.2rem;
|
||||
color: #818cf8;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.stat-card__icon--active {
|
||||
background: linear-gradient(135deg, #34d399, #059669);
|
||||
.stat-card:first-child .stat-card__icon {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.stat-card__icon--uptime {
|
||||
background: linear-gradient(135deg, #38bdf8, #1d4ed8);
|
||||
}
|
||||
|
||||
.stat-card__icon--deploy {
|
||||
background: linear-gradient(135deg, #ffa600, #da4500);
|
||||
.stat-card__content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.stat-card__label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--color-text-muted);
|
||||
margin: 0;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.stat-card__value {
|
||||
font-size: 1.7rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.quick-actions {
|
||||
background: var(--color-surface);
|
||||
position: relative;
|
||||
background: rgba(30, 30, 35, 0.7);
|
||||
border-radius: var(--radius-lg);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-md);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
padding: clamp(24px, 4vw, 36px);
|
||||
backdrop-filter: blur(14px);
|
||||
backdrop-filter: blur(40px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
||||
transition: background var(--transition-base), border-color var(--transition-base);
|
||||
}
|
||||
|
||||
.quick-actions::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
|
||||
}
|
||||
|
||||
.quick-actions:hover {
|
||||
background: rgba(30, 30, 35, 0.78);
|
||||
border-color: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.quick-actions h3 {
|
||||
@@ -579,7 +660,7 @@ html.skip-dashboard-splash #splash-screen {
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.section-heading h3 {
|
||||
@@ -627,21 +708,73 @@ html.skip-dashboard-splash #splash-screen {
|
||||
|
||||
.bot-grid {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 20px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 360px));
|
||||
justify-content: center;
|
||||
row-gap: 40px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
.bots .bot-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 16px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 360px));
|
||||
gap: 20px;
|
||||
row-gap: 40px;
|
||||
justify-content: center;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
justify-items: center;
|
||||
.bot-card:only-child {
|
||||
justify-self: center;
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
@media (max-width: 400px) {
|
||||
.bot-grid,
|
||||
.bots .bot-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 401px) and (max-width: 800px) {
|
||||
.bot-grid,
|
||||
.bots .bot-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 801px) and (max-width: 1200px) {
|
||||
.bot-grid,
|
||||
.bots .bot-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(340px, 360px));
|
||||
max-width: 760px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1201px) and (max-width: 1600px) {
|
||||
.bot-grid,
|
||||
.bots .bot-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(350px, 360px));
|
||||
max-width: 1140px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1601px) {
|
||||
.bot-grid,
|
||||
.bots .bot-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(360px, 360px));
|
||||
max-width: 1520px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.bots,
|
||||
.quick-actions {
|
||||
scroll-snap-align: start;
|
||||
scroll-margin-top: 20px;
|
||||
}
|
||||
|
||||
@@ -651,48 +784,21 @@ html.skip-dashboard-splash #splash-screen {
|
||||
flex-direction: column;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
background: radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.08), transparent 26%),
|
||||
radial-gradient(circle at 80% -20%, rgba(124, 92, 255, 0.12), transparent 32%),
|
||||
linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
|
||||
background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
|
||||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
|
||||
isolation: isolate;
|
||||
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
||||
}
|
||||
|
||||
.bot-card::before,
|
||||
.bot-card::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
}
|
||||
|
||||
.bot-card::before {
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(29, 78, 216, 0.12));
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.bot-card::after {
|
||||
border-radius: inherit;
|
||||
background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 36%),
|
||||
radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.22), transparent 38%);
|
||||
mix-blend-mode: screen;
|
||||
opacity: 0.45;
|
||||
will-change: transform;
|
||||
transform: translateZ(0);
|
||||
backface-visibility: hidden;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.bot-card:hover {
|
||||
transform: translateY(-1px) scale(1.005);
|
||||
transform: translateY(-1px) translateZ(0);
|
||||
box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.bot-card:hover::after {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.bot-card__hero {
|
||||
position: relative;
|
||||
min-height: 210px;
|
||||
@@ -705,7 +811,9 @@ html.skip-dashboard-splash #splash-screen {
|
||||
background: var(--bot-cover);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
filter: saturate(1.5) brightness(1);
|
||||
opacity: 0.85;
|
||||
will-change: transform;
|
||||
transform: translateZ(0);
|
||||
-webkit-mask-image: linear-gradient(180deg, #fff 0%, #fff 70%, rgba(255, 255, 255, 0.65) 82%, transparent 100%);
|
||||
mask-image: linear-gradient(180deg, #fff 0%, #fff 70%, rgba(255, 255, 255, 0.65) 82%, transparent 100%);
|
||||
}
|
||||
@@ -713,9 +821,7 @@ html.skip-dashboard-splash #splash-screen {
|
||||
.bot-card__hero-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.373) 20%, rgba(2, 6, 23, 0.581) 20%),
|
||||
radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.26), transparent 70%);
|
||||
mix-blend-mode: lighten;
|
||||
background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.45) 100%);
|
||||
}
|
||||
|
||||
.bot-card__hero-content {
|
||||
@@ -810,20 +916,20 @@ html.skip-dashboard-splash #splash-screen {
|
||||
|
||||
.bot-card.status-online .bot-card__status-dot {
|
||||
color: #34d399;
|
||||
background: radial-gradient(circle at 35% 35%, #e6fff2 0%, #c1ffd7 30%, #34d399 70%);
|
||||
box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16), 0 0 22px rgba(52, 211, 153, 0.45);
|
||||
background: #34d399;
|
||||
box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16), 0 0 12px rgba(52, 211, 153, 0.45);
|
||||
}
|
||||
|
||||
.bot-card.status-stopped .bot-card__status-dot {
|
||||
color: #e64747;
|
||||
background: radial-gradient(circle at 35% 35%, #ffe4e8 0%, #ffc2cb 30%, #e64747 70%);
|
||||
box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18), 0 0 22px rgba(239, 68, 68, 0.45);
|
||||
background: #e64747;
|
||||
box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18), 0 0 12px rgba(239, 68, 68, 0.45);
|
||||
}
|
||||
|
||||
.bot-card.status-unknown .bot-card__status-dot {
|
||||
color: #f59e0b;
|
||||
background: radial-gradient(circle at 35% 35%, #fef3c7 0%, #fde68a 30%, #f59e0b 70%);
|
||||
box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16), 0 0 22px rgba(245, 158, 11, 0.35);
|
||||
background: #f59e0b;
|
||||
box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16), 0 0 12px rgba(245, 158, 11, 0.35);
|
||||
}
|
||||
|
||||
.bot-card.status-unknown .bot-card__status-dot::before,
|
||||
@@ -841,7 +947,6 @@ html.skip-dashboard-splash #splash-screen {
|
||||
background: rgba(2, 6, 23, 0.6);
|
||||
border-radius: 14px;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.bot-card__meta-row span {
|
||||
@@ -862,7 +967,6 @@ html.skip-dashboard-splash #splash-screen {
|
||||
background: linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.96));
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.bot-card__stat {
|
||||
@@ -1060,11 +1164,12 @@ html.skip-dashboard-splash #splash-screen {
|
||||
|
||||
.footer {
|
||||
margin-top: 40px;
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-md);
|
||||
backdrop-filter: blur(14px);
|
||||
backdrop-filter: blur(14px) saturate(160%);
|
||||
-webkit-backdrop-filter: blur(14px) saturate(160%);
|
||||
}
|
||||
|
||||
.footer-inner {
|
||||
@@ -1230,6 +1335,12 @@ html.skip-dashboard-splash #splash-screen {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.footer .btn-primary:hover {
|
||||
background: linear-gradient(135deg, #10aff0, #1f52dc);
|
||||
filter: none;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.btn-primary.create-btn:hover {
|
||||
transform: none;
|
||||
}
|
||||
@@ -1239,6 +1350,102 @@ html.skip-dashboard-splash #splash-screen {
|
||||
filter: brightness(0.96);
|
||||
}
|
||||
|
||||
/* ── Navbar Create pill — circle → pill expand ────────────────────────── */
|
||||
/* Open/close is driven by JS (.is-open class on mouseenter/leave + focus) so
|
||||
the collapse animation always plays, even after the cursor leaves. */
|
||||
.create-btn {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
/* No horizontal padding in the circle state: the icon is centred purely by
|
||||
flexbox, so the "+" sits dead-centre regardless of the (collapsed) label. */
|
||||
padding: 0;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0;
|
||||
/* 0.4s smooth expand / collapse */
|
||||
transition:
|
||||
width 0.4s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
border-radius 0.4s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
padding 0.4s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
gap 0.4s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
filter 0.4s ease;
|
||||
}
|
||||
|
||||
.create-btn__icon {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
/* Centred in the circle (no offset); only opacity eases when opening,
|
||||
so the "+" stays dead-centre while still animating like the label. */
|
||||
opacity: 0.9;
|
||||
transition: opacity 0.25s cubic-bezier(0.65, 0, 0.35, 1);
|
||||
}
|
||||
|
||||
.create-btn__label {
|
||||
flex: 0 0 auto;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
/* Collapsed: pulled out of normal flow so it never offsets the centred icon */
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
max-width: 0;
|
||||
opacity: 0;
|
||||
font-family: 'Inter', 'Manrope', system-ui, sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: 0.01em;
|
||||
transform: translateX(8px);
|
||||
pointer-events: none;
|
||||
/* Closing: label fades/slides out while the box collapses */
|
||||
transition:
|
||||
max-width 0.25s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
opacity 0.2s cubic-bezier(0.65, 0, 0.35, 1),
|
||||
transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
|
||||
}
|
||||
|
||||
/* Open state — toggled by JS (.is-open) and mirrored on :focus-visible */
|
||||
.create-btn.is-open,
|
||||
.create-btn:focus-visible {
|
||||
width: 124px;
|
||||
border-radius: 999px;
|
||||
/* Even left/right padding centres the icon+label group inside the pill */
|
||||
padding: 0 18px;
|
||||
gap: 9px;
|
||||
filter: brightness(1.06);
|
||||
}
|
||||
|
||||
.create-btn.is-open .create-btn__icon,
|
||||
.create-btn:focus-visible .create-btn__icon {
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
|
||||
}
|
||||
|
||||
.create-btn.is-open .create-btn__label,
|
||||
.create-btn:focus-visible .create-btn__label {
|
||||
/* Back into normal flow when open, so it sits next to the icon */
|
||||
position: static;
|
||||
left: auto;
|
||||
max-width: 64px;
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
pointer-events: auto;
|
||||
/* Opening: text eases in just after the box starts expanding */
|
||||
transition:
|
||||
max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
|
||||
opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
|
||||
transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
background: rgba(15, 23, 42, 0.85);
|
||||
border: none;
|
||||
@@ -2735,7 +2942,7 @@ html.skip-dashboard-splash #splash-screen {
|
||||
.account-page {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 24px;
|
||||
padding: 80px 24px 40px;
|
||||
animation: fadeInUp 0.4s ease;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user