Skip to content

Instantly share code, notes, and snippets.

@infotexture
Last active October 23, 2015 04:52
Show Gist options
  • Save infotexture/21e2210dc198ee8f9911 to your computer and use it in GitHub Desktop.
Save infotexture/21e2210dc198ee8f9911 to your computer and use it in GitHub Desktop.
Sass partial for DITA 1.3 XML mention domain
// Sass partial for DITA 1.3 XML mention domain
$code-fonts: Menlo, Monaco, Consolas, "Courier New", monospace;
$markup-color: #663399;
@mixin markupname {
color: $markup-color;
font-family: $code-fonts;
}
.numcharref {
@include markupname;
}
.parameterentity {
@include markupname;
}
.textentity {
@include markupname;
}
.xmlatt {
@include markupname;
}
.xmlelement {
@include markupname;
}
.xmlnsname {
@include markupname;
}
.xmlpi {
@include markupname;
}
@jelovirt
Copy link

Looks good to me. We could just include some default for each element in DITA and if there is not styling required, like for <ph> -> <span>, then it would be an empty rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment