Skip to content

Commit

Permalink
refactor: Refactor theme_css function to improve readability and remo…
Browse files Browse the repository at this point in the history
…ve unnecessary f-string
  • Loading branch information
drikusroor committed Feb 19, 2024
1 parent 5e55f2c commit 60a87f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/theme/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ def theme_css(request):
"""

# ::before should show a black to transparent gradient
css_content += f"""
/* Custom Background Gradient */\n
.aha__page.aha__page--custom::before {{
css_content += """
/* Custom Background Gradient */
.aha__page.aha__page--custom::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}}
}
"""

except json.JSONDecodeError:
Expand Down

0 comments on commit 60a87f4

Please sign in to comment.