diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-11-15 14:53:54 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-11-15 14:53:54 -0200 |
commit | 9537004b1a8e46a8fe875015535bf20d9d8a002d (patch) | |
tree | 9f44d30118594ff3782e00862c709e87d67b4f58 | |
parent | 9cd71ee6d38dd4a89e6e87b79bd0293c3a6f3130 (diff) | |
download | puppet-apache-9537004b1a8e46a8fe875015535bf20d9d8a002d.tar.gz puppet-apache-9537004b1a8e46a8fe875015535bf20d9d8a002d.tar.bz2 |
Enabling stylesheet and markdown icon on autoindex
-rw-r--r-- | files/icons/style.css | 161 | ||||
-rw-r--r-- | templates/autoindex.conf.erb | 3 |
2 files changed, 5 insertions, 159 deletions
diff --git a/files/icons/style.css b/files/icons/style.css index d0e2646..e5e2219 100644 --- a/files/icons/style.css +++ b/files/icons/style.css @@ -1,162 +1,7 @@ - -/** - * Repos Style (c) 2007 www.reposstyle.com - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/* reposstyle.com version 1.5 */ -html { - filter: expression(document.execCommand("BackgroundImageCache", false, true)); - margin: 0; - padding: 0; -} body { - margin: 0; - padding: 0; - font-family: Verdana, Helvetica, Arial, sans-serif; - font-size: 82.5%; - color: #111; -} -h2 { - font-weight: normal; - font-size: 1.4em; - color: #444444; - margin-left: 5px; -} -a, -a:visited { - text-decoration: none; - color: #111; -} -a:hover { - text-decoration: underline; -} -h2 a { - color: #667799 !important; -} -img { - border: none; -} -div#files { - margin: 0 auto 0 auto; - width: 99%; -} -/* command = commandbar button, <a> is active, <span> is greyed out */ -.command { - background-position: left center; - background-repeat: no-repeat; - font-size: 82.5%; - margin-left: 5px; - margin-right: 5px; - margin-top: 0px; - margin-bottom: 0px; - padding-left: 20px; - padding-right: 0.2em; - padding-top: 0.2em; - padding-bottom: 0.2em; -} -/* common page elements, may also be layouted for each tool */ -#commandbar { - min-width: 980px; - height: 1.5em; - background-color: #ECF1EF; - padding: 3px; - border-bottom: 1px solid #CCCCCC; -} -/* command = commandbar button, <a> is active, <span> is greyed out */ -#commandbar a { - background-position: left center; - background-repeat: no-repeat; - font-size: 82.5%; - margin-left: 0.4em; - margin-right: 0px; - margin-top: 0px; - margin-bottom: 0px; - padding-left: 22px; - padding-right: 1.0em; - padding-top: 0.4em; - padding-bottom: 0.6em; - line-height: 1.5em; - color: #555555; - border-right: 2px dotted #D5E0E0; -} -/* common commands */ -#commandbar #parent { - background-image: url('/index-style/icons/parent.gif'); -} -#commandbar #refresh { - background-image: url('/index-style/icons/refresh.gif'); -} -#commandbar #home { - background-image: url('/index-style/icons/home.gif'); -} -#footer { - margin-top: 1.5em; - padding: 0.2em 0 0.2em 0; - width: 100%; - clear: both; - border-top: 1px solid #CCCCCC; - border-bottom: 1px solid #CCCCCC; - background-color: #F4F4F4; - color: #999999; - font-size: 85.5%; - text-align: right; -} -#footer a { - color: #667799; -} -#footer a.last { - padding-right: 10px; + font-family: "lucida grande","sans serif"; } + table { - width: 100%; - border-collapse: collapse; -} -table tr { - padding: 0; - margin: 0; -} -table td, -table th { - padding: 1px 0 1px 0; - margin: 0; - text-align: left; -} -table td { - border: none; - border-bottom: 1px solid #FFFFFF; - background: #fff url(/index-style/icons/rowbackground.png) repeat-x; - text-align: right; -} -table td.name { - text-align: left; -} -table tr.hover td { - border-bottom: 1px dashed #CCCC99; -} -table th.icon { - width: 16px; - height: 16px; - padding-right: 5px; -} -table th.date { - text-align: right; - width: 180px; -} -table th.size { - text-align: right; - width: 80px; -} -table hr { - display: none; + font-family: "monospace"; } diff --git a/templates/autoindex.conf.erb b/templates/autoindex.conf.erb index 6fc4829..9f55b09 100644 --- a/templates/autoindex.conf.erb +++ b/templates/autoindex.conf.erb @@ -19,6 +19,7 @@ IndexOptions IconHeight=16 IndexOptions NameWidth=* IndexOptions Charset=UTF-8 IndexOrderDefault Descending Name +IndexHeadInsert "<link href=\"/icons/style.css\" media=\"screen,projection\" type=\"text/css\" rel=\"stylesheet\" />" #HeaderName /icons/header.html #ReadmeName /icons/footer.html @@ -39,7 +40,7 @@ AddIcon /icons/app.png .app AddIcon /icons/movie.png .mov .mpg .mpeg .m2v .avi .divx .xvid .swf .wmv .wma .wm* .ram .rm .ogm .ogv # Documents -AddIcon /icons/txt.png .txt .text .log +AddIcon /icons/txt.png .txt .text .log .mdwn AddIcon /icons/html.png .htm .html .xml .php .shtml .xhtml AddIcon /icons/odt.png .odt .rtf .doc .ps .pdf AddIcon /icons/ods.png .ods .xls |