Skip to content

Commit 5458650

Browse files
add Customize CSS (#221)
1 parent 1f79ab8 commit 5458650

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/customization/page-templates.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,29 @@ Only one command is missing to restart SeaTable and to activate your new login p
188188
docker exec -d seatable /shared/seatable/scripts/seatable.sh restart
189189
```
190190

191+
## Customize CSS
192+
193+
Create customize folder, add your css file to custom/, for example, `custom.css`
194+
195+
```sh
196+
mkdir -p /opt/seatable-server/seatable/seahub-data/custom
197+
cd /opt/seatable-server/seatable/seahub-data/custom
198+
vim custom.css
199+
docker exec -it seatable ln -s /shared/seatable/seahub-data/custom /opt/seatable/seatable-server-latest/dtable-web/media/custom
200+
```
201+
202+
Then modify `BRANDING_CSS` in `dtable_web_settings.py`
203+
204+
```py
205+
BRANDING_CSS = 'custom/custom.css'
206+
```
207+
208+
Restart SeaTable container
209+
210+
```sh
211+
docker compose restart
212+
```
213+
191214
## Translation
192215

193216
In the HTML files you will see strings like `{% trans "Forgot password?" %}`. This is a placeholder, that will be replaced by other language strings depending on which language the user has selected. Translations and changes to these language strings is not part of this article. There will be another article in the near future.

0 commit comments

Comments
 (0)