Minor update to overview page spacing

This commit is contained in:
Dean 2022-05-19 14:51:33 +01:00
parent 939c014c0d
commit 1df325c7d3
3 changed files with 21 additions and 17 deletions

View File

@ -41,8 +41,8 @@
padding-right: var(--spacing-xl);
}
.paddingX-XXL {
padding-left: calc(var(--spacing-xl) * 2);
padding-right: calc(var(--spacing-xl) * 2);
padding-left: var(--spectrum-alias-grid-gutter-large);
padding-right: var(--spectrum-alias-grid-gutter-large);
}
.paddingY-S {
padding-top: var(--spacing-s);
@ -61,8 +61,8 @@
padding-bottom: var(--spacing-xl);
}
.paddingY-XXL {
padding-top: calc(var(--spacing-xl) * 2);
padding-bottom: calc(var(--spacing-xl) * 2);
padding-top: var(--spectrum-alias-grid-gutter-large);
padding-bottom: var(--spectrum-alias-grid-gutter-large);
}
.gap-XXS {
grid-gap: var(--spacing-xs);

View File

@ -33,7 +33,7 @@
min-height: 150px;
}
.dash-card-header {
padding: var(--spacing-xl) calc(var(--spacing-xl) * 2);
padding: var(--spacing-xl) var(--spectrum-global-dimension-static-size-400);
border-bottom: 1px solid var(--spectrum-global-color-gray-300);
display: flex;
justify-content: space-between;

View File

@ -48,7 +48,7 @@
</script>
<div class="overview-tab">
<Layout paddingX="XXL" paddingY="XXL">
<Layout paddingX="XXL" paddingY="XXL" gap="XL">
<div class="top">
<DashCard title={"App Status"} dataCy={"app-status"}>
<div class="status-content">
@ -183,33 +183,37 @@
<style>
.overview-tab {
display: grid;
grid-gap: var(--spacing-xl);
}
.overview-tab .top {
display: grid;
grid-gap: calc(var(--spacing-xl) * 2);
grid-gap: var(--spectrum-alias-grid-gutter-medium);
grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
}
.overview-tab .bottom,
.automation-metrics {
display: grid;
grid-gap: var(--spectrum-alias-grid-gutter-large);
grid-template-columns: 1fr 1fr;
}
@media (max-width: 1000px) {
.overview-tab .top {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 800px) {
.overview-tab .top {
.overview-tab .bottom {
grid-template-columns: 1fr;
}
}
.overview-tab .bottom,
.automation-metrics {
display: grid;
grid-gap: var(--spacing-xl);
grid-template-columns: 1fr 1fr;
@media (max-width: 800px) {
.overview-tab .top,
.overview-tab .bottom {
grid-template-columns: 1fr;
}
}
.status-display {
display: flex;
align-items: center;