Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » success fully using sIFR?

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 962 Views
  • theoldlr
    Avatar
    Community Member
    103 Posts

    success fully using sIFR? Link to this post

    I am using the trunk r70896 version of the sIFR module and have it working well enough to display text using the font i'd like, but I'm having a really hard time changing the style.

    Sifr::replace_element('claritty', '.claritty', "'.sIFR-root {color: #000000; bgcolor: transparent;}'");

    this line will work to change the colors as shown (I had to hack a little code to change the wmode property to transparent), but I can't figure out how to change link colors. Also, the flash text is vertically aligned to the top of the flash movie space and actually cuts off the top few pixels of the font. Not a total deal breaker for me since a T still looks like a T and not an l, but I imagine with some fonts it could look wrong.

    Can anyone offer suggestions?
    Thanks!

  • theoldlr
    Avatar
    Community Member
    103 Posts

    Re: success fully using sIFR? Link to this post

    OK, I figured out how to handle the css portion of my problem by adding comma separated css properties and values to the last parameter of the Sifr::replace_element function, but I'm still facing the issue that the top few pixels of my font are being cut off. Changing the height and/or line-height of the element does not help--the font is always vertically aligned to the top with the pixels missing. Can I somehow fix this in the javascript? I've looked at it, but the changes I've made don't seem to have any effect.

    Also, when the css is set so that the flash replaced text looks good, the printed text is WAY off. Can anyone tell me how to resolve this? There is an @media print section in sifr.css but adding values to that section has no effect on the printed text.

    Thanks!

    962 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.