// *{ outline: 1px solid #666; } // @font-face { // font-family: ariall; // src: url('../media/fonts/calibri.ttf'); // } @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } body { width: 100%; height: 100%; font-family: ariall, sans-serif; background-color: #fff; margin: 0; cursor: default; -webkit-animation: fade-in 200ms linear; /* Safari 4+ */ -moz-animation: fade-in 200ms linear; /* Fx 5+ */ -o-animation: fade-in 200ms linear; /* Opera 12+ */ animation: fade-in 200ms linear; /* IE 10+, Fx 29+ */ > .mainMenu { // background-image: url('../media/images/header.jpg'); // background-size: 100% 100%; // background-position: center; padding: 16px 32px 16px 32px; text-align: center; > .title { color: #000; font-size: 24px; margin: 0 0 16px 0; padding: 0 16px; } a { color: #000; font-size: 18px; padding: 0 16px; text-decoration: none; &:hover { color: #f82; cursor: pointer; } } } > .helo { text-align: center; width: 80%; margin: 0 0 0 10%; p { margin: 0 0 16px 0; font-size: 18px; line-height: 24px; } a { text-decoration: none; color: #f82; } } > .grid { position: absolute; margin: 16px 0 16px 0; width: 80%; left: 10%; text-align: center; img { vertical-align: middle; margin: 8px 8px; height: auto; opacity: 0; visibility: hidden; cursor: pointer; &.loaded { opacity: 1; visibility: visible; -webkit-animation: fade-in 400ms linear; /* Safari 4+ */ -moz-animation: fade-in 400ms linear; /* Fx 5+ */ -o-animation: fade-in 400ms linear; /* Opera 12+ */ animation: fade-in 400ms linear; /* IE 10+, Fx 29+ */ } } } > #preview { position: fixed; top: 0; left: 0; opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 200ms; &.active { opacity: 1; visibility: visible; cursor: pointer; } > .background { z-index: 100; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; opacity: 0.8; img { margin: 0; position: absolute; top: ~'calc(100% * 0.5 - 32px)'; left: ~'calc(100% * 0.5 - 32px)'; height: auto; opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 200ms; @-webkit-keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } -webkit-animation: rotation 1000ms linear infinite; animation: rotation 1000ms linear infinite; animation-play-state: paused; &.active { opacity: 0.8; visibility: visible; animation-play-state: running; } } } img { overflow: auto; margin: auto; position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 999; opacity: 0; transition: opacity 600ms; &.loaded { opacity: 1; } } .width { width: 100%; } .height { height: 100%; } } }