various style fixes
This commit is contained in:
parent
607972b76c
commit
f79762b932
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user