Skip to content

Commit

Permalink
Even more cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
timogasda committed Aug 30, 2023
1 parent 8ba0362 commit ab35bf8
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions src/header/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
width: 100%;
flex-wrap: wrap;
justify-content: space-between;

&:not(.root-no-actions) {
row-gap: awsui.$space-xxs;
}
row-gap: awsui.$space-xxs;

&-no-actions,
&-has-description {
Expand All @@ -30,19 +27,19 @@
}
}

&-no-actions.refresh {
&.root-variant-h2,
&.root-variant-h3 {
row-gap: awsui.$space-scaled-xxxs;
}
}

// H3s are most often used inside containers, so minimal headings have extra padding below
// to prevent info links from having overlapping touch targets with surrounding elements.
&-no-actions:not(.root-has-description).refresh.root-variant-h3 {
padding-bottom: awsui.$space-scaled-xs;
}

&-no-actions.root-has-description {
&.refresh.root-variant-h2,
&.refresh.root-variant-h3 {
row-gap: awsui.$space-scaled-xxxs;
}
}

&-no-wrap {
flex-wrap: nowrap;
}
Expand Down Expand Up @@ -95,16 +92,14 @@

&-variant-h1:not(.refresh) {
padding: awsui.$space-scaled-xs 0;
.root-has-description > .main > & {
padding-bottom: 0;
}
}
&-variant-h2:not(.refresh),
&-variant-h3:not(.refresh) {
padding: awsui.$space-scaled-xxs 0;
.root-has-description > .main > & {
padding-bottom: 0;
}
}

.root-has-description > .main > & {
padding-bottom: 0;
}
}

Expand Down Expand Up @@ -161,12 +156,7 @@

&-variant-h1 {
@include styles.font-body-m;
&:not(.refresh) {
padding-top: awsui.$space-scaled-xxs;
}
&.refresh {
padding-top: awsui.$space-scaled-xxs;
}
// padding-top: awsui.$space-scaled-xxs;
}
&-variant-h2 {
font-size: awsui.$font-header-h2-description-size;
Expand Down

0 comments on commit ab35bf8

Please sign in to comment.