mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #934] [FEATURE] Allow simple append to official style with WHOOGLE_CONFIG_STYLE instead of overwriting it #580
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#580
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?
Originally created by @DUOLabs333 on GitHub (Jan 22, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/934
Describe the feature you'd like to see added
Currently, setting
WHOOGLE_CONFIG_STYLEoverwrites the official style. However, in some cases, you may simply want to add something, rather than completely overwrite it. So, maybe have something like ifWHOOGLE_CONFIG_STYLEdoesn't start with:root, just append to the official style, else, overwrite it?Additional context
This request comes from the fact that I want to change the width of the page (which should probably be its own setting) and the color of the logo without changing anything else on the page. The idea is that this:
WHOOGLE_CONFIG_STYLE="body {max-width: 100% !important; /* or whatever width you want */} #whoogle-w { fill: #685e79; } #whoogle-h { fill: #685e79; } #whoogle-o-1 { fill: #685e79; } #whoogle-o-2 { fill: #685e79; } #whoogle-g { fill: #685e79; } #whoogle-l { fill: #685e79; } #whoogle-e { fill: #685e79; } "should work as expected.A POC: