/
github-profile.css
79 lines (67 loc) · 1.46 KB
/
github-profile.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
/*
GITHUB DYMANIC PROFILE GRABBER
CSS
*/
body {
background-color: #eeeef0;
}
.username-input {
margin: 20px;
padding: 10px;
}
.github-profile {
font-family: sans-serif;
font-size: 1.2em;
margin: 20px;
background-color: white;
max-width: 300px;
color: #444;
display: flex;
flex-direction: column;
/* pull the shadow from http://www.cssmatic.com/box-shadow brah */
-webkit-box-shadow: 0px 10px 11px -8px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 10px 11px -8px rgba(0,0,0,0.75);
box-shadow: 0px 10px 11px -8px rgba(0,0,0,0.75);
}
.github-profile-avatar {
height: 225px;
background-size: cover; /* bleed image to the edge*/
background-repeat: no-repeat;
background-position: center;
display: flex;
align-items: flex-end;
padding: 10px;
color: white;
}
.github-profile-name, .github-profile-location {
margin: 5px;
}
.github-profile-stats {
display: flex;
justify-content: space-around;
margin: 10px;
}
.github-profile-stat {
text-align: center;
}
.github-profile-stat > span {
display: inline-block;
padding-bottom: 10px;
padding-top: 10px;
}
/* WE SHOULD BE USING SVGs NOW */
i.icon {
display: block;
width: 64px;
height: 64px;
background-size: contain; /* see whole icon */
background-position: center;
background-repeat: no-repeat;
/* margin: 10px; because the margins and padding are being applied to text */
}
.github-icon-gist{
background-image: url(git-gist-icon.png)
}
.github-icon-repo{
background-image: url(git-repo-icon.png)
}