diff --git a/src/app/components/event-list/event-list.directive.js b/src/app/components/event-list/event-list.directive.js index 5458301..165e090 100644 --- a/src/app/components/event-list/event-list.directive.js +++ b/src/app/components/event-list/event-list.directive.js @@ -30,14 +30,13 @@ EventListController.prototype.toggleView = function () { var vm = this; + vm.isListVisible = !vm.isListVisible; + }; - if(vm.isListVisible) { - // animate hide - } else { - // animate show - } + EventListController.prototype.subscribe = function (data) { + var vm = this; - vm.isListVisible = !vm.isListVisible; + vm.$log.debug('data', data); }; var directive = { diff --git a/src/app/components/event-list/event-list.html b/src/app/components/event-list/event-list.html index 6f42e7d..a9b467d 100644 --- a/src/app/components/event-list/event-list.html +++ b/src/app/components/event-list/event-list.html @@ -1,5 +1,5 @@
-
+
@@ -8,7 +8,7 @@
@@ -23,13 +23,88 @@
- -
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+ dd/mm/aaaa + - + HH:mm + - + Mais médicos, Segurança Nacional, SAMU + + 123 inscritos +
+
diff --git a/src/app/components/event-list/event-list.scss b/src/app/components/event-list/event-list.scss index 76140d1..4969a75 100644 --- a/src/app/components/event-list/event-list.scss +++ b/src/app/components/event-list/event-list.scss @@ -1,23 +1,22 @@ .event-list { position: relative; - background-color: #eee; + background-color: #eeeeee; .event-list--panel { - height: 400px; - border: 1px solid #333; + height: 310px; + border: 1px solid #333333; padding: 20px; - - -webkit-transition: 0.5s linear all; - -moz-transition: 0.5s linear all; - -o-transition: 0.5s linear all; - transition: 0.5s linear all; + margin: 20px 0; + line-height: 20px; + transition: .3s linear all; &.ng-hide { height: 0px; + line-height: 0px; } .event-list--header { - border-bottom: 1px solid #333; + border-bottom: 1px solid #333333; } .event-list--icon { @@ -43,12 +42,27 @@ height: $event-tab-height; position: absolute; right: 0; - top: -$event-tab-height; + top: $event-tab-height * (-1); padding: 5px; - background-color: #eee; - border: 1px solid #333; - + background-color: #eeeeee; + border: 1px solid #333333; text-align: center; + line-height: 20px; + cursor: pointer; + transition: .3s linear all; + overflow: hidden; + z-index: 100; + + &.ng-hide { + height: 0px; + line-height: 0px; + top: -1px; + } + } + + .table-responsive { + height: 250px; + overflow-y: scroll; } .event-tab--icon { -- libgit2 0.21.2