Spaces:
Running

backend / app /static /css /header.css
paisaly's picture
Upload 1776 files
25834e9 verified
Raw History Blame Contribute Delete
8.38 kB
@import url('https://fonts.googleapis.com/css2?family=Allerta+Stencil&display=swap');
.navbar {
background-color: rgba(255, 255, 255, 0.04);
padding: 6px 12px;
text-align: right;
border-radius: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
position: sticky;
z-index: var(--z-max, 9999);
top: 0;
backdrop-filter: blur(20px);
display: flex;
flex-direction: row;
font-family: 'Allerta Stencil', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
align-items: center;
gap: 20px;
}
.navbar.scrolled {
position: fixed;
width: calc(100% - 40px);
margin: 12px 20px;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.15);
backdrop-filter: saturate(1.4) blur(16px);
background-color: rgba(255, 255, 255, 0.06);
}
.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
height: 100%;
justify-content: flex-end;
display: flex;
align-items: center;
gap: 8px;
outline: none;
}
.navbar .links {
padding: 0;
width: -webkit-fill-available;
width: 100%;
}
.navbar li {
display: inline-flex;
align-items: center;
}
.navbar a {
color: rgba(255, 255, 255, 0.75);
text-decoration: none;
font-size: 15px;
padding: 8px 14px;
transition: all 0.2s ease;
letter-spacing: 0.5px;
border-radius: 6px;
}
.navbar a:hover {
text-decoration: none;
color: rgba(255, 255, 255, 0.95);
}
.navbar a.active {
color: #fff;
}
.navbar-logo-link {
display: flex;
align-items: center;
text-decoration: none;
transition: opacity 0.2s ease;
}
.navbar-logo-link:hover {
opacity: 0.85;
}
.navbar-logo-link:focus {
outline: 2px solid rgba(255, 255, 255, 0.3);
outline-offset: 4px;
border-radius: 4px;
}
.navbar-image {
height: 32px;
}
/* Navigation groups */
.nav-group-primary,
.nav-group-secondary,
.nav-group-auth {
display: inline-flex;
align-items: center;
}
/* Divider */
.nav-divider {
width: 1px;
height: 20px;
background-color: rgba(255, 255, 255, 0.15);
margin: 0 8px;
}
/* External link icon */
.external-link {
display: inline-flex;
align-items: center;
gap: 6px;
}
.external-link svg {
opacity: 0.7;
transition: all 0.2s ease;
}
.external-link:hover svg {
opacity: 1;
transform: translate(1px, -1px);
}
/* GitHub badge */
.github-badge {
display: inline-flex !important;
align-items: center;
gap: 0;
padding: 0 !important;
background: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
overflow: hidden;
transition: all 0.2s ease;
}
.github-badge:hover {
background: rgba(255, 255, 255, 0.12) !important;
border-color: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}
.github-icon {
display: flex;
align-items: center;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.05);
}
.github-icon svg {
width: 20px;
height: 20px;
display: block;
}
.github-divider {
width: 1px;
height: 24px;
background: rgba(255, 255, 255, 0.15);
}
.github-stars {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
font-size: 14px;
font-weight: 500;
color: #fff;
}
.star-icon {
width: 14px;
height: 14px;
color: #fbbf24;
}
/* Sign in button */
.nav-signin-btn {
background: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
color: #fff !important;
padding: 7px 16px !important;
border-radius: 8px;
font-weight: 500;
transition: all 0.2s ease;
}
.nav-signin-btn:hover {
background: rgba(255, 255, 255, 0.12) !important;
border-color: rgba(255, 255, 255, 0.25) !important;
transform: translateY(-1px);
}
/* Locked dashboard button */
.nav-dashboard-locked-btn {
background: rgba(124, 58, 237, 0.12) !important;
border: 1px solid rgba(124, 58, 237, 0.3) !important;
color: rgba(255, 255, 255, 0.85) !important;
padding: 7px 14px !important;
border-radius: 8px;
font-weight: 500;
transition: all 0.2s ease;
display: inline-flex !important;
align-items: center;
gap: 6px;
}
.nav-dashboard-locked-btn i {
font-size: 16px;
opacity: 0.9;
}
.nav-dashboard-locked-btn:hover {
background: rgba(124, 58, 237, 0.2) !important;
border-color: rgba(124, 58, 237, 0.5) !important;
color: #fff !important;
transform: translateY(-1px);
}
.nav-dashboard-locked-btn:hover i {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0%,
100% {
transform: rotate(0deg);
}
25% {
transform: rotate(-5deg);
}
75% {
transform: rotate(5deg);
}
}
/* Profile menu */
.nav-profile {
position: relative;
display: none;
}
.profile-btn {
border: 0;
background: transparent;
padding: 0;
cursor: pointer;
line-height: 0;
border-radius: 9999px;
}
.profile-btn:hover,
.profile-btn:focus {
outline: none;
box-shadow: none;
}
.profile-avatar-container {
width: 36px;
height: 36px;
position: relative;
}
.profile-btn img {
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
display: block;
}
.profile-btn:hover img {
filter: brightness(1.05);
}
.profile-initials-circle {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #7c3aed, #2563eb);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.profile-btn:hover .profile-initials-circle {
filter: brightness(1.05);
}
.profile-dropdown {
position: absolute;
right: 0;
top: calc(100% + 8px);
min-width: 180px;
background: rgba(13, 17, 35, 0.96);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 10px;
padding: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
backdrop-filter: blur(12px);
z-index: var(--z-overlay, 1000);
}
.profile-dropdown a,
.profile-dropdown button {
display: block;
width: 100%;
text-align: left;
color: #fff;
text-decoration: none;
padding: 8px 10px;
background: transparent;
border: 0;
border-radius: 8px;
font-size: 14px;
cursor: pointer;
text-shadow: none;
}
.profile-dropdown a:hover,
.profile-dropdown button:hover {
background: rgba(255, 255, 255, 0.08);
text-shadow: none !important;
width: -webkit-fill-available;
}
.self-promo {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 7px 10px;
background-color: rgba(0, 0, 0, 0.5);
}
.self-promo-inner {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
width: -webkit-fill-available;
}
.self-promo-inner a {
all: unset;
color: white;
font-weight: normal;
font-size: 17px;
letter-spacing: 0.8px;
cursor: pointer;
text-align: center;
font-family: "Allerta Stencil", sans-serif;
}
.self-promo-inner a:hover {
text-decoration: underline;
}
.self-promo button {
background-color: rgba(255, 255, 255, 0.125);
backdrop-filter: blur(10px);
border: none;
color: #fff;
font-size: 1.2rem;
cursor: pointer;
outline: none;
border-radius: 50%;
height: 27px;
width: 27px;
padding: 3px;
margin: 0;
}
.self-promo button:hover {
background-color: rgba(255, 255, 255, 0.25);
}
.self-promo button img {
vertical-align: initial;
}
.self-promo.hidden {
display: none;
}
@media screen and (max-width: 500px) {
.self-promo-inner a {
font-size: 12px;
}
}