summaryrefslogtreecommitdiffstats
path: root/assets/css/components/feed.css
blob: 09021989fa4c58060bdb4a7613c113bfdbfdb618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* feed.css */
.feed-section {
  padding: var(--section-py-mobile) 0;
}

@media (min-width: 768px) {
  .feed-section {
    padding: var(--section-py-desktop) 0;
  }
}

.feed-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

@media (min-width: 768px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .feed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.feed-list .post-card {
  flex-direction: row;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-badge);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* View all link */
.feed-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-btn);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: var(--transition);
}

.feed-cta:hover {
  background: var(--accent2);
  color: var(--bg);
}