[Monitor Dashboard | Trunk]: Fix a bug with hide-controls animation
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@57957 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
49a1a219fa
commit
81cd99219f
|
@ -23,11 +23,9 @@
|
|||
<dashboard-sidebar *ngIf="hasAdminMenu" [items]="adminMenuItems"
|
||||
></dashboard-sidebar>
|
||||
<div *ngIf="hasSidebar" id="hide_controls">
|
||||
<div class="uk-flex uk-flex-middle">
|
||||
<a href="#" (click)="toggleOpen($event)"><i class="material-icons md-24">play_circle_filled</i></a>
|
||||
<a *ngIf="open" href="#" (click)="toggleOpen($event)">
|
||||
<span class="uk-margin-left">Hide Controls</span>
|
||||
</a>
|
||||
<div id="toggle" (click)="toggleOpen($event)">
|
||||
<i class="material-icons">play_circle_filled</i>
|
||||
<span *ngIf="open" class="uk-margin-small-left">Hide Controls</span>
|
||||
</div>
|
||||
</div>
|
||||
<router-outlet></router-outlet>
|
||||
|
|
|
@ -39,6 +39,7 @@ html .dashboard {
|
|||
.dashboard #sidebar_main .menu_section {
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
|
||||
.dashboard #hide_controls {
|
||||
|
@ -46,57 +47,68 @@ html .dashboard {
|
|||
left: 0;
|
||||
position: fixed;
|
||||
z-index: 1205;
|
||||
width: 320px;
|
||||
height: 45px;
|
||||
background: rgba(0,0,0,0);
|
||||
width: 0;
|
||||
background: rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.dashboard #hide_controls {
|
||||
.dashboard .sidebar_main_active #hide_controls {
|
||||
width: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard #hide_controls * {
|
||||
color: #646a6f;
|
||||
.dashboard .sidebar_main_active #hide_controls {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
border-top: 1px solid rgba(0,0,0,.30);
|
||||
width: 320px;
|
||||
transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
-webkit-transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
-moz-transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.dashboard #hide_controls:hover * {
|
||||
.dashboard #hide_controls #toggle {
|
||||
color: #646a6f;
|
||||
margin-left: 5px;
|
||||
margin-top: 5px;
|
||||
cursor: pointer;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.dashboard #hide_controls #toggle:hover {
|
||||
color: #0d47a1;
|
||||
}
|
||||
|
||||
.dashboard #hide_controls:hover .material-icons {
|
||||
.dashboard #hide_controls:hover #toggle:hover .material-icons {
|
||||
color: #0d47a1;
|
||||
border: #0d47a1 solid 1px;
|
||||
}
|
||||
|
||||
.dashboard #hide_controls > * {
|
||||
margin-left: 5px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.dashboard .sidebar_main_active #hide_controls {
|
||||
border-top: 1px solid rgba(0,0,0,.30);
|
||||
}
|
||||
|
||||
.dashboard #hide_controls .material-icons {
|
||||
transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
-webkit-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
.dashboard #hide_controls #toggle .material-icons {
|
||||
transform: rotateY(0deg);
|
||||
transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
-webkit-transform: rotateY(0deg);
|
||||
-webkit-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
-moz-transform: rotateY(0deg);
|
||||
-moz-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
background: rgba(0, 0, 0, 0);
|
||||
border-radius: 50%;
|
||||
border: rgba(0, 0, 0, 0) solid 1px;
|
||||
text-align: center;
|
||||
width: 26px !important;
|
||||
height: 26px !important;
|
||||
line-height: 26px !important;
|
||||
font-size: 24px;
|
||||
vertical-align: -7px;
|
||||
}
|
||||
|
||||
.dashboard .sidebar_main_active #hide_controls .material-icons {
|
||||
transform: rotate(180deg);
|
||||
-webkit-transform: rotate(180deg);
|
||||
-webkit-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
.dashboard .sidebar_main_active #hide_controls #toggle .material-icons {
|
||||
transform: rotateY(180deg);
|
||||
transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.dashboard #hide_controls > * {
|
||||
margin-left: 10px;
|
||||
-webkit-transform: rotateY(180deg);
|
||||
-webkit-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
-moz-transform: rotateY(180deg);
|
||||
-moz-transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.dashboard .header_full #sidebar_main .sidebar_main_header {
|
||||
|
|
Loading…
Reference in New Issue