Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
FSPT-119: remove custom scss/ css process
Browse files Browse the repository at this point in the history
We don't take advantage of any of the features of the SCSS pre-processor
so lets remove it and add it back in if we need it.

This is the only use of the `pyscss` filter/ dependency in authenticator.
  • Loading branch information
sfount committed Dec 6, 2024
1 parent fee2083 commit 1e23b66
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 57 deletions.
37 changes: 0 additions & 37 deletions frontend/assets.py

This file was deleted.

7 changes: 1 addition & 6 deletions frontend/magic_links/templates/invalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@
{% set pageHeading %}{% trans %}Link expired{% endtrans %}{% endset %}
{% block content %}
<div>
{# TODO: Figure out translation for Link expired #}
<h1 class="govuk-heading-xl">{{ pageHeading }}</h1>
</div>
<div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" data-module="govuk-error-summary">
<h2 class="govuk-error-summary__title" id="error-summary-title">
{# TODO: Figure out which should be used. #}
{# This link has expired #}
{% trans %} Magic link expired {% endtrans %}
</h2>
<div class="govuk-error-summary__body">
<ul class="govuk-list govuk-error-summary__list">
<li>
{# TODO: Figure out which should be used. #}
{# <p class="fsd-error-message">To access your application, you need to request a new link. The link will work for 24 hours.</p> #}
<p class="fsd-error-message">{% trans %} You can request a new magic link to access your application. {% endtrans %}</p>
<p class="govuk-!-font-weight-bold">{% trans %} You can request a new magic link to access your application. {% endtrans %}</p>
</li>
</ul>
</div>
Expand Down
4 changes: 0 additions & 4 deletions frontend/static/src/scss/main.scss

This file was deleted.

1 change: 0 additions & 1 deletion frontend/templates/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<meta name="author" content="{{ service_meta_author }}">
<!--[if gt IE 8]><!--><link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='govuk-frontend/govuk-frontend-4.0.0.min.css') }}" /><!--<![endif]-->
<!--[if IE 8]><link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='govuk-frontend/govuk-frontend-ie8-4.0.0.min.css') }}" /><![endif]-->
<!--[if gt IE 8]><!--><link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/main.min.css') }}" /><!--<![endif]-->
{% assets "main_js" %}
<script nonce="{{ csp_nonce() }}" type="text/javascript" src="{{ ASSET_URL }}" defer></script>
{% endassets %}
Expand Down
10 changes: 1 addition & 9 deletions static_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,9 @@ def init_assets(app=None, auto_build=False, static_folder="frontend/static/dist"
output="js/main.min.js",
)

css = Bundle(
"./scss/*.scss",
filters="pyscss,cssmin",
output="css/main.min.css",
extra={"rel": "stylesheet/css"},
)

env.register("default_styles", css)
env.register("main_js", js)

bundles = [css, js]
bundles = [js]
return bundles


Expand Down

0 comments on commit 1e23b66

Please sign in to comment.