sticker: make it toggle-able
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -336,6 +336,23 @@ video {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sticker label:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sticker-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sticker-toggle:checked ~ #sticker {
|
||||||
|
bottom: 1em;
|
||||||
|
left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sticker-toggle:checked ~ #sticker img {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 319px) {
|
@media (max-width: 319px) {
|
||||||
body {
|
body {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
@@ -42,6 +42,7 @@
|
|||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
cabal-install
|
cabal-install
|
||||||
haskellPackages.fourmolu
|
haskellPackages.fourmolu
|
||||||
|
prettier
|
||||||
|
|
||||||
(texlive.combine {
|
(texlive.combine {
|
||||||
inherit (texlive)
|
inherit (texlive)
|
||||||
|
@@ -54,13 +54,16 @@
|
|||||||
$endfor$
|
$endfor$
|
||||||
</ul>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
<input type="checkbox" id="sticker-toggle" />
|
||||||
<div id="sticker">
|
<div id="sticker">
|
||||||
hello!
|
<label for="sticker-toggle"> hello! </label>
|
||||||
|
<label for="sticker-toggle">
|
||||||
<img
|
<img
|
||||||
src="/images/personal/nyn.webp"
|
src="/images/personal/nyn.webp"
|
||||||
alt="いらっしゃいませ"
|
alt="いらっしゃいませ"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user