Closed johngruen closed 8 years ago
Here's a link to the close SVG: https://www.dropbox.com/s/0d539agcasms4s3/Close.svg?dl=0
Hello. Thanks for these suggestions. I have updated the styles and text template to match your pdf.
One note: I did not change the height to be 50px, because in small width windows, this caused a problem. The latest version (atm) is v1.3.1.
Oh, I am also working on getting an SVG asset. Once I have that I will update the plugin. Should be soon.
Hello again. The plugin now uses an SVG, and also I updated the font to be "14px message-box". I believe that takes care of everything in this ticket. Here's a screenshot. Let me know if you think this is resolved.
hey @rchrd2 look good to me...two three little changes
message-box
font can't be set on a font-family
property, it has to be set on a font
property. The rule comes from some internal Firefox style sheet magic. It should default to a sans-serif.box-shadow: 0 0 10px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(0, 0, 0, 0.3);
text-decoration: none;
@johngruen I'll make the box-shadow change. However, the font is already set using the font property. It's essentially set like this:
el.style.font = "14px message-box";
Does it not look correct? Could it be a problem with it being set on the element's style attribute instead of through a css file?
@rchrd2 Yeah, that might be it. I'll have to chase down what the Font stack should be in CSS. Probably best to go ahead and merge in these changes and I can file a follow on bug. Thanks!
@johngruen Okay let me know if you find out any more info about making message-box
work with inline styles. In the meantime, I set it to 14px message-box, sans-serif
and it looks more like your example pdf. Here's the source if you're interested: https://github.com/internetarchive/FirefoxNoMore404s/blob/master/src/scripts/client.js#L69
Wayback Version One.pdf
You can copy and paste from the PDF