From 70bf7dd91b8fca606b55e4c0c2a1b55a1404c1ad Mon Sep 17 00:00:00 2001 From: kynd Date: Sun, 24 Apr 2016 11:02:16 -0700 Subject: [PATCH 1/3] more button --- examples/gallery.css | 20 ++++++++++++++++++++ examples/index.php | 12 ++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/examples/gallery.css b/examples/gallery.css index b453b6e..47d2a9d 100644 --- a/examples/gallery.css +++ b/examples/gallery.css @@ -52,3 +52,23 @@ right: 0px; font-size:14px; } + +.more { + text-align: center; + margin-bottom: 32px; +} + +.more a { + font-size: 14px; + letter-spacing: 0.1em; + font-family:Helvetica,Arial,sans-serif; + font-weight: 600; + border-radius: 2px; + padding: 8px; + border: solid 1px #AAAAAA; + text-transform: uppercase; +} + +.more a:hover { + background: #EEEEEE; +} diff --git a/examples/index.php b/examples/index.php index 2fea75a..56b1a4e 100755 --- a/examples/index.php +++ b/examples/index.php @@ -12,7 +12,7 @@ include('../header.php'); include('../chap-header.php'); - + echo ''; echo '
'; @@ -53,18 +53,18 @@ } echo '" data-properties="clickRun:edior,hoverPreview:false,showAuthor:false,openFrameIcon:false">
'; } - + if (file_exists($folder.'featured_examples.php') and file_exists('FEATURED'.$language.'.md')) { include($folder.'featured_examples.php'); } - echo '

See more examples of this chapter

'; + echo '

more

'; } } } elseif ( !empty($_GET['chapter'])) { $chp = $_GET['chapter']; $folder = '../'.$chp.'/'; - + if (file_exists($folder.'TITLE'.$language.'.md') and file_exists($folder.'SUMMARY'.$language.'.md')) { echo $Parsedown->text(file_get_contents($folder.'TITLE'.$language.'.md')); @@ -85,7 +85,7 @@ } echo '" data-properties="clickRun:edior,showAuthor:false,openFrameIcon:false">'; } - + if (file_exists($folder.'featured_examples.php') and file_exists('FEATURED'.$language.'.md')) { echo $Parsedown->text(file_get_contents('FEATURED'.$language.'.md')); @@ -93,7 +93,7 @@ } } } - + echo ' From e083551946dd944ab9ff568beb5b64621d668b16 Mon Sep 17 00:00:00 2001 From: kynd Date: Sun, 24 Apr 2016 11:16:56 -0700 Subject: [PATCH 2/3] edited gallery credit --- examples/README.md | 2 +- examples/gallery.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 67122b7..1229d33 100755 --- a/examples/README.md +++ b/examples/README.md @@ -1,5 +1,5 @@ # Examples Gallery -

Cureated by Kenichi Yoneda (@kyndinfo)

+ This is a collection of examples extracted from the chapters of this book together with shared shaders kindly donated by other readers using [the on-line editor](http://editor.thebookofshaders.com/). Feel free to explore and tweak them bit by bit. Once you have something you are proud of, click the "Export" and then copy the "URL to code...". Send it to [@bookofshaders](https://twitter.com/bookofshaders) or [@kyndinfo](https://twitter.com/kyndinfo). We are looking forward to see it! diff --git a/examples/gallery.css b/examples/gallery.css index 47d2a9d..1e93de1 100644 --- a/examples/gallery.css +++ b/examples/gallery.css @@ -72,3 +72,9 @@ .more a:hover { background: #EEEEEE; } + +.gallery_author { + font-size: 16px; + font-style: italic; + text-align: right; +} From 26d0952be4e3655aea22189457bec9842f731f6a Mon Sep 17 00:00:00 2001 From: kynd Date: Sun, 24 Apr 2016 11:24:36 -0700 Subject: [PATCH 3/3] a little more spacing for more --- examples/gallery.css | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gallery.css b/examples/gallery.css index 1e93de1..ac757ff 100644 --- a/examples/gallery.css +++ b/examples/gallery.css @@ -55,6 +55,7 @@ .more { text-align: center; + margin-top: 32px; margin-bottom: 32px; }