1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-23 10:23:30 +02:00

Apaxy first commit

This commit is contained in:
Adam Whitcroft
2012-10-25 21:13:05 +01:00
parent 834cb33209
commit 956bfbf971
73 changed files with 213 additions and 0 deletions

View File

@@ -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

72
apaxy/htaccess.txt Normal file
View File

@@ -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"

13
apaxy/theme/footer.html Normal file
View File

@@ -0,0 +1,13 @@
<div class="block">
You can add your own HTML above or below the directory listing. Simply explore the <code>header.html</code> and <code>footer.html</code> files.
</div><!--/.postlisting-->
</div><!--/.wrapper-->
<div class="footer">
Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a>
</div><!--/.footer-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
$('tr:nth-child(2)').addClass('parent');
</script>

2
apaxy/theme/header.html Normal file
View File

@@ -0,0 +1,2 @@
<div class="wrapper">
<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->

9
apaxy/theme/htaccess.txt Normal file
View File

@@ -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

BIN
apaxy/theme/icons/archive.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
apaxy/theme/icons/audio.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

BIN
apaxy/theme/icons/authors.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

BIN
apaxy/theme/icons/bin.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
apaxy/theme/icons/blank.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

BIN
apaxy/theme/icons/bmp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

BIN
apaxy/theme/icons/c.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

BIN
apaxy/theme/icons/calc.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

BIN
apaxy/theme/icons/cd.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

BIN
apaxy/theme/icons/copying.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

BIN
apaxy/theme/icons/cpp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

BIN
apaxy/theme/icons/css.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

BIN
apaxy/theme/icons/deb.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

BIN
apaxy/theme/icons/default.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

BIN
apaxy/theme/icons/diff.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
apaxy/theme/icons/doc.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

BIN
apaxy/theme/icons/draw.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

BIN
apaxy/theme/icons/eps.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

BIN
apaxy/theme/icons/exe.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

BIN
apaxy/theme/icons/folder-home.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
apaxy/theme/icons/folder-open.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

BIN
apaxy/theme/icons/folder-page.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
apaxy/theme/icons/folder.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

BIN
apaxy/theme/icons/gif.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

BIN
apaxy/theme/icons/gzip.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
apaxy/theme/icons/h.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

BIN
apaxy/theme/icons/hpp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

BIN
apaxy/theme/icons/html.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

BIN
apaxy/theme/icons/ico.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 B

BIN
apaxy/theme/icons/image.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

BIN
apaxy/theme/icons/install.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

BIN
apaxy/theme/icons/java.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

BIN
apaxy/theme/icons/jpg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

BIN
apaxy/theme/icons/js.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

BIN
apaxy/theme/icons/json.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

BIN
apaxy/theme/icons/log.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

BIN
apaxy/theme/icons/makefile.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
apaxy/theme/icons/markdown.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
apaxy/theme/icons/package.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
apaxy/theme/icons/pdf.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

BIN
apaxy/theme/icons/php.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

BIN
apaxy/theme/icons/playlist.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

BIN
apaxy/theme/icons/png.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

BIN
apaxy/theme/icons/pres.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

BIN
apaxy/theme/icons/ps.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

BIN
apaxy/theme/icons/psd.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

BIN
apaxy/theme/icons/py.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
apaxy/theme/icons/rar.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
apaxy/theme/icons/rb.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

BIN
apaxy/theme/icons/readme.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

BIN
apaxy/theme/icons/rpm.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

BIN
apaxy/theme/icons/rss.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

BIN
apaxy/theme/icons/rtf.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
apaxy/theme/icons/script.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

BIN
apaxy/theme/icons/source.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
apaxy/theme/icons/sql.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

BIN
apaxy/theme/icons/tar.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

BIN
apaxy/theme/icons/tex.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

BIN
apaxy/theme/icons/text.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

BIN
apaxy/theme/icons/tiff.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

BIN
apaxy/theme/icons/unknown.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

BIN
apaxy/theme/icons/vcal.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

BIN
apaxy/theme/icons/video.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

BIN
apaxy/theme/icons/xml.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

BIN
apaxy/theme/icons/zip.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

115
apaxy/theme/style.css Normal file
View File

@@ -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;
}