Files
nexium-web/app/static/css/home.css
T
2026-08-03 17:43:44 -04:00

248 lines
4.3 KiB
CSS

#main {
display: flex;
min-height: 100vh;
}
.home-page-shell {
width: 100%;
padding: 1.75rem 1rem 1.75rem;
}
.home-page-container {
width: 100%;
max-width: 980px;
margin: 0 auto;
padding: 0 0.25rem;
}
.home-hero-subtle {
padding: 0.5rem 0 0.75rem;
}
.home-hero-avatar {
width: 76px;
height: 76px;
object-fit: cover;
}
.home-kicker {
color: var(--text-secondary, #9c9c9c);
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 0.68rem;
}
.home-greeting {
font-size: clamp(1.35rem, 2.1vw, 1.85rem);
font-weight: 700;
line-height: 1.1;
word-break: break-word;
}
.home-status-row {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
}
.home-status-text,
.home-section-meta {
color: var(--text-secondary, #9c9c9c);
font-size: 0.85rem;
}
.home-section-title {
font-size: 1.05rem;
line-height: 1.1;
margin-bottom: 0;
}
.card-container {
background-color: var(--card-bg) !important;
box-shadow: 0 0 10px 0 var(--card-shadow);
border-radius: 5px;
}
.home-soft-strip {
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.06);
}
.home-friends-strip {
display: flex;
gap: 0.75rem;
align-items: flex-start;
min-height: 116px;
}
.home-friend-card {
width: 96px;
flex: 0 0 auto;
text-decoration: none;
}
.home-friend-avatar-frame {
width: 96px;
height: 96px;
}
.home-friend-avatar {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 16px;
}
.home-empty-state {
min-height: 116px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: var(--text-secondary, #9c9c9c);
border: 1px dashed rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 1rem;
flex: 1 1 auto;
}
.home-empty-wide {
width: 100%;
}
.home-empty-inline {
margin: 0.25rem 0;
}
.home-place-card {
width: 170px;
flex: 0 0 auto;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.07);
}
.home-place-thumb-wrap {
overflow: hidden;
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.home-place-thumb {
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
display: block;
}
.home-place-year {
font-size: 11px;
padding: 3px 6px;
border-top-right-radius: 6px;
}
.home-place-copy {
min-height: 90px;
}
.home-place-name {
font-size: 0.95rem;
line-height: 1.15;
line-clamp: 2;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.home-place-playing {
margin: 0;
font-size: 0.84rem;
}
.home-place-playing span {
font-size: 0.8rem;
}
.home-place-votes {
margin-top: auto;
}
.home-places-strip {
display: flex;
gap: 0.75rem;
overflow-x: auto;
padding-bottom: 0.25rem;
}
.status-icon {
position: absolute;
bottom : -8px;
right: -8px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: rgb(0, 139, 219);
border: 2px solid var(--card-bg);
}
.status-icon-green {
background-color: rgb(15, 211, 80) !important;
}
.image-container {
position: relative;
display: table;
margin: 0 auto;
}
.friends-scroll {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
white-space: nowrap;
}
.friends-scroll a {
flex: 0 0 auto;
}
.friends-scroll::-webkit-scrollbar { display: none; }
.friends-scroll { -ms-overflow-style: none; scrollbar-width: none; }
@media (max-width: 768px) {
.home-page-shell {
padding: 1rem 0.75rem 1.5rem;
}
.home-hero-subtle {
align-items: flex-start;
}
.home-hero-avatar {
width: 64px;
height: 64px;
}
.home-kicker {
font-size: 0.63rem;
}
.home-greeting {
font-size: 1.4rem;
}
.home-status-text,
.home-section-meta {
font-size: 0.8rem;
}
.home-section-title {
font-size: 1rem;
}
.home-place-card {
width: 160px;
}
}