Use djlint for js and css
This commit is contained in:
parent
0a8e2ccad9
commit
9bf33f9b50
@ -37,6 +37,15 @@ extension = ".dj.html"
|
||||
indent = 2
|
||||
blank_line_after_tag = "load,extends"
|
||||
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]]
|
||||
url = "https://pypi.org/simple"
|
||||
|
@ -39,14 +39,17 @@
|
||||
justify-content: center;
|
||||
color: lightgray;
|
||||
}
|
||||
|
||||
.locker .door[data-available="False"] {
|
||||
background-color: hsl(24, 15%, 25%);;
|
||||
background-color: hsl(24, 15%, 25%);
|
||||
;
|
||||
}
|
||||
|
||||
.form-floating .select2-container .select2-selection {
|
||||
height: 3.5em;
|
||||
padding: 1.625rem .25rem;
|
||||
}
|
||||
|
||||
.form-floating .select2-container .select2-selection .select2-selection__rendered {
|
||||
padding-right: 0.25rem;
|
||||
}
|
||||
@ -58,10 +61,11 @@
|
||||
<div class="lockers">
|
||||
{% for unit, lockers in units.items %}
|
||||
<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 %}
|
||||
<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," }}"
|
||||
data-bs-toggle="dropdown"
|
||||
data-bs-auto-close="outside"
|
||||
|
Loading…
Reference in New Issue
Block a user