Tuesday, 20 February 2018

Material shadow & css hacked

BOX SHADOW



  1. box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  2. box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  3. box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  4. box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  5. box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);

hover

box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);


Register/login box subtle shadow/ card shadow

box-shadow: inset 0 2px 6px 0 hsla (0, 0%, 0.2);
border-top: 6px solid #40A4F4; /* top border to bland design */


Form inset Shadow

box-shadow: inset 0 2px 4px 0 hsla (0, 0%, 0.08);


Search box or typing inside

background-color: hsl(210, 9%, 96%);

DIVIDE


Stop using border for divider use this

background: hsl(0, 0%, 98%);

Stop using border to divide menu.. use margin

margin-bottom: 48px;


ICON

Don't make the icon big, use round or square background and let the icon stay small







ref: https://medium.com/refactoring-ui/7-practical-tips-for-cheating-at-design-40c736799886

email mailto: pretext

 <a href="mailto:designoutsourced.com+info@gmail.com?subject=Maklumat%20lanjut%20pakej&body=Hai,%20saya%20berminat%20tahu%20lebi...