Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sidebar color changes not reflecting #590

Open
namindu-ssn opened this issue Mar 12, 2025 · 3 comments
Open

sidebar color changes not reflecting #590

namindu-ssn opened this issue Mar 12, 2025 · 3 comments
Labels
question Further information is requested

Comments

@namindu-ssn
Copy link

Bug Report

Sidebar color changes not reflect

Description

I have changed the sidebar colour changes bot not updating the color that I have change.

I changed it on static/src/scss/abstracts/_variables.scss variable called $brand-color upon changing the color I ran python manage.py collectstatic. even the colours are not changed. I need help how to change those colours.

[A brief description of the bug or issue you're encountering.]

Steps to Reproduce

  1. [Detailed step-by-step instructions to reproduce the issue.]

Expected Behavior

[What you expected to happen.]

Actual Behavior

[What actually happened.]

Screenshots

[If applicable, provide screenshots illustrating the issue.]

Environment

  • Django Version: [Django version you're using, e.g., 3.2.1]
  • Python Version: [Python version, e.g., 3.9]
  • Operating System: [Your OS, e.g., Windows 10, Ubuntu 20.04]
  • Browser: [If applicable, specify the browser and version you're using.]

Additional Information

[Any other relevant information, logs, error messages, or context that might help in understanding and fixing the issue.]

Possible Solution

[If you have any ideas or suggestions on how to fix the issue, feel free to provide them here. This is optional.]

Labels

[If your project uses labels, suggest any labels that might apply to this issue, such as 'bug', 'needs investigation', etc.]

Priority

[Specify the priority level for this issue, such as 'high', 'medium', 'low', etc.]

Assignees

[If you want to suggest an assignee or tag a specific person to look into this issue, mention their GitHub username here.]

Related Issues

[If there are any related issues or pull requests, mention them here. This is optional.]

Note: Remember to search through existing issues before submitting a new one to ensure that the issue hasn't been reported already. Provide as much information as possible to help the maintainers understand and address the problem effectively.

@horilla-opensource
Copy link
Owner

Hi @namindu-ssn,

The issue occurs because after modifying static/src/scss/abstracts/_variables.scss, the SCSS needs to be compiled into CSS for the changes to take effect.

Horilla only loads style.css and style.min.css in the index.html file.

Best regards,
Team Horilla

@horilla-opensource horilla-opensource added the question Further information is requested label Mar 12, 2025
@namindu-ssn
Copy link
Author

Could you please advice me on how can I compile it? using npm?

@horilla-opensource
Copy link
Owner

Hi @namindu-ssn,

To compile the SCSS changes into the CSS file that Horilla uses, run the following command:

sass static/src/scss/main.scss:static/build/css/style.min.css --no-source-map --style=compressed

This will generate the style.min.css file, which Horilla loads for styling. After running the command, make sure to clear your browser cache or do a hard refresh (Ctrl + Shift + R on most browsers) to see the changes.

Let us know if you need further assistance!

Best regards,
Team Horilla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants