Skip to content

Commit b7b1959

Browse files
committed
Cleanup of alerts and css
1 parent 16c798d commit b7b1959

File tree

4 files changed

+246
-54
lines changed

4 files changed

+246
-54
lines changed

alert.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ class Alert
66
public function success($message)
77
{
88
echo "<div class=\"alert alert-success alert-dismissable\"><a class=\"close fa fa-close\" data-dismiss=\"alert\" aria-label=\"close\"></a>" . $message . "</div>\n";
9-
}
9+
}
1010

1111
public function info($message)
1212
{
1313
echo "<div class=\"alert alert-info alert-dismissable\"><a class=\"close fa fa-close\" data-dismiss=\"alert\" aria-label=\"close\"></a>" . $message . "</div>\n";
14-
}
14+
}
1515

1616
public function warning($message)
1717
{
1818
echo "<div class=\"alert alert-warning alert-dismissable\"><a class=\"close fa fa-close\" data-dismiss=\"alert\" aria-label=\"close\"></a>" . $message . "</div>\n";
19-
}
19+
}
2020

2121
public function danger($message)
2222
{
2323
echo "<div class=\"alert alert-danger alert-dismissable\"><a class=\"close fa fa-close\" data-dismiss=\"alert\" aria-label=\"close\"></a>" . $message . "</div>\n";
24-
}
24+
}
2525

2626
}
2727

assets/css/git-challenge.css

+201-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
@import url(font-awesome.min.css);
2-
@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400";
3-
41
@-webkit-keyframes progress-bar-stripes {
52
from {
63
background-position: 40px 0;
@@ -9,6 +6,7 @@
96
background-position: 0 0;
107
}
118
}
9+
1210
@-o-keyframes progress-bar-stripes {
1311
from {
1412
background-position: 40px 0;
@@ -17,6 +15,7 @@
1715
background-position: 0 0;
1816
}
1917
}
18+
2019
@keyframes progress-bar-stripes {
2120
from {
2221
background-position: 40px 0;
@@ -25,6 +24,7 @@
2524
background-position: 0 0;
2625
}
2726
}
27+
2828
.progress {
2929
height: 20px;
3030
margin-bottom: 20px;
@@ -34,6 +34,7 @@
3434
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
3535
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
3636
}
37+
3738
.progress-bar {
3839
float: left;
3940
width: 0;
@@ -49,5 +50,202 @@
4950
-o-transition: width .6s ease;
5051
transition: width .6s ease;
5152
}
53+
5254
.progress-striped .progress-bar,
5355
.progress-bar-striped {
56+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
57+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
58+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
59+
-webkit-background-size: 40px 40px;
60+
background-size: 40px 40px;
61+
}
62+
63+
.progress.active .progress-bar,
64+
.progress-bar.active {
65+
-webkit-animation: progress-bar-stripes 2s linear infinite;
66+
-o-animation: progress-bar-stripes 2s linear infinite;
67+
animation: progress-bar-stripes 2s linear infinite;
68+
}
69+
70+
.progress-bar-success {
71+
background-color: #5cb85c;
72+
}
73+
74+
.progress-striped .progress-bar-success {
75+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
76+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
77+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
78+
}
79+
80+
.progress-bar-info {
81+
background-color: #5bc0de;
82+
}
83+
84+
.progress-striped .progress-bar-info {
85+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
86+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
87+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
88+
}
89+
90+
.progress-bar-warning {
91+
background-color: #f0ad4e;
92+
}
93+
94+
.progress-striped .progress-bar-warning {
95+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
96+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
97+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
98+
}
99+
100+
.progress-bar-danger {
101+
background-color: #d9534f;
102+
}
103+
104+
.progress-striped .progress-bar-danger {
105+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
106+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
107+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
108+
}
109+
110+
.progress-bar-issue {
111+
background-color: #8665c8;
112+
}
113+
114+
.progress-striped .progress-bar-issue {
115+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
116+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
117+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
118+
}
119+
120+
.progress-bar-pr-merged {
121+
background-color: #4500c8;
122+
}
123+
124+
.progress-striped .progress-bar-pr-merged {
125+
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
126+
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
127+
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
128+
}
129+
130+
.alert {
131+
padding: 15px;
132+
padding: 15px;
133+
margin-bottom: 20px;
134+
border: 1px solid transparent;
135+
border-radius: 4px;
136+
}
137+
138+
.alert h4 {
139+
margin-top: 0;
140+
color: inherit;
141+
}
142+
143+
.alert .alert-link {
144+
font-weight: bold;
145+
}
146+
147+
.alert > p,
148+
.alert > ul {
149+
margin-bottom: 0;
150+
}
151+
152+
.alert > p + p {
153+
margin-top: 5px;
154+
}
155+
156+
.alert-dismissable,
157+
.alert-dismissible {
158+
padding-right: 35px;
159+
}
160+
161+
.alert-dismissable .close,
162+
.alert-dismissible .close {
163+
position: relative;
164+
top: -2px;
165+
right: -21px;
166+
color: inherit;
167+
}
168+
169+
.alert-success {
170+
color: #3c763d;
171+
background-color: #dff0d8;
172+
border-color: #d6e9c6;
173+
}
174+
175+
.alert-success hr {
176+
border-top-color: #c9e2b3;
177+
}
178+
179+
.alert-success .alert-link {
180+
color: #2b542c;
181+
}
182+
183+
.alert-info {
184+
color: #31708f;
185+
background-color: #d9edf7;
186+
border-color: #bce8f1;
187+
}
188+
189+
.alert-info hr {
190+
border-top-color: #a6e1ec;
191+
}
192+
193+
.alert-info .alert-link {
194+
color: #245269;
195+
}
196+
197+
.alert-warning {
198+
color: #8a6d3b;
199+
background-color: #fcf8e3;
200+
border-color: #faebcc;
201+
}
202+
203+
.alert-warning hr {
204+
border-top-color: #f7e1b5;
205+
}
206+
207+
.alert-warning .alert-link {
208+
color: #66512c;
209+
}
210+
211+
.alert-danger {
212+
color: #a94442;
213+
background-color: #f2dede;
214+
border-color: #ebccd1;
215+
}
216+
217+
.alert-danger hr {
218+
border-top-color: #e4b9c0;
219+
}
220+
221+
.alert-danger .alert-link {
222+
color: #843534;
223+
}
224+
225+
.close {
226+
float: right;
227+
font-size: 21px;
228+
font-weight: bold;
229+
line-height: 1;
230+
color: #000;
231+
text-shadow: 0 1px 0 #fff;
232+
filter: alpha(opacity=20);
233+
opacity: .2;
234+
}
235+
236+
.close:hover,
237+
.close:focus {
238+
color: #000;
239+
text-decoration: none;
240+
cursor: pointer;
241+
filter: alpha(opacity=50);
242+
opacity: .5;
243+
}
244+
245+
button.close {
246+
-webkit-appearance: none;
247+
padding: 0;
248+
cursor: pointer;
249+
background: transparent;
250+
border: 0;
251+
}

include/configuration-template.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
/** Git Organization */
1717
define("GIT_ORG", "github-tools");
1818
/** Git Client */
19-
define("GIT_CLIENT", "Git Client");
19+
define("GIT_CLIENT", "");
2020
/** Git Secret */
21-
define("GIT_SECRET", "Git Secret");
21+
define("GIT_SECRET", "");
2222

2323
/** App Options */
2424
define("SIGN_UP", "FALSE");

0 commit comments

Comments
 (0)