-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink-boxes.css
50 lines (47 loc) · 870 Bytes
/
link-boxes.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
html {
--img-size: 150px;
}
@media (max-width: 520px) {
html {
--img-size: calc(45vw - 22.4px) !important;
}
}
.link-boxes {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.link-box {
display: inline-block;
width: var(--img-size);
color: transparent;
margin: 0 11.2px 25px;
text-decoration: none;
box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.1);
transition: all .3s;
}
.link-box:hover {
box-shadow: 0 5px 9px rgba(0, 0, 0, 0.15);
transform: translateY(-5px);
}
.link-box .avatar {
display: flex;
justify-content: center;
align-items: center;
height: var(--img-size);
}
.link-box .avatar img {
max-width: 100%;
max-height: 100%;
/* Color for image alt text */
color: grey;
}
.link-box .nickname {
color: grey;
margin: 15px 0;
font-size: 17px;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}