summaryrefslogtreecommitdiff
path: root/django/contrib/admin/static
AgeCommit message (Collapse)Author
2021-03-10[3.2.x] Fixed #32512 -- Fixed admin dark theme for autocomplete fields.mimi89999
Backport of 0df5c8187a9fa9828824ec2b1fdf37d1082d7ebe from main
2021-03-09[3.2.x] Refs #32018 -- Corrected color variable for toggle links in admin.Mariusz Felisiak
Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2. Backport of 6f5dbe9dbe45b23b3befe4f1cd2ea13b6049ab96 from main
2021-03-09[3.2.x] Refs #32018 -- Used --darkened-bg for <pre> elements.Mariusz Felisiak
Backport of 781acf0987d80b638057ed1203409e3a19944e3b from main
2021-01-28[3.2.x] Fixed #32391 -- Used CSS flex properties for changelist filter.Denis Skulimovskiy
Matched layout adjustment using flex from admin sidebar added in d24ba1be7a53a113d19e2860c03aff9922efec24. Filters would become squashed when viewport was constrained or list display table became too wide. Backport of 269a76714616fd7ad166a14113f3354bab8d9b65 from master
2021-01-20[3.2.x] Refs #31259 -- Made various dark theme adjustments.Tom Carrick
Backport of f054468cac325e8d8fa4d5934b939b93242a3730 from master
2021-01-14Refs #31259 -- Improved some color contrasts for admin dark theme.Matthias Kestenholz
2021-01-14Fixed #31259 -- Added admin dark theme.mimi89999
2021-01-12Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron
autocomplete fields. * Fixed #29010 -- Added limit_choices_to support to autocomplete fields. * Fixed #29138 -- Allowed autocomplete fields to target a custom to_field rather than the PK.
2021-01-12Refs #32018 -- Corrected color variables for paginator and header links in ↵Michel Le Bihan
admin. Follow up to cd3019bc106eed27b2f97776e4dd9ec7cbac29b2.
2021-01-11Refs #32018 -- Used --header-link-color for header links in admin.Michel Le Bihan
2021-01-07Fixed #32018 -- Extracted admin colors into CSS variables.Matthias Kestenholz
Defined all colors used in the admin CSS as variables. Implemented the following standardizations and accessibility improvements while at it: - Improved the contrast of text to not use ratios of less than 3:1 anymore. - Most hover states already used desaturated and darkened colors. Changed object tools to follow the same rule instead of showing the primary color on hover. Various places used similar colors; those have been merged with the goal of reducing the count of CSS variables. Contrasts have been improved in a few places. - Many borders used slightly different colors (e.g. #eaeaea vs. #eee) - Help texts used #999, this has been changed to --body-quiet-color (#666) which has a better contrast. Introduced fast color transitions on links and buttons.
2021-01-06Fixed #32322 -- Fixed autocomplete widget wrapping.Viktor Grabov
2020-10-28Fixed #32062 -- Added %b support to Date.strftime.Gagan Deep
This enables the admin to display the month as locale's abbreviated name if %b is used in the date format.
2020-10-27Fixed #32127 -- Fixed admin change-form textarea layout for mid-sized displays.Josh Santos
2020-10-21Fixed #32069 -- Fixed admin change-form layout on small screens.Carlton Gibson
Restored flex-wrap CSS declaration to form elements at smallest breakpoint. This was present since the responsive admin was introduced in dc37e8846eeedc3a9100ca21fdc9d579bc534c89. Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822, where it was accidentally removed.
2020-10-09Fixed #32091 -- Fixed admin search bar width on filtered admin page.Tim Schilling
2020-10-06Fixed #32072 -- Fixed admin search bar height.Tom Carrick
Thanks şuayip üzülmez for the report. Regression in 8ee4bb6ffcb3346c0fa8fb194986fbf9edadc822.
2020-09-30Fixed #31986 -- Fixed admin filter sidebar scrolling.Tom Carrick
Regression in 2bc38bc7cae002f949157d95e3f0c19ea6b8ca5c. Thanks haki for the report.
2020-09-23Fixed #32029 -- Removed unnecessary margin in admin CSS for horizontal radio ↵Matthias Kestenholz
inputs.
2020-09-23Fixed #32027 -- Fixed wrapping of long words in admin error messages.Matthias Kestenholz
2020-09-01Fixed #31901 -- Prevented content overflowing in the admin changelist with ↵007gzs
navigation sidebar.
2020-08-05Fixed #31854 -- Fixed wrapping of long model names in admin's sidebar.Mariusz Felisiak
2020-08-05Fixed #31853 -- Fixed wrapping of translated action labels in admin sidebar.007gzs
2020-07-04Simplified <body> element references in DateTimeShortcuts.js.Jon Dufresne
2020-07-01Fixed #31522 -- Made admin's SelectBox preserve scroll position.tapan gujjar
2020-07-01Made JavaScript URL manipulation more robust with URL and URLSearchParams.Jon Dufresne
Use the rich interface and native parsing provided by the browser rather than raw string manipulation. https://developer.mozilla.org/en-US/docs/Web/API/URL https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
2020-07-01Simplified JavaScript with Array.prototype.includes().Jon Dufresne
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
2020-06-26Fixed the centering of the "Log in" button on admin login page.Jon Dufresne
Previously, the button's container had a padding of 9.4em which was approximately center but not precisely. Now, the container uses 'align:text-center' to let the browser center the button.
2020-06-25Simplified label element CSS in admin login.css.Jon Dufresne
Don't add horizontal padding as the label is always displayed on its own line. This padding added no visual difference. Move the 'display: block' property from responsive.css to base.css. The label is already displayed on its own line in all viewports, so reduce differences in rendering. Using block also allows the label to consume the width of its container, creating a larger clickable area for a slight a11y improvement.
2020-06-25Removed unnecessary admin CSS.Jon Dufresne
The "object-tools" container is never rendered as a descendant of .form-row. The "golink" CSS class is unused. A <label> element has not been included in the login .submit-row since 5869afe32b9c252cacd327f18c58e38c36d1f530. The "help" CSS class from login.css has been unused since 0e5faf225c5cd1acf2ab653c74f5b161470403b9. The <label> color in login.css is already inherited from the <body> element and so does not need to be re-specified. The #content-main container already has the property 'width: 100%' from base.css and so does not need to be re-specified in login.css. The <td> and <th> font-family property is inherited from the <body> element and so does not need to be re-specified. The <html> element has the attribute dir which automatically sets the text direction in the layout. Adding the direction CSS property was necessary to support IE which does not support the dir attribute, but IE is no longer supported, so drop the direction property. The 'font-size: 1em' property re-specifies the same font size. It creates no visual difference. The 'font-size: 14px' property often re-specifies the inherited value. Avoid re-specifying it.
2020-06-24Fixed #31523 -- Removed jQuery dependency from actions.js.Jon Dufresne
2020-05-28Refs #31034 -- Improved accessibility of admin navigation sidebar.Tom Carrick
2020-05-27Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields.Scott Cranfill
Co-Authored-By: Andy Chosak <andy@chosak.org>
2020-05-18Refs #31034 -- Used === in nav_sidebar.js admin JS to avoid possible ↵Jon Dufresne
coercion issues.
2020-05-14Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne
2020-05-13Removed unused Downcoder.chars.Jon Dufresne
Unused -- other than as a local variable -- since its introduction in 953badbea5a04159adbfa970f5805c0232b6a401
2020-05-11Fixed #31034 -- Added a navigation sidebar to the admin.Tom Carrick
Co-authored-by: elky <elky@users.noreply.github.com> Co-authored-by: Goetz <goetz.buerkle@gmail.com>
2020-05-08Changed selected attribute to HTML5 boolean syntax in SelectBox.js.Jon Dufresne
Per MDN, HTMLOptionElement.selected is a Boolean attribute.
2020-05-07Fixed #31542 -- Simplified admin JavaScript with "for … of" statements.Jon Dufresne
2020-05-05Updated admin's Select2 to 4.0.13.Mariusz Felisiak
2020-05-05Fixed #31485 -- Updated admin's jQuery to 3.5.1.Mariusz Felisiak
2020-05-05Removed invalid value from admin CSS.Jon Dufresne
The keyword value 'none' is not a valid value for padding-bottom.
2020-05-01Removed unused CSS in admin.Jon Dufresne
.system-message, .system-message-title are unused since their introduction in ce0d0cd9e2cd5ac9850d825f28db39b1e123ac1e. .float-right, .float-left, .align-left, .align-right, and .example are unused since 6eb4f2569266391e223410ab7eaa2555ac0a4f10.
2020-05-01Removed CSS workarounds for IE7 in admin.Jon Dufresne
2020-05-01Refs #31032 -- Removed unnecessary vendor prefixes from admin CSS.Jon Dufresne
The CSS properties have been standardized and are available in all supported browsers.
2020-04-29Removed unnecessary &nbsp; entities from the admin.Jon Dufresne
Normal spaces are fine when used as a single spaced separation. For larger spacing, CSS is used.
2020-04-29Refs #31493 -- Changed IIFE to ES6 blocks.Jon Dufresne
2020-04-29Fixed #31493 -- Replaced var with const and let keywords in JavaScript.Jon Dufresne
The eslint configuration and the admin script compress.py have been updated for ES6. The unused fallback of globals.django in jquery.init.js was removed. It is always included before jsi18n-mocks.test.js and it always sets the global value.
2020-04-29Refs #30400 -- Improved typography of user facing strings in admin changelist.Jon Dufresne
2020-04-22Fixed #31483 -- Rewrote change_form.js without jQuery.Jon Dufresne
The use of $(document).ready() was removed. The script is loaded at the end of the document. Therefore, the referenced DOM elements are already available and the script does not need to wait for the full DOM to be ready before continuing. Now that the script has no external dependencies, it can be loaded asynchronously. As such, the async attribute was added to the script element.