Browse Source

fix image borders

Gregg Tavares 7 years ago
parent
commit
c7c0f9f148
3 changed files with 3 additions and 2 deletions
  1. 1 1
      build/js/build.js
  2. 1 0
      threejs/lessons/resources/lesson.css
  3. 1 1
      threejs/lessons/threejs-setup.md

+ 1 - 1
build/js/build.js

@@ -158,7 +158,7 @@ Handlebars.registerHelper('image', function(options) {
 
   options.hash.examplePath = options.data.root.examplePath;
   options.hash.className = options.hash.className || '';
-  options.hash.caption = options.hash.caption || '';
+  options.hash.caption = options.hash.caption || undefined;
 
   if (options.hash.url.substring(0, 4) === 'http') {
     options.hash.examplePath = '';

+ 1 - 0
threejs/lessons/resources/lesson.css

@@ -214,6 +214,7 @@ code {
 
 .threejs_image>img {
     width: 100%;
+    display: block;
 }
 .threejs_math {
   margin-left: auto;

+ 1 - 1
threejs/lessons/threejs-setup.md

@@ -19,7 +19,7 @@ Next download one of these simple web servers
 If you'd prefer a web server with a user interface there's 
 [Servez](https://greggman.github.io/servez)
 
-{{{image url="resources/servez.gif" }}}
+{{{image url="resources/servez.gif" className="border" }}}
 
 Just point it at the folder where you unzipped the files, click "Start", then go to
 in your browser [`http://localhost:8080/`](http://localhost:8080/) or if you'd