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

Monday, 19 February 2018

SVG CSS CLIPPER SHAPING

http://bennettfeely.com/clippy/

This will shaping your image into shape inside the css..

circle

-webkit-clip-path: circle(50% at 50% 50%);
clip-path: circle(50% at 50% 50%);

Square

-webkit-clip-path: inset(10% 10% 10% 10%);
clip-path: inset(10% 10% 10% 10%);


diamond/rhombus

-webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);

Triangle

-webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);

Messages

-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);

Pentagon

-webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);

Heksagon

-webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

Chevron

Left

-webkit-clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);

right

-webkit-clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);

Arrow

left
-webkit-clip-path: polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);
clip-path: polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);


right
-webkit-clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);

Point left
-webkit-clip-path: polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);
clip-path: polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);

Point Right

-webkit-clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);

Frame

-webkit-clip-path: polygon(0% 0%, 0% 100%, 25% 100%, 25% 25%, 75% 25%, 75% 75%, 25% 75%, 25% 100%, 100% 100%, 100% 0%);
clip-path: polygon(0% 0%, 0% 100%, 25% 100%, 25% 25%, 75% 25%, 75% 75%, 25% 75%, 25% 100%, 100% 100%, 100% 0%);

Cross
-webkit-clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);


Friday, 16 February 2018

Monday, 12 February 2018

Add Pulse on CSS

.owl-prev ,.owl-next {          ← classes where you want to add pulse
    /*border: 3px solid #999;*/
    /*border-radius: 30px;*/
    /*background-color: blue;*/
    text-align: center;
    /*display: block;*/
    color: white;
    box-shadow: 0 0 6px black;
    animation: pulsate 2s ease-out infinite; ← Change speed of pulse
}
@-webkit-keyframes pulsate {
    0%   { box-shadow: 0 0 0 black; }
    50%  { box-shadow: 0 0 6px black; } ← Distance of shadow
    100% { box-shadow: 0 0 0 black; }
}

Thursday, 8 February 2018

Idea for colour for design and website

http://colorpalettes.net

Align Center Woocommerce Product Elements.

/* Center product elements on shop pages */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  text-align:center;
}
.woocommerce .products .star-rating, .woocommerce-page .products .star-rating {
  float:none;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

Monday, 5 February 2018

Custom style Material Design Box Shadow

https://www.webcomponents.org/element/PolymerElements/paper-styles


<custom-style>

<style is="custom-style">

    html {


      --shadow-transition: {

        transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);

      };


      --shadow-none: {

        box-shadow: none;

      };


      /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */


      --shadow-elevation-2dp: {

        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),

                    0 1px 5px 0 rgba(0, 0, 0, 0.12),

                    0 3px 1px -2px rgba(0, 0, 0, 0.2);

      };


      --shadow-elevation-3dp: {

        box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),

                    0 1px 8px 0 rgba(0, 0, 0, 0.12),

                    0 3px 3px -2px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-4dp: {

        box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),

                    0 1px 10px 0 rgba(0, 0, 0, 0.12),

                    0 2px 4px -1px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-6dp: {

        box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),

                    0 1px 18px 0 rgba(0, 0, 0, 0.12),

                    0 3px 5px -1px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-8dp: {

        box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),

                    0 3px 14px 2px rgba(0, 0, 0, 0.12),

                    0 5px 5px -3px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-12dp: {

        box-shadow: 0 12px 16px 1px rgba(0, 0, 0, 0.14),

                    0 4px 22px 3px rgba(0, 0, 0, 0.12),

                    0 6px 7px -4px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-16dp: {

        box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),

                    0  6px 30px 5px rgba(0, 0, 0, 0.12),

                    0  8px 10px -5px rgba(0, 0, 0, 0.4);

      };


      --shadow-elevation-24dp: {

        box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),

                    0 9px 46px 8px rgba(0, 0, 0, 0.12),

                    0 11px 15px -7px rgba(0, 0, 0, 0.4);

      };

    }

  </style>

</custom-style>

CSS Material design

.header.snap {
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,.26);
    position: fixed!important;
}

.css {
    padding: 32px;
    float: left;
    transition: box-shadow 0.15s cubic-bezier(.4,0,.2,1);
    margin: 0;
}


.css:hover{
    box-shadow: 0 3px 3px -2px rgba(0,0,0,.2),
                0 3px 4px 0 rgba(0,0,0,.14),
                0 1px 8px 0 rgba(0,0,0,.12);
}

Thursday, 1 February 2018

Divi mobile menu color

.et_pb_fullwidth_menu .mobile_menu_bar:before {
    top: 26px;
    float: right;
}


.et-search-form, .nav li ul, .et_mobile_menu, .footer-widget li:before, .et_pb_pricing li:before, blockquote {
    border-color: #f9f9f9;
}

span.mobile_menu_bar:before {
    color: #fff !important;
}

#main-header span.mobile_menu_bar:before{
color: #fff !important;
margin-right:-50px;
}

Confiqure Ip4 & Ip6 For Google

https://support.google.com/a/answer/2579934?hl=en

email mailto: pretext

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