diff --git a/content/writeups/google-ctf/2021/beginners-quest/4.md b/content/writeups/google-ctf/2021/beginners-quest/4.md index a179ec9..02e63d2 100644 --- a/content/writeups/google-ctf/2021/beginners-quest/4.md +++ b/content/writeups/google-ctf/2021/beginners-quest/4.md @@ -43,7 +43,7 @@ You’re taking a stroll in the lab, when Dr. Klostermann is calling your name: [attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/4/attachment.zip) -{{< collapsible-block badge="c" title="chal.c" isCollapsed="true" >}} +{{< collapsible-block badge="c" title="chal.c" isCollapsed="true" class="tight" >}} ```c #include diff --git a/content/writeups/google-ctf/2021/beginners-quest/5.md b/content/writeups/google-ctf/2021/beginners-quest/5.md index 6c90caa..265acf9 100644 --- a/content/writeups/google-ctf/2021/beginners-quest/5.md +++ b/content/writeups/google-ctf/2021/beginners-quest/5.md @@ -50,7 +50,7 @@ As you and Gökhan are leaving the crates to enter a car, you spot the tough guy [attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/5/attachment.zip) -{{< collapsible-block badge="py" title="RoboCaller1337.py" isCollapsed="true" >}} +{{< collapsible-block badge="py" title="RoboCaller1337.py" isCollapsed="true" class="tight" >}} ```py import random @@ -105,7 +105,7 @@ if __name__ == "__main__": {{< /collapsible-block >}} -{{< collapsible-block badge="txt" title="robo_numbers_list.txt" isCollapsed="true" >}} +{{< collapsible-block badge="txt" title="robo_numbers_list.txt" isCollapsed="true" class="tight" >}} ```txt 263-170-6234 diff --git a/content/writeups/google-ctf/2021/beginners-quest/6.md b/content/writeups/google-ctf/2021/beginners-quest/6.md index b6c9bd9..6ce6fd4 100644 --- a/content/writeups/google-ctf/2021/beginners-quest/6.md +++ b/content/writeups/google-ctf/2021/beginners-quest/6.md @@ -50,7 +50,7 @@ After having climbed through the window, you wait for a while on the ground. The [attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/6/attachment.zip) -{{< collapsible-block badge="txt" title="encodings" isCollapsed="true" >}} +{{< collapsible-block badge="txt" title="encodings" isCollapsed="true" class="tight" >}} ```text I made a super secret encoder. I remember using: @@ -66,7 +66,7 @@ I also use gzip and zlib (to compress the stuff) and I like hiding things in fil {{< /collapsible-block >}} -{{< collapsible-block badge="txt" title="chall.txt" isCollapsed="true" >}} +{{< collapsible-block badge="txt" title="chall.txt" isCollapsed="true" class="tight" >}} ```txt File is too large to display here. diff --git a/content/writeups/google-ctf/2021/beginners-quest/7.md b/content/writeups/google-ctf/2021/beginners-quest/7.md index c6fc97a..087dfe2 100644 --- a/content/writeups/google-ctf/2021/beginners-quest/7.md +++ b/content/writeups/google-ctf/2021/beginners-quest/7.md @@ -42,7 +42,7 @@ Nowak is very impressed by your skills. You and him sit down by a table, and you [attachment.zip](/files/writeups/google-ctf/2021/beginners-quest/7/attachment.zip) -{{< collapsible-block badge="python" title="chall.py" isCollapsed="true" >}} +{{< collapsible-block badge="python" title="chall.py" isCollapsed="true" class="tight" >}} ```py from Crypto.Util.number import * diff --git a/themes/maik-blog/assets/scss/_collapsible-block.scss b/themes/maik-blog/assets/scss/_collapsible-block.scss index 329d581..ed7e0ef 100644 --- a/themes/maik-blog/assets/scss/_collapsible-block.scss +++ b/themes/maik-blog/assets/scss/_collapsible-block.scss @@ -1,7 +1,11 @@ .collapsible-block { position: relative; width: 100%; - margin: 40px 0; + margin: 30px 0; + + &.tight { + margin: 15px 0; + } input[type="checkbox"] { position: absolute; diff --git a/themes/maik-blog/layouts/shortcodes/collapsible-block.html b/themes/maik-blog/layouts/shortcodes/collapsible-block.html index e969bb5..f4f7aec 100644 --- a/themes/maik-blog/layouts/shortcodes/collapsible-block.html +++ b/themes/maik-blog/layouts/shortcodes/collapsible-block.html @@ -1,6 +1,6 @@ {{ $id := delimit (shuffle (seq 1 9)) "" }} -
+