Skip to content

Commit 2b71e03

Browse files
committed
refactor: move repo styles from feedItem to separate .repo class for better structure
1 parent 5b2ab4a commit 2b71e03

1 file changed

Lines changed: 35 additions & 30 deletions

File tree

src/features/feed/components/feed.css

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,7 @@
2121
border-radius: 10px;
2222
min-height: 300px;
2323
}
24-
.feedItem .repo {
25-
display: flex;
26-
flex-direction: column;
27-
gap: 12px;
28-
background: var(--card-background-color);
29-
border-bottom: 12px solid green;
30-
}
31-
.feedItem .repo .title {
32-
font-size: 24px;
33-
color: var(--card-header-text-color);
34-
margin: 0;
35-
padding: 0;
36-
}
37-
.feedItem .repo .description {
38-
font-size: 16px;
39-
color: var(--primary-text-color);
40-
margin: 0;
41-
padding: 0 12px;
42-
text-align: center;
43-
}
44-
.feedItem .repo .details {
45-
display: flex;
46-
flex-direction: row;
47-
gap: 8px;
48-
font-size: 14px;
49-
}
50-
.feedItem .repo .details p {
51-
margin: 0;
52-
padding: 0;
53-
}
24+
5425
.loading {
5526
display: flex;
5627
flex-direction: column;
@@ -105,3 +76,37 @@
10576
margin: 0;
10677
}
10778
}
79+
80+
.repo {
81+
display: flex;
82+
flex-direction: column;
83+
gap: 12px;
84+
background: var(--card-background-color);
85+
border-bottom: 12px solid green;
86+
}
87+
.repo .title {
88+
font-size: 1.4rem;
89+
color: var(--card-header-text-color);
90+
margin: 0;
91+
padding: 0;
92+
}
93+
.repo .description {
94+
font-size: 0.9rem;
95+
color: var(--primary-text-color);
96+
margin: 0;
97+
padding: 0 12px;
98+
text-align: center;
99+
line-height: 1.5em;
100+
max-height: 3em;
101+
overflow: hidden;
102+
}
103+
.repo .details {
104+
display: flex;
105+
flex-direction: row;
106+
gap: 8px;
107+
font-size: 14px;
108+
}
109+
.repo .details p {
110+
margin: 0;
111+
padding: 0;
112+
}

0 commit comments

Comments
 (0)