diff --git a/README.md b/README.md index 92f80cf..16d8c1c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ #Apaxy +Demo: [adamwhitcroft.com/apaxy](http://adamwhitcroft.com/apaxy/) + Apaxy is a customisable theme built to enhance the experience of browsing web directories. It uses the `mod_autoindex` Apache module—and some CSS—to override the default style of a directory listing. ##Features diff --git a/apaxy/htaccess.txt b/apaxy/htaccess.txt new file mode 100644 index 0000000..493810a --- /dev/null +++ b/apaxy/htaccess.txt @@ -0,0 +1,72 @@ +# +# Apaxy by @adamwhitcroft +# +# For a full breakdown of the mod_autoindex module: +# http://apache.org/docs/2.2/mod/mod_autoindex.html +# + + # ENABLE INDEXING + Options +Indexes + + # INDEX OPTIONS + IndexOptions +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription + + # HIDE /theme DIRECTORY + IndexIgnore .htaccess /theme + +# +# GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY) +# + +# +# Replace {FOLDERNAME} with your directory URL eg: +# http://mywebsite.com/share/ +# + + AddIcon /{FOLDERNAME}/theme/icons/blank.png ^^BLANKICON^^ + AddIcon /{FOLDERNAME}/theme/icons/folder.png ^^DIRECTORY^^ + AddIcon /{FOLDERNAME}/theme/icons/folder-home.png .. + +# +# EXTENSION SPECIFIC ICONS +# + + AddIcon /{FOLDERNAME}/theme/icons/audio.png .aif .iff .m3u .m4a .mid .mp3 .mpa .ra .wav .wma + AddIcon /{FOLDERNAME}/theme/icons/bin.png .bin + AddIcon /{FOLDERNAME}/theme/icons/c.png .c + AddIcon /{FOLDERNAME}/theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv + AddIcon /{FOLDERNAME}/theme/icons/css.png .css + AddIcon /{FOLDERNAME}/theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps + AddIcon /{FOLDERNAME}/theme/icons/draw.png .svg + AddIcon /{FOLDERNAME}/theme/icons/eps.png .ai .eps + AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif + AddIcon /{FOLDERNAME}/theme/icons/html.png .html .xhtml .shtml .htm + AddIcon /{FOLDERNAME}/theme/icons/ico.png .ico + AddIcon /{FOLDERNAME}/theme/icons/java.png .jar + AddIcon /{FOLDERNAME}/theme/icons/jpg.png .jpg .jpeg + AddIcon /{FOLDERNAME}/theme/icons/js.png .js .json + AddIcon /{FOLDERNAME}/theme/icons/markdown.png .md + AddIcon /{FOLDERNAME}/theme/icons/package.png .pkg .dmg + AddIcon /{FOLDERNAME}/theme/icons/pdf.png .pdf + AddIcon /{FOLDERNAME}/theme/icons/php.png .php + AddIcon /{FOLDERNAME}/theme/icons/png.png .png + AddIcon /{FOLDERNAME}/theme/icons/ps.png .ps + AddIcon /{FOLDERNAME}/theme/icons/psd.png .psd + AddIcon /{FOLDERNAME}/theme/icons/rar.png .rar + AddIcon /{FOLDERNAME}/theme/icons/rb.png .rb + AddIcon /{FOLDERNAME}/theme/icons/rss.png .rss + AddIcon /{FOLDERNAME}/theme/icons/sql.png .sql + AddIcon /{FOLDERNAME}/theme/icons/tiff.png .tiff + AddIcon /{FOLDERNAME}/theme/icons/text.png .txt + AddIcon /{FOLDERNAME}/theme/icons/video.png .asf .asx .avi .flv .mov .mp4 .mpg .rm .srt .swf .vob .wmv + AddIcon /{FOLDERNAME}/theme/icons/xml.png .xml + AddIcon /{FOLDERNAME}/theme/icons/zip.png .zip + DefaultIcon /{FOLDERNAME}/theme/icons/default.png + +# +# THEME FILES +# + + HeaderName /{FOLDERNAME}/theme/header.html + ReadmeName /{FOLDERNAME}/theme/footer.html + IndexStyleSheet "/{FOLDERNAME}/theme/style.css" \ No newline at end of file diff --git a/apaxy/theme/footer.html b/apaxy/theme/footer.html new file mode 100644 index 0000000..b1c899c --- /dev/null +++ b/apaxy/theme/footer.html @@ -0,0 +1,13 @@ +
+ You can add your own HTML above or below the directory listing. Simply explore the header.html and footer.html files. +
+ + + + + + \ No newline at end of file diff --git a/apaxy/theme/header.html b/apaxy/theme/header.html new file mode 100644 index 0000000..16c8877 --- /dev/null +++ b/apaxy/theme/header.html @@ -0,0 +1,2 @@ +
+ \ No newline at end of file diff --git a/apaxy/theme/htaccess.txt b/apaxy/theme/htaccess.txt new file mode 100644 index 0000000..7bc72fd --- /dev/null +++ b/apaxy/theme/htaccess.txt @@ -0,0 +1,9 @@ +# +# Apaxy by @adamwhitcroft +# +# For a full breakdown of the mod_autoindex module" +# http://apache.org/docs/2.2/mod/mod_autoindex.html +# + +# Don't index this folder +Options -Indexes \ No newline at end of file diff --git a/apaxy/theme/icons/archive.png b/apaxy/theme/icons/archive.png new file mode 100755 index 0000000..99ae6fc Binary files /dev/null and b/apaxy/theme/icons/archive.png differ diff --git a/apaxy/theme/icons/audio.png b/apaxy/theme/icons/audio.png new file mode 100755 index 0000000..a67618d Binary files /dev/null and b/apaxy/theme/icons/audio.png differ diff --git a/apaxy/theme/icons/authors.png b/apaxy/theme/icons/authors.png new file mode 100755 index 0000000..78bf784 Binary files /dev/null and b/apaxy/theme/icons/authors.png differ diff --git a/apaxy/theme/icons/bin.png b/apaxy/theme/icons/bin.png new file mode 100755 index 0000000..ec2220b Binary files /dev/null and b/apaxy/theme/icons/bin.png differ diff --git a/apaxy/theme/icons/blank.png b/apaxy/theme/icons/blank.png new file mode 100755 index 0000000..bef1f60 Binary files /dev/null and b/apaxy/theme/icons/blank.png differ diff --git a/apaxy/theme/icons/bmp.png b/apaxy/theme/icons/bmp.png new file mode 100755 index 0000000..c6f3044 Binary files /dev/null and b/apaxy/theme/icons/bmp.png differ diff --git a/apaxy/theme/icons/c.png b/apaxy/theme/icons/c.png new file mode 100755 index 0000000..12adaa3 Binary files /dev/null and b/apaxy/theme/icons/c.png differ diff --git a/apaxy/theme/icons/calc.png b/apaxy/theme/icons/calc.png new file mode 100755 index 0000000..a034367 Binary files /dev/null and b/apaxy/theme/icons/calc.png differ diff --git a/apaxy/theme/icons/cd.png b/apaxy/theme/icons/cd.png new file mode 100755 index 0000000..3a3ffbb Binary files /dev/null and b/apaxy/theme/icons/cd.png differ diff --git a/apaxy/theme/icons/copying.png b/apaxy/theme/icons/copying.png new file mode 100755 index 0000000..83fa06e Binary files /dev/null and b/apaxy/theme/icons/copying.png differ diff --git a/apaxy/theme/icons/cpp.png b/apaxy/theme/icons/cpp.png new file mode 100755 index 0000000..47e8b1e Binary files /dev/null and b/apaxy/theme/icons/cpp.png differ diff --git a/apaxy/theme/icons/css.png b/apaxy/theme/icons/css.png new file mode 100755 index 0000000..15f7695 Binary files /dev/null and b/apaxy/theme/icons/css.png differ diff --git a/apaxy/theme/icons/deb.png b/apaxy/theme/icons/deb.png new file mode 100755 index 0000000..1b12d29 Binary files /dev/null and b/apaxy/theme/icons/deb.png differ diff --git a/apaxy/theme/icons/default.png b/apaxy/theme/icons/default.png new file mode 100755 index 0000000..6997229 Binary files /dev/null and b/apaxy/theme/icons/default.png differ diff --git a/apaxy/theme/icons/diff.png b/apaxy/theme/icons/diff.png new file mode 100755 index 0000000..5bef920 Binary files /dev/null and b/apaxy/theme/icons/diff.png differ diff --git a/apaxy/theme/icons/doc.png b/apaxy/theme/icons/doc.png new file mode 100755 index 0000000..5732f9b Binary files /dev/null and b/apaxy/theme/icons/doc.png differ diff --git a/apaxy/theme/icons/draw.png b/apaxy/theme/icons/draw.png new file mode 100755 index 0000000..8f1da5c Binary files /dev/null and b/apaxy/theme/icons/draw.png differ diff --git a/apaxy/theme/icons/eps.png b/apaxy/theme/icons/eps.png new file mode 100755 index 0000000..93736bb Binary files /dev/null and b/apaxy/theme/icons/eps.png differ diff --git a/apaxy/theme/icons/exe.png b/apaxy/theme/icons/exe.png new file mode 100755 index 0000000..31299b7 Binary files /dev/null and b/apaxy/theme/icons/exe.png differ diff --git a/apaxy/theme/icons/folder-home.png b/apaxy/theme/icons/folder-home.png new file mode 100755 index 0000000..14fe20a Binary files /dev/null and b/apaxy/theme/icons/folder-home.png differ diff --git a/apaxy/theme/icons/folder-open.png b/apaxy/theme/icons/folder-open.png new file mode 100755 index 0000000..2aa5cc7 Binary files /dev/null and b/apaxy/theme/icons/folder-open.png differ diff --git a/apaxy/theme/icons/folder-page.png b/apaxy/theme/icons/folder-page.png new file mode 100755 index 0000000..604f9ad Binary files /dev/null and b/apaxy/theme/icons/folder-page.png differ diff --git a/apaxy/theme/icons/folder-parent-old.png b/apaxy/theme/icons/folder-parent-old.png new file mode 100755 index 0000000..b82d7a9 Binary files /dev/null and b/apaxy/theme/icons/folder-parent-old.png differ diff --git a/apaxy/theme/icons/folder-parent.png b/apaxy/theme/icons/folder-parent.png new file mode 100755 index 0000000..3c964f1 Binary files /dev/null and b/apaxy/theme/icons/folder-parent.png differ diff --git a/apaxy/theme/icons/folder.png b/apaxy/theme/icons/folder.png new file mode 100755 index 0000000..7c613e0 Binary files /dev/null and b/apaxy/theme/icons/folder.png differ diff --git a/apaxy/theme/icons/gif.png b/apaxy/theme/icons/gif.png new file mode 100755 index 0000000..01a2f2a Binary files /dev/null and b/apaxy/theme/icons/gif.png differ diff --git a/apaxy/theme/icons/gzip.png b/apaxy/theme/icons/gzip.png new file mode 100755 index 0000000..99ae6fc Binary files /dev/null and b/apaxy/theme/icons/gzip.png differ diff --git a/apaxy/theme/icons/h.png b/apaxy/theme/icons/h.png new file mode 100755 index 0000000..d3c7a9c Binary files /dev/null and b/apaxy/theme/icons/h.png differ diff --git a/apaxy/theme/icons/hpp.png b/apaxy/theme/icons/hpp.png new file mode 100755 index 0000000..e5e52e2 Binary files /dev/null and b/apaxy/theme/icons/hpp.png differ diff --git a/apaxy/theme/icons/html.png b/apaxy/theme/icons/html.png new file mode 100755 index 0000000..2f94a78 Binary files /dev/null and b/apaxy/theme/icons/html.png differ diff --git a/apaxy/theme/icons/ico.png b/apaxy/theme/icons/ico.png new file mode 100755 index 0000000..82227e8 Binary files /dev/null and b/apaxy/theme/icons/ico.png differ diff --git a/apaxy/theme/icons/image.png b/apaxy/theme/icons/image.png new file mode 100755 index 0000000..add1c59 Binary files /dev/null and b/apaxy/theme/icons/image.png differ diff --git a/apaxy/theme/icons/install.png b/apaxy/theme/icons/install.png new file mode 100755 index 0000000..0a9c036 Binary files /dev/null and b/apaxy/theme/icons/install.png differ diff --git a/apaxy/theme/icons/java.png b/apaxy/theme/icons/java.png new file mode 100755 index 0000000..63b8683 Binary files /dev/null and b/apaxy/theme/icons/java.png differ diff --git a/apaxy/theme/icons/jpg.png b/apaxy/theme/icons/jpg.png new file mode 100755 index 0000000..a50c99b Binary files /dev/null and b/apaxy/theme/icons/jpg.png differ diff --git a/apaxy/theme/icons/js.png b/apaxy/theme/icons/js.png new file mode 100755 index 0000000..af1a475 Binary files /dev/null and b/apaxy/theme/icons/js.png differ diff --git a/apaxy/theme/icons/json.png b/apaxy/theme/icons/json.png new file mode 100755 index 0000000..af1a475 Binary files /dev/null and b/apaxy/theme/icons/json.png differ diff --git a/apaxy/theme/icons/log.png b/apaxy/theme/icons/log.png new file mode 100755 index 0000000..02f1b9a Binary files /dev/null and b/apaxy/theme/icons/log.png differ diff --git a/apaxy/theme/icons/makefile.png b/apaxy/theme/icons/makefile.png new file mode 100755 index 0000000..f99ea4c Binary files /dev/null and b/apaxy/theme/icons/makefile.png differ diff --git a/apaxy/theme/icons/markdown.png b/apaxy/theme/icons/markdown.png new file mode 100755 index 0000000..25c8373 Binary files /dev/null and b/apaxy/theme/icons/markdown.png differ diff --git a/apaxy/theme/icons/package.png b/apaxy/theme/icons/package.png new file mode 100755 index 0000000..fb1343e Binary files /dev/null and b/apaxy/theme/icons/package.png differ diff --git a/apaxy/theme/icons/pdf.png b/apaxy/theme/icons/pdf.png new file mode 100755 index 0000000..7408d8d Binary files /dev/null and b/apaxy/theme/icons/pdf.png differ diff --git a/apaxy/theme/icons/php.png b/apaxy/theme/icons/php.png new file mode 100755 index 0000000..22c4df6 Binary files /dev/null and b/apaxy/theme/icons/php.png differ diff --git a/apaxy/theme/icons/playlist.png b/apaxy/theme/icons/playlist.png new file mode 100755 index 0000000..8d6f281 Binary files /dev/null and b/apaxy/theme/icons/playlist.png differ diff --git a/apaxy/theme/icons/png.png b/apaxy/theme/icons/png.png new file mode 100755 index 0000000..1fe1ec4 Binary files /dev/null and b/apaxy/theme/icons/png.png differ diff --git a/apaxy/theme/icons/pres.png b/apaxy/theme/icons/pres.png new file mode 100755 index 0000000..db195e9 Binary files /dev/null and b/apaxy/theme/icons/pres.png differ diff --git a/apaxy/theme/icons/ps.png b/apaxy/theme/icons/ps.png new file mode 100755 index 0000000..05f3ed9 Binary files /dev/null and b/apaxy/theme/icons/ps.png differ diff --git a/apaxy/theme/icons/psd.png b/apaxy/theme/icons/psd.png new file mode 100755 index 0000000..62718ee Binary files /dev/null and b/apaxy/theme/icons/psd.png differ diff --git a/apaxy/theme/icons/py.png b/apaxy/theme/icons/py.png new file mode 100755 index 0000000..0aaffd1 Binary files /dev/null and b/apaxy/theme/icons/py.png differ diff --git a/apaxy/theme/icons/rar.png b/apaxy/theme/icons/rar.png new file mode 100755 index 0000000..8a0ff54 Binary files /dev/null and b/apaxy/theme/icons/rar.png differ diff --git a/apaxy/theme/icons/rb.png b/apaxy/theme/icons/rb.png new file mode 100755 index 0000000..c7db42f Binary files /dev/null and b/apaxy/theme/icons/rb.png differ diff --git a/apaxy/theme/icons/readme.png b/apaxy/theme/icons/readme.png new file mode 100755 index 0000000..3ae48cd Binary files /dev/null and b/apaxy/theme/icons/readme.png differ diff --git a/apaxy/theme/icons/rpm.png b/apaxy/theme/icons/rpm.png new file mode 100755 index 0000000..64699ac Binary files /dev/null and b/apaxy/theme/icons/rpm.png differ diff --git a/apaxy/theme/icons/rss.png b/apaxy/theme/icons/rss.png new file mode 100755 index 0000000..a1130a1 Binary files /dev/null and b/apaxy/theme/icons/rss.png differ diff --git a/apaxy/theme/icons/rtf.png b/apaxy/theme/icons/rtf.png new file mode 100755 index 0000000..25c8373 Binary files /dev/null and b/apaxy/theme/icons/rtf.png differ diff --git a/apaxy/theme/icons/script.png b/apaxy/theme/icons/script.png new file mode 100755 index 0000000..1099b5f Binary files /dev/null and b/apaxy/theme/icons/script.png differ diff --git a/apaxy/theme/icons/source.png b/apaxy/theme/icons/source.png new file mode 100755 index 0000000..5bef920 Binary files /dev/null and b/apaxy/theme/icons/source.png differ diff --git a/apaxy/theme/icons/sql.png b/apaxy/theme/icons/sql.png new file mode 100755 index 0000000..b3b1467 Binary files /dev/null and b/apaxy/theme/icons/sql.png differ diff --git a/apaxy/theme/icons/tar.png b/apaxy/theme/icons/tar.png new file mode 100755 index 0000000..bab3b6a Binary files /dev/null and b/apaxy/theme/icons/tar.png differ diff --git a/apaxy/theme/icons/tex.png b/apaxy/theme/icons/tex.png new file mode 100755 index 0000000..1487b25 Binary files /dev/null and b/apaxy/theme/icons/tex.png differ diff --git a/apaxy/theme/icons/text.png b/apaxy/theme/icons/text.png new file mode 100755 index 0000000..1d48677 Binary files /dev/null and b/apaxy/theme/icons/text.png differ diff --git a/apaxy/theme/icons/tiff.png b/apaxy/theme/icons/tiff.png new file mode 100755 index 0000000..819e64c Binary files /dev/null and b/apaxy/theme/icons/tiff.png differ diff --git a/apaxy/theme/icons/unknown.png b/apaxy/theme/icons/unknown.png new file mode 100755 index 0000000..b1dcc3f Binary files /dev/null and b/apaxy/theme/icons/unknown.png differ diff --git a/apaxy/theme/icons/vcal.png b/apaxy/theme/icons/vcal.png new file mode 100755 index 0000000..3d81455 Binary files /dev/null and b/apaxy/theme/icons/vcal.png differ diff --git a/apaxy/theme/icons/video.png b/apaxy/theme/icons/video.png new file mode 100755 index 0000000..f92f7e1 Binary files /dev/null and b/apaxy/theme/icons/video.png differ diff --git a/apaxy/theme/icons/xml.png b/apaxy/theme/icons/xml.png new file mode 100755 index 0000000..83a83df Binary files /dev/null and b/apaxy/theme/icons/xml.png differ diff --git a/apaxy/theme/icons/zip.png b/apaxy/theme/icons/zip.png new file mode 100755 index 0000000..cc196c1 Binary files /dev/null and b/apaxy/theme/icons/zip.png differ diff --git a/apaxy/theme/style.css b/apaxy/theme/style.css new file mode 100644 index 0000000..f4206ba --- /dev/null +++ b/apaxy/theme/style.css @@ -0,0 +1,115 @@ +/*------------------------------------*\ + Apaxy + by @adamwhitcroft + + Theme name: Apaxy + Theme author: @adamwhitcroft +\*------------------------------------*/ +@import url('http://fonts.googleapis.com/css?family=Open+Sans'); +/* Have to use @import for the font, as you can only specify a single stylesheet */ +* { + margin:0; + padding:0; + box-sizing:border-box; +} + +html { + min-height:100%; + border:10px solid #ECEEF1; + color:#61666c; + font-weight:400; + font-size:1em; + font-family:'Open Sans', sans-serif; + line-height:2em; +} +body { + padding:20px; + -webkit-backface-visibility:hidden; +} +code { + font-family:consolas,monospace; +} +a { + color:#61666c; + text-decoration:none; +} +a:hover { + color:#2a2a2a; +} +/*------------------------------------*\ + Wrapper +\*------------------------------------*/ +.wrapper { + margin:0 auto; + padding-top:20px; + max-width:900px; +} +/*------------------------------------*\ + Block +\*------------------------------------*/ +.block { + font-size:.875em; + margin:20px 0; + padding:20px; + color:#9099A3; +} +/*------------------------------------*\ + Table (directory listing) +\*------------------------------------*/ +table { + width:100%; + border-collapse:collapse; + font-size:.875em; +} +tr { + outline:0; + border:0; +} +tr:hover td { + background:#f6f6f6; +} +th { + text-align:left; + font-size:.75em; + padding-right:20px; +} +/* 2nd Column: Filename */ +th + th { + width:65%; +} +/* 3rd Column: Last Modified */ +th + th + th { +} +/* 4th Column: Size */ +th + th + th + th { + width:5%; +} +td { + padding:5px 0; + outline:0; + border:0; + border-bottom:1px solid #edf1f5; + vertical-align:middle; + text-align:left; + -webkit-transition:background 300ms ease; + -moz-transition:background 300ms ease; + -ms-transition:background 300ms ease; + -o-transition:background 300ms ease; + transition:background 300ms ease; +} +td:nth-of-type(1){ + margin-right:20px; +} +tr.parent a { + color:#9099A3; +} + .parent a:hover { + color:#2281d0; + } +/*------------------------------------*\ + Footer +\*------------------------------------*/ +.footer { + text-align:center; + font-size:.75em; +} \ No newline at end of file