diff --git a/django/library/forms.py b/django/library/forms.py index f455876..95b3c40 100644 --- a/django/library/forms.py +++ b/django/library/forms.py @@ -10,8 +10,9 @@ class QuizForm(forms.ModelForm): super(QuizForm, self).__init__(*args, **kwargs) for field in self.fields.values(): field.widget.attrs.update({ - 'class': 'dark:bg-[#2a2f3a]! dark:text-white' + 'class': 'dark:bg-[#2a2f3a]! dark:text-white!' }) + class QuestionForm(forms.ModelForm): diff --git a/django/static/css/t-input.css b/django/static/css/t-input.css index 666e567..bc9d632 100644 --- a/django/static/css/t-input.css +++ b/django/static/css/t-input.css @@ -3,6 +3,9 @@ qp-container { @apply max-w-xl w-full mx-auto; } +.dark-form label { + @apply dark:text-white!; +} nav div ul.qp-nav-list li { @apply text-white hover:scale-110 hover:border-b-2 hover:border-white transition duration-200; diff --git a/django/templates/library/form.html b/django/templates/library/form.html index 8ea57b9..78c547c 100644 --- a/django/templates/library/form.html +++ b/django/templates/library/form.html @@ -2,14 +2,12 @@ {% block content %} - + + +