mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-09 19:10:24 +00:00
fixed a few broken thumbnails
This commit is contained in:
parent
78e4a80592
commit
443367034d
@ -13,19 +13,20 @@
|
||||
margin-bottom: 24px;
|
||||
margin-left: 8px;
|
||||
margin-right: 16px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.glslGallery_thumb{
|
||||
max-width:240px;
|
||||
max-width:242px;
|
||||
}
|
||||
|
||||
.glslGallery_item canvas.glslGallery_canvas{
|
||||
position:absolute;
|
||||
top:1px;
|
||||
left:1px;
|
||||
top:0px;
|
||||
left:0px;
|
||||
z-index:103;
|
||||
max-width: 242px;
|
||||
transition:opacity .5s ease-in;
|
||||
width:240px !important ;
|
||||
}
|
||||
|
||||
.glslGallery_credits{
|
||||
@ -57,6 +58,7 @@
|
||||
.glslGallery_canvas:hover{
|
||||
opacity:1
|
||||
}
|
||||
|
||||
.glslGallery_openFrameIcon{
|
||||
box-sizing:border-box;
|
||||
position:absolute;
|
||||
|
@ -4022,11 +4022,9 @@ var GlslChapterGallery = (function () {
|
||||
}
|
||||
}
|
||||
if (selector.hasAttribute('data')) {
|
||||
console.log(selector.getAttribute('data'));
|
||||
var data = selector.getAttribute('data').split(',');
|
||||
var list = shaderList[data[0]];
|
||||
var numDisplay = (data[1]) ? Math.min(list.length, data[1]) : list.length;
|
||||
console.log(data, numDisplay );
|
||||
|
||||
for (var i = 0; i < numDisplay; i ++) {
|
||||
this.items.push(new _appCoreGalleryItem2['default'](list[i], this, this.options));
|
||||
|
@ -16,9 +16,9 @@ var shaderList = {
|
||||
"05/pcurve",
|
||||
"05/easing",
|
||||
"examples/05/stepwise",
|
||||
"160208105810",
|
||||
"160208105716",
|
||||
"160208105702"],
|
||||
"160414041542",
|
||||
"160414041933",
|
||||
"160414041756"],
|
||||
|
||||
"06":[ "06/mix",
|
||||
"06/gradient",
|
||||
@ -36,9 +36,9 @@ var shaderList = {
|
||||
"07/polar",
|
||||
"07/shapes",
|
||||
"07/arrow",
|
||||
"160131053729",
|
||||
"160131053646",
|
||||
"160208110000"],
|
||||
"160414041142",
|
||||
"160414040957",
|
||||
"160414040804"],
|
||||
|
||||
"08":[ "08/cross",
|
||||
"08/cross-translate",
|
||||
@ -109,8 +109,8 @@ var shaderList = {
|
||||
"examples/06/wangl073-villareal"],
|
||||
|
||||
"advanced":[ "08/matrix",
|
||||
"160208105716",
|
||||
"160208105702",
|
||||
"160414040957",
|
||||
"160414040804",
|
||||
"10/iching-02",
|
||||
"11/2d-gnoise",
|
||||
"11/iching-03",
|
||||
|
Loading…
Reference in New Issue
Block a user