Skip to content

Commit

Permalink
styling update
Browse files Browse the repository at this point in the history
  • Loading branch information
FaithDaka committed Nov 29, 2024
1 parent 46042e1 commit 826b199
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,57 @@ $progress-colour: var(--task-progress-bar-color, var(--ion-color-primary));
}
}
}

// progress-wheel
.task-progress-wheel {
.progress-container {
position: relative;
width: 150px;
height: 150px;
margin-bottom: 48px;
}

.progress-wheel {
width: 100%;
height: 100%;
transform: rotate(-90deg); /* Start arc at the top */
}

.progress-background {
fill: none;
stroke: var(--ion-color-gray-100);
stroke-width: 3.6;
}

.progress-foreground {
fill: none;
stroke: var(--ion-color-secondary-600);
stroke-width: 3.6;
stroke-linecap: square;
transform-origin: center;
transform: rotate(0);
transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 28px;
font-weight: var(--font-weight-medium);
color: var(--ion-color-gray-700);
}

.wheel-title {
display: flex;
align-items: center;
justify-content: center;

margin-top: -5px;
color: var(--ion-color-gray-600);
h4 {
font-weight: var(--font-weight-bold);
}
}
}
67 changes: 6 additions & 61 deletions src/theme/themes/plh_kids_kw/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,7 @@ body[data-theme="plh_kids_kw"] {
plh-module-list-item {
.module-item {
width: 100%;
// TODO: switch to global secondary variable
border: 2px solid #2e98d8;
border: 2px solid var(--color-secondary-blue-60);
border-radius: var(--ion-border-radius-secondary);
padding: 16px;
box-shadow: 1px 1px 10px #92b7da;
Expand Down Expand Up @@ -602,7 +601,7 @@ body[data-theme="plh_kids_kw"] {
box-shadow: none;
opacity: 0.5;
border: 2px solid #dbe3f2;
background-color: #ffffff;
background-color: var(--color-surface-white);
.module-image {
img {
width: 60px;
Expand All @@ -613,60 +612,6 @@ body[data-theme="plh_kids_kw"] {
}
}

// progress-wheel
.task-progress-wheel {
.progress-container {
position: relative;
width: 150px;
height: 150px;
margin-bottom: 48px;
}

.progress-wheel {
width: 100%;
height: 100%;
transform: rotate(-90deg); /* Start arc at the top */
}

.progress-background {
fill: none;
stroke: var(--ion-color-gray-100);
stroke-width: 3.6;
}

.progress-foreground {
fill: none;
stroke: #007fbf;
stroke-width: 3.6;
stroke-linecap: square;
transform-origin: center;
transform: rotate(0);
transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 28px;
font-weight: var(--font-weight-medium);
color: var(--ion-color-gray-700);
}

.wheel-title {
display: flex;
align-items: center;
justify-content: center;

margin-top: -5px;
color: var(--ion-color-gray-600);
h4 {
font-weight: var(--font-weight-bold);
}
}
}

// Radio Button Group
plh-radio-group {
.btn_triangle {
Expand All @@ -677,12 +622,12 @@ body[data-theme="plh_kids_kw"] {
box-shadow: none;

border-radius: var(--ion-border-radius-small);
border: 1px solid #2e98d8;
border: 1px solid var(--color-secondary-blue-60);
padding: 24px;
margin-bottom: 10px;
}
.checked {
border: 2px solid #2e98d8;
border: 2px solid var(--color-secondary-blue-60);
// background: #f6fafe !important;
}
}
Expand All @@ -703,7 +648,7 @@ body[data-theme="plh_kids_kw"] {
}
}
.standard-label {
background-color: #ffd5be;
background-color: var(--color-accent-orange-90);
border-radius: var(--ion-border-radius-small);
max-width: unset;
box-shadow: none;
Expand All @@ -713,7 +658,7 @@ body[data-theme="plh_kids_kw"] {
margin: 12px !important;
}
.checked {
background: #ffab83;
background: var(--color-accent-orange-80);
border: 2px solid #ff6f3a;
transition: 0.3s linear;
}
Expand Down

0 comments on commit 826b199

Please sign in to comment.