Handle styles for a panel subtitle

This commit is contained in:
Luis Cielak
2018-07-24 14:18:04 -04:00
parent 8d671b238b
commit 1503a519ed
7 changed files with 35 additions and 7 deletions

View File

@@ -43,4 +43,12 @@
padding: 0 ($gap * 4);
}
}
.panel__heading {
margin: ($gap * 2) 0;
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
}
}

View File

@@ -4,7 +4,7 @@
* @source https://github.com/uswds/uswds/blob/develop/src/stylesheets/elements/_typography.scss
*/
* {
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@@ -17,6 +17,11 @@ p {
h1, h2, h3, h4, h5, h6 {
font-family: $font-sans;
margin: ($gap * 2) 0;
+ .subtitle * {
margin-top: 0;
}
}
a,
@@ -36,3 +41,7 @@ dt {
display: inline;
font-weight: bold;
}
.subtitle {
color: $color-gray;
}