diff options
author | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-07-22 20:17:15 +0300 |
---|---|---|
committer | Maryana Rozhankivska <mariroz@mr.lviv.ua> | 2014-07-22 20:17:15 +0300 |
commit | 9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6 (patch) | |
tree | 452ae2a0b240068e8fbf8ba158d43b3389cea383 /themes/baggy | |
parent | 5594d7d05469bcff2a046a99d49990bd63a6fd4f (diff) | |
download | wallabag-9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6.tar.gz wallabag-9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6.tar.zst wallabag-9f8541ef2a9dc670ca75fb452c0930e1afa4a8f6.zip |
highlight.js library added to highlight programming code examples in article view
Diffstat (limited to 'themes/baggy')
-rwxr-xr-x | themes/baggy/css/main.css | 8 | ||||
-rwxr-xr-x | themes/baggy/view.twig | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 6d320cd2..f8238744 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css | |||
@@ -923,6 +923,13 @@ blockquote { | |||
923 | text-decoration: underline; | 923 | text-decoration: underline; |
924 | } | 924 | } |
925 | 925 | ||
926 | pre code { | ||
927 | font-family: "Courier New", Courier, monospace; | ||
928 | border: 1px solid #ccc; | ||
929 | font-size: 0.96em; | ||
930 | } | ||
931 | |||
932 | |||
926 | /* ========================================================================== | 933 | /* ========================================================================== |
927 | 6 = Media Queries | 934 | 6 = Media Queries |
928 | ========================================================================== */ | 935 | ========================================================================== */ |
@@ -1055,3 +1062,4 @@ blockquote { | |||
1055 | left: 0; | 1062 | left: 0; |
1056 | } | 1063 | } |
1057 | } | 1064 | } |
1065 | |||
diff --git a/themes/baggy/view.twig b/themes/baggy/view.twig index af97407d..703ce5be 100755 --- a/themes/baggy/view.twig +++ b/themes/baggy/view.twig | |||
@@ -4,6 +4,7 @@ | |||
4 | {% endblock %} | 4 | {% endblock %} |
5 | {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} | 5 | {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} |
6 | {% block content %} | 6 | {% block content %} |
7 | {% include '_highlight.twig' %} | ||
7 | <div id="article_toolbar"> | 8 | <div id="article_toolbar"> |
8 | <ul class="links"> | 9 | <ul class="links"> |
9 | <li class="topPosF"><a href="#top" title="{% trans "Back to top" %}" class="tool top icon icon-arrow-up-thick"><span>{% trans "Back to top" %}</span></a></li> | 10 | <li class="topPosF"><a href="#top" title="{% trans "Back to top" %}" class="tool top icon icon-arrow-up-thick"><span>{% trans "Back to top" %}</span></a></li> |