summaryrefslogblamecommitdiff
path: root/css/glyph.scss
blob: 50297f02f3b03e9e7245d3dfbf875bfbfcfeea97 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
        





                                       



                                                 





                                                                                         
 






                                                                         




























                                                                   
                                                                                         

















                                                               
#glyph {
	aspect-ratio:        1;
	background-position: center;
	background-repeat:   no-repeat;
	background-size:     contain;
	pointer-events:      none;
	width:               50vmin;

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

		@media not (prefers-reduced-motion) {
			background-image:           url("/image/achernarPixelated.webp");
			height:                     floor(calc($pixelWIdth * 42));
			transition-timing-function: steps(4);
			transition:                 transform 0.125s;
			width:                      floor(calc($pixelWIdth * 154));

			@media (aspect-ratio < 1) {
				transform: rotate(0.25turn);
			}
		}

		@media (prefers-reduced-motion) {
			background-image: url("/svg/glyph/achernar.svg");
		}
	}

	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 = "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");
	}
}