Skip to content

Commit

Permalink
fix(demo): Fix centering of icons, add hover effect on settings (shak…
Browse files Browse the repository at this point in the history
…a-project#3352)

Co-authored-by: Anshgoyal <anshgo01yal@users.noreply.github.com>
  • Loading branch information
anshgo01yal and anshgo01yal committed Apr 20, 2021
1 parent a59559f commit ef0c651
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions demo/demo.less
Expand Up @@ -93,6 +93,15 @@ html, body {
transition: 0.2s ease-in-out;
}

.mdl-button--fab,
.mdl-button--icon {
/* By default, MDL icon buttons may end up vertically off-center. This aligns
* them to the center both vertically and horizontally. */
display: inline-flex;
align-items: center;
justify-content: center;
}

.mdl-button--fab:hover {
filter: drop-shadow(0 2px 8px #333);
}
Expand Down Expand Up @@ -383,6 +392,16 @@ html, body {
padding: 0 16px;
}

.app-header .mdl-layout__drawer-button .material-icons {
&:hover {
/* Spin the gear icon in the settings menu when hovered. */
transform: rotate(90deg);
}

/* Animate the spin. */
transition: transform 0.3s ease-in-out;
}

footer li {
list-style: square outside;
}
Expand Down

0 comments on commit ef0c651

Please sign in to comment.