From 70bf7dd91b8fca606b55e4c0c2a1b55a1404c1ad Mon Sep 17 00:00:00 2001 From: kynd Date: Sun, 24 Apr 2016 11:02:16 -0700 Subject: [PATCH] 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 '