summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss')
-rw-r--r--sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss b/sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss
new file mode 100644
index 0000000..e2f420e
--- /dev/null
+++ b/sysret.org/themes/tabi-lean/sass/parts/_image-toggler.scss
@@ -0,0 +1,24 @@
+.image-label {
+ cursor: pointer;
+}
+
+.image-toggled {
+ position: absolute;
+ top: 0;
+ left: 0;
+ visibility: hidden;
+}
+
+.image-toggler-toggle {
+ display: none;
+}
+
+.image-toggler-toggle:checked ~ .image-label .image-toggled {
+ position: static;
+ visibility: visible;
+}
+
+.image-toggler-toggle:checked ~ .image-label .image-default {
+ position: absolute;
+ visibility: hidden;
+}