mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Refactor examples using an unordered list
This commit is contained in:
parent
2696bc3cde
commit
7ffd50392b
@ -21,7 +21,7 @@ layout: common
|
||||
|
||||
{{ site.data.functions[function_name].description | markdownify }}
|
||||
|
||||
<div class="examples">
|
||||
<ul class="examples">
|
||||
|
||||
{% for example in examples %}
|
||||
|
||||
@ -33,13 +33,13 @@ sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
|
||||
{{ example.code }}
|
||||
{% endcapture %}
|
||||
|
||||
<div class="example">
|
||||
<li>
|
||||
{{ example.description | markdownify }}
|
||||
<pre><code>{{- code | strip -}}</code></pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
{% endfor %}
|
||||
|
@ -149,8 +149,10 @@ h2, h3, h4, h5, h5 {
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
counter-reset: item;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
.example:not(:only-child) {
|
||||
li:not(:only-child) {
|
||||
display: table-row;
|
||||
|
||||
&:before {
|
||||
|
Loading…
Reference in New Issue
Block a user