Skip to content

Commit

Permalink
fix: light dark toggle icon padding
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 9, 2024
1 parent ac5d7dc commit 8d6df62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<button class="theme-mode-toggle" (click)="toggleThemeMode()">
<span class="material-icons" *ngIf="!isDarkMode"> light_mode </span>
<span class="material-icons" *ngIf="isDarkMode"> dark_mode </span>
<button class="theme-mode-toggle">
<span class="material-icons" *ngIf="!isDarkMode" (click)="toggleThemeMode()"> light_mode </span>
<span class="material-icons" *ngIf="isDarkMode" (click)="toggleThemeMode()"> dark_mode </span>
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@
align-items: center;
justify-content: center;
margin-left: 15px;
cursor: pointer;
color: #fff;
padding-left: 15px;
position: relative;
&:hover {
color: var(--primary);
}

.material-icons {
font-size: 20px;
cursor: pointer;

&::before {
content: '';
Expand All @@ -44,5 +41,9 @@
bottom: 0;
width: 2px;
}

&:hover {
color: var(--primary);
}
}
}

0 comments on commit 8d6df62

Please sign in to comment.