From b1dfbb0c245e7a08e4cc00fcf1e41fef152c184e Mon Sep 17 00:00:00 2001 From: alaric Date: Tue, 7 May 2019 16:57:54 +0200 Subject: [PATCH] fix #3 --- admin_styles/static/admin_styles/css/styles.css | 2 +- admin_styles/static/admin_styles/scss/base/_forms.scss | 3 +++ testproject/testapp/admin.py | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/admin_styles/static/admin_styles/css/styles.css b/admin_styles/static/admin_styles/css/styles.css index 9e2d222..944b03b 100644 --- a/admin_styles/static/admin_styles/css/styles.css +++ b/admin_styles/static/admin_styles/css/styles.css @@ -1 +1 @@ -html,body{height:100%;background-color:#f4f4f4}.admin-styles a:link,.admin-styles a:visited{color:#0bf}.admin-styles #container{padding:56px 0;background-color:#f4f4f4}.admin-styles #header{z-index:3;position:fixed;top:0;left:0;box-sizing:border-box;width:100%;height:56px;padding:10px 20px;color:#222;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,0.5)}.admin-styles #header a:link,.admin-styles #header a:visited{color:#444}.admin-styles #branding{float:none}.admin-styles #branding h1{color:#fff;font-size:20px;line-height:1}.admin-styles #branding a{position:relative;display:block;color:#fff}.admin-styles #branding a:after{content:'';position:absolute;left:0;top:0;display:block;width:100%;height:100%}.admin-styles #branding svg{display:block;width:80px;margin-top:2px}.admin-styles #branding path{fill:#333}.admin-styles #user-tools{position:absolute;right:40px;top:20px;font-size:13px;font-weight:normal;line-height:1}.admin-styles #user-tools a:link,.admin-styles #user-tools a:visited{border-bottom-color:transparent}.admin-styles #user-tools a:focus,.admin-styles #user-tools a:hover{border-bottom-color:#fff}.admin-styles .breadcrumbs{position:relative;z-index:2;margin:0;padding:10px 20px;color:#222;font-weight:bold;background-color:#f4f4f4;border-bottom:1px solid #ddd}.admin-styles .breadcrumbs a{font-weight:normal}.admin-styles .breadcrumbs a:focus,.admin-styles .breadcrumbs a:hover{color:#333;border-bottom:1px solid #333}.admin-styles .messagelist{z-index:3;position:relative;box-sizing:border-box}.admin-styles .messagelist li{margin:0;padding-left:40px;font-size:15px;background-position:15px 13px}.admin-styles .messagelist .success{margin:-1px 0;border-bottom:1px solid #70bf2b;border-top:1px solid #70bf2b}.admin-styles #content{padding:20px}.admin-styles #content-main{position:relative;display:flex;flex-flow:wrap}.admin-styles #content-main form,.admin-styles #content-main>.module{width:100%}.admin-styles .object-tools{position:absolute;right:0;top:-48px;margin:0}.admin-styles .object-tools a:focus,.admin-styles .object-tools a:hover{background-color:#417690}.admin-styles .module h2,.admin-styles .module caption,.admin-styles .inline-group h2{box-sizing:border-box;color:#333;font-weight:bold;background-color:#ddd}.admin-styles .module{display:block;box-sizing:border-box;width:100%;overflow:hidden;background:#f4f4f4}.admin-styles .help,.admin-styles p.help,.admin-styles form p.help,.admin-styles div.help,.admin-styles form div.help,.admin-styles div.help li{margin-top:4px;font-size:12px}.admin-styles .timezonewarning{font-size:12px}.admin-styles .button.default,.admin-styles input[type=submit].default,.admin-styles .submit-row input.default{background:#417690}.admin-styles .button,.admin-styles input[type="submit"],.admin-styles input[type="button"],.admin-styles a.button{padding:10px 15px;color:#666;line-height:1;border:1px solid #ddd;border-radius:3px;background:#fff}.admin-styles .button:hover,.admin-styles input[type="submit"]:hover,.admin-styles input[type="button"]:hover,.admin-styles a.button:hover{background-color:#f2f2f2}.admin-styles input[type="submit"].default{color:#fff;line-height:1;border:1px solid #0bf;background-color:#0bf}.admin-styles input[type="submit"].default:hover{border-color:#00aded;background-color:#00aded}.admin-styles a.deletelink{color:#fff;line-height:1;border-radius:3px}.admin-styles .object-tools a:link,.admin-styles .object-tools a:visited{color:#fff;border:1px solid #0bf;border-radius:3px;background-color:#0bf}.admin-styles .object-tools a:hover{border-color:#00aded;background-color:#00aded}.admin-styles #changelist-filter li.selected a{color:#111;font-weight:bold}.admin-styles input[type="text"]:focus,.admin-styles input[type="password"]:focus,.admin-styles input[type="email"]:focus,.admin-styles input[type="url"]:focus,.admin-styles input[type="number"]:focus,.admin-styles input[type="tel"]:focus,.admin-styles textarea:focus,.admin-styles select:focus,.admin-styles .vTextField:focus{border-color:#0bf}.admin-styles label{color:#333}.admin-styles form td,.admin-styles form th{vertical-align:middle}.admin-styles form label{display:block;float:none;width:auto;box-sizing:border-box;padding:4px 0}.admin-styles form label+p,.admin-styles form label+div.help,.admin-styles form label+div.readonly,.admin-styles form input+p.help,.admin-styles form input+div.help,.admin-styles form select+p.help,.admin-styles form select+div.help,.admin-styles form textarea+p.help,.admin-styles form textarea+div.help{margin-left:0;padding-left:0}.admin-styles form input[type="text"],.admin-styles form input[type="password"],.admin-styles form input[type="email"],.admin-styles form input[type="url"],.admin-styles form input[type="number"],.admin-styles form input[type="tel"],.admin-styles form textarea,.admin-styles form select{box-sizing:border-box;border-radius:0;background-color:#fff}.admin-styles form .aligned p.help,.admin-styles form .aligned div.help{margin-left:0;padding-left:0;color:#999}.admin-styles form .aligned input{margin-left:0}.admin-styles form .aligned ul{margin-left:0;padding-left:0}.admin-styles fieldset.module input[type="text"],.admin-styles fieldset.module input[type="password"],.admin-styles fieldset.module input[type="email"],.admin-styles fieldset.module input[type="url"],.admin-styles fieldset.module input[type="number"],.admin-styles fieldset.module input[type="tel"],.admin-styles fieldset.module textarea,.admin-styles fieldset.module select,.admin-styles fieldset.module .vTextField,.admin-styles fieldset.module .vLargeTextField,.admin-styles fieldset.module .colM .aligned .vLargeTextField,.admin-styles fieldset.module .colM .aligned .vXMLLargeTextField{box-sizing:border-box;width:100%}.admin-styles fieldset.module input.vDateField,.admin-styles fieldset.module input.vTimeField{width:120px;margin-right:0;margin-bottom:4px}.admin-styles fieldset.collapsed{border:0;border-radius:0}.admin-styles .errornote{padding:10px;border-radius:0;border:0;background-color:#faf0f0}.admin-styles .form-row{box-sizing:border-box;padding:10px 0;border-bottom:1px solid #ccc}.admin-styles .form-row.errors{margin:0 0 4px;background-color:#faf0f0;border-bottom:1px solid #faf0f0}.admin-styles .form-row.errors .errorlist{background-color:transparent}.admin-styles .form-row.errors .errorlist li{padding:2px 0}.admin-styles .aligned .form-row>div{display:block;width:100%}.admin-styles .paginator,.admin-styles.change-form .submit-row{position:fixed;left:0;bottom:0;box-sizing:border-box;width:100%;margin:0;padding:12px 20px;background-color:#fff;border:0;border-top:1px solid #ddd;border-radius:0;box-shadow:0 -10px 10px #f4f4f4}.admin-styles .filtered .paginator{width:100%;margin:0}.admin-styles .calendarbox,.admin-styles .clockbox{width:auto}.admin-styles .calendar td a:active,.admin-styles .timelist a:active{color:white;background:#417690}.admin-styles .calendar-shortcuts,.admin-styles span.datetimeshortcuts{display:inline-block;vertical-align:middle;font-size:0}.admin-styles .calendar-shortcuts a,.admin-styles span.datetimeshortcuts a{display:inline-block;box-sizing:border-box;height:30px;min-width:36px;margin:0 0 4px 6px;padding:4px 6px;color:#666;font-size:13px;line-height:20px;text-align:center;border:1px solid #ddd;border-radius:3px;background-color:#fff}.admin-styles .calendar-shortcuts a:hover,.admin-styles span.datetimeshortcuts a:hover{color:#000;background-color:#f9f9f9}.admin-styles .datetime .timezonewarning{color:#999}.admin-styles .datetime .datetime-label{display:inline-block;vertical-align:middle;min-width:60px;color:#666;font-size:13px;font-weight:bold}.admin-styles .related-widget-wrapper{display:flex;flex-wrap:wrap;float:none}.admin-styles .related-widget-wrapper>select{width:calc(100% - 126px)}.admin-styles .related-widget-wrapper ul{width:100%;margin:0}.admin-styles .related-widget-wrapper .add-related,.admin-styles .related-widget-wrapper .delete-related,.admin-styles .related-widget-wrapper .change-related{display:block;box-sizing:border-box;width:24px;height:24px;margin:6px 10px 6px 0;padding:5px;line-height:1;text-align:center;border:1px solid #ddd;border-radius:3px}.admin-styles .related-widget-wrapper .add-related img,.admin-styles .related-widget-wrapper .delete-related img,.admin-styles .related-widget-wrapper .change-related img{display:block;width:13px}.admin-styles .related-widget-wrapper .add-related{border-color:#5da03d}.admin-styles .related-widget-wrapper .delete-related{border-color:#dd4646}.admin-styles .related-widget-wrapper .change-related{border-color:#0bf}.admin-styles .related-widget-wrapper .selector{display:flex;align-items:center;width:100%}.admin-styles .related-widget-wrapper .selector .selector-available,.admin-styles .related-widget-wrapper .selector .selector-chooser,.admin-styles .related-widget-wrapper .selector .selector-chosen{float:none}.admin-styles .related-widget-wrapper .selector .selector-available,.admin-styles .related-widget-wrapper .selector .selector-chosen{width:calc(50% - 16px)}.admin-styles .related-widget-wrapper .selector .selector-chooser{width:22px;margin:0 5px}.admin-styles .related-widget-wrapper .selector .selector-filter{display:flex;box-sizing:border-box;align-items:center;min-height:50px}.admin-styles .related-widget-wrapper .selector .selector-filter label{float:none;margin:0 10px 0 0}.admin-styles .related-widget-wrapper .selector select{height:300px}.admin-styles .related-widget-wrapper .selector .selector-chosen select{min-height:350px}.admin-styles .related-widget-wrapper .selector select{padding:0}.admin-styles .related-widget-wrapper .selector option{padding:4px}.admin-styles .related-widget-wrapper .selector.stacked{flex-direction:column}.admin-styles .related-widget-wrapper .selector.stacked .selector-available,.admin-styles .related-widget-wrapper .selector.stacked .selector-chosen{width:100%}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser{display:flex;justify-content:center;width:auto;margin:0 0 10px}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser li{float:none}.admin-styles.popup #container{padding-top:40px}.admin-styles.popup #content>h1{z-index:3;position:fixed;left:0;top:0;box-sizing:border-box;width:100%;height:50px;padding:10px 20px;color:#222;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,0.5)}@media (max-width: 1024px){.admin-styles #header{flex-direction:row;flex-wrap:nowrap}.admin-styles #branding h1{margin:0}.admin-styles textarea{max-width:100%;max-height:100000000000vh}.admin-styles .related-widget-wrapper .selector .selector-chooser{width:26px}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser{margin:10px 0}.admin-styles .form-row input[type="text"],.admin-styles .form-row input[type="password"],.admin-styles .form-row input[type="email"],.admin-styles .form-row input[type="url"],.admin-styles .form-row input[type="tel"],.admin-styles .form-row input[type="number"],.admin-styles .form-row textarea,.admin-styles .form-row select,.admin-styles .form-row .vTextField{min-height:20px;padding:5px 6px;font-size:13px}.admin-styles .aligned .add-another,.admin-styles .aligned .related-lookup,.admin-styles .aligned .datetimeshortcuts,.admin-styles .aligned .related-lookup+strong{align-self:center;margin-left:0}}@media (max-width: 767px){.admin-styles #container{padding-bottom:210px}} +html,body{height:100%;background-color:#f4f4f4}.admin-styles a:link,.admin-styles a:visited{color:#0bf}.admin-styles #container{padding:56px 0;background-color:#f4f4f4}.admin-styles #header{z-index:3;position:fixed;top:0;left:0;box-sizing:border-box;width:100%;height:56px;padding:10px 20px;color:#222;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,0.5)}.admin-styles #header a:link,.admin-styles #header a:visited{color:#444}.admin-styles #branding{float:none}.admin-styles #branding h1{color:#fff;font-size:20px;line-height:1}.admin-styles #branding a{position:relative;display:block;color:#fff}.admin-styles #branding a:after{content:'';position:absolute;left:0;top:0;display:block;width:100%;height:100%}.admin-styles #branding svg{display:block;width:80px;margin-top:2px}.admin-styles #branding path{fill:#333}.admin-styles #user-tools{position:absolute;right:40px;top:20px;font-size:13px;font-weight:normal;line-height:1}.admin-styles #user-tools a:link,.admin-styles #user-tools a:visited{border-bottom-color:transparent}.admin-styles #user-tools a:focus,.admin-styles #user-tools a:hover{border-bottom-color:#fff}.admin-styles .breadcrumbs{position:relative;z-index:2;margin:0;padding:10px 20px;color:#222;font-weight:bold;background-color:#f4f4f4;border-bottom:1px solid #ddd}.admin-styles .breadcrumbs a{font-weight:normal}.admin-styles .breadcrumbs a:focus,.admin-styles .breadcrumbs a:hover{color:#333;border-bottom:1px solid #333}.admin-styles .messagelist{z-index:3;position:relative;box-sizing:border-box}.admin-styles .messagelist li{margin:0;padding-left:40px;font-size:15px;background-position:15px 13px}.admin-styles .messagelist .success{margin:-1px 0;border-bottom:1px solid #70bf2b;border-top:1px solid #70bf2b}.admin-styles #content{padding:20px}.admin-styles #content-main{position:relative;display:flex;flex-flow:wrap}.admin-styles #content-main form,.admin-styles #content-main>.module{width:100%}.admin-styles .object-tools{position:absolute;right:0;top:-48px;margin:0}.admin-styles .object-tools a:focus,.admin-styles .object-tools a:hover{background-color:#417690}.admin-styles .module h2,.admin-styles .module caption,.admin-styles .inline-group h2{box-sizing:border-box;color:#333;font-weight:bold;background-color:#ddd}.admin-styles .module{display:block;box-sizing:border-box;width:100%;overflow:hidden;background:#f4f4f4}.admin-styles .help,.admin-styles p.help,.admin-styles form p.help,.admin-styles div.help,.admin-styles form div.help,.admin-styles div.help li{margin-top:4px;font-size:12px}.admin-styles .timezonewarning{font-size:12px}.admin-styles .button.default,.admin-styles input[type=submit].default,.admin-styles .submit-row input.default{background:#417690}.admin-styles .button,.admin-styles input[type="submit"],.admin-styles input[type="button"],.admin-styles a.button{padding:10px 15px;color:#666;line-height:1;border:1px solid #ddd;border-radius:3px;background:#fff}.admin-styles .button:hover,.admin-styles input[type="submit"]:hover,.admin-styles input[type="button"]:hover,.admin-styles a.button:hover{background-color:#f2f2f2}.admin-styles input[type="submit"].default{color:#fff;line-height:1;border:1px solid #0bf;background-color:#0bf}.admin-styles input[type="submit"].default:hover{border-color:#00aded;background-color:#00aded}.admin-styles a.deletelink{color:#fff;line-height:1;border-radius:3px}.admin-styles .object-tools a:link,.admin-styles .object-tools a:visited{color:#fff;border:1px solid #0bf;border-radius:3px;background-color:#0bf}.admin-styles .object-tools a:hover{border-color:#00aded;background-color:#00aded}.admin-styles #changelist-filter li.selected a{color:#111;font-weight:bold}.admin-styles input[type="text"]:focus,.admin-styles input[type="password"]:focus,.admin-styles input[type="email"]:focus,.admin-styles input[type="url"]:focus,.admin-styles input[type="number"]:focus,.admin-styles input[type="tel"]:focus,.admin-styles textarea:focus,.admin-styles select:focus,.admin-styles .vTextField:focus{border-color:#0bf}.admin-styles label{color:#333}.admin-styles form td,.admin-styles form th{vertical-align:middle}.admin-styles form label{display:block;float:none;width:auto;box-sizing:border-box;padding:4px 0}.admin-styles form label+p,.admin-styles form label+div.help,.admin-styles form label+div.readonly,.admin-styles form input+p.help,.admin-styles form input+div.help,.admin-styles form select+p.help,.admin-styles form select+div.help,.admin-styles form textarea+p.help,.admin-styles form textarea+div.help{margin-left:0;padding-left:0}.admin-styles form input[type="text"],.admin-styles form input[type="password"],.admin-styles form input[type="email"],.admin-styles form input[type="url"],.admin-styles form input[type="number"],.admin-styles form input[type="tel"],.admin-styles form textarea,.admin-styles form select{box-sizing:border-box;border-radius:0;background-color:#fff}.admin-styles form .aligned p.help,.admin-styles form .aligned div.help{margin-left:0;padding-left:0;color:#999}.admin-styles form .aligned input{margin-left:0}.admin-styles form .aligned ul{margin-left:0;padding-left:0}.admin-styles fieldset.module input[type="text"],.admin-styles fieldset.module input[type="password"],.admin-styles fieldset.module input[type="email"],.admin-styles fieldset.module input[type="url"],.admin-styles fieldset.module input[type="number"],.admin-styles fieldset.module input[type="tel"],.admin-styles fieldset.module textarea,.admin-styles fieldset.module select,.admin-styles fieldset.module .vTextField,.admin-styles fieldset.module .vLargeTextField,.admin-styles fieldset.module .colM .aligned .vLargeTextField,.admin-styles fieldset.module .colM .aligned .vXMLLargeTextField{box-sizing:border-box;width:100%}.admin-styles fieldset.module input.vDateField,.admin-styles fieldset.module input.vTimeField{width:120px;margin-right:0;margin-bottom:4px}.admin-styles fieldset.collapsed{border:0;border-radius:0}.admin-styles .errornote{padding:10px;border-radius:0;border:0;background-color:#faf0f0}.admin-styles .form-row{box-sizing:border-box;padding:10px 0;border-bottom:1px solid #ccc}.admin-styles .form-row.errors{margin:0 0 4px;background-color:#faf0f0;border-bottom:1px solid #faf0f0}.admin-styles .form-row.errors .errorlist{background-color:transparent}.admin-styles .form-row.errors .errorlist li{padding:2px 0}.admin-styles .aligned .form-row>div{display:block;width:100%}.admin-styles .aligned .form-row>.fieldBox{width:auto}.admin-styles .paginator,.admin-styles.change-form .submit-row{position:fixed;left:0;bottom:0;box-sizing:border-box;width:100%;margin:0;padding:12px 20px;background-color:#fff;border:0;border-top:1px solid #ddd;border-radius:0;box-shadow:0 -10px 10px #f4f4f4}.admin-styles .filtered .paginator{width:100%;margin:0}.admin-styles .calendarbox,.admin-styles .clockbox{width:auto}.admin-styles .calendar td a:active,.admin-styles .timelist a:active{color:white;background:#417690}.admin-styles .calendar-shortcuts,.admin-styles span.datetimeshortcuts{display:inline-block;vertical-align:middle;font-size:0}.admin-styles .calendar-shortcuts a,.admin-styles span.datetimeshortcuts a{display:inline-block;box-sizing:border-box;height:30px;min-width:36px;margin:0 0 4px 6px;padding:4px 6px;color:#666;font-size:13px;line-height:20px;text-align:center;border:1px solid #ddd;border-radius:3px;background-color:#fff}.admin-styles .calendar-shortcuts a:hover,.admin-styles span.datetimeshortcuts a:hover{color:#000;background-color:#f9f9f9}.admin-styles .datetime .timezonewarning{color:#999}.admin-styles .datetime .datetime-label{display:inline-block;vertical-align:middle;min-width:60px;color:#666;font-size:13px;font-weight:bold}.admin-styles .related-widget-wrapper{display:flex;flex-wrap:wrap;float:none}.admin-styles .related-widget-wrapper>select{width:calc(100% - 126px)}.admin-styles .related-widget-wrapper ul{width:100%;margin:0}.admin-styles .related-widget-wrapper .add-related,.admin-styles .related-widget-wrapper .delete-related,.admin-styles .related-widget-wrapper .change-related{display:block;box-sizing:border-box;width:24px;height:24px;margin:6px 10px 6px 0;padding:5px;line-height:1;text-align:center;border:1px solid #ddd;border-radius:3px}.admin-styles .related-widget-wrapper .add-related img,.admin-styles .related-widget-wrapper .delete-related img,.admin-styles .related-widget-wrapper .change-related img{display:block;width:13px}.admin-styles .related-widget-wrapper .add-related{border-color:#5da03d}.admin-styles .related-widget-wrapper .delete-related{border-color:#dd4646}.admin-styles .related-widget-wrapper .change-related{border-color:#0bf}.admin-styles .related-widget-wrapper .selector{display:flex;align-items:center;width:100%}.admin-styles .related-widget-wrapper .selector .selector-available,.admin-styles .related-widget-wrapper .selector .selector-chooser,.admin-styles .related-widget-wrapper .selector .selector-chosen{float:none}.admin-styles .related-widget-wrapper .selector .selector-available,.admin-styles .related-widget-wrapper .selector .selector-chosen{width:calc(50% - 16px)}.admin-styles .related-widget-wrapper .selector .selector-chooser{width:22px;margin:0 5px}.admin-styles .related-widget-wrapper .selector .selector-filter{display:flex;box-sizing:border-box;align-items:center;min-height:50px}.admin-styles .related-widget-wrapper .selector .selector-filter label{float:none;margin:0 10px 0 0}.admin-styles .related-widget-wrapper .selector select{height:300px}.admin-styles .related-widget-wrapper .selector .selector-chosen select{min-height:350px}.admin-styles .related-widget-wrapper .selector select{padding:0}.admin-styles .related-widget-wrapper .selector option{padding:4px}.admin-styles .related-widget-wrapper .selector.stacked{flex-direction:column}.admin-styles .related-widget-wrapper .selector.stacked .selector-available,.admin-styles .related-widget-wrapper .selector.stacked .selector-chosen{width:100%}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser{display:flex;justify-content:center;width:auto;margin:0 0 10px}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser li{float:none}.admin-styles.popup #container{padding-top:40px}.admin-styles.popup #content>h1{z-index:3;position:fixed;left:0;top:0;box-sizing:border-box;width:100%;height:50px;padding:10px 20px;color:#222;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,0.5)}@media (max-width: 1024px){.admin-styles #header{flex-direction:row;flex-wrap:nowrap}.admin-styles #branding h1{margin:0}.admin-styles textarea{max-width:100%;max-height:100000000000vh}.admin-styles .related-widget-wrapper .selector .selector-chooser{width:26px}.admin-styles .related-widget-wrapper .selector.stacked .selector-chooser{margin:10px 0}.admin-styles .form-row input[type="text"],.admin-styles .form-row input[type="password"],.admin-styles .form-row input[type="email"],.admin-styles .form-row input[type="url"],.admin-styles .form-row input[type="tel"],.admin-styles .form-row input[type="number"],.admin-styles .form-row textarea,.admin-styles .form-row select,.admin-styles .form-row .vTextField{min-height:20px;padding:5px 6px;font-size:13px}.admin-styles .aligned .add-another,.admin-styles .aligned .related-lookup,.admin-styles .aligned .datetimeshortcuts,.admin-styles .aligned .related-lookup+strong{align-self:center;margin-left:0}}@media (max-width: 767px){.admin-styles #container{padding-bottom:210px}} diff --git a/admin_styles/static/admin_styles/scss/base/_forms.scss b/admin_styles/static/admin_styles/scss/base/_forms.scss index 0f2921f..013bfa5 100644 --- a/admin_styles/static/admin_styles/scss/base/_forms.scss +++ b/admin_styles/static/admin_styles/scss/base/_forms.scss @@ -137,6 +137,9 @@ fieldset.collapsed { width: 100%; } +.aligned .form-row > .fieldBox { + width: auto; +} .paginator, &.change-form .submit-row { diff --git a/testproject/testapp/admin.py b/testproject/testapp/admin.py index 9bbe6c1..41a2998 100644 --- a/testproject/testapp/admin.py +++ b/testproject/testapp/admin.py @@ -74,8 +74,10 @@ class AdminStylesTestAdmin(admin.ModelAdmin): 'integer', 'ipaddress', 'text', - 'time', - 'url', + ( + 'time', + 'url', + ) ] }), ('File', {