Skip to content

Instantly share code, notes, and snippets.

@lucasdinonolte
Created October 11, 2017 13:24
Show Gist options
  • Save lucasdinonolte/c55a75133a5bc74b30a0004d6e6ae7e8 to your computer and use it in GitHub Desktop.
Save lucasdinonolte/c55a75133a5bc74b30a0004d6e6ae7e8 to your computer and use it in GitHub Desktop.
Language specific quotation marks
// Wrap the quotes
// in language specific
// quotation marks if a
// language is specified
// ---------------------
// German Quotes
.c-quote--german &,
html:lang(de) &
&::before
content: '„'
&::after
content: '“'
// English and Portuguese Quotes
.c-quote--english &,
html:lang(en) &,
html:lang(en-us) &,
html:lang(en-uk) &,
html:lang(en-ca) &,
.c-quote--portuguese &,
html:lang(pt) &,
html:lang(pt-br) &
&::before
content: '“'
&::after
content: '”'
// French, Italian and Spanish Quotes
.c-quote--french &,
html:lang(fr) &,
.c-quote--italian &,
html:lang(it) &,
.c-quote--spanish &,
html:lang(es) &
&::before
content: '«'
&::after
content: '»'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment