<span class="hover-effect">I'll have a hover effect if your primary input device supports hovering!</span>
@mixin hoverable {
  @media (hover: hover) {
    @content;
  }
}

@include hoverable {
  .hover-effect:hover {
    border: solid #212121;
    border-width: 0 0 2px 0;
  }
}



/*********

Everything below me is unimportant :/

*********/

html, body {
  color: rgba(0, 0, 0, 0.9);
  font-family: "Raleway", sans-serif;
  background-color: skyblue;  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.