summary refs log tree commit diff
path: root/css/terminal.css
blob: 98a3e5f3d069cfe686f8ff80e6948dc0e49ca62a (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@font-face {
	font-family: "DejaVu Sans Mono";
	src: url("../files/fonts/DejaVuSansMono.ttf");
}
:root {
	--fg: #86ff86;
	--link: #42f042;
	--visited: #b7ffaf;

	--bg: #1d2021;
	--bg2: black; --selection: #466639;

	--font-body: "DejaVu Sans", "Bitstream Vera Sans", "Verdana", sans-serif;
	--font-mono: "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Menlo", monospace;
	--font-accent: var(--font-mono);
}
.green {
	--fg: #86ff86; /* hue 120, contrast 13:1 */
	--link: #42f042; /* hue 120, contrast 10.75:1 */
	--visited: #b7ffaf; /* hue 114, contrast 14:1 */

	--bg: #1d2021;
	--selection: #466639;
}
.purple {
	--fg: #f099ff; /* hue 291, contrast 8:1 */
	--link: #ff96e2; /* hue 317, contrast 8:1 */
	--visited: #ff82d2; /* hue 322, contrast 7:1 */

	--bg: #291f33;
	--selection: #663963;
}
.cyan {
	--fg: #90ffff; /* hue 180, contrast 14:1 */
	--link: #00f5f5; /* hue 180, contrast 12:1 */
	--visited: #83baf1; /* hue 210, contrast 8:1 */

	--bg: #1d2021;
	--selection: #466639;
}

/* UTILITY CLASSES */
.clearfix::after { clear:both; display:block; content: ""; }
.inline { display:inline }
/* MAIN STYLES*/
html {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body {
	background-color: var(--bg);
	background: linear-gradient(var(--bg) 0%, var(--bg2) 33%, var(--bg) 66%);
	background-size: 100% 3px;
}
::selection {
	background: var(--selection);
	color: white;
	text-shadow: none;
}
h1::after {
	content: "█";
	animation: blink 2.4s steps(2) infinite;
}
@keyframes blink {
	0% {
		opacity: 0;
	}
}
@media(prefers-reduced-motion: reduce) {
	h1::after {
		animation: none !important;
		opacity: 50%;
	}
}