1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-20 10:02:32 +01:00
theme.park/CSS/addons/bazarr/README.md

52 lines
1.9 KiB
Markdown
Raw Normal View History

2021-04-24 23:02:04 +02:00
Adds a 4K logo to your Bazarr css.
<p>
<a href="https://raw.githubusercontent.com/gilbN/theme.park/master/CSS/addons/bazarr/desktop.png" rel="noopener"><img src="https://raw.githubusercontent.com/gilbN/theme.park/master/CSS/addons/bazarr/desktop.png" alt="Screen Shot 1" width="33%" /></a>
</p>
<p>
<a href="https://raw.githubusercontent.com/gilbN/theme.park/master/CSS/addons/bazarr/mobile.png" rel="noopener"><img src="https://raw.githubusercontent.com/gilbN/theme.park/master/CSS/addons/bazarr/mobile.png" alt="Screen Shot 1" width="33%" /></a>
</p>
## Setup
#### Docker mod <img src="https://avatars.githubusercontent.com/u/12324908?s=20&v=4">
`-e TP_ADDON=bazarr-4k-logo`
#### Nginx
Examples of how to add it:
```nginx
proxy_set_header Accept-Encoding "";
sub_filter
'</head>'
'<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css">
<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css">
</head>';
sub_filter_once on;
```
#### Apache
```nginx
AddOutputFilterByType SUBSTITUTE text/html
Substitute 's|</head> '<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css"><link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css">
</head>';|'
```
#### Caddy
```nginx
filter rule {
content_type text/html.*
search_pattern </head>
replacement "<link rel='stylesheet' type='text/css' href='https://gilbn.github.io/theme.park/CSS/themes/<APP_NAME>/<THEME>.css'><link rel='stylesheet' type='text/css' href='https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css'></head>"
}
```
#### Stylus
Just add another import line.
```css
@import "https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css";
@import "https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css";
```