title: Hover and pressed in javafx
body: <p>I wrote this css code for button pressed</p>
  
  <pre><code>  .button:pressed {
          -fx-scale-y: 0.9;
          -fx-scale-x: 0.9;
  }
  </code></pre>
  
  <p>and this for button hover</p>
  
  <pre><code> .button:hover {
          -fx-background-color: #383838;
          -fx-scale-y: 1.1;
  }
  </code></pre>
  
  <p>and it doesn't scale down because for the button to be clicked it obviously has to be hovered. Is there any way to cancel the hover code when the button is being pressed?</p>