just a styling question for my Rails application.
I made some radio buttons to look like normal buttons. When a button is clicked (and the radio button is checked), I want to keep the button background-color the same as the hover color, but somehow it isn't working. Unfortunately, I'm not the biggest CSS expert. The color red is just for testing purposes.
HTML:
<label class="btn custom-btn good-outline">
  <%= f.radio_button :reception_feed, 2 %>
  <%= image_tag "smiley_2.svg", size: '48x48' %>
</label>
CSS (first try):
.good-outline {
    border-color: #00e676;
    color: #00e676;
    &:hover {
        background-color: #00e676;
        color: white;
    }    
    input[type=radio]:checked + label {
        background-color: red;
    }
  }
CSS (second try):
.good-outline {
    border-color: #00e676;
    color: #00e676;
    &:hover {
        background-color: #00e676;
        color: white;
    }    
    &:active, &:focus {
        background-color: red;
    }
  }
If I assign the states in my browser, it's working. But it's not working with the click events.
Thanks in advance!
 
    