diff --git a/files/assets/css/transparent.css b/files/assets/css/transparent.css index a97d8ef43..bf1dd964e 100644 --- a/files/assets/css/transparent.css +++ b/files/assets/css/transparent.css @@ -1,5 +1,3 @@ -@import 'midnight.css?v=4033'; - :root { --light: transparent; --gray-600: transparent; diff --git a/files/templates/userpage/userpage.html b/files/templates/userpage/userpage.html index 69a33a939..643d71ac8 100644 --- a/files/templates/userpage/userpage.html +++ b/files/templates/userpage/userpage.html @@ -423,7 +423,7 @@ {% endif %} - {% if v and v.id == u.id and (v.profile_background or v.theme == 'transparent') %} + {% if v and v.id == u.id %}
diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 50905c533..cb50eec8d 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -105,6 +105,7 @@ {% endmacro %} {% macro stylesheets(include_user_css) %} + {% set transparent = False %} {% if v %} @@ -117,6 +118,10 @@ {% endif %} {% if include_user_css and not EVENT_STYLES %} + {% if v.theme == 'transparent' %} + {% set transparent = True %} + + {% endif %} {% if v.css and not request.path.startswith('/settings/css') %} + {% if DEFAULT_THEME == 'transparent' %} + {% set transparent = True %} + + {% endif %} {% endmacro %}