Usage
Add quotation marks to an element
@import "quotation-marks"
;
.my-class {
@include quotation-marks(en);
}
/* RESULT */
.my-class:before {
content: "“"
;
}
.my-class:after {
content: "”"
;
}
Use :lang()
<html lang="de">
<body>
<div class="my-class">Hello World!</div>
</body>
</html>
@import "quotation-marks"
;
.my-class {
@include localized-quotation-marks(en de);
}
/* RESULT */
.my-class:lang(en):before,
.my-class:lang(de):after {
content: "“"
;
}
.my-class:lang(en):after {
content: "”"
;
}
.my-class:lang(de):before {
content: "„"
;
}
Notice: This gem uses %placeholders
—so it combines all similar
quotation mark and just adds the selectors.
Installation
Add this line to your application’s Gemfile:
gem 'quotation-marks'
And then execute:
bundle
Or install it yourself as:
gem install quotation-marks