Deutsch.css

Shu,
Back

This is a simple CSS snippet to translate any website into Deutsch :-)

Try it on this page.
@font-face {
  font-family: '_s';
  src: local(Arial);
  unicode-range: U+??;
  size-adjust: 0%;
}
@font-face {
  font-family: '_c';
  src: local(Arial);
  unicode-range: U+41-5A,U+61-7A;
  size-adjust: 100%;
}
* {
  text-transform: lowercase !important;
  font-family: _c, _s !important;
  white-space: normal !important;
}
*::first-letter {
  text-transform: uppercase;
}

Similarily, you can use text-transform and ::first-letter, together with the uncode-range / word-spacing tricks to display a paragraph in camelCase / PascalCase.


Twitter · GitHub · Instagram · g@shud.inCC BY-NC 4.0 © Shu Ding.RSS