adding pulse effect

This commit is contained in:
AlphaX-Projects 2023-06-13 17:59:19 +02:00
parent f91c3d69dc
commit b31808e1b0

View File

@ -165,12 +165,14 @@ class ShowPlugin extends connect(store)(LitElement) {
.count { .count {
font-weight: bold; font-weight: bold;
background-color: red; background-color: #C6011F;
color: white; color: white;
font-size: 12px; font-size: 12px;
padding: 2px 6px; padding: 2px 6px;
text-align: center; text-align: center;
border-radius: 5px; border-radius: 5px;
animation: pulse 1500ms infinite;
animation-duration: 6s;
} }
.ml-5 { .ml-5 {
@ -204,6 +206,15 @@ class ShowPlugin extends connect(store)(LitElement) {
.mr-20 { .mr-20 {
margin-right: 20px; margin-right: 20px;
} }
@keyframes pulse {
0% {
box-shadow:#C6011F 0 0 0 0;
}
75% {
box-shadow:#ff69b400 0 0 0 16px;
}
}
` `
} }
@ -744,8 +755,8 @@ class NavBar extends connect(store)(LitElement) {
<div class="app-list"> <div class="app-list">
${repeat(this.myMenuList, (plugin) => plugin.url, (plugin, index) => html` ${repeat(this.myMenuList, (plugin) => plugin.url, (plugin, index) => html`
<div class="app-icon" @click=${() => { <div class="app-icon" @click=${() => {
this.changePage(plugin) this.changePage(plugin)
}}> }}>
<div class="app-icon-box"> <div class="app-icon-box">
<mwc-icon class="menuIcon">${plugin.mwcicon}</mwc-icon> <mwc-icon class="menuIcon">${plugin.mwcicon}</mwc-icon>
</div> </div>