summaryrefslogtreecommitdiff
path: root/css/glyph.scss
blob: d2dbce9f7def1d5885e48def31fc072025bc589e (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
#glyph {
	aspect-ratio:        1;
	background-position: center;
	background-repeat:   no-repeat;
	background-size:     contain;
	left:                50%;
	position:            absolute;
	top:                 50%;
	transform:           translate(-50%, -50%);
	width:               50vmin;

	body[data-page = "achernar"] & {
		$pixelWIdth: calc(100vmax / 256);

		background-image: url("/image/achernarPixelated.webp");
		height:           floor(calc($pixelWIdth * 42));
		width:            floor(calc($pixelWIdth * 154));

		@media (orientation: portrait) {
			background-image: url("/image/achernarVerticalPixelated.webp");
			height:           floor(calc($pixelWIdth * 90));
			width:            floor(calc($pixelWIdth * 74));
		}
	}

	body[data-page = "agbsum"] & {
		background-image: url("/svg/glyph/ax.svg");
	}

	body[data-page = "ax"] & {
		background-image: url("/svg/glyph/ax.svg");
	}

	body[data-page = "backspace"] & {
		background-image: url("/svg/glyph/backspace.svg");
	}

	body[data-page = "benoit"] & {
		background-image: url("/svg/glyph/benoit.svg");
	}

	body[data-page = "bowshock"] & {
		background-image: url("/svg/glyph/bowshock.svg");
	}

	body[data-page = "bzipper"] & {
		background-image: url("/svg/glyph/bzipper.svg");
	}

	body[data-page = "deltaWorld"] & {
		background-image: url("/svg/glyph/deltaWorld.svg");
		filter:           drop-shadow(0 0 calc(100vmin / 128) var(--textColour));
	}

	body[data-page = "dux"] & {
		background-image: url("/svg/glyph/dux.svg");
	}

	body[data-page = "eas"] & {
		background-image: url("/svg/glyph/eas.svg");
	}

	body[data-page = "luma"] & {
		background-image: url("/svg/glyph/luma.svg");
	}

	body[data-page = "pollex"] & {
		background-image: url("/svg/glyph/pollex.svg");
	}

	body[data-page = "u8c"] & {
		background-image: url("/svg/glyph/u8c.svg");
	}
}