Skip to content

Commit 09cd93a

Browse files
committed
Adds grid layout to stats
1 parent 8c75e0f commit 09cd93a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/components/SummaryStats.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,44 @@ h2 {
7272
}
7373
}
7474
.summary {
75+
align-items: center;
7576
border: $border-style;
7677
border-radius: 4px;
78+
display: grid;
79+
grid-template-areas:
80+
'title title title title'
81+
'progressBar stats icon grade'
82+
'durationMeta . . timeMeta';
83+
grid-template-columns: 1fr 80px 28px 1fr;
7784
width: 96%;
7885
}
7986
h3 {
8087
font: {
8188
size: $text-size-up-1;
8289
weight: 400;
8390
}
91+
grid-area: title;
92+
}
93+
.grade-details {
94+
font-size: $text-size-up-1;
8495
}
8596
svg {
8697
color: $color-salem;
8798
}
99+
.is-graded {
100+
grid-area: grade;
101+
}
88102
.meta {
89103
font: {
90104
size: $text-size-down-1;
91105
weight: 400;
92106
}
93107
margin-top: $spacing-unit-xs;
108+
&--duration {
109+
grid-area: durationMeta;
110+
}
111+
&--time {
112+
grid-area: timeMeta;
113+
}
94114
}
95115
</style>

0 commit comments

Comments
 (0)