-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
105 lines (92 loc) · 1.93 KB
/
styles.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
.user-badge-container {
align-content:center;
align-items:center;
display:grid;
gap:30px 30px;
grid-auto-flow:row;
grid-template-columns:repeat(4,1fr);
justify-content:center;
justify-items:center;
margin-top:30px
}
@media (max-width: 1024px) {
.user-badge-container {
grid-template-columns:repeat(3,1fr)
}
}
@media (max-width: 768px) {
.user-badge-container {
grid-template-columns:repeat(2,1fr)
}
}
@media (max-width: 480px) {
.user-badge-container {
grid-template-columns:1fr
}
}
.achievement-info {
font-size:18px;
margin-top:20px
}
.user-badge {
align-content:baseline;
align-items:start;
background-color:#fff;
border:1px solid #D8D8D8;
border-radius:12px;
display:inline-grid;
grid-auto-rows:minmax(60px,auto);
height:100%;
margin:10px;
padding:24px;
text-align:center;
transition:all .2s ease-in-out;
width:100%
}
.user-badge-description {
color:#666;
font-size:1em;
font-weight:500
}
.user-badge-image img {
height:auto;
max-width:100%;
width:100px
}
.user-badge-name {
background-color:transparent;
color:#9000D9;
font-size:22px;
font-weight:600;
margin:8px 0;
text-decoration:none;
transition:all .2s ease-in-out;
word-break:break-word
}
.user-badge.earned-badge {
border:3px solid green
}
.user-badge.unearned-badge {
-moz-filter:grayscale(100%);
-webkit-filter:grayscale(100%);
filter:grayscale(100%);
opacity:.7;
transition:all .5s ease
}
.user-badge.unearned-badge .user-badge-image:after {
background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"/></svg>');
background-size:20px 20px;
content:"";
height:20px;
opacity:.95;
position:absolute;
right:95px;
top:25px;
width:20px
}
.user-badge.unearned-badge:hover {
opacity:.85
}
.user-badge:hover {
transform:translateY(-3px)
}