mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Enumerate examples
This commit is contained in:
parent
67a480ccce
commit
386b467490
@ -21,6 +21,8 @@ layout: common
|
||||
|
||||
{{ site.data.functions[function_name].description | markdownify }}
|
||||
|
||||
<div class="examples">
|
||||
|
||||
{% for example in examples %}
|
||||
|
||||
<div class="example">
|
||||
@ -43,4 +45,6 @@ sudo chmod +s ./{{ bin_name }}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
24
style.scss
24
style.scss
@ -104,7 +104,29 @@ a:hover {
|
||||
}
|
||||
}
|
||||
|
||||
// classes
|
||||
// bin examples
|
||||
|
||||
.examples {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
counter-reset: item;
|
||||
|
||||
.example:not(:only-child) {
|
||||
display: table-row;
|
||||
|
||||
&:before {
|
||||
display: table-cell;
|
||||
font-size: 0.8rem;
|
||||
width: 2em;
|
||||
text-align: center;
|
||||
counter-increment: item;
|
||||
content: counter(item) ".";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// other classes
|
||||
|
||||
.bin-name {
|
||||
font-family: monospace;
|
||||
|
Loading…
Reference in New Issue
Block a user