Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.43 KB | None | 0 0
  1. .form-checkbox{
  2.   visibility: hidden;
  3. }
  4.  
  5. .form-radio-item:not(#foo) label:before {
  6.  
  7.   border-radius: 50%;
  8.  
  9. }
  10.  
  11. .form-checkbox-item:not(#foo) label:after,
  12.  
  13. .form-checkbox-item:not(#foo) label:before {
  14.  
  15.     border-radius : 0;
  16.  
  17. }
  18.  
  19.  
  20. .form-checkbox-item:not(#foo) label:before  {
  21.  
  22.   border-width:2px;
  23.  
  24. }
  25.  
  26.  
  27. .form-checkbox-item:not(#foo){
  28.  
  29. margin-bottom: 0;
  30.  
  31. position: relative;
  32.  
  33. }
  34.  
  35. /*-------------custom checkbox--------------*/
  36.  
  37. .form-checkbox:before {
  38.  
  39.   content: '';
  40.  
  41.   position: absolute;
  42.  
  43.   display: inline-block;
  44.  
  45.   vertical-align: baseline;
  46.  
  47.   margin-right: 4px;
  48.  
  49.   -moz-box-sizing: border-box;
  50.  
  51.   -webkit-box-sizing: border-box;
  52.  
  53.   box-sizing: border-box;
  54.  
  55.   -webkit-border-radius: 50%;
  56.  
  57.   -moz-border-radius: 50%;
  58.  
  59.   border-radius: 50%;
  60.  
  61.   border: 2px solid #ec1a0f;
  62.  
  63.   width: 24px;
  64.  
  65.   height: 24px;
  66.  
  67.   cursor: pointer;
  68.  
  69.   visibility: visible;
  70.  
  71.   margin-top: -2px;
  72.  
  73.   margin-left: -6px;
  74.  
  75. }
  76.  
  77. .form-checkbox:after {
  78.  
  79.   content: '';
  80.  
  81.   position: absolute;
  82.  
  83.   z-index: 10;
  84.  
  85.   display: inline-block;
  86.  
  87.   opacity: 0;
  88.  
  89.   top: 14px;
  90.  
  91.   width: 12px;
  92.  
  93.   height: 12px;
  94.  
  95.   background-color: #ec1a0f;
  96.  
  97.   -webkit-border-radius: 50%;
  98.  
  99.   -moz-border-radius: 50%;
  100.  
  101.   border-radius: 50%;
  102.  
  103.   cursor: pointer;
  104.  
  105.   visibility: visible;
  106.  
  107. }
  108.  
  109. .form-checkbox:checked:after {
  110.  
  111.   opacity: 1;
  112.  
  113.   visibility: visible;
  114.  
  115. }
  116.  
  117. .form-product-item label {
  118.  
  119.     margin-left: 5px;
  120.  
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement