mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-01 15:13:17 -06:00
Feat: Add global instance CSS customization setting
Allow instance admins to add custom CSS that will affect every page of their instance. This is done with a new CustomCSS instance setting that works pretty much exactly like the Users CustomCSS property. This custom CSS is then requested for every page load. User styles/themes take precedence over this CSS.
This commit is contained in:
parent
713e73300c
commit
c8fb4c17f1
25 changed files with 158 additions and 27 deletions
|
|
@ -38,6 +38,8 @@ type InstanceV1 struct {
|
|||
//
|
||||
// This should be displayed on the 'about' page for an instance.
|
||||
Description string `json:"description"`
|
||||
// Custom CSS for the instance.
|
||||
CustomCSS string `json:"custom_css,omitempty"`
|
||||
// Raw (unparsed) version of description.
|
||||
DescriptionText string `json:"description_text,omitempty"`
|
||||
// A shorter description of the instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue