Commit 4aaa35e4 authored by Michael Checo's avatar Michael Checo Committed by Commit Bot

Diagnostics: Update diagnostics card

This is temporary styling pending final mocks.

- Adjusts spacing of data points and card items
- Adjusts card-wrapper to allow for variable card height
- Adds column layout styles

Screenshots:
- Diagnostics App (before) http://shortn/_PIhlqmECzl
- Diagnostics App (after) http://shortn/_4xlkZL1oIV

Bug: 1125150
Test: browser_tests --gtest_filter=DiagnosticsApp*
Change-Id: I1030cfde04eddea705f2056692a6ce98e7b8cb46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442633
Commit-Queue: Michael Checo <michaelcheco@google.com>
Reviewed-by: default avatarJimmy Gong <jimmyxgong@chromium.org>
Reviewed-by: default avatarZentaro Kavanagh <zentaro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814021}
parent 3f90bc7e
...@@ -2,35 +2,44 @@ ...@@ -2,35 +2,44 @@
#card-wrapper { #card-wrapper {
border: 1px solid var(--diagnostics-border-color); border: 1px solid var(--diagnostics-border-color);
border-radius: 14px; border-radius: 14px;
height: 180px;
margin: 10px 0; margin: 10px 0;
min-height: 150px;
} }
.body-container { .body-container {
column-gap: 15px; column-gap: 10px;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, 100px); grid-template-columns: repeat(auto-fill, 100px);
justify-content: end;
row-gap: 5px;
} }
.title-container { .card-columns {
@apply --diagnostics-default-font; display: grid;
grid-template-columns: 1fr 1fr;
} }
.spacing { .spacing {
margin-top: 18px; margin: 18px 0px;
padding-inline-end: 15px; padding-inline-end: 15px;
padding-inline-start: 15px; padding-inline-start: 15px;
} }
.title-container {
@apply --diagnostics-default-font;
}
</style> </style>
<div id="card-wrapper"> <div id="card-wrapper">
<div id="title" class="title-container spacing"> <div id="title" class="title-container spacing">
<slot name="title"></slot> <slot name="title"></slot>
</div> </div>
<div> <div class="card-columns spacing">
<slot name="left-panel"></slot> <div>
</div> <slot name="left-panel"></slot>
<div id="body" class="body-container spacing"> </div>
<slot name="body"></slot> <div id="body" class="body-container">
<slot name="body"></slot>
</div>
</div> </div>
</div> </div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment