-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
132 lines (111 loc) · 2.42 KB
/
main.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
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400);
html {font-size: 18px;}
body {
font-family: 'Source Sans Pro', sans-serif;
line-height: 1.6;
font-size: 1em;
padding: 0 20px;
}
#wrapper {
width: 410px;
height: 350px;
margin: 0 auto;
position: absolute;
top: 50%;
left: 50%;
margin-top: -175px;
margin-left: -205px;
}
.content {
width: 100%;
margin: 0 auto;
text-align: center;
}
h1 {
font-weight: 300;
font-size: 1.5em;
color: #000;
}
p {
font-family: 'Source Sans Pro', sans-serif;
line-height: 1em;
font-weight: 300;
color: #333;
}
/*
Server by @chrisburton
*/
.grid {
max-width: 175px;
height: 200px;
background: #222;
margin: 0 auto;
padding: 1em 0;
border-radius: 3px;
}
.grid .server {
display: block;
max-width: 68%;
height: 20px;
background: rgba(255,255,255,.15);
box-shadow: 0 0 0 1px black inset;
margin: 10px 0 20px 30px;
}
.grid .server:before {
content: "";
position: relative;
top: 7px;
left: -18px;
display: block;
width: 6px;
height: 6px;
background: green;
border: 1px solid black;
border-radius: 6px;
margin-top: 7px;
}
/* Animation */
@-webkit-keyframes pulse {
0% {background: rgba(255,255,255,.15);}
100% {background: #ae1508;}
}
.grid .server:nth-child(3):before {
background: rgba(255,255,255,.15);
-webkit-animation: pulse .5s infinite alternate;
}
@-webkit-keyframes pulse_three {
0% {background: rgba(255,255,255,.15);}
100% {background: #d2710a;}
}
.grid .server:nth-child(5):before {
background: rgba(255,255,255,.15);
-webkit-animation: pulse_three .7s infinite alternate;
}
@-webkit-keyframes pulse_two {
0% {background: rgba(255,255,255,.15);}
100% {background: #9da506;}
}
.grid .server:nth-child(1):before {
background: rgba(255,255,255,.15);
-webkit-animation: pulse_two .1s infinite alternate;
}
.grid .server:nth-child(2):before {
background: rgba(255,255,255,.15);
-webkit-animation: pulse_two .175s infinite alternate;
}
.grid .server:nth-child(4):before {
background: rgba(255,255,255,.15);
-webkit-animation: pulse_two .1s infinite alternate;
}
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {
html {font-size: 12px;}
}
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2) {
html {font-size: 14px;}
}