Use djlint for js and css

This commit is contained in:
Adam Goldsmith 2022-11-07 12:48:57 -05:00
parent 0a8e2ccad9
commit 9bf33f9b50
2 changed files with 52 additions and 39 deletions

View File

@ -37,6 +37,15 @@ extension = ".dj.html"
indent = 2 indent = 2
blank_line_after_tag = "load,extends" blank_line_after_tag = "load,extends"
ignore = "T003,H017,H021,H030,H031" ignore = "T003,H017,H021,H030,H031"
format_css = true
format_js = true
[tool.djlint.css]
indent_size = 2
[tool.djlint.js]
indent_size = 2
[[tool.pdm.source]] [[tool.pdm.source]]
url = "https://pypi.org/simple" url = "https://pypi.org/simple"

View File

@ -39,14 +39,17 @@
justify-content: center; justify-content: center;
color: lightgray; color: lightgray;
} }
.locker .door[data-available="False"] { .locker .door[data-available="False"] {
background-color: hsl(24, 15%, 25%);; background-color: hsl(24, 15%, 25%);
;
} }
.form-floating .select2-container .select2-selection { .form-floating .select2-container .select2-selection {
height: 3.5em; height: 3.5em;
padding: 1.625rem .25rem; padding: 1.625rem .25rem;
} }
.form-floating .select2-container .select2-selection .select2-selection__rendered { .form-floating .select2-container .select2-selection .select2-selection__rendered {
padding-right: 0.25rem; padding-right: 0.25rem;
} }
@ -58,10 +61,11 @@
<div class="lockers"> <div class="lockers">
{% for unit, lockers in units.items %} {% for unit, lockers in units.items %}
<div class="locker" <div class="locker"
style="grid-template-columns: repeat({{ unit.columns }}, minmax(7rem, 8.5rem));"> style="grid-template-columns: repeat({{ unit.columns }}, minmax(7rem, 8.5rem))">
{% for locker_form in lockers %} {% for locker_form in lockers %}
<div class="dropdown" <div class="dropdown"
style="grid-row-start: {{ locker_form.instance.row|add:'1' }}; grid-column-start: {{ locker_form.instance.column|add:'1' }}"> style="grid-row-start: {{ locker_form.instance.row|add:'1' }};
grid-column-start: {{ locker_form.instance.column|add:'1' }}">
<span class="door {{ perms.rentals.view_lockerinfo|yesno:"btn dropdown-toggle," }}" <span class="door {{ perms.rentals.view_lockerinfo|yesno:"btn dropdown-toggle," }}"
data-bs-toggle="dropdown" data-bs-toggle="dropdown"
data-bs-auto-close="outside" data-bs-auto-close="outside"