diff --git a/demos/css/demo.css b/demos/css/demo.css index c217e22..e62a401 100644 --- a/demos/css/demo.css +++ b/demos/css/demo.css @@ -21,3 +21,9 @@ letter-spacing: -0.02em; line-height: 1.2em; } + +@media print { + .shine-letter{ + text-shadow: none!important; + } +} \ No newline at end of file diff --git a/lib/shine.js b/lib/shine.js index c778926..d0082ae 100644 --- a/lib/shine.js +++ b/lib/shine.js @@ -153,6 +153,10 @@ shinejs.Shine.prototype.disableAutoUpdates = function() { */ shinejs.Shine.prototype.getCSS = function() { return '/* shine.js styles */' + + '@media print {' + + '.shine-letter{' + + 'text-shadow: none!important;' + + '}}' + '.shine-wrapper {' + ' display: inline-block;' + ' position: relative;' + @@ -167,6 +171,7 @@ shinejs.Shine.prototype.getCSS = function() { '.shine-letter {' + ' position: relative;' + ' display: inline-block;' + + ' transform: translate3d(0,0,0);' + '}' + '' + '.shine-mask {' +