From 963e6bf0fc1f7260ee96db75f89f502fb93e3489 Mon Sep 17 00:00:00 2001 From: prahalad Date: Fri, 12 Nov 2021 15:11:51 +0530 Subject: [PATCH] Box-shadow to selected card --- .../create-committee.component.html | 5 +- .../create-committee.component.scss | 78 ++++++++++--------- 2 files changed, 46 insertions(+), 37 deletions(-) diff --git a/src/app/create-committee/create-committee.component.html b/src/app/create-committee/create-committee.component.html index 6d0f896..afad9d4 100644 --- a/src/app/create-committee/create-committee.component.html +++ b/src/app/create-committee/create-committee.component.html @@ -3,13 +3,14 @@
-
  • +
  • {{committee.name}}
    {{committee.designation}}
    -
    +
  • diff --git a/src/app/create-committee/create-committee.component.scss b/src/app/create-committee/create-committee.component.scss index 8d237b6..23a7b46 100644 --- a/src/app/create-committee/create-committee.component.scss +++ b/src/app/create-committee/create-committee.component.scss @@ -16,46 +16,21 @@ section { cursor: pointer; background-color: var(--shadow-grey); filter: brightness(115%); - - .upfold { - width: 20rem; - padding-left: 2rem; - - h6 { - font-size: 1.6rem; - color: var(--primary); - padding: 0.3rem 0; - } - span { - font-size: 1.4rem; - color: var(--primary); - } - } - - img { - width: 5rem; - height: 5rem; - border-radius: 50%; - margin-left: 1rem; - } - .check-box { - width: 1.8rem; + &.isActive { background-color: white; - height: 1.8rem; - margin: 0 auto; - border-radius: 0.4rem; - box-shadow: inset 0px 1px 4px 0px var(--dark-grey); - - - &.isActive { + border: 1px solid var(--shadow-grey); + box-shadow: 0rem 0rem 0.5rem 0.5rem var(--shadow-grey); + filter: brightness(110%); + + .check-box{ position: relative; display: inline-block; width: 1.8rem; height: 1.8rem; background-color: var(--success); box-shadow: none; - + &::before { content: ""; position: absolute; @@ -67,7 +42,7 @@ section { transform: translateX(10px) rotate(-45deg); transform-origin: left bottom; } - + &::after { content: ""; position: absolute; @@ -78,19 +53,52 @@ section { background-color: white; transform: translateX(10px) rotate(-45deg); transform-origin: left bottom; - } } } + + .upfold { + width: 20rem; + padding-left: 2rem; + + h6 { + font-size: 1.6rem; + color: var(--primary); + padding: 0.3rem 0; + } + span { + font-size: 1.4rem; + color: var(--primary); + } + } + + img { + width: 5rem; + height: 5rem; + border-radius: 50%; + margin-left: 1rem; + } + + .check-box { + width: 1.8rem; + background-color: white; + height: 1.8rem; + margin: 0 auto; + border-radius: 0.4rem; + box-shadow: inset 0px 1px 4px 0px var(--dark-grey); + + } + } } + .user-action { display: flex; justify-content: center; align-items: center; height: 10rem; - + button { width: 15rem; margin: 0 1rem;