title: Remove active and focus from element on second click
body: <p>I'm trying to make an interactive map with information on it. When you click on a dot it is resized and shows some contacts. This is achieved because the element gets the <code>:active</code> and <code>:focus</code> pseudo-classes. </p>
  
  <p>Is there any way to remove the pseudo-classes from the element when it is clicked a second time? In effect, is it possible make element close when it is clicked again?</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>.distribution-map {
    position: relative;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .distribution-map .map-point {
    cursor: pointer;
    outline: none;
    top: 20px;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 20px;
  }
  .distribution-map .map-point:active,
  .distribution-map .map-point:focus {
    margin: 0;
    padding: 0;
    filter: opacity: 1;
    width: 300px;
    height: 220px;
    color: #e5e5e5;
    z-index: 1;
    -webkit-transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out, height 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out, width 0.25s ease-in-out, height 0.25s ease-in-out;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="distribution-map"&gt;
    &lt;button class="map-point"&gt;
    &lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>