Skip to content

Commit

Permalink
Refresh the measurements page design a tad
Browse files Browse the repository at this point in the history
  • Loading branch information
simenheg committed Aug 18, 2023
1 parent 9dafdb7 commit ade858e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 9 deletions.
14 changes: 13 additions & 1 deletion src/components/KpiDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ $t('kpi.newValue') }}
</pkt-button>
</div>
<p v-if="kpi.description" class="description">{{ kpi.description }}</p>
<p v-if="kpi.description" class="kpi-details__description">{{ kpi.description }}</p>
</header>

<widget-kpi-progress-graph :kpi="kpi" :progress="progress" :goals="goals" />
Expand Down Expand Up @@ -152,6 +152,12 @@ export default {
</script>

<style lang="scss" scoped>
@use '@/styles/typography';
.kpi-details {
margin-left: 3rem;
}
.kpi-details__header {
gap: 0.25rem;
margin-bottom: 1rem;
Expand All @@ -167,6 +173,8 @@ export default {
.title-1 {
margin: 0;
font-weight: 400;
font-size: typography.$font-size-6;
}
@include bp('phablet-up') {
Expand All @@ -175,4 +183,8 @@ export default {
}
}
}
.kpi-details__description {
font-size: typography.$font-size-1;
}
</style>
13 changes: 8 additions & 5 deletions src/components/KpiWidgetGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export default {
h2 {
flex-grow: 1;
font-weight: 500;
font-size: typography.$font-size-3;
font-weight: 400;
font-size: typography.$font-size-2;
}
span {
Expand All @@ -177,17 +177,20 @@ export default {
border-color: var(--color-white);
}
::v-deep .widget__header h3 {
::v-deep .widget__header h3,
::v-deep .period-trend-tag__value {
color: var(--color-hover);
}
}
.kpi-card-widget {
&:hover {
background: var(--color-gray-light);
border-color: var(--color-gray);
::v-deep {
.widget__header h3 {
.widget__header h3,
.period-trend-tag__value {
color: var(--color-hover);
}
Expand All @@ -206,7 +209,7 @@ export default {
}
&--compact {
gap: 0.5rem;
gap: 0.125rem;
margin-bottom: 1rem;
.kpi-widget-group__title h2 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/PeriodTrendTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
gap: 0.5rem;
align-items: center;
justify-content: space-around;
font-weight: 500;
font-weight: 400;
white-space: nowrap;
@include bp('phablet-up') {
Expand Down
4 changes: 2 additions & 2 deletions src/components/widgets/WidgetKpiProgressStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export default {
}
&__title {
color: var(--color-grayscale-40);
font-weight: 500;
color: var(--color-dark-blue);
font-weight: 400;
font-size: typography.$font-size-1;
}
Expand Down
7 changes: 7 additions & 0 deletions src/components/widgets/WidgetWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default {
</script>

<style lang="scss" scoped>
@use '@/styles/typography';
.widget {
position: relative;
display: flex;
Expand Down Expand Up @@ -124,5 +126,10 @@ export default {
&--small {
padding: 1rem;
}
&--large h3 {
font-weight: 400;
font-size: typography.$font-size-4;
}
}
</style>

0 comments on commit ade858e

Please sign in to comment.