Skip to content

Commit

Permalink
feat(debug): add red outline in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Jul 25, 2023
1 parent c1df119 commit aff5bb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benefits/core/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}" class="{% block classes %}{% endblock classes %}">
<html lang="{{ LANGUAGE_CODE }}" class="{% block classes %}{% endblock classes %}{% if debug %}debug{% endif %}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Expand Down Expand Up @@ -51,7 +51,7 @@
{% include "core/includes/noscript.html" %}
</noscript>

<div id="header-container" class="navbar navbar-expand-sm navbar-dark bg-primary justify-content-between">
<div id="header-container" class="navbar navbar-expand-sm navbar-dark bg-primary justify-content-between position-static">
<div class="container">
<span class="navbar-brand p-0">
<img class="sm d-lg-none" src="{% static "img/logo-sm.svg" %}" width="90" height="51.3" alt="{% translate "core.logos.small" context "image alt text" %}" />
Expand Down
5 changes: 5 additions & 0 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
url("../fonts/PublicSans-Bold.woff") format("woff");
}

html.debug {
outline: 5px solid var(--error-color);
outline-offset: -5px;
}

body {
font-size: 100%;
}
Expand Down

0 comments on commit aff5bb4

Please sign in to comment.