Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.50 KB | None | 0 0
  1. .ce_comments {
  2.  
  3.   .formbody {
  4.  
  5.     .widget {
  6.  
  7.       .rating {
  8.         position: relative;
  9.         height: 42px;
  10.         margin: 0 !important;
  11.  
  12.         input {
  13.           position: absolute;
  14.           top: 0;
  15.           left: 0;
  16.           opacity: 0;
  17.  
  18.           &:checked {
  19.  
  20.             + label {
  21.  
  22.               .star_single {
  23.  
  24.                 &:before {
  25.                   color: #ebe200;
  26.                 }
  27.  
  28.                 &:after {
  29.                   color: #000000;
  30.                 }
  31.               }
  32.             }
  33.           }
  34.         }
  35.  
  36.         label {
  37.           position: absolute;
  38.           left: 0;
  39.           top: 0;
  40.           width: auto;
  41.  
  42.           @for $i from 1 through 10 {
  43.             &:nth-of-type(#{$i}) {
  44.               z-index: #{11 - $i};
  45.             }
  46.           }
  47.  
  48.           &:last-child {
  49.  
  50.             .star_single {
  51.  
  52.               &:before {
  53.                 color: #d3d3d3;
  54.               }
  55.  
  56.               &:after {
  57.                 color: #000000;
  58.               }
  59.             }
  60.           }
  61.  
  62.           &:hover {
  63.  
  64.             .star_single {
  65.  
  66.               &:before {
  67.                 color: #ebe200;
  68.               }
  69.  
  70.               &:after {
  71.                 color: #000000;
  72.               }
  73.             }
  74.           }
  75.  
  76.           .star_single {
  77.             font-size: 26px;
  78.             padding-right: 3px;
  79.  
  80.             &:before,
  81.             &:after {
  82.               color: transparent;
  83.             }
  84.           }
  85.         }
  86.       }
  87.     }
  88.   }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement