Update frontend to dark obsidian theme
This commit is contained in:
+4
-3
@@ -9,7 +9,7 @@ class AnswersForm(forms.Form):
|
||||
label='Ответ:',
|
||||
required=False,
|
||||
widget=forms.Textarea(attrs={
|
||||
'class': 'w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500',
|
||||
'class': 'w-full px-4 py-3 bg-obsidian-base border border-obsidian-border rounded-lg text-white placeholder-txt-faint focus:outline-none focus:ring-2 focus:ring-accent-blue/30 focus:border-accent-blue transition-colors font-mono text-sm',
|
||||
'rows': 3,
|
||||
'placeholder': 'Введите ваш ответ здесь...'
|
||||
})
|
||||
@@ -21,7 +21,8 @@ class AnswersForm(forms.Form):
|
||||
self.fields[f'answer_{q.id}_r{i}_c{j}'] = forms.CharField(
|
||||
required=False,
|
||||
widget=forms.TextInput(attrs={
|
||||
'class': 'w-full px-2 py-1 border rounded focus:outline-none focus:ring-1 focus:ring-blue-500',
|
||||
'class': 'w-full px-3 py-2 bg-transparent border-0 focus:ring-0 text-white font-mono text-sm',
|
||||
'placeholder': '...'
|
||||
})
|
||||
)
|
||||
else:
|
||||
@@ -29,7 +30,7 @@ class AnswersForm(forms.Form):
|
||||
label='Прикрепить файл:',
|
||||
required=False,
|
||||
widget=forms.ClearableFileInput(attrs={
|
||||
'class': 'block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-blue-50 file:text-blue-700 hover:file:bg-blue-100'
|
||||
'class': 'block w-full text-sm text-txt-secondary file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-obsidian-border file:text-white hover:file:bg-obsidian-borderLight transition-colors cursor-pointer'
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user