mirror of https://github.com/IanLunn/Hover.git
17 lines
412 B
SCSS
17 lines
412 B
SCSS
/* Hollow */
|
|
@mixin hollow {
|
|
display: inline-block;
|
|
$borderWidth: 4px;
|
|
|
|
transition-duration: $defaultDuration;
|
|
transition-property: background;
|
|
|
|
transform: translateZ(0); /* Hack to improve performance on mobile/tablet devices */
|
|
box-shadow:
|
|
inset 0 0 0 $borderWidth $primaryColour,
|
|
0 0 1px rgba(0, 0, 0, 0); /* Hack to improve aliasing on mobile/tablet devices */
|
|
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
} |