title: Change button color depending on state
body: <p>I have a button with a default green background. On <code>hover</code>, the background color is changed.</p>
  
  <p>When the button is clicked, I want it to fall back to the green background.</p>
  
  <p>How do I achieve this? I tried the following without success:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.btn {
    background-color: #4dd0e1
  }
  
  .btn:hover {
    background-color: #01579b
  }
  
  .btn:active {
    background-color: #4dd0e1
  }
  
  .btn:visited {
    background-color: #4dd0e1
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="#" target="_blank" class="waves-effect btn"&gt;&lt;i class="material-icons right"&gt;arrow_forward&lt;/i&gt;button&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks!</p>