-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
186 lines (154 loc) · 2.73 KB
/
style.css
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
font-size: 62.5%;
--ff-primary: "Poppins", sans-serif;
--text-color: #303030;
--hue: 194;
--primary-color: hsl(var(--hue), 100%, 63%);
}
body {
font-family: "Poppins", sans-serif;
font-size: 1.6rem;
line-height: 1.6;
background-color: #f5f5f5;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
border: 0;
}
#app {
max-width: 500px;
margin: 0 auto;
padding: 2rem;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 2.5rem 0;
}
header h1 {
font-size: 2rem;
text-transform: uppercase;
font-weight: 700;
}
.search {
display: flex;
align-items: center;
}
.search input {
height: 3.2rem;
border: 1px solid #ccc;
border-radius: 0.4rem 0 0 0.4rem;
padding: 0 0.8rem;
}
.search button {
height: 3.2rem;
border: none;
border-radius: 0 0.4rem 0.4rem 0;
padding: 0 0.8rem;
color: #fff;
background-color: var(--primary-color);
font-weight: 700;
cursor: pointer;
}
.search button:hover {
background-color: hsl(var(--hue), 100%, 53%);
}
.search button:active {
background-color: hsl(var(--hue), 100%, 43%);
}
table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
box-shadow: 0px 1px 2rem -1px rgb(0 0 0 / 30%);
}
table * {
font-size: 1.4rem;
}
table th {
background-color: var(--primary-color);
text-align: left;
font-weight: normal;
padding: 1.5rem;
}
table th:nth-child(1) {
padding-left: 2.2rem;
}
table th:first-child {
border-top-left-radius: 0.4rem;
}
table th:last-child {
border-top-right-radius: 0.4rem;
}
table td {
padding: 1.5rem;
text-align: left;
}
table tr {
background: #eee;
}
table tr:hover {
background: rgba(238, 238, 238, 0.644);
}
table tr:nth-child(odd) {
background: #ddd;
}
table tr:nth-child(odd):hover {
background: rgba(221, 221, 221, 0.863);
}
table tr:last-child td {
border-bottom: none;
}
table tr:last-child td:first-child {
border-bottom-left-radius: 0.4rem;
border-bottom-right-radius: 0.4rem;
}
table tr:first-child td:first-child {
border-bottom-left-radius: 0.4rem;
border-bottom-right-radius: 0.4rem;
}
td.user {
display: flex;
align-items: center;
gap: 1rem;
}
td.user img {
width: 5rem;
height: 5rem;
border-radius: 50%;
margin-right: 1rem;
object-fit: cover;
}
td.user a {
text-decoration: none;
}
td.user a p {
color: var(--text-color);
font-weight: 700;
}
td.repositories,
td.followers {
text-align: center;
}
td .btn-remove {
background: none;
color: #f00;
border: none;
padding: 0.5rem 1rem;
font-weight: 700;
cursor: pointer;
}