Skip to content

Commit

Permalink
-changed: header-left logo hover heaviour-> added back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 13, 2023
1 parent 058289a commit d91acf9
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<div class="header-left" [class.is_opened]="IS_OPEN_SIDEBAR"
matTooltip="v. {{version}}"
matTooltip="{{ 'GoBack' | translate}}"
matTooltipClass="custom-mat-tooltip"
matTooltipHideDelay="100"
matTooltipPosition='below'
#tooltip="matTooltip">
<img *ngIf="!IS_OPEN_SIDEBAR" src="assets/logos/tiledesk_logo_white_small.svg">
<div *ngIf="!IS_OPEN_SIDEBAR">
<img class="logo" src="assets/logos/tiledesk_logo.svg">
<span class="material-icons" (click)="goToBack()">arrow_back</span>
</div>
<img *ngIf="IS_OPEN_SIDEBAR" src="assets/logos/tiledesk-logo_new_white.svg">
</div>
<div class="header-right">
Expand All @@ -18,10 +21,9 @@
</span>
</div> -->
<!-- <i class="material-icons cds-btn-back" (click)="goBack()">keyboard_arrow_left</i> -->
<div class="header-go-back"
(click)="goToBack()"
<div class="header-go-back"
style="cursor:pointer"
matTooltip="{{ 'GoBack' | translate}}"
matTooltip="v. {{version}}"
matTooltipClass="custom-mat-tooltip"
matTooltipHideDelay="100"
matTooltipPosition='below'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,54 @@
// border-right: 2px solid #394f5a;
max-width: 60px;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
// display: flex;
// justify-content: center;
// align-items: center;
transition: 0.3s;
// background-color: $blu;
border-right: 1px solid $gray-light-02;
img {
width: 30px;
filter: brightness(0) saturate(100%) invert(35%) sepia(68%) saturate(2709%) hue-rotate(333deg) brightness(103%) contrast(100%);

}
padding: 10px;

&.is_opened{
max-width: 175px;
transition: 0.3s;
img{
width: 100px;
}
}

div {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
box-shadow: rgba(17, 49, 96, 0.16) 0px 8px 16px 0px, rgba(17, 49, 96, 0.06) 0px 0px 0px 1px; ;
.logo{
opacity: 1;
width: 25px;
position: absolute;
transition: opacity 0.5s ease-in-out;
}
span.material-icons{
opacity: 0;
position: absolute;
color: $blu
}

&:hover{
.logo{
opacity: 0;
}
span.material-icons{
opacity: 1;
transition: opacity 0.5s ease-in-out;
cursor:pointer;
}
}
}
}

.header-right {
Expand Down
14 changes: 14 additions & 0 deletions src/assets/logos/tiledesk_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d91acf9

Please sign in to comment.