New answers tagged css
I haven't tried this, but it might be worth a shot: Paparazzi can take screenshots of a page and save it as an editable svg, that can then be imported into sketch/illustrator Here's a more detailed tutorial on how to do it
This might not be quite the answer you're looking for, but I find it better than handing mediocre, auto-generated styles to the engineers. Selective markup I'm sure you've discovered Sketch's context menu CSS grabber. You can select as many objects as you like and you'll get the CSS on your clipboard faster than you can paste it. There's no selectors ...
See the following links http://blog.mengto.com/the-best-hidden-features-in-sketch/ Follow Meng To's blog to keep up to date with interesting Sketch tutorials, tips & even tricks. http://blog.mengto.com/ https://designcode.io/
You can use SVG filters. I am just not sure its any lighter in terms of speed. Having 75 paths is nothing to the computer, but even a few filters can take the computer to its knees. (this is highly implementation dependent tough.) Here is one way (10 px long shadow): <filter id="Long_Shadow_10" > <feConvolveMatrix order="20" in="SourceAlpha" ...
I’ve seen CSS examples where multiple drop shadows of varying offsets and colours are used (usually with box-shadow). You could do the same using shadows in an SVG. Here’s a CSS example: http://www.sandbox.juan-i.com/longshadows/ Having lots of shadows is terrible for performance, so be careful. The same shadow technique can be used in Illustrator, ...
It depends on the container. If the container is the window/body then the image will be greater than the smallest length. From MDN - background-size Cover This keyword specifies that the background image should be scaled to be as small as possible while ensuring both its dimensions are greater than or equal to the corresponding dimensions of the ...
Top 50 recent answers are included