|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
832 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | // Generated by CoffeeScript 2.5.1
|
|---|
| 4 | var _common, inlineStyleApplier, self, tools;
|
|---|
| 5 |
|
|---|
| 6 | tools = require('../../tools');
|
|---|
| 7 | _common = require('./_common');
|
|---|
| 8 | module.exports = inlineStyleApplier = self = {
|
|---|
| 9 | applyTo: function applyTo(el, style) {
|
|---|
| 10 | var ret;
|
|---|
| 11 | ret = _common.getStyleTagsFor(style);
|
|---|
| 12 |
|
|---|
| 13 | if (style.marginLeft != null) {
|
|---|
| 14 | ret.before = tools.repeatString("&sp;", parseInt(style.marginLeft)) + ret.before;
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | if (style.marginRight != null) {
|
|---|
| 18 | ret.after += tools.repeatString("&sp;", parseInt(style.marginRight));
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | if (style.paddingLeft != null) {
|
|---|
| 22 | ret.before += tools.repeatString("&sp;", parseInt(style.paddingLeft));
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | if (style.paddingRight != null) {
|
|---|
| 26 | ret.after = tools.repeatString("&sp;", parseInt(style.paddingRight)) + ret.after;
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | return ret;
|
|---|
| 30 | }
|
|---|
| 31 | }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.