various style fixes

This commit is contained in:
Andrew Croce 2018-07-20 08:29:58 -04:00
parent 607972b76c
commit f79762b932
2 changed files with 32 additions and 9 deletions

View File

@ -1,17 +1,19 @@
@mixin icon { @mixin icon {
display: inline-block; display: inline-flex;
vertical-align: bottom;
> svg { > svg {
width: 100%; width: 100%;
height: 100%; height: 100%;
* {
transition: fill $hover-transition-time;
}
} }
} }
@mixin icon-size($size) { @mixin icon-size($size) {
$icon-size: $size * .1rem; $icon-size: $size * .1rem;
width: $icon-size; width: $icon-size;
height: $icon-size; height: auto;
margin: $icon-size / 4; margin: $icon-size / 4;
} }
@ -21,8 +23,24 @@
} }
} }
@mixin icon-style-active {
> svg * {
fill: $color-primary;
}
}
@mixin icon-style-inverted {
> svg * {
fill: $color-white;
}
}
.icon { .icon {
@include icon; @include icon;
@include icon-size(16); @include icon-size(16);
@include icon-style-default; @include icon-style-default;
&.icon--tiny {
@include icon-size(10);
}
} }

View File

@ -4,6 +4,11 @@
* @source https://github.com/uswds/uswds/blob/develop/src/stylesheets/elements/_typography.scss * @source https://github.com/uswds/uswds/blob/develop/src/stylesheets/elements/_typography.scss
*/ */
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-family: $font-sans; font-family: $font-sans;
@ -25,12 +30,12 @@ h2 {
a, a,
a > span { a:hover {
transition: transition:
background 0.2s, background $hover-transition-time,
border 0.2s, border $hover-transition-time,
box-shadow 0.2s, box-shadow $hover-transition-time,
color 0.2s, color $hover-transition-time,
} }
dt { dt {