summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-08-24 12:27:18 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-08-24 12:27:18 +0200
commitaf83d9113aaea3fefb113560c597d08c8aebbc50 (patch)
tree4ffbc0f61abdbdb4309b18d7e551ce738db1cda1
parent4df70b7dfb9e82c3b842b1881117a293955ed107 (diff)
downloadkuchnia-af83d9113aaea3fefb113560c597d08c8aebbc50.tar.gz
kuchnia-af83d9113aaea3fefb113560c597d08c8aebbc50.zip
green on checked
-rw-r--r--_header.html2
-rwxr-xr-xbuild.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/_header.html b/_header.html
index a68cebe..78afb0b 100644
--- a/_header.html
+++ b/_header.html
@@ -40,9 +40,11 @@ li > input:before {
   background: grey;
 }
 
+li.checked,
 input[checked] ~ * {
   color: green;
 }
+
 </style>
   </head>
   <body>
diff --git a/build.sh b/build.sh
index d5b4028..64bfeca 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
 
 cat _header.html
-sed 's/- \[ \] /<input type="checkbox" disabled>/;s/- \[x\] /<input type="checkbox" checked disabled>/' lista | sed 's/>\(.*\) (\(.*\))\(.*\)/><a href="\2">\1<\/a><p>\3<\/p>/' | sed 's/^/<li>/;s/$/<\/li>/'
+sed 's/- \[ \] /<li><input type="checkbox" disabled>/;s/- \[x\] /<li class="checked"><input type="checkbox" checked disabled>/' lista | sed 's/>\(.*\) (\(.*\))\(.*\)/><a href="\2">\1<\/a><p>\3<\/p>/' | sed 's/$/<\/li>/'
 cat _footer.html