Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Admin: improved style of config textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Dec 18, 2015
1 parent 8465498 commit 3016a2e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions django_netjsonconfig/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class TemplateAdmin(TimeStampedEditableAdmin):
list_filter = ('created',)
search_fields = ('name',)

class Media:
css = {'all': ('css/admin/django-netjsonconfig.css',)}


class DeviceForm(forms.ModelForm):
class Meta:
Expand Down
10 changes: 9 additions & 1 deletion django_netjsonconfig/static/css/admin/django-netjsonconfig.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.djnjc-preformatted{
.djnjc-preformatted, .vLargeTextField#id_config{
font-size:1em;
color: #f9f9f9;
overflow: auto;
Expand All @@ -7,3 +7,11 @@
word-wrap: break-word;
padding: 20px;
}

.vLargeTextField#id_config{
font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
min-width: 100%;
min-height: 500px;
box-sizing: border-box;
line-height: 22px;
}

0 comments on commit 3016a2e

Please sign in to comment.