Allow collapsible blocks to be tightly together

master
Maik de Kruif 2 weeks ago
parent fc16fb4046
commit af883f2f6e
No known key found for this signature in database
GPG Key ID: DB1A8C782DD43CB3
  1. 2
      content/writeups/google-ctf/2021/beginners-quest/4.md
  2. 4
      content/writeups/google-ctf/2021/beginners-quest/5.md
  3. 4
      content/writeups/google-ctf/2021/beginners-quest/6.md
  4. 2
      content/writeups/google-ctf/2021/beginners-quest/7.md
  5. 6
      themes/maik-blog/assets/scss/_collapsible-block.scss
  6. 2
      themes/maik-blog/layouts/shortcodes/collapsible-block.html

@ -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 <stdbool.h>

@ -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

@ -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.

@ -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 *

@ -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;

@ -1,6 +1,6 @@
{{ $id := delimit (shuffle (seq 1 9)) "" }}
<div class="collapsible-block">
<div class="collapsible-block {{- with .Get "class" }} {{ . }}{{ end }}">
<input id="{{ .Get "id" | default $id }}" type="checkbox" {{ if ( eq ( .Get "isCollapsed" ) "true" ) -}} checked
{{- end }} />
<label for="{{ .Get "id" | default $id }}">

Loading…
Cancel
Save