An open API service indexing awesome lists of open source software.

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

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?