Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import url("../../fonts.googleapis.com/css@family=Josefin+Slab_3A100");
- main {
- position: relative;
- width: 100%;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-flow: row wrap;
- -ms-flex-flow: row wrap;
- flex-flow: row wrap;
- -webkit-justify-content: space-around;
- -ms-flex-pack: distribute;
- justify-content: space-around;
- -webkit-box-align: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-align-content: center;
- -ms-flex-line-pack: center;
- align-content: center;
- }
- @media screen and (min-width: 800px) {
- main {
- width: 800px;
- margin: 0 auto;
- }
- }
- .icon {
- width: 120px;
- height: 120px;
- -webkit-box-flex: 1;
- -webkit-flex: 1 0 120px;
- -ms-flex: 1 0 120px;
- flex: 1 0 120px;
- cursor: pointer;
- }
- .icon:hover svg {
- width: 60%;
- height: 60%;
- left: -10%;
- top: 20%;
- }
- .icon:hover path {
- fill: rgba(255,255,255,0.9);
- }
- .icon:hover .shadow {
- fill: rgba(0,0,0,0.5);
- box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);
- }
- svg {
- position: absolute;
- width: 40%;
- height: 40%;
- left: 30%;
- top: 30%;
- overflow: visible;
- position: relative;
- -webkit-transition: all 0.25s ease-out;
- transition: all 0.25s ease-out;
- }
- svg path {
- fill: rgba(221,238,221,0.4);
- -webkit-transition: all 0.25s ease-out;
- transition: all 0.25s ease-out;
- }
- .shadow {
- fill: transparent;
- -webkit-transform-style: preserve-3d;
- transform-style: preserve-3d;
- -webkit-transform-origin: 50% 100%;
- -ms-transform-origin: 50% 100%;
- transform-origin: 50% 100%;
- -webkit-transform: scale(1.2, 1.2) perspective(300px) rotateX(250deg) skew(-65deg);
- transform: scale(1.2, 1.2) perspective(300px) rotateX(250deg) skew(-65deg);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement