nakama/frontend/src/pages/Feed.css

167 lines
2.6 KiB
CSS
Raw Normal View History

2025-11-03 20:35:01 +00:00
.feed-page {
min-height: 100vh;
}
.feed-header {
position: sticky;
top: 0;
background: var(--bg-secondary);
padding: 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--divider-color);
z-index: 10;
}
.feed-header h1 {
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
}
.create-btn {
width: 40px;
height: 40px;
border-radius: 50%;
2025-11-03 22:03:30 +00:00
background: #1C1C1E;
2025-11-03 20:35:01 +00:00
color: white;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px var(--shadow-md);
}
2025-11-03 20:54:59 +00:00
.create-btn svg {
stroke: white;
}
2025-11-03 22:03:30 +00:00
[data-theme="dark"] .create-btn {
background: #FFFFFF;
color: #000000;
}
[data-theme="dark"] .create-btn svg {
stroke: #000000;
}
2025-11-03 20:35:01 +00:00
.feed-filters {
display: flex;
gap: 8px;
padding: 12px 16px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--divider-color);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.feed-filters::-webkit-scrollbar {
display: none;
}
.filter-btn {
padding: 8px 16px;
border-radius: 20px;
2025-11-03 22:03:30 +00:00
background: #E5E5EA;
color: #666666;
2025-11-03 20:35:01 +00:00
font-size: 14px;
font-weight: 500;
white-space: nowrap;
transition: all 0.2s;
}
.filter-btn.active {
2025-11-03 22:03:30 +00:00
background: #1C1C1E;
color: #FFFFFF;
font-weight: 600;
2025-11-03 21:29:00 +00:00
}
2025-11-03 22:03:30 +00:00
/* Тёмная тема */
2025-11-03 21:29:00 +00:00
[data-theme="dark"] .filter-btn {
2025-11-03 22:03:30 +00:00
background: #3A3A3C;
color: #999999;
2025-11-03 21:43:00 +00:00
font-weight: 500;
2025-11-03 21:29:00 +00:00
}
[data-theme="dark"] .filter-btn.active {
2025-11-03 21:43:00 +00:00
background: #FFFFFF;
color: #000000;
font-weight: 600;
2025-11-03 20:35:01 +00:00
}
.feed-content {
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.loading-state {
display: flex;
justify-content: center;
align-items: center;
padding: 60px 20px;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
gap: 16px;
}
.empty-state p {
color: var(--text-secondary);
font-size: 16px;
}
.btn-primary {
padding: 12px 24px;
border-radius: 12px;
2025-11-03 22:03:30 +00:00
background: #1C1C1E;
2025-11-03 20:35:01 +00:00
color: white;
font-size: 16px;
font-weight: 600;
}
2025-11-03 22:03:30 +00:00
[data-theme="dark"] .btn-primary {
background: #FFFFFF;
color: #000000;
}
2025-11-03 20:35:01 +00:00
.load-more-btn {
width: 100%;
padding: 12px;
border-radius: 12px;
background: var(--bg-secondary);
color: var(--button-accent);
font-size: 15px;
font-weight: 600;
margin-top: 8px;
}
.load-more-btn:disabled {
opacity: 0.5;
}
2025-11-04 21:51:05 +00:00
.post-highlight {
animation: highlight 2s ease-out;
border-radius: 12px;
padding: 8px;
margin: -8px;
}
@keyframes highlight {
0% {
background: rgba(0, 122, 255, 0.3);
box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}
100% {
background: transparent;
box-shadow: none;
}
}