-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgithub-widget.css
More file actions
125 lines (112 loc) · 1.91 KB
/
github-widget.css
File metadata and controls
125 lines (112 loc) · 1.91 KB
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
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
margin: 40px;
font-family: "Open Sans", "sans-serif";
background-color: #9dacb5; /* For browsers that do not support gradients */
background-image: linear-gradient(
180deg,
rgba(145, 171, 186, 0.9),
rgba(140, 171, 192, 0.8),
rgba(172, 163, 156, 1),
rgba(187, 140, 110, 1)
);
color: #444;
}
h1,
p {
margin: 0 0 1em 0;
}
a {
text-decoration: none;
}
.wrapper {
max-width: 940px;
margin: 0 20px;
display: grid;
grid-gap: 10px;
}
/* no grid support? */
.wrapper {
display: flex;
flex-wrap: wrap;
}
.wrapper {
display: grid;
margin: 0 auto;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: minmax(150px, auto);
}
.gw-repo-outer {
/* needed for the flex layout*/
margin-left: 5px;
margin-right: 5px;
flex: 1 1 200px;
}
.gw-repo-outer:nth-child(even) {
background-color: #cfdfef;
color: #000;
}
.header,
footer {
margin-left: 5px;
margin-right: 5px;
flex: 0 1 100%;
grid-column: 1 / -1;
}
.wrapper > * {
background-color: #43d9b8;
color: #fff;
border-radius: 5px;
padding: 20px;
font-size: 150%;
margin-bottom: 10px;
}
/* We need to set the margin used on flex items to 0 as we have gaps in grid. */
@supports (display: grid) {
.wrapper > * {
margin: 2;
}
}
.gw-repo {
padding: 0.5em 0;
margin: 0 1.5em 1em 0;
}
.gw-repo:nth-child(2n) {
margin: 0 0 1em 1.5em;
}
.gw-title {
margin-bottom: 0.3em;
}
.gw-name {
font-weight: bold;
}
.gw-stats {
display: inline-block;
margin: 0;
float: right;
}
.gw-watchers,
.gw-forks {
display: inline-block;
height: 21px;
padding: 0 5px 0 23px;
line-height: 21px;
background: transparent url("repostat.png") no-repeat 0 0;
}
.gw-watchers {
background-position: 5px -2px;
}
.gw-forks {
background-position: 5px -52px;
}
.gw-lang {
font-size: 0.8em;
color: #777;
}
.gw-clearer {
clear: left;
}