- This topic has 4 replies, 2 voices, and was last updated 6 years, 3 months ago by
Sebastian.
Author | Posts |
---|---|
balticsamurai
January 7, 2019 at 11:25 am
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I’ve noticed that one of the things that make traditionally flat modern designs ‘shine’ is adding a bit of a nice shadow to some elements. I know where to find shadow ‘thingy’ in Microthemer but manually my shadows don’t look that sophisticated. So, I’ve got a few questions for ‘professionals’: Is there a resource somewhere with some ‘CSS shadow’ samples/templates’ that we could copy/reuse? If not, then how to properly ’emulate’ it from existing websites (I could build up my own database of ‘shadows’ and maybe some other elements. How do I ‘copy’ them (I suspect something like Firebug should be used) and how to properly apply to elements in Microthemer? Thank you in advance. |
Sebastian
January 7, 2019 at 5:49 pm
|
Hey, A had a quick Google for tasteful CSS text/box-shadow examples but didn’t find any real standout or in-depth resources. I can share some of my thoughts however. Just personal preference, but it may help you a bit. Tip 1: Use a black RGBA color with low opacity Tip 2: Less if often more Tip 3: Use a reasonable blur to x/y ratio Tip 4: Use em for text-shadow
Em values are tied to the font-size of the current element, so larger text will have a larger shadow. Tip 5: Use rem for box-shadow
With the above code in place, you could set box-shadow to something like this:
The rem values will create larger shadows on wider screens because the font-size of the HTML element will be larger on larger screens (with the media queries above in place). The rem unit is tied to the HTML element’s font-size BTW. So by using ems and rems in the text/box-shadow values your shadows can automatically adjust to font-size changes on the page. I hope some of these tips are useful. Other users may disagree or have alternative/additional tips for implementing shadow. Cheers, P.S. in terms of reusing shadows, MT will support reusable presets in the not too distant future, but for now copying and pasting into the custom code editor (to the left of the Font group) might be best. In a few weeks custom code added to that editor will be interchangeable with the GUI fields. This will make copying and pasting styles in MT a bit easier. |
balticsamurai
January 8, 2019 at 12:12 am
|
Sebastian, you are awesome. Thank you so much! |
balticsamurai
January 8, 2019 at 10:24 am
|
Sebastian, if I may ask – how do you copy the element’s formatting (in this case ‘shadow’) from another website. Say, I see somewhere something I’d like to emulate. Probably need to use Google Inspect or Firebug for Firefox, I guess… |
Sebastian
January 8, 2019 at 4:45 pm
|
Yes, I recommend using right click (on the element with the box-shadow) > Inspect in Chrome. Then look at the Styles tab for the box-shadow property. You can then just paste it into MT’s code editor, or copy the space separated styles into MT’s GUI fields. If you need further assistance, please send me a link to the page with the shadow. Thanks! |