Skip to content

Instantly share code, notes, and snippets.

@feeela
Created November 7, 2013 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feeela/7355585 to your computer and use it in GitHub Desktop.
Save feeela/7355585 to your computer and use it in GitHub Desktop.
Citation Quotes For Different Languages; This snippets includes quotation marks around each , based on the language set in the HTML lang-attribute (e.g. ) and utilizes Unicode points to set the grammar-correct quotation marks.
:lang(de), :lang(de-de) { quotes: "\201E" "\201C" "\201A" "\2018"; }
:lang(de-fr) { quotes: "\00BB" "\00AB" "\203A" "\2039"; }
:lang(de-ch) { quotes: "\00AB" "\00BB" "\2039" "\203A"; }
:lang(en) { quotes: "\201C" "\201D" "\2018" "\2019"; }
:lang(fr) { quotes: "\00AB\00A0" "\00A0\00BB" "\2039\00A0" "\00A0\203A"; }
q:before { content: open-quote; }
q:after { content: close-quote; }
q q:before { content: open-quote; }
q q:after { content: close-quote; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment