Design for CSS settings page #49
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This page reads from the default theme (which is not editable by itself) and shows on top the variables that are defined in the root.
Order to be defined.
From hypha-improvements:
New user interface for custom CSS, offers three modes:
In the page, three parts of CSS are included: defaults, variable overrides and customizations
Default CSS defines CSS variables, some of which are marked as "editable" (or "basic") others are unmarked (or marked as "advanced").
PHP scans the CSS for these basic variables and offers an interface to change them (e.g. color picker or font picker)
This interface stores its data in a css file (say variables.css) in the data folder
Intention is to limit this to four color variables and two font variables, to prevent too much complexity
Advanced customizations can be done through a textarea that edits a third css file (e.g. customizations.css). This can override the advanced variables from the default CSS, define and use new variables and add or override CSS rules themselves.
You can also upload of background image (should this just be a CSS variable that is included in the above?)
You can also upload a favicon (which is pretty much unrelated to the CSS)
https://github.com/PlanBCode/hypha/issues/49
Replace the default styling
In this mode you get just a single textarea that defines the entire CSS to be included in the page, which is stored in a separate file (e.g. custom-theme.css or something)
This file should be different from the customizations when using the extend-mode.
When you first select this option, the textarea is filled with the default.css. There should be an option to revert back to default.css later.
Important extra option:
possibility to (temporarily) revert to standard styling.
For checking/debugging purposes.