Compare commits
2 Commits
e55c88c742
...
3d94b9b2d8
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d94b9b2d8 | |||
| 95e46fe727 |
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
|
|||||||
"django.contrib.sessions",
|
"django.contrib.sessions",
|
||||||
"django.contrib.messages",
|
"django.contrib.messages",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
|
"waffle",
|
||||||
"constance",
|
"constance",
|
||||||
"tailwind",
|
"tailwind",
|
||||||
"django_filters",
|
"django_filters",
|
||||||
@@ -62,6 +63,7 @@ MIDDLEWARE = [
|
|||||||
"django.contrib.messages.middleware.MessageMiddleware",
|
"django.contrib.messages.middleware.MessageMiddleware",
|
||||||
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
"django.middleware.clickjacking.XFrameOptionsMiddleware",
|
||||||
"django_htmx.middleware.HtmxMiddleware",
|
"django_htmx.middleware.HtmxMiddleware",
|
||||||
|
"waffle.middleware.WaffleMiddleware",
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = "TeamForge.urls"
|
ROOT_URLCONF = "TeamForge.urls"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ dependencies = [
|
|||||||
"django-htmx>=1.27.0",
|
"django-htmx>=1.27.0",
|
||||||
"django-phonenumber-field[phonenumbers]>=8.4.0",
|
"django-phonenumber-field[phonenumbers]>=8.4.0",
|
||||||
"django-tailwind[cookiecutter,honcho]>=4.4.2",
|
"django-tailwind[cookiecutter,honcho]>=4.4.2",
|
||||||
|
"django-waffle>=5.0.0",
|
||||||
"pillow>=12.1.0",
|
"pillow>=12.1.0",
|
||||||
"psycopg2-binary>=2.9.11",
|
"psycopg2-binary>=2.9.11",
|
||||||
"python-decouple>=3.8",
|
"python-decouple>=3.8",
|
||||||
|
|||||||
@@ -253,26 +253,16 @@
|
|||||||
border-radius: var(--radius-field);
|
border-radius: var(--radius-field);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
min-height: 44px;
|
min-height: 44px;
|
||||||
overflow: hidden
|
overflow: hidden;
|
||||||
|
transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.is-focused .choices__inner,
|
.is-focused .choices__inner,
|
||||||
.is-open .choices__inner {
|
.is-open .choices__inner {
|
||||||
border-color: var(--color-base-content);
|
border-color: var(--color-base-content);
|
||||||
isolation: isolate;
|
box-shadow: 0 0 0 2px var(--color-base-100), 0 0 0 4px var(--color-base-content);
|
||||||
border-radius: var(--radius-field);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-focused {
|
|
||||||
border: 2px solid var(--color-base-content);
|
|
||||||
border-radius: calc(var(--radius-field) * 2);
|
|
||||||
margin: -2px;
|
|
||||||
padding: 2px; /* adjust offset */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.is-open .choices__inner {
|
.is-open .choices__inner {
|
||||||
border-radius: var(--radius-field);
|
border-radius: var(--radius-field);
|
||||||
}
|
}
|
||||||
@@ -281,6 +271,13 @@
|
|||||||
border-radius: var(--radius-field);
|
border-radius: var(--radius-field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-focused {
|
||||||
|
border: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.choices__list {
|
.choices__list {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
@@ -344,16 +341,16 @@
|
|||||||
.choices__list--dropdown,
|
.choices__list--dropdown,
|
||||||
.choices__list[aria-expanded] {
|
.choices__list[aria-expanded] {
|
||||||
display: none;
|
display: none;
|
||||||
z-index: 1;
|
z-index: 10;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--color-base-100);
|
border: 1px solid color-mix(in oklab, var(--color-base-content) 20%, #0000);
|
||||||
border: 1px solid #ddd;
|
|
||||||
top: 100%;
|
top: 100%;
|
||||||
margin-top: 3px;
|
margin-top: 0.25rem;
|
||||||
border-radius: var(--radius-field);
|
border-radius: var(--radius-field);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
word-break: break-all
|
word-break: break-all;
|
||||||
|
box-shadow: 0 10px 25px color-mix(in oklab, var(--color-base-content) 12%, transparent)
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-active.choices__list--dropdown,
|
.is-active.choices__list--dropdown,
|
||||||
@@ -363,7 +360,7 @@
|
|||||||
|
|
||||||
.is-open .choices__list--dropdown,
|
.is-open .choices__list--dropdown,
|
||||||
.is-open .choices__list[aria-expanded] {
|
.is-open .choices__list[aria-expanded] {
|
||||||
border-color: #b7b7b7
|
border-color: color-mix(in oklab, var(--color-base-content) 20%, #0000)
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-flipped .choices__list--dropdown,
|
.is-flipped .choices__list--dropdown,
|
||||||
@@ -371,8 +368,8 @@
|
|||||||
top: auto;
|
top: auto;
|
||||||
bottom: 100%;
|
bottom: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: -1px;
|
margin-bottom: 0.25rem;
|
||||||
border-radius: .25rem .25rem 0 0
|
border-radius: var(--radius-field)
|
||||||
}
|
}
|
||||||
|
|
||||||
.choices__list--dropdown .choices__list,
|
.choices__list--dropdown .choices__list,
|
||||||
@@ -387,8 +384,9 @@
|
|||||||
.choices__list--dropdown .choices__item,
|
.choices__list--dropdown .choices__item,
|
||||||
.choices__list[aria-expanded] .choices__item {
|
.choices__list[aria-expanded] .choices__item {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 10px;
|
padding: 10px 12px;
|
||||||
font-size: 14px
|
font-size: 14px;
|
||||||
|
color: var(--color-base-content)
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir=rtl] .choices__list--dropdown .choices__item,
|
[dir=rtl] .choices__list--dropdown .choices__item,
|
||||||
@@ -430,7 +428,7 @@
|
|||||||
|
|
||||||
.choices__list--dropdown .choices__item--selectable.is-highlighted,
|
.choices__list--dropdown .choices__item--selectable.is-highlighted,
|
||||||
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
|
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
|
||||||
background-color: var(--color-base-100)
|
background-color: color-mix(in oklab, var(--color-primary) 10%, var(--color-base-100))
|
||||||
}
|
}
|
||||||
|
|
||||||
.choices__list--dropdown .choices__item--selectable.is-highlighted::after,
|
.choices__list--dropdown .choices__item--selectable.is-highlighted::after,
|
||||||
@@ -473,7 +471,8 @@
|
|||||||
|
|
||||||
.choices__button:focus,
|
.choices__button:focus,
|
||||||
.choices__input:focus {
|
.choices__input:focus {
|
||||||
outline: 0
|
outline: 0;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.choices__input {
|
.choices__input {
|
||||||
|
|||||||
14
uv.lock
generated
14
uv.lock
generated
@@ -318,6 +318,18 @@ honcho = [
|
|||||||
{ name = "honcho" },
|
{ name = "honcho" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "django-waffle"
|
||||||
|
version = "5.0.0"
|
||||||
|
source = { registry = "https://pypi.org/simple" }
|
||||||
|
dependencies = [
|
||||||
|
{ name = "django" },
|
||||||
|
]
|
||||||
|
sdist = { url = "https://files.pythonhosted.org/packages/22/e1/6f533da0d4ac89f427dfd9410e39bfc14ae3a23335ecd549d76be4b2a834/django_waffle-5.0.0.tar.gz", hash = "sha256:62f9d00eedf68dafb82657beab56e601bddedc1ea1ccfef91d83df8658708509", size = 37761, upload-time = "2025-06-12T07:38:54.895Z" }
|
||||||
|
wheels = [
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/7a/d2/6f0d664bd35a3fdd0403655c7c32ec290704923f11541ef356b180cd8fbf/django_waffle-5.0.0-py3-none-any.whl", hash = "sha256:3312851d9d926b76b9e90712355781700a383b82b5bf2b61e1f1be97532c0f3d", size = 48137, upload-time = "2025-06-12T07:38:53.698Z" },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "honcho"
|
name = "honcho"
|
||||||
version = "2.0.0"
|
version = "2.0.0"
|
||||||
@@ -701,6 +713,7 @@ dependencies = [
|
|||||||
{ name = "django-htmx" },
|
{ name = "django-htmx" },
|
||||||
{ name = "django-phonenumber-field", extra = ["phonenumbers"] },
|
{ name = "django-phonenumber-field", extra = ["phonenumbers"] },
|
||||||
{ name = "django-tailwind", extra = ["cookiecutter", "honcho"] },
|
{ name = "django-tailwind", extra = ["cookiecutter", "honcho"] },
|
||||||
|
{ name = "django-waffle" },
|
||||||
{ name = "pillow" },
|
{ name = "pillow" },
|
||||||
{ name = "psycopg2-binary" },
|
{ name = "psycopg2-binary" },
|
||||||
{ name = "python-decouple" },
|
{ name = "python-decouple" },
|
||||||
@@ -723,6 +736,7 @@ requires-dist = [
|
|||||||
{ name = "django-htmx", specifier = ">=1.27.0" },
|
{ name = "django-htmx", specifier = ">=1.27.0" },
|
||||||
{ name = "django-phonenumber-field", extras = ["phonenumbers"], specifier = ">=8.4.0" },
|
{ name = "django-phonenumber-field", extras = ["phonenumbers"], specifier = ">=8.4.0" },
|
||||||
{ name = "django-tailwind", extras = ["cookiecutter", "honcho"], specifier = ">=4.4.2" },
|
{ name = "django-tailwind", extras = ["cookiecutter", "honcho"], specifier = ">=4.4.2" },
|
||||||
|
{ name = "django-waffle", specifier = ">=5.0.0" },
|
||||||
{ name = "pillow", specifier = ">=12.1.0" },
|
{ name = "pillow", specifier = ">=12.1.0" },
|
||||||
{ name = "psycopg2-binary", specifier = ">=2.9.11" },
|
{ name = "psycopg2-binary", specifier = ">=2.9.11" },
|
||||||
{ name = "python-decouple", specifier = ">=3.8" },
|
{ name = "python-decouple", specifier = ">=3.8" },
|
||||||
|
|||||||
Reference in New Issue
Block a user