From cf9bd91f6875c3289057f8d1a799c9beb1f5b268 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 Apr 2022 11:51:03 +0200 Subject: notes/bash: styling --- _notes/bash.html | 12 ++++++++++-- assets/css/bash.css | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 assets/css/bash.css diff --git a/_notes/bash.html b/_notes/bash.html index ea0cb8a..367ee03 100644 --- a/_notes/bash.html +++ b/_notes/bash.html @@ -2,6 +2,8 @@ title: Bash subtitle: best practices layout: plain +links: + - {rel: stylesheet, href: 'assets/css/bash.css'} features: - title: Arrays topics: @@ -133,12 +135,18 @@ features:
{% for guide in topic.do %} - {% highlight bash %}{{ guide }}{% endhighlight %} +
+ {% highlight bash %}{{ guide }}{% endhighlight %} +
+
{% endfor %}
{% for guide in topic.dont %} - {% highlight bash %}{{ guide }}{% endhighlight %} +
+ {% highlight bash %}{{ guide }}{% endhighlight %} +
+
{% endfor %}
diff --git a/assets/css/bash.css b/assets/css/bash.css new file mode 100644 index 0000000..2b1665c --- /dev/null +++ b/assets/css/bash.css @@ -0,0 +1,21 @@ +.pre_container { + position: relative; +} +.pre_mark { + position: absolute; + top: 5px; + right: 5px; + user-select: none; +} +.pre_do pre { + border-color: #00d100; +} +.pre_do .glyphicon { + color: #00d100; +} +.pre_dont pre { + border-color: red; +} +.pre_dont .glyphicon { + color: red; +} -- cgit v1.2.3