Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPogorelov committed Mar 28, 2016
1 parent 6bee1a5 commit 754d30c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
45 changes: 44 additions & 1 deletion src/css/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
font-size: 14px;
}

#main-navigation {
height: 60px;
}
#main-navigation .logo {
left: 0;
margin: 0 20px;
Expand All @@ -76,7 +79,10 @@
margin: 10px 20px 0;
}
#main-navigation.disabled {
opacity: .1;
/*opacity: .1;*/
}
.modal-holder {
top: 60px;
}
.modal-holder .modal-content {
top: 20px;
Expand Down Expand Up @@ -104,6 +110,43 @@
bottom: 20px;
top: 40px;
}
.modal-holder .modal-content,
.modal-holder .modal-content .container,
.modal-container {
background: transparent;
}
.modal-holder .modal-content .container {
-webkit-column-count: initial;
-moz-column-count: initial;
column-count: initial;
-webkit-column: initial;
-moz-column: initial;
column: initial;
}
.modal-container .container img {
margin-bottom: 40px;
}
#contact .container {
-webkit-column-count: initial;
-moz-column-count: initial;
column-count: initial;
-webkit-column: initial;
-moz-column: initial;
column: initial;
overflow: scroll;
height: 100vh;
max-height: 100vh;
display: block;
padding-top: 60px;
}
#contact .container > .data-block {
height: auto;
text-align: center;
margin-bottom: 40px;
}
#contact .container > .data-block h3 {
margin-bottom: 20px;
}
}
/*
SMALL
Expand Down
12 changes: 8 additions & 4 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ $(document).on('ready', function () {
function randomBackground ( callback ) {

var randomBgIndex = randomInteger(0, backgrounds.length - 1),
bgLoaded = 0;
bgLoaded = 0,
localTimeout;

if ( pagesState.randomBgIndex === randomBgIndex ) {

Expand All @@ -414,18 +415,20 @@ $(document).on('ready', function () {

if ( ++bgLoaded >= 2 || force === true ) {

clearTimeout( localTimeout );

preloader.loaded();

bgLoaded = 0;

if ( typeof callback === 'function' ) {

setTimeout(function () {
// setTimeout(function () {

// TODO test without it
// $window.trigger('resize');

}, 10000);
// }, 10000);

callback();

Expand All @@ -440,7 +443,7 @@ $(document).on('ready', function () {
$background.find('img').attr('src', 'img/bg/' + backgrounds[randomBgIndex][1] + '.jpg').on('load', bgReady);

// if ( $background.find('img') )
setTimeout( function () {
localTimeout = setTimeout( function () {

bgReady(true);

Expand Down Expand Up @@ -608,6 +611,7 @@ $(document).on('ready', function () {
middlindImage ($foreground.find('img'), $window, -60);
middlindImage ($background.find('img'), $window, -60);
bodyOverflow.unfixBody();
modals.closeModal();

});

Expand Down

0 comments on commit 754d30c

Please sign in to comment.