Skip to content

Instantly share code, notes, and snippets.

@spenat28
Last active August 14, 2019 14:54
Show Gist options
  • Save spenat28/e1aedb70c9778dd62a9b96181ab02663 to your computer and use it in GitHub Desktop.
Save spenat28/e1aedb70c9778dd62a9b96181ab02663 to your computer and use it in GitHub Desktop.
czen/encz MacOS dictionary style updated Mojave
@charset "UTF-8";
@namespace d url(http://www.apple.com/DTDs/DictionaryService-1.0.rng);
d|entry {
}
h1 {
font-size: 150%;
font-family: "Baskerville";
}
html.apple_client-panel h1 {
font-size: 100%;
}
h3 {
font-size: 100%;
}
pre {
/* overflow: auto; */
white-space: pre-wrap;
font-family: "Baskerville";
}
html.apple_client-panel pre {
white-space: normal;
}
span.column {
display: block;
border: solid 2px #c0c0c0;
margin-left: 2em;
margin-right: 2em;
margin-top: 0.5em;
margin-bottom: 0.5em;
padding: 0.5em;
}
div.y:before {
content: "/";
}
div.y:after {
content: "/";
}
div.y {
margin-top: 0.5em;
margin-bottom: 0.5em;
font-family: "Baskerville";
font-size: 120%;
color: #333;
}
@media (prefers-dark-interface) {
body {
color: white;
}
}
/* Added by Filip Hracek (filiph.net) as a way of making the UniDict export
* more readable.
* You can blame me for any formating errors.
*/
b+b::before,
small+b::before,
small+i::before,
b+i::before {
content: ", ";
font-weight: normal;
font-style: normal;
}
b+small::before {
content: " ";
}
span.grammar-type {
color: #2B6FAF;
padding-right: 0.5em;
font-weight: bold;
font-style: italic;
}
span.grammar-type:not(:first-child)::before {
content: "\000D\000A";
display: block;
}
small {
font-size: xx-small;
}
i {
font-weight: 100;
font-size: small;
}
i::after {
content: " ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment