Skip to content

Commit

Permalink
fix(ui): unify loading animations in side panel
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksueiR committed Apr 21, 2015
1 parent 7a2602c commit 64e9632
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 104 deletions.
8 changes: 8 additions & 0 deletions site/includes/loadingsimple.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div class="loading-simple">
<span>{{t "map.loadingTitle"}}</span>
<ul role="presentation">
<li></li>
<li></li>
<li></li>
</ul>
</div>
28 changes: 7 additions & 21 deletions site/pages/ramp.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@
</div>
</div>
<div id="map-load-indicator" class="">
<span>{{t "map.loadingTitle"}}</span><ul>
<li></li>
<li></li>
<li></li>
</ul>
{{>loadingsimple}}
</div>
</div>
</div>
Expand All @@ -203,14 +199,9 @@
</h2>-->
<div id="searchMapSectionBody">
<!--LAYER SELECTION BEGINS-->
<ul class="loadingAnimation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="loadingAnimation">
{{>loadingsimple}}
</div>
<!--LAYER SECTION END-->
</div>
<!--</div>-->
Expand All @@ -219,14 +210,9 @@
<details id="tabs1_2" data-panel-name="datagrid">
<summary class="">{{t "datagrid.dataTabTitle"}}</summary>
<div id="gridpane">
<ul class="loadingAnimation">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div class="loadingAnimation">
{{>loadingsimple}}
</div>
</div>
</details>
</div>
Expand Down
87 changes: 87 additions & 0 deletions src/css/effects/animation-effects.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,93 @@
padding: 10px !important;
}

.loading-simple {

font-weight: bold;
display: inline;

ul {
display: inline-block;
margin: 0 0 0 0;
padding: 0 !important;
list-style: none;

li {
background-color: #000000;
border-radius: 20%;
float: left;
height: 3px;
margin: 0 0 0 3px;
padding: 0;
width: 3px;

.dot-animation (@keyframe) {
animation: 5s cubic-bezier(0.03, 0.615, 0.995, 0.415) 0s normal both infinite @keyframe;
}

.default-keyframes() {
0% {
opacity: 0;
}

10% {
opacity: 0;
}

85% {
opacity: 1;
}

95% {
opacity: 0;
}

100% {
opacity: 0;
}
}

@keyframes dot-1 {
.default-keyframes; 20% {
opacity: 1;
}
}

@keyframes dot-2 {
.default-keyframes; 40% {
opacity: 0;
}

50% {
opacity: 1;
}
}

@keyframes dot-3 {
.default-keyframes; 60% {
opacity: 0;
}

70% {
opacity: 1;
}
}

&:nth-child(1) {
.dot-animation (dot-1);
}

&:nth-child(2) {
.dot-animation (dot-2);
}

&:nth-child(3) {
.dot-animation (dot-3);
}
}
}
}

ul.loadingAnimation {
margin: 10px 0;
height: 4px;
Expand Down
83 changes: 0 additions & 83 deletions src/css/map/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
left: 0;
}


#map-load-indicator {
bottom: 0;
font-weight: bold;
padding: 3px 10px 3px 35px;
position: absolute;
right: 3px;
Expand All @@ -54,87 +52,6 @@
.transition(300ms, ease);
opacity: 0;
}

ul {
display: inline-block;
margin: 0 0 0 9px !important;
padding: 0 !important;
list-style: none;

li {
background-color: #000000;
border-radius: 20%;
float: left;
height: 3px;
margin: 0 0 0 3px;
padding: 0;
width: 3px;

.dot-animation (@keyframe) {
animation: 5s cubic-bezier(0.03, 0.615, 0.995, 0.415) 0s normal both infinite @keyframe;
}

.default-keyframes() {
0% {
opacity: 0;
}

10% {
opacity: 0;
}

85% {
opacity: 1;
}

95% {
opacity: 0;
}

100% {
opacity: 0;
}
}

@keyframes dot-1 {
.default-keyframes; 20% {
opacity: 1;
}
}

@keyframes dot-2 {
.default-keyframes; 40% {
opacity: 0;
}

50% {
opacity: 1;
}
}

@keyframes dot-3 {
.default-keyframes; 60% {
opacity: 0;
}

70% {
opacity: 1;
}
}

&:nth-child(1) {
.dot-animation (dot-1);
}

&:nth-child(2) {
.dot-animation (dot-2);
}

&:nth-child(3) {
.dot-animation (dot-3);
}
}
}
}

.map-scale-dark {
Expand Down
5 changes: 5 additions & 0 deletions src/css/side-panel/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
//margin: 0;
background-color: white;

.loadingAnimation {
text-align: center;
margin: 45px 0;
}

.wb-tabs {
position: static;

Expand Down

0 comments on commit 64e9632

Please sign in to comment.