summaryrefslogtreecommitdiffstats
path: root/templates/55/ad-hominem/css/links.less
diff options
context:
space:
mode:
Diffstat (limited to 'templates/55/ad-hominem/css/links.less')
-rw-r--r--templates/55/ad-hominem/css/links.less59
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