https://github.com/r2-g2/ngx-fancyindex-css-href
[nfich] override the default CSS
https://github.com/r2-g2/ngx-fancyindex-css-href
css fancyindex ngingx ssi
Last synced: 2 months ago
JSON representation
[nfich] override the default CSS
- Host: GitHub
- URL: https://github.com/r2-g2/ngx-fancyindex-css-href
- Owner: R2-G2
- License: mit
- Created: 2023-02-01T23:36:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T22:56:59.000Z (over 2 years ago)
- Last Synced: 2023-03-04T01:24:05.033Z (over 2 years ago)
- Topics: css, fancyindex, ngingx, ssi
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ngx-fancyindex-css-href: override the default CSS
## Usage
### General
Tell the [**Nginx Fancy Index module**](https://github.com/aperezdc/ngx-fancyindex) to load an aliased CSS file with
*SSI* enabled.```nginx
location / {
fancyindex on;
fancyindex_css_href /fancyindex.css;location = /fancyindex.css {
# git clone https://github.com/R2-G2/ngx-fancyindex-css-href.git /CUSTOM/PATH
alias /CUSTOM/PATH/fancyindex.css;
ssi on;
ssi_types text/css;
}
}
```### Personal
You can also define your own (e.g. dark) colors separately for any directory.
```nginx
location /DIRECTORY/ {
fancyindex on;
fancyindex_css_href /DIRECTORY/dark.css;location = /DIRECTORY/dark.css {
# git clone https://github.com/R2-G2/ngx-fancyindex-css-href.git /opt/ngx-fancyindex-css-href
alias /opt/ngx-fancyindex-css-href/fancyindex.css;
ssi on;
ssi_types text/css;
set $ficss_color_background_normal "#000";
set $ficss_color_background_highlight "#111";
set $ficss_color_border "#222";
set $ficss_color_text "#777";
set $ficss_color_link "#bbb";
set $ficss_color_hover "#fff";
}
}
```## Problems?
Fork! Fork it! Fork you! Fork me, right?