Advertisement
r00tExpl01it

social

Apr 3rd, 2018
2,351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.89 KB | None | 0 0
  1. @import url("../../fonts.googleapis.com/css@family=Josefin+Slab_3A100");
  2.  
  3. main {
  4.   position: relative;
  5.   width: 100%;
  6.  
  7.   display: -webkit-box;
  8.   display: -webkit-flex;
  9.   display: -ms-flexbox;
  10.   display: flex;
  11.   -webkit-flex-flow: row wrap;
  12.       -ms-flex-flow: row wrap;
  13.           flex-flow: row wrap;
  14.   -webkit-justify-content: space-around;
  15.       -ms-flex-pack: distribute;
  16.           justify-content: space-around;
  17.   -webkit-box-align: center;
  18.   -webkit-align-items: center;
  19.       -ms-flex-align: center;
  20.           align-items: center;
  21.   -webkit-align-content: center;
  22.       -ms-flex-line-pack: center;
  23.           align-content: center;
  24. }
  25. @media screen and (min-width: 800px) {
  26.   main {
  27.     width: 800px;
  28.     margin: 0 auto;
  29.   }
  30. }
  31. .icon {
  32.   width: 120px;
  33.   height: 120px;
  34.   -webkit-box-flex: 1;
  35.   -webkit-flex: 1 0 120px;
  36.       -ms-flex: 1 0 120px;
  37.           flex: 1 0 120px;
  38.   cursor: pointer;
  39. }
  40. .icon:hover svg {
  41.   width: 60%;
  42.   height: 60%;
  43.   left: -10%;
  44.   top: 20%;
  45. }
  46. .icon:hover path {
  47.   fill: rgba(255,255,255,0.9);
  48. }
  49. .icon:hover .shadow {
  50.   fill: rgba(0,0,0,0.5);
  51.   box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
  52. }
  53. svg {
  54.   position: absolute;
  55.   width: 40%;
  56.   height: 40%;
  57.   left: 30%;
  58.   top: 30%;
  59.   overflow: visible;
  60.   position: relative;
  61.   -webkit-transition: all 0.25s ease-out;
  62.           transition: all 0.25s ease-out;
  63. }
  64. svg path {
  65.   fill: rgba(221,238,221,0.4);
  66.   -webkit-transition: all 0.25s ease-out;
  67.           transition: all 0.25s ease-out;
  68. }
  69. .shadow {
  70.   fill: transparent;
  71.   -webkit-transform-style: preserve-3d;
  72.           transform-style: preserve-3d;
  73.   -webkit-transform-origin: 50% 100%;
  74.       -ms-transform-origin: 50% 100%;
  75.           transform-origin: 50% 100%;
  76.   -webkit-transform: scale(1.2, 1.2) perspective(300px) rotateX(250deg) skew(-65deg);
  77.           transform: scale(1.2, 1.2) perspective(300px) rotateX(250deg) skew(-65deg);
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement