Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/panels/results/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ <h1 class="cv-panel__title">Carbon Visualizer</h1>
🌱
</div>
<h2 class="cv-results__title">Results</h2>
<p class="cv-results__description">
This is where you'd see the results of the analysis. Coming soon!
</p>

<div class="cv-results__sections">
<h3>Page Weight</h3>
<details class="cv-results__details">
<summary class="heading-sm">Remove Unused Code</summary>
<div class="cv-results__group">
<h4 class="heading-xs">Unused CSS</h4>
<p>&mdash;</p>
</div>
</details>
</div>
<button class="cv-btn cv-btn--primary" id="back-to-welcome-btn">
Analyze another page
</button>
Expand Down
24 changes: 24 additions & 0 deletions src/styles/results.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,27 @@
color: var(--cv-white);
line-height: 1.5;
}

.cv-results__sections {
text-align: start;
margin-bottom: 2.0rem;
}

.cv-results__group {
padding: 1.0rem;
border: 1px solid currentColor;
border-inline-start-width: 4px;
border-radius: 1.0rem;
}

.cv-results__group > *:first-child {
margin-block-start: 0;
}

.cv-results__group > *:last-child {
margin-block-end: 0;
}

.cv-results__details summary {
margin-block-end: 0.5rem;
}