@keyframes hover-color {
  from {
    border-color: #c0c0c0; }
  to {
    border-color: #c0c0c0; } }

    .magic-radio,
    .magic-checkbox {
        position: absolute;
        display: none;
    }
    /*滑鼠移入時游標的顯示*/
    .magic-radio[disabled],
    .magic-checkbox[disabled] 
    {
        cursor: default; 
    }
    /*checkbox 後面 label 設定*/
    .magic-radio + label,
    .magic-checkbox + label 
    {
        position: relative;
        padding-left: 25px;
        padding-right: 5px;
        cursor: pointer;
        vertical-align: middle; 
    }
    .magic-radio + label:hover:before,
    .magic-checkbox + label:hover:before {
        animation-duration: 0.4s;
        animation-fill-mode: both;
        animation-name: hover-color; }
    /*checkbox 的方框設定*/
    .magic-radio + label:before,
    .magic-checkbox + label:before {
        position: absolute;
        top: 0;
        left: 0;
        display: inline-block;
        width: 15px;
        height: 15px;
        content: '';
        border: 1px solid #c0c0c0; }
    .magic-radio + label:after,
    .magic-checkbox + label:after {
        position: absolute;
        display: none;
        content: ''; }

    .magic-radio[disabled] + label,
    .magic-checkbox[disabled] + label {
        cursor: default;
        color: #000000; }
  .magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after,
  .magic-checkbox[disabled] + label:hover,
  .magic-checkbox[disabled] + label:before,
  .magic-checkbox[disabled] + label:after {
   cursor: context-menu;  }
   /*滑鼠滑入後的動作*/
  .magic-radio[disabled] + label:hover:before,
  .magic-checkbox[disabled] + label:hover:before {
    border: 1px solid #000000;
    animation-name: none; }
  .magic-radio[disabled] + label:before,
  .magic-checkbox[disabled] + label:before {
    border-color: #000000; }

.magic-radio:checked + label:before,
.magic-checkbox:checked + label:before {
  animation-name: none; }

.magic-radio:checked + label:after,
.magic-checkbox:checked + label:after {
  display: block; }

.magic-radio + label:before {
  border-radius: 50%; }

.magic-radio + label:after {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9999ff; }

.magic-radio:checked + label:before {
  border: 1px solid #bfbfff; }

.magic-radio:checked[disabled] + label:before {
  border: 1px solid #c9e2f9; }

.magic-radio:checked[disabled] + label:after {
  background: #000000; }

.magic-checkbox + label:before {
  border-radius: 3px; }
/*checkbox 打勾設定*/
.magic-checkbox + label:after {
  top: 1px;
  left: 5px;
  box-sizing: border-box;
  width: 6px;
  height: 12px;
  transform: rotate(45deg);
  border-width: 2px;
  border-style: solid;
  border-color: #444444;
  border-top: 0;
  border-left: 0; }

.magic-checkbox:checked + label:before {
  border: #444444;
  background: #000000; }

  /*已勾選checkbox的設定*/
.magic-checkbox:checked[disabled] + label:before {
  border: 1px solid #000000;
  background: #ffffff; }
