title: Half star rating with empty stars and radio buttons
body: <p>Is it possible to achieve this with radio button labels and font awesome icons?
  half star rating style I need</p>
  <p><img src="https://i.stack.imgur.com/KyLsM.png" alt="" /></p>
  <p>The most that I have managed to do is this, using two font awesome icons as radio button labels but I don't want unselected areas to be grey, rather empty star with border just like in the image above:
  half star rating that I got</p>
  <p><img src="https://i.stack.imgur.com/YQtKN.png" alt="" /></p>
  <p>Here is my code:</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>.rate{
    display: inline-block;
    border: 0;
    color: #b0afaf;
  }
    
  .rate &gt; input{
    display: none;
  }
  
  .rate &gt; label {
    float: right;
   }  
  
  .rate &gt; label:before {
    display: inline-block;
    font-size: 1.1rem;
    padding: .3rem .2rem;
    margin: 0;
    cursor: pointer;
    font-family: FontAwesome;
    content: "\f005 ";
   }
    
  .rate .half:before {
    content: "\f089 ";
    position: absolute;
    padding-right: 0;
   }
      
  input:checked ~ label,
  label:hover, label:hover ~ label {
    color: #dbc00b;
  }
  
  input:checked + label:hover, input:checked ~ label:hover,
  input:checked ~ label:hover ~ label,
  label:hover ~ input:checked ~ label {
    color: #f2ec35;
  }
    </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" /&gt;
  &lt;div class="rate"&gt;
    &lt;input type="radio" id="star5" name="rating" value="5" /&gt;
    &lt;label for="star5" title="Awesome"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star4.5" name="rating" value="4.5" /&gt;
    &lt;label for="star4.5" class="half"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star4" name="rating" value="4" /&gt;
    &lt;label for="star4"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star3.5" name="rating" value="3.5" /&gt;
    &lt;label for="star3.5" class="half"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star3" name="rating" value="3" /&gt;
    &lt;label for="star3"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star2.5" name="rating" value="2.5" /&gt;
    &lt;label for="star2.5" class="half"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star2" name="rating" value="2" /&gt;
    &lt;label for="star2"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star1.5" name="rating" value="1.5" /&gt;
    &lt;label for="star1.5" class="half"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star1" name="rating" value="1" /&gt;
    &lt;label for="star1"&gt;&lt;/label&gt;
    &lt;input type="radio" id="star0.5" name="rating" value="0.5" /&gt;
    &lt;label for="star0.5" class="half"&gt;&lt;/label&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>