Skip to content

Commit 8e963a7

Browse files
more sensible defaults for the loading bar
1 parent fb57d6d commit 8e963a7

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

example/app.css

+19-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ body {
22
background-color: #ecf0f1;
33
/*padding: 25px;*/
44
font-family: 'Oxygen', sans;
5-
width: 850px;
5+
width: 85%;
66
margin: auto;
77
overflow-y: scroll;
88
}
99
.thumbnail {
1010
width: 70px;
1111
height: 70px;
12-
border: 1px solid #F1C6C2;
12+
/*border: 1px solid #F1C6C2;*/
13+
border: 1px solid #CE8982
1314
}
1415
a {
1516
font-size:16px;
@@ -154,3 +155,19 @@ h4 {
154155
font-family: 'Oxygen', sans;
155156
color: #888;
156157
}
158+
159+
160+
/*
161+
* override the default CSS as an example
162+
*/
163+
164+
#loading-bar .bar {
165+
background: #2c3e50;
166+
}
167+
#loading-bar .peg {
168+
box-shadow: 0 0 10px #2c3e50, 0 0 5px #2c3e50;
169+
}
170+
#loading-bar-spinner .spinner-icon {
171+
border-top-color: #2c3e50;
172+
border-left-color: #2c3e50;
173+
}

src/loading-bar.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
-o-transition: width 500ms;
3131
transition: width 500ms;
3232

33-
background: #2c3e50;
33+
background: #29d;
3434
position: fixed;
3535
z-index: 2000;
3636
top: 0;
@@ -46,7 +46,7 @@
4646
right: 0px;
4747
width: 100px;
4848
height: 100%;
49-
box-shadow: 0 0 10px #2c3e50, 0 0 5px #2c3e50;
49+
box-shadow: 0 0 10px #29d, 0 0 5px #29d;
5050
opacity: 1.0;
5151

5252
-webkit-transform: rotate(3deg) translate(0px, -4px);
@@ -69,8 +69,8 @@
6969
height: 14px;
7070

7171
border: solid 2px transparent;
72-
border-top-color: #2c3e50;
73-
border-left-color: #2c3e50;
72+
border-top-color: #29d;
73+
border-left-color: #29d;
7474
border-radius: 10px;
7575

7676
-webkit-animation: loading-bar-spinner 400ms linear infinite;

0 commit comments

Comments
 (0)