diff options
1 files changed, 0 insertions, 104 deletions
| -rw-r--r-- | ext/global.du | 104 |
diff --git a/ext/global.du b/ext/global.du deleted file mode 100644 index bde5278..0000000 --- a/ext/global.du +++ /dev/null @@ -1,104 +0,0 @@ -'stop_output - -# Attention blocks - -'define_block note <div class="special-par note-par"><div class="special-contents"> </div></div> - -'define new_attention 'define_block [$name] <div class="special-par [$name]-par"><div class="special-contents special-with-icon"><img src="/img/[$image]" class="special-par-icon borderless unzoomable" alt="[$name]"> </div></div> - - 'define name question - 'define image dialog-question.png - [$new_attention] - - 'define name warn - 'define image dialog-warning.png - [$new_attention] - - 'define name important - 'define image dialog-important.png - [$new_attention] - -# Headers - -For each header (except H1) we'll add a "gap" element and an anchor link to the end. -The gap is only for visual purposes. - -'define new_header 'define_block header[$num] <div class="[$gap]"></div> <h[$num] id="[?header?]"> </h[$num]>\ <a\ class="h-anchor"\ href="#[?header?]"\ aria-hidden="true">#</a> - - 'define num 2 - 'define gap gap - [$new_header] - - 'define num 3 - 'define gap gap-small - [$new_header] - - 'define num 4 - 'define gap gap-small - [$new_header] - - 'define num 5 - 'define gap gap-small - [$new_header] - - 'define num 6 - 'define gap gap-small - [$new_header] - -# Country flags - -'define new_flag 'define [$flag] <img src="/img/[$flag].svg" class="flag unzoomable svg" alt="[$alt]" height=18> - - 'define flag gb - 'define alt ENG - [$new_flag] - - 'define flag bg - 'define alt BGN - [$new_flag] - -# File types - -'define new_ft 'define ft-[$name] <span class="file-type-icon">[$char]</span> - - 'define name photo - 'define char  - [$new_ft] - - 'define name text - 'define char  - [$new_ft] - - 'define name zip - 'define char  - [$new_ft] - - 'define name movie - 'define char  - [$new_ft] - - 'define name markdown - 'define char  - [$new_ft] - - 'define name browser - 'define char  - [$new_ft] - -# Pagination - -'define pagination_start [`[url [$next_link] >]`] -'define pagination_second [`[url [$prev_link] <]`] || [`[url [$next_link] >]`] -'define pagination_middle [`[url [$start_link] <<]`] || [`[url [$prev_link] <]`] || [`[url [$next_link] >]`] -'define pagination_end [`[url [$start_link] <<]`] || [`[url [$prev_link] <]`] - -# Teaching - -'define_block solution-link <div class="exercise-solution">< ></div> - -# Other - -'define line <hr> -'define due_for_rework [url /rework.html [=[*Due for rework*]=]] - -'define_block contents <div id="contents-container"><h2 id="contents">Contents</h2> <a class="h-anchor" href="#contents" aria-hidden="true">#</a> </div> |