diff options
author | Daniel Baumann <daniel@debian.org> | 2024-12-12 18:54:48 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-12-12 19:46:42 +0100 |
commit | 52e96b70e99693c94edc9233e5118bf518e6c51d (patch) | |
tree | 4e9328db16b0dd579613fb0f625af825dd2b4ba4 /templates/55/ad-hominem/css/links.less | |
parent | Adding ad-hominem makefile. (diff) | |
download | dokuwiki-templates-extra-52e96b70e99693c94edc9233e5118bf518e6c51d.tar.xz dokuwiki-templates-extra-52e96b70e99693c94edc9233e5118bf518e6c51d.zip |
Adding ad-hominem version 2024-10-07 (3a49926).
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/55/ad-hominem/css/links.less')
-rw-r--r-- | templates/55/ad-hominem/css/links.less | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/55/ad-hominem/css/links.less b/templates/55/ad-hominem/css/links.less new file mode 100644 index 0000000..f97f7ca --- /dev/null +++ b/templates/55/ad-hominem/css/links.less @@ -0,0 +1,59 @@ +/** + * This contains the content styling + * @author Sascha Leib <sascha@leib.be> + */ + +/* general link styles */ +a:link { + color: @ini_link; + text-decoration: none; + border-radius: 2px; +} +a:visited { + color: @ini_link; +} +a:hover { + text-decoration: underline; +} +a:focus { + outline: @ini_focus_color solid 2px; +} +a.wikilink1:link, +a.wikilink1:visited { + color: @ini_existing; +} +a.wikilink2:link, +a.wikilink2:visited { + color: @ini_missing; +} + +a.media:link, +a.media:visited { + display: block; + line-height: 0; +} + +/* in-page links */ +a[href^='#'].wikilink1:link, +a[href^='#'].wikilink1:visited { + color: @ini_inpage; + text-decoration: underline; + text-decoration-style: dotted; + +} + +/* special cases: included section in footer: */ +footer #ftInclude a.wikilink1:link, +footer #ftInclude a.wikilink1:visited { + color: @ini_link; +} + +/* dark mode overrides */ +@media (prefers-color-scheme: dark) { + + body.darkmode a:link, body.darkmode a:visited { color: @ini_link_dark; } + body.darkmode a.wikilink1:link, body.darkmode a.wikilink1:visited { color: @ini_existing_dark; } + body.darkmode a.wikilink2:link, body.darkmode a.wikilink2:visited { color: @ini_missing_dark; } + body.darkmode #ftInclude a.wikilink1:link, body.darkmode #ftInclude a.wikilink1:visited { color: @ini_link_dark; } + body.darkmode a[href^='#'].wikilink1:link, body.darkmode a[href^='#'].wikilink1:visited { color: @ini_inpage_dark; } +}
\ No newline at end of file |