Skip to content

Commit

Permalink
Merge pull request #8465 from google/enhancement/8135-audience-tile-u…
Browse files Browse the repository at this point in the history
…pdates

Desktop view Audience Tile style changes.
  • Loading branch information
eugene-manuilov committed Apr 2, 2024
2 parents b24a7d1 + 7d2a653 commit a18c499
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export default function AudienceTile( {

<AudienceTilePagesMetric
TileIcon={ AudienceMetricIconTopContent }
title={ __( 'Top content', 'google-site-kit' ) }
title={ __(
'Top content by pageviews',
'google-site-kit'
) }
topContentTitles={ topContentTitles }
topContent={ topContent }
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

.googlesitekit-plugin {
.googlesitekit-audience-segmentation-tile {
margin-bottom: 4px;

.googlesitekit-audience-segmentation-tile__header {
border-bottom: 1px solid $c-utility-divider;
color: $c-surfaces-on-surface;
Expand Down Expand Up @@ -49,12 +51,12 @@

.googlesitekit-audience-segmentation-tile-metric__icon {
height: 20px;
margin: 14px 19px 14px 0;
margin: 16px 20px 16px 0;
min-width: 20px;
width: 20px;

@media (min-width: $width-desktop + 1 + px) {
margin-left: 15px;
margin-left: 16px;
}
}

Expand All @@ -65,14 +67,14 @@
color: $c-surfaces-on-surface;
font-size: $fs-headline-md;
font-weight: $fw-normal;
line-height: $lh-headline-md;
line-height: 32px; // Fixed line hight required for this components height to match designs.
}

.googlesitekit-audience-segmentation-tile-metric__title {
color: $c-surfaces-on-surface-variant;
font-size: $fs-body-md;
font-weight: $fw-normal;
line-height: $lh-body-md;
line-height: 20px; // Fixed line hight required for this components height to match designs.
}
}

Expand All @@ -97,10 +99,10 @@
gap: $grid-gap-phone;
grid-auto-columns: minmax(0, 1fr);
grid-auto-flow: column;
margin-top: 14px;
margin-top: 12px;

@media (min-width: $width-desktop + 1 + px) {
gap: $grid-gap-desktop;
gap: 10px; // Designs specify a non-standard grid gap.
}

.googlesitekit-audience-segmentation-tile-metric__cities-metric {
Expand All @@ -109,6 +111,7 @@
font-size: $fs-title-sm;
font-weight: $fw-medium;
line-height: $lh-title-sm;
margin-bottom: 2px;

overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -129,17 +132,17 @@
&.googlesitekit-audience-segmentation-tile-metric--top-content {

.googlesitekit-audience-segmentation-tile-metric__title {
height: 36px;
line-height: 28px;
padding: 4px 0;
height: 20px;
line-height: 20px;
margin-bottom: 10px;
}

.googlesitekit-audience-segmentation-tile-metric__page-metric-container {
display: flex;
font-size: $fs-body-sm;
justify-content: space-between;
line-height: $lh-body-sm;
margin: 5px 0;
margin: 6px 0;
}
}
}
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a18c499

Please sign in to comment.