Skip to content

Commit

Permalink
feat: add snake any value .s and semantic accents
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 24, 2018
1 parent c510a64 commit ee296ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion addon/snake.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ exports.addon = function (renderer, rules) {
rules = rules || {};

var defaultRules = renderer.assign({}, atoms, {
s: function (prop, value) {
this[prop] = value;
},

bgWhite: function () {
this.backgroundColor = '#fff';
},
Expand All @@ -27,10 +31,22 @@ exports.addon = function (renderer, rules) {
this.fontWeight = 'bold';
},

em: function () {
b: function () {
this.fontWeight = 'bold';
},

italic: function () {
this.fontStyle = 'italic';
},

i: function () {
this.fontStyle = 'italic';
},

underline: function () {
this.textDecoration = 'underline';
},

u: function () {
this.textDecoration = 'underline';
},
Expand Down

0 comments on commit ee296ed

Please sign in to comment.