From dcf2147deb47419ff1e7d2c6d483e4f9b68e23a7 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 23 Jun 2020 11:25:13 +0530 Subject: [PATCH] Ripple effect for in progress class - Calendar page --- src/app/calendar/calendar.component.html | 43 +++++++++---------- src/app/calendar/calendar.component.scss | 16 ++++++- src/app/tabs/courses/quiz/quiz.component.html | 12 +++--- src/app/tabs/courses/quiz/quiz.component.scss | 4 +- 4 files changed, 43 insertions(+), 32 deletions(-) diff --git a/src/app/calendar/calendar.component.html b/src/app/calendar/calendar.component.html index 08cd9b6..9a4adf5 100644 --- a/src/app/calendar/calendar.component.html +++ b/src/app/calendar/calendar.component.html @@ -37,51 +37,48 @@
{{ selectedDate }}, {{ selectedMonth }} {{ selectedYear }}
diff --git a/src/app/calendar/calendar.component.scss b/src/app/calendar/calendar.component.scss index bd34b2f..147e43b 100644 --- a/src/app/calendar/calendar.component.scss +++ b/src/app/calendar/calendar.component.scss @@ -144,7 +144,7 @@ border-top-right-radius: 30px; position: relative; z-index: 0; - + &::before { content: ''; position: absolute; @@ -220,6 +220,7 @@ &.progress { .status-icon { fill: var(--teal); + animation: ripple 1.5s infinite; } .status { @@ -235,6 +236,15 @@ display: none; } + @keyframes ripple { + 50% { + box-shadow: 0px 0px 1px 10px transparent; + } + 0% { + box-shadow: 0px 0px 1px 0px var(--teal); + } + } + &::before { content: ''; position: absolute; @@ -252,6 +262,10 @@ height: 20px; fill: var(--light-grey); background-color: white; + + &.status-icon { + border-radius: 50%; + } } .content-holder { diff --git a/src/app/tabs/courses/quiz/quiz.component.html b/src/app/tabs/courses/quiz/quiz.component.html index 733b464..60872ad 100644 --- a/src/app/tabs/courses/quiz/quiz.component.html +++ b/src/app/tabs/courses/quiz/quiz.component.html @@ -20,7 +20,7 @@
- +
@@ -32,7 +32,7 @@
- +
@@ -44,13 +44,13 @@
- +
- +
@@ -123,7 +123,7 @@
  • - +
  • @@ -170,7 +170,7 @@
  • - +
  • diff --git a/src/app/tabs/courses/quiz/quiz.component.scss b/src/app/tabs/courses/quiz/quiz.component.scss index 7092929..900e35f 100644 --- a/src/app/tabs/courses/quiz/quiz.component.scss +++ b/src/app/tabs/courses/quiz/quiz.component.scss @@ -124,9 +124,9 @@ background-color: var(--black); &.wrong { - background-color: var(--black); + background-color: var(--danger-dark); .icon { - fill: var(--danger-dark) !important; + fill: var(--black) !important; } }