diff options
author | Olivier DOSSMANN <git@dossmann.net> | 2017-06-25 18:52:06 +0300 |
---|---|---|
committer | Olivier DOSSMANN <git@dossmann.net> | 2017-06-25 19:14:24 +0300 |
commit | 20f06af00c3d61fc79cfb02f06ffcfd09ce56b33 (patch) | |
tree | 5f0b222ec4b3cecf380e2fae50cc0d4aa0907e9e | |
parent | 9ec71320a4c6a5e6f01232de112feb69d634104d (diff) |
By default, all main links are green (as internal one)
-rw-r--r-- | README.md | 24 | ||||
-rw-r--r-- | static/css/main.css | 2 |
2 files changed, 25 insertions, 1 deletions
@@ -8,6 +8,30 @@ So I only give some elements so that you can create a Wiki. After that, you need to dress it with more CSS. +# Link behaviour in content + +For more information about shortcodes, check [Shortcode section](#shortcodes). + +## Behaviour 1 (default): all links are internal one and you will use external shortcode + +By default all links are blue (table of contents, menu, etc.). And all links from the content are green (as internal one). + +This mean you will probably use 'external' shortcode for external links. + +Indeed you can use 'internal' shortcode too. But all links from main content is green by default. + +## Behaviour 2: all links are normal and you will use internal and external shortcode to define all links + +If you want to consider all links as normal, and want to define yourself which link is external, which other one is internal, you need to comment these line in **static/css/main.css**: + +``` +main a:active, main a:link, main a:visited, main a:hover { + color: #080; // comment this line if you planned to use 'internal' shortcode +} +``` + +Add **//** at the beginning of each line will be enough. + # Shortcodes To use wiki functionnalities, I create some shortcodes. diff --git a/static/css/main.css b/static/css/main.css index 23faf2e..70b1cd3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -4,7 +4,7 @@ a:active, a:link, a:visited, a:hover { } main a:active, main a:link, main a:visited, main a:hover { - color: #080; + color: #080; // comment this line if you planned to use 'internal' shortcode } span.nolink { |