Skip to content

Commit

Permalink
Merge pull request #10 from bitshifters/bug-fixes
Browse files Browse the repository at this point in the history
mobile view fixes
  • Loading branch information
simondotm authored Apr 6, 2021
2 parents 0055a19 + 79b9908 commit d2d57fa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
30 changes: 15 additions & 15 deletions _includes/art.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
/* Prevent vertical gaps */
line-height: 0;

-webkit-column-count: 8;
-webkit-column-count: 7;
-webkit-column-gap: 2px;
-moz-column-count: 8;
-moz-column-count: 7;
-moz-column-gap: 2px;
column-count: 8;
column-count: 7;
column-gap: 2px;
}

Expand All @@ -20,31 +20,31 @@

@media (max-width: 1200px) {
#art {
-moz-column-count: 8;
-webkit-column-count: 8;
column-count: 8;
-moz-column-count: 6;
-webkit-column-count: 6;
column-count: 6;
}
}
@media (max-width: 1000px) {
#art {
-moz-column-count: 7;
-webkit-column-count: 7;
column-count: 7;
}
}
@media (max-width: 800px) {
#art {
-moz-column-count: 5;
-webkit-column-count: 5;
column-count: 5;
}
}
@media (max-width: 400px) {
@media (max-width: 800px) {
#art {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
}
}
@media (max-width: 500px) {
#art {
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
}
}
.art-container {
overflow:hidden;
Expand Down Expand Up @@ -151,7 +151,7 @@
</script>


<section id="art">
<section id="art" class="container">
{% for image in site.static_files %}
{% if image.path contains 'img/art' %}
<div class="art-container">
Expand Down
12 changes: 11 additions & 1 deletion _includes/css/shader.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@
position: absolute;
left: 20px;
top: 20px;
}
}



@media(max-width:1024px) {
#shaderView {
visibility: hidden;
}

}

2 changes: 0 additions & 2 deletions _includes/shader.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ <h1 class="text-warning">Inner Heading 1</h1>

import * as THREE from 'https://unpkg.com/three@0.127.0/build/three.module.js';

let SHADER_HEIGHT = 300

let container;
container = document.getElementById( 'shaderCanvas' );
if (!container)
Expand Down

0 comments on commit d2d57fa

Please sign in to comment.