css变量实现管道艺术效果代码

代码语言:html

所属分类:布局界面

代码描述:css变量实现管道艺术效果代码,点击可以重新生成新的。

代码标签: css 管道 艺术

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
  
  
<style>
body {
	display: grid;
	place-content: center;
}
.grid {
	grid-area: 1/1;
	display: grid;
	pointer-events: none;
	justify-content: center;
	grid-template-columns: repeat(var(--n), 40px);
}
.grid > * {
	aspect-ratio: 1;
	display: grid;
	overflow: hidden;
}
.grid > *:before {
	content: "";
	margin: -20%;
	background: linear-gradient(45deg, #53777A, transparent);
  transform: rotate(calc(var(--o)*45deg));
	transition: 0.6s linear var(--d);
}
input {
	grid-area: 1/1;
  height: 100%;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
input:first-of-type {z-index:1}
input:checked + input {z-index:2}

h2 {text-align:center;}
</style>




</head>



<body style="--n: 16">
      <input type="radio" name="random" checked="checked"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
<input type="radio" name="random"/>
  <style>.grid *:nth-child(1) { --i1: 1 }.grid *:nth-child(1) { --i2: -1 }.grid *:nth-child(1) { --i3: 1 }.grid *:nth-child(1) { --i4: -1 }.grid *:nth-child(1) { --i5: -1 }.grid *:nth-child(1) { --i6: -1 }.grid *:nth-child(1) { --i7: -1 }.grid *:nth-child(1) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(2) { --i1: 1 }.grid *:nth-child(2) { --i2: 1 }.grid *:nth-child(2) { --i3: 1 }.grid *:nth-child(2) { --i4: 1 }.grid *:nth-child(2) { --i5: -1 }.grid *:nth-child(2) { --i6: -1 }.grid *:nth-child(2) { --i7: -1 }.grid *:nth-child(2) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(3) { --i1: -1 }.grid *:nth-child(3) { --i2: -1 }.grid *:nth-child(3) { --i3: 1 }.grid *:nth-child(3) { --i4: -1 }.grid *:nth-child(3) { --i5: 1 }.grid *:nth-child(3) { --i6: -1 }.grid *:nth-child(3) { --i7: 1 }.grid *:nth-child(3) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(4) { --i1: -1 }.grid *:nth-child(4) { --i2: 1 }.grid *:nth-child(4) { --i3: -1 }.grid *:nth-child(4) { --i4: -1 }.grid *:nth-child(4) { --i5: 1 }.grid *:nth-child(4) { --i6: -1 }.grid *:nth-child(4) { --i7: -1 }.grid *:nth-child(4) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(5) { --i1: -1 }.grid *:nth-child(5) { --i2: -1 }.grid *:nth-child(5) { --i3: -1 }.grid *:nth-child(5) { --i4: 1 }.grid *:nth-child(5) { --i5: 1 }.grid *:nth-child(5) { --i6: -1 }.grid *:nth-child(5) { --i7: 1 }.grid *:nth-child(5) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(6) { --i1: 1 }.grid *:nth-child(6) { --i2: -1 }.grid *:nth-child(6) { --i3: -1 }.grid *:nth-child(6) { --i4: -1 }.grid *:nth-child(6) { --i5: 1 }.grid *:nth-child(6) { --i6: 1 }.grid *:nth-child(6) { --i7: -1 }.grid *:nth-child(6) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(7) { --i1: 1 }.grid *:nth-child(7) { --i2: 1 }.grid *:nth-child(7) { --i3: 1 }.grid *:nth-child(7) { --i4: 1 }.grid *:nth-child(7) { --i5: 1 }.grid *:nth-child(7) { --i6: 1 }.grid *:nth-child(7) { --i7: 1 }.grid *:nth-child(7) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(8) { --i1: -1 }.grid *:nth-child(8) { --i2: -1 }.grid *:nth-child(8) { --i3: -1 }.grid *:nth-child(8) { --i4: -1 }.grid *:nth-child(8) { --i5: -1 }.grid *:nth-child(8) { --i6: -1 }.grid *:nth-child(8) { --i7: 1 }.grid *:nth-child(8) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(9) { --i1: -1 }.grid *:nth-child(9) { --i2: -1 }.grid *:nth-child(9) { --i3: -1 }.grid *:nth-child(9) { --i4: 1 }.grid *:nth-child(9) { --i5: -1 }.grid *:nth-child(9) { --i6: 1 }.grid *:nth-child(9) { --i7: 1 }.grid *:nth-child(9) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(10) { --i1: -1 }.grid *:nth-child(10) { --i2: 1 }.grid *:nth-child(10) { --i3: 1 }.grid *:nth-child(10) { --i4: 1 }.grid *:nth-child(10) { --i5: -1 }.grid *:nth-child(10) { --i6: 1 }.grid *:nth-child(10) { --i7: 1 }.grid *:nth-child(10) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(11) { --i1: 1 }.grid *:nth-child(11) { --i2: -1 }.grid *:nth-child(11) { --i3: -1 }.grid *:nth-child(11) { --i4: 1 }.grid *:nth-child(11) { --i5: 1 }.grid *:nth-child(11) { --i6: 1 }.grid *:nth-child(11) { --i7: 1 }.grid *:nth-child(11) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(12) { --i1: 1 }.grid *:nth-child(12) { --i2: -1 }.grid *:nth-child(12) { --i3: 1 }.grid *:nth-child(12) { --i4: 1 }.grid *:nth-child(12) { --i5: -1 }.grid *:nth-child(12) { --i6: -1 }.grid *:nth-child(12) { --i7: 1 }.grid *:nth-child(12) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(13) { --i1: 1 }.grid *:nth-child(13) { --i2: 1 }.grid *:nth-child(13) { --i3: -1 }.grid *:nth-child(13) { --i4: -1 }.grid *:nth-child(13) { --i5: 1 }.grid *:nth-child(13) { --i6: -1 }.grid *:nth-child(13) { --i7: 1 }.grid *:nth-child(13) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(14) { --i1: 1 }.grid *:nth-child(14) { --i2: 1 }.grid *:nth-child(14) { --i3: 1 }.grid *:nth-child(14) { --i4: -1 }.grid *:nth-child(14) { --i5: 1 }.grid *:nth-child(14) { --i6: 1 }.grid *:nth-child(14) { --i7: 1 }.grid *:nth-child(14) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(15) { --i1: 1 }.grid *:nth-child(15) { --i2: -1 }.grid *:nth-child(15) { --i3: -1 }.grid *:nth-child(15) { --i4: 1 }.grid *:nth-child(15) { --i5: -1 }.grid *:nth-child(15) { --i6: 1 }.grid *:nth-child(15) { --i7: -1 }.grid *:nth-child(15) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(16) { --i1: -1 }.grid *:nth-child(16) { --i2: -1 }.grid *:nth-child(16) { --i3: 1 }.grid *:nth-child(16) { --i4: 1 }.grid *:nth-child(16) { --i5: -1 }.grid *:nth-child(16) { --i6: 1 }.grid *:nth-child(16) { --i7: 1 }.grid *:nth-child(16) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(17) { --i1: -1 }.grid *:nth-child(17) { --i2: -1 }.grid *:nth-child(17) { --i3: -1 }.grid *:nth-child(17) { --i4: -1 }.grid *:nth-child(17) { --i5: 1 }.grid *:nth-child(17) { --i6: 1 }.grid *:nth-child(17) { --i7: -1 }.grid *:nth-child(17) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(18) { --i1: -1 }.grid *:nth-child(18) { --i2: 1 }.grid *:nth-child(18) { --i3: -1 }.grid *:nth-child(18) { --i4: -1 }.grid *:nth-child(18) { --i5: 1 }.grid *:nth-child(18) { --i6: -1 }.grid *:nth-child(18) { --i7: -1 }.grid *:nth-child(18) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(19) { --i1: 1 }.grid *:nth-child(19) { --i2: 1 }.grid *:nth-child(19) { --i3: 1 }.grid *:nth-child(19) { --i4: 1 }.grid *:nth-child(19) { --i5: 1 }.grid *:nth-child(19) { --i6: 1 }.grid *:nth-child(19) { --i7: 1 }.grid *:nth-child(19) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(20) { --i1: -1 }.grid *:nth-child(20) { --i2: 1 }.grid *:nth-child(20) { --i3: -1 }.grid *:nth-child(20) { --i4: -1 }.grid *:nth-child(20) { --i5: 1 }.grid *:nth-child(20) { --i6: 1 }.grid *:nth-child(20) { --i7: 1 }.grid *:nth-child(20) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(21) { --i1: 1 }.grid *:nth-child(21) { --i2: -1 }.grid *:nth-child(21) { --i3: 1 }.grid *:nth-child(21) { --i4: 1 }.grid *:nth-child(21) { --i5: -1 }.grid *:nth-child(21) { --i6: -1 }.grid *:nth-child(21) { --i7: 1 }.grid *:nth-child(21) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(22) { --i1: -1 }.grid *:nth-child(22) { --i2: 1 }.grid *:nth-child(22) { --i3: -1 }.grid *:nth-child(22) { --i4: -1 }.grid *:nth-child(22) { --i5: -1 }.grid *:nth-child(22) { --i6: 1 }.grid *:nth-child(22) { --i7: 1 }.grid *:nth-child(22) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(23) { --i1: -1 }.grid *:nth-child(23) { --i2: 1 }.grid *:nth-child(23) { --i3: -1 }.grid *:nth-child(23) { --i4: -1 }.grid *:nth-child(23) { --i5: 1 }.grid *:nth-child(23) { --i6: 1 }.grid *:nth-child(23) { --i7: 1 }.grid *:nth-child(23) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(24) { --i1: -1 }.grid *:nth-child(24) { --i2: 1 }.grid *:nth-child(24) { --i3: 1 }.grid *:nth-child(24) { --i4: -1 }.grid *:nth-child(24) { --i5: -1 }.grid *:nth-child(24) { --i6: 1 }.grid *:nth-child(24) { --i7: -1 }.grid *:nth-child(24) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(25) { --i1: -1 }.grid *:nth-child(25) { --i2: -1 }.grid *:nth-child(25) { --i3: 1 }.grid *:nth-child(25) { --i4: 1 }.grid *:nth-child(25) { --i5: -1 }.grid *:nth-child(25) { --i6: 1 }.grid *:nth-child(25) { --i7: 1 }.grid *:nth-child(25) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(26) { --i1: -1 }.grid *:nth-child(26) { --i2: -1 }.grid *:nth-child(26) { --i3: -1 }.grid *:nth-child(26) { --i4: 1 }.grid *:nth-child(26) { --i5: 1 }.grid *:nth-child(26) { --i6: 1 }.grid *:nth-child(26) { --i7: -1 }.grid *:nth-child(26) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(27) { --i1: -1 }.grid *:nth-child(27) { --i2: 1 }.grid *:nth-child(27) { --i3: -1 }.grid *:nth-child(27) { --i4: -1 }.grid *:nth-child(27) { --i5: -1 }.grid *:nth-child(27) { --i6: -1 }.grid *:nth-child(27) { --i7: -1 }.grid *:nth-child(27) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(28) { --i1: 1 }.grid *:nth-child(28) { --i2: -1 }.grid *:nth-child(28) { --i3: 1 }.grid *:nth-child(28) { --i4: -1 }.grid *:nth-child(28) { --i5: -1 }.grid *:nth-child(28) { --i6: 1 }.grid *:nth-child(28) { --i7: 1 }.grid *:nth-child(28) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(29) { --i1: 1 }.grid *:nth-child(29) { --i2: 1 }.grid *:nth-child(29) { --i3: -1 }.grid *:nth-child(29) { --i4: 1 }.grid *:nth-child(29) { --i5: -1 }.grid *:nth-child(29) { --i6: 1 }.grid *:nth-child(29) { --i7: -1 }.grid *:nth-child(29) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(30) { --i1: -1 }.grid *:nth-child(30) { --i2: -1 }.grid *:nth-child(30) { --i3: -1 }.grid *:nth-child(30) { --i4: 1 }.grid *:nth-child(30) { --i5: -1 }.grid *:nth-child(30) { --i6: 1 }.grid *:nth-child(30) { --i7: 1 }.grid *:nth-child(30) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(31) { --i1: -1 }.grid *:nth-child(31) { --i2: 1 }.grid *:nth-child(31) { --i3: 1 }.grid *:nth-child(31) { --i4: 1 }.grid *:nth-child(31) { --i5: 1 }.grid *:nth-child(31) { --i6: -1 }.grid *:nth-child(31) { --i7: 1 }.grid *:nth-child(31) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(32) { --i1: 1 }.grid *:nth-child(32) { --i2: 1 }.grid *:nth-child(32) { --i3: 1 }.grid *:nth-child(32) { --i4: -1 }.grid *:nth-child(32) { --i5: -1 }.grid *:nth-child(32) { --i6: 1 }.grid *:nth-child(32) { --i7: -1 }.grid *:nth-child(32) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(33) { --i1: 1 }.grid *:nth-child(33) { --i2: -1 }.grid *:nth-child(33) { --i3: 1 }.grid *:nth-child(33) { --i4: 1 }.grid *:nth-child(33) { --i5: 1 }.grid *:nth-child(33) { --i6: -1 }.grid *:nth-child(33) { --i7: -1 }.grid *:nth-child(33) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(34) { --i1: -1 }.grid *:nth-child(34) { --i2: -1 }.grid *:nth-child(34) { --i3: -1 }.grid *:nth-child(34) { --i4: -1 }.grid *:nth-child(34) { --i5: 1 }.grid *:nth-child(34) { --i6: -1 }.grid *:nth-child(34) { --i7: 1 }.grid *:nth-child(34) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(35) { --i1: 1 }.grid *:nth-child(35) { --i2: -1 }.grid *:nth-child(35) { --i3: -1 }.grid *:nth-child(35) { --i4: -1 }.grid *:nth-child(35) { --i5: -1 }.grid *:nth-child(35) { --i6: 1 }.grid *:nth-child(35) { --i7: -1 }.grid *:nth-child(35) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(36) { --i1: -1 }.grid *:nth-child(36) { --i2: -1 }.grid *:nth-child(36) { --i3: 1 }.grid *:nth-child(36) { --i4: 1 }.grid *:nth-child(36) { --i5: 1 }.grid *:nth-child(36) { --i6: -1 }.grid *:nth-child(36) { --i7: -1 }.grid *:nth-child(36) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(37) { --i1: 1 }.grid *:nth-child(37) { --i2: -1 }.grid *:nth-child(37) { --i3: -1 }.grid *:nth-child(37) { --i4: -1 }.grid *:nth-child(37) { --i5: 1 }.grid *:nth-child(37) { --i6: 1 }.grid *:nth-child(37) { --i7: 1 }.grid *:nth-child(37) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(38) { --i1: 1 }.grid *:nth-child(38) { --i2: -1 }.grid *:nth-child(38) { --i3: -1 }.grid *:nth-child(38) { --i4: 1 }.grid *:nth-child(38) { --i5: -1 }.grid *:nth-child(38) { --i6: 1 }.grid *:nth-child(38) { --i7: 1 }.grid *:nth-child(38) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(39) { --i1: 1 }.grid *:nth-child(39) { --i2: 1 }.grid *:nth-child(39) { --i3: 1 }.grid *:nth-child(39) { --i4: 1 }.grid *:nth-child(39) { --i5: 1 }.grid *:nth-child(39) { --i6: 1 }.grid *:nth-child(39) { --i7: -1 }.grid *:nth-child(39) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(40) { --i1: -1 }.grid *:nth-child(40) { --i2: 1 }.grid *:nth-child(40) { --i3: 1 }.grid *:nth-child(40) { --i4: 1 }.grid *:nth-child(40) { --i5: 1 }.grid *:nth-child(40) { --i6: 1 }.grid *:nth-child(40) { --i7: -1 }.grid *:nth-child(40) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(41) { --i1: -1 }.grid *:nth-child(41) { --i2: 1 }.grid *:nth-child(41) { --i3: 1 }.grid *:nth-child(41) { --i4: 1 }.grid *:nth-child(41) { --i5: -1 }.grid *:nth-child(41) { --i6: 1 }.grid *:nth-child(41) { --i7: -1 }.grid *:nth-child(41) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(42) { --i1: -1 }.grid *:nth-child(42) { --i2: 1 }.grid *:nth-child(42) { --i3: -1 }.grid *:nth-child(42) { --i4: -1 }.grid *:nth-child(42) { --i5: 1 }.grid *:nth-child(42) { --i6: -1 }.grid *:nth-child(42) { --i7: -1 }.grid *:nth-child(42) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(43) { --i1: -1 }.grid *:nth-child(43) { --i2: 1 }.grid *:nth-child(43) { --i3: -1 }.grid *:nth-child(43) { --i4: -1 }.grid *:nth-child(43) { --i5: -1 }.grid *:nth-child(43) { --i6: -1 }.grid *:nth-child(43) { --i7: 1 }.grid *:nth-child(43) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(44) { --i1: 1 }.grid *:nth-child(44) { --i2: -1 }.grid *:nth-child(44) { --i3: -1 }.grid *:nth-child(44) { --i4: 1 }.grid *:nth-child(44) { --i5: 1 }.grid *:nth-child(44) { --i6: -1 }.grid *:nth-child(44) { --i7: -1 }.grid *:nth-child(44) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(45) { --i1: 1 }.grid *:nth-child(45) { --i2: 1 }.grid *:nth-child(45) { --i3: -1 }.grid *:nth-child(45) { --i4: 1 }.grid *:nth-child(45) { --i5: 1 }.grid *:nth-child(45) { --i6: -1 }.grid *:nth-child(45) { --i7: 1 }.grid *:nth-child(45) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(46) { --i1: 1 }.grid *:nth-child(46) { --i2: -1 }.grid *:nth-child(46) { --i3: 1 }.grid *:nth-child(46) { --i4: -1 }.grid *:nth-child(46) { --i5: 1 }.grid *:nth-child(46) { --i6: -1 }.grid *:nth-child(46) { --i7: -1 }.grid *:nth-child(46) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(47) { --i1: 1 }.grid *:nth-child(47) { --i2: -1 }.grid *:nth-child(47) { --i3: 1 }.grid *:nth-child(47) { --i4: 1 }.grid *:nth-child(47) { --i5: -1 }.grid *:nth-child(47) { --i6: -1 }.grid *:nth-child(47) { --i7: 1 }.grid *:nth-child(47) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(48) { --i1: 1 }.grid *:nth-child(48) { --i2: -1 }.grid *:nth-child(48) { --i3: 1 }.grid *:nth-child(48) { --i4: 1 }.grid *:nth-child(48) { --i5: -1 }.grid *:nth-child(48) { --i6: -1 }.grid *:nth-child(48) { --i7: 1 }.grid *:nth-child(48) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(49) { --i1: 1 }.grid *:nth-child(49) { --i2: 1 }.grid *:nth-child(49) { --i3: -1 }.grid *:nth-child(49) { --i4: -1 }.grid *:nth-child(49) { --i5: 1 }.grid *:nth-child(49) { --i6: 1 }.grid *:nth-child(49) { --i7: -1 }.grid *:nth-child(49) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(50) { --i1: 1 }.grid *:nth-child(50) { --i2: -1 }.grid *:nth-child(50) { --i3: -1 }.grid *:nth-child(50) { --i4: 1 }.grid *:nth-child(50) { --i5: -1 }.grid *:nth-child(50) { --i6: 1 }.grid *:nth-child(50) { --i7: 1 }.grid *:nth-child(50) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(51) { --i1: 1 }.grid *:nth-child(51) { --i2: -1 }.grid *:nth-child(51) { --i3: 1 }.grid *:nth-child(51) { --i4: 1 }.grid *:nth-child(51) { --i5: -1 }.grid *:nth-child(51) { --i6: -1 }.grid *:nth-child(51) { --i7: 1 }.grid *:nth-child(51) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(52) { --i1: 1 }.grid *:nth-child(52) { --i2: -1 }.grid *:nth-child(52) { --i3: -1 }.grid *:nth-child(52) { --i4: 1 }.grid *:nth-child(52) { --i5: -1 }.grid *:nth-child(52) { --i6: -1 }.grid *:nth-child(52) { --i7: -1 }.grid *:nth-child(52) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(53) { --i1: 1 }.grid *:nth-child(53) { --i2: 1 }.grid *:nth-child(53) { --i3: -1 }.grid *:nth-child(53) { --i4: -1 }.grid *:nth-child(53) { --i5: 1 }.grid *:nth-child(53) { --i6: 1 }.grid *:nth-child(53) { --i7: 1 }.grid *:nth-child(53) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(54) { --i1: -1 }.grid *:nth-child(54) { --i2: 1 }.grid *:nth-child(54) { --i3: 1 }.grid *:nth-child(54) { --i4: -1 }.grid *:nth-child(54) { --i5: -1 }.grid *:nth-child(54) { --i6: 1 }.grid *:nth-child(54) { --i7: -1 }.grid *:nth-child(54) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(55) { --i1: -1 }.grid *:nth-child(55) { --i2: -1 }.grid *:nth-child(55) { --i3: 1 }.grid *:nth-child(55) { --i4: -1 }.grid *:nth-child(55) { --i5: 1 }.grid *:nth-child(55) { --i6: 1 }.grid *:nth-child(55) { --i7: 1 }.grid *:nth-child(55) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(56) { --i1: -1 }.grid *:nth-child(56) { --i2: -1 }.grid *:nth-child(56) { --i3: 1 }.grid *:nth-child(56) { --i4: 1 }.grid *:nth-child(56) { --i5: 1 }.grid *:nth-child(56) { --i6: 1 }.grid *:nth-child(56) { --i7: -1 }.grid *:nth-child(56) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(57) { --i1: 1 }.grid *:nth-child(57) { --i2: 1 }.grid *:nth-child(57) { --i3: 1 }.grid *:nth-child(57) { --i4: -1 }.grid *:nth-child(57) { --i5: -1 }.grid *:nth-child(57) { --i6: -1 }.grid *:nth-child(57) { --i7: -1 }.grid *:nth-child(57) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(58) { --i1: 1 }.grid *:nth-child(58) { --i2: 1 }.grid *:nth-child(58) { --i3: 1 }.grid *:nth-child(58) { --i4: 1 }.grid *:nth-child(58) { --i5: -1 }.grid *:nth-child(58) { --i6: -1 }.grid *:nth-child(58) { --i7: -1 }.grid *:nth-child(58) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(59) { --i1: 1 }.grid *:nth-child(59) { --i2: 1 }.grid *:nth-child(59) { --i3: 1 }.grid *:nth-child(59) { --i4: -1 }.grid *:nth-child(59) { --i5: 1 }.grid *:nth-child(59) { --i6: 1 }.grid *:nth-child(59) { --i7: -1 }.grid *:nth-child(59) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(60) { --i1: 1 }.grid *:nth-child(60) { --i2: -1 }.grid *:nth-child(60) { --i3: -1 }.grid *:nth-child(60) { --i4: -1 }.grid *:nth-child(60) { --i5: -1 }.grid *:nth-child(60) { --i6: -1 }.grid *:nth-child(60) { --i7: -1 }.grid *:nth-child(60) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(61) { --i1: -1 }.grid *:nth-child(61) { --i2: -1 }.grid *:nth-child(61) { --i3: 1 }.grid *:nth-child(61) { --i4: -1 }.grid *:nth-child(61) { --i5: -1 }.grid *:nth-child(61) { --i6: 1 }.grid *:nth-child(61) { --i7: -1 }.grid *:nth-child(61) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(62) { --i1: 1 }.grid *:nth-child(62) { --i2: -1 }.grid *:nth-child(62) { --i3: 1 }.grid *:nth-child(62) { --i4: 1 }.grid *:nth-child(62) { --i5: 1 }.grid *:nth-child(62) { --i6: 1 }.grid *:nth-child(62) { --i7: -1 }.grid *:nth-child(62) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(63) { --i1: 1 }.grid *:nth-child(63) { --i2: 1 }.grid *:nth-child(63) { --i3: 1 }.grid *:nth-child(63) { --i4: 1 }.grid *:nth-child(63) { --i5: 1 }.grid *:nth-child(63) { --i6: -1 }.grid *:nth-child(63) { --i7: 1 }.grid *:nth-child(63) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(64) { --i1: 1 }.grid *:nth-child(64) { --i2: 1 }.grid *:nth-child(64) { --i3: 1 }.grid *:nth-child(64) { --i4: 1 }.grid *:nth-child(64) { --i5: 1 }.grid *:nth-child(64) { --i6: -1 }.grid *:nth-child(64) { --i7: -1 }.grid *:nth-child(64) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(65) { --i1: 1 }.grid *:nth-child(65) { --i2: 1 }.grid *:nth-child(65) { --i3: -1 }.grid *:nth-child(65) { --i4: 1 }.grid *:nth-child(65) { --i5: -1 }.grid *:nth-child(65) { --i6: 1 }.grid *:nth-child(65) { --i7: -1 }.grid *:nth-child(65) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(66) { --i1: 1 }.grid *:nth-child(66) { --i2: -1 }.grid *:nth-child(66) { --i3: 1 }.grid *:nth-child(66) { --i4: -1 }.grid *:nth-child(66) { --i5: 1 }.grid *:nth-child(66) { --i6: 1 }.grid *:nth-child(66) { --i7: -1 }.grid *:nth-child(66) { --i8: -1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(67) { --i1: -1 }.grid *:nth-child(67) { --i2: 1 }.grid *:nth-child(67) { --i3: 1 }.grid *:nth-child(67) { --i4: 1 }.grid *:nth-child(67) { --i5: 1 }.grid *:nth-child(67) { --i6: 1 }.grid *:nth-child(67) { --i7: 1 }.grid *:nth-child(67) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(68) { --i1: 1 }.grid *:nth-child(68) { --i2: 1 }.grid *:nth-child(68) { --i3: -1 }.grid *:nth-child(68) { --i4: -1 }.grid *:nth-child(68) { --i5: -1 }.grid *:nth-child(68) { --i6: -1 }.grid *:nth-child(68) { --i7: -1 }.grid *:nth-child(68) { --i8: 1 }input:nth-of-type(1):checked ~ .grid > * {--o:var(--i1)}input:nth-of-type(2):checked ~ .grid > * {--o:var(--i2)}input:nth-of-type(3):checked ~ .grid > * {--o:var(--i3)}input:nth-of-type(4):checked ~ .grid > * {--o:var(--i4)}input:nth-of-type(5):checked ~ .grid > * {--o:var(--i5)}input:nth-of-type(6):checked ~ .grid > * {--o:var(--i6)}input:nth-of-type(7):checked ~ .grid > * {--o:var(--i7)}input:nth-of-type(8):checked ~ .grid > * {--o:var(--i8)}.grid *:nth-child(69) { --i1: 1 }.grid *:nth-child(69) { --i2: 1 }.grid *:nth-child(69) { --i3: -1 }.grid *:n.........完整代码请登录后点击上方下载按钮下载查看

网友评论0