summaryrefslogtreecommitdiffstats
path: root/templates/55/ad-hominem/css/links.less
blob: f97f7ca3a70e64dd349b89bce83e6987d30fd315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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; }
}