0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 05:02:57 +01:00
Commit Graph

1541 Commits

Author SHA1 Message Date
Thibaud Colas
9e65559d0e Replace u-hidden with Tailwind equivalent with and without !important 2024-01-09 15:42:08 +00:00
Thibaud Colas
27cc553dd8 Remove unused clearfix utility 2024-01-09 15:42:08 +00:00
Thibaud Colas
bfd23e4536 Remove unused divider-before utility 2024-01-09 15:42:08 +00:00
Thibaud Colas
d799f491c4 Replace reordering utility with generic tailwind 2024-01-09 15:42:08 +00:00
Thibaud Colas
5158dd688e Replace overflow utility with Tailwind 2024-01-09 15:42:08 +00:00
Thibaud Colas
38c0557434 Remove unused CSS layers 2024-01-09 15:42:08 +00:00
Thibaud Colas
484428b2d9 Combine o-pill and c-status styles, as they are always used together 2024-01-09 15:42:08 +00:00
Thibaud Colas
22fd74a451 Remove now-unused o-icon styles 2024-01-09 15:42:08 +00:00
Thibaud Colas
7077eb02c9 Move avatar styles from objects to components 2024-01-09 15:42:08 +00:00
Badr Fourane
e25c1bb1a0
Add right-to-left (RTL) support for the caret of select inputs (#11313)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-01-08 16:07:52 +00:00
Matt Westcott
5a524cb90f Add tests for maxlength on RichTextBlock 2024-01-02 19:05:21 +00:00
elhussein almasri
96b5f45fad display-character-count-to-RichTextBlock 2024-01-02 19:05:21 +00:00
Sage Abdullah
d792346752 Move filters to be inside the search form and use AJAX to submit the form
Also make the search form optional. The <form> element may still be
rendered as if there is either the search form or the filters, or both.
2024-01-02 09:00:58 +00:00
Sage Abdullah
a0a0b1343c Don't add padding to first column on report pages
Report pages have styles for .report that adds margins similar to nice-padding
2024-01-02 09:00:58 +00:00
Sage Abdullah
81ea6d6266 Remove nice-padding from documents, users, and generic listing views tables
The added CSS handles the case when nice padding is removed (to make the listing
go full-width) and no bulk actions are available (e.g. a ModelViewSet index view
or some other view that extends generic listing view).

This allows us to not rely on the full-width class (which should
eventually be removed) while correctly apply the spacing regardless
whether nice-padding is used or not, and whether bulk actions are
available or not.

If nice-padding is used, then the listing view will look as they
previously do.
2024-01-02 09:00:58 +00:00
Sage Abdullah
1ad22f530d Enforce bulk action checkbox column via CSS
10px was never the right width.

Using CSS instead of the column's width attribute allows us to use media queries to change the width responsively
2024-01-02 09:00:58 +00:00
Sage Abdullah
28d21bf066 Make styles for header buttons consistent 2024-01-02 09:00:58 +00:00
Sage Abdullah
73f7a1abc4 Use button components pattern for slim header buttons 2024-01-02 09:00:58 +00:00
Sage Abdullah
c900ba6c8e Reduce slim header search bar height to match filter button 2024-01-02 09:00:58 +00:00
Sage Abdullah
8a7dd1f5a1 Don't use legacy header when breadcrumbs are used 2024-01-02 09:00:58 +00:00
Sage Abdullah
3cbf3b4b6a Add sublabel support to breadcrumbs 2024-01-02 09:00:58 +00:00
Sage Abdullah
4407c5b5b0 Improve styles of slim header's search and filters for better vertical alignment 2024-01-02 09:00:58 +00:00
Sage Abdullah
3fbf792621 Use bigger font size for last breadcrumb item by default except on create/edit views
We want to make the slim_header.html as the basis for the modern header
template that will be used everywhere, eventually replacing header.html.

Rather than making the page explorer be the special case where we want
the last item to be bigger, do it the other way around i.e. use the
smaller font size on the create/edit views. This ensures that the big
font size is used on all other views e.g. Inspect view.
2024-01-02 09:00:58 +00:00
Sage Abdullah
f4f08ee2fe Move breadcrumbs styling in _listing.scss to its own _breadcrumbs.scss file 2024-01-02 09:00:58 +00:00
Sage Abdullah
6f92a71253 Move page explorer header's extra spacing to CSS
For better colocation with the CSS that increases the font size
2024-01-02 09:00:58 +00:00
Sage Abdullah
3c5f485201 Introduce get_header_title in WagtailAdminTemplateMixin for <title> and slim header's h1 2024-01-02 09:00:58 +00:00
Sage Abdullah
b0deeab728 Change page listing's add button to icon-only 2024-01-02 09:00:58 +00:00
Thibaud Colas
6cc4533a6f Refactor float usage within admin styles. Fix #8126 2023-12-19 15:38:22 +00:00
Matt Westcott
3c648369b0
Use a floating dialog for filters
Remove use of shared/filters.html, as it contains a duplicate `<form>` element we don't want, and generally has more stuff we don't want than stuff we do, to the point that it'll just get in the way of restyling.
2023-12-18 14:55:18 +00:00
Matt Westcott
4e59266743
Use checkboxes for page type filter 2023-12-18 14:55:17 +00:00
LB Johnston
ffc6ac8833 Adopt a small set of stylelint-config-wagtail changes
Where possible, adopt a subset of stylelint-config-wagtail changes.

- Formatting & ordering (auto applied), this includes the padding/inset shorthand changes
- Adopt a small set of no-union-classes changes as an example of changes to come in future PRs
- Ignore some areas where we are selecting against data* attributes that will not be practical to change
- Move some no-important ignore rules to specific lines
- Ignore max-combinators in modeladmin styles (legacy)
- Remove error messages forced-color-adjust setting to none
2023-12-18 13:28:18 +00:00
LB Johnston
416fc1dde4 Update stylelint & stylelint-config-wagtail packages
- Ensure that some rules are always ignored in overrides (aka vendor) styles. This avoids us having to add ignore comments all over these styles.
- Resolves #10719
2023-12-18 13:28:18 +00:00
the-r3aper7
bb33e7c508 Add ClipboardController to allow copying to the clipboard (Stimulus) 2023-12-15 13:53:26 +10:00
LB Johnston
3f38bf7ae8 Add ability for CloneController to auto-clear its own contents 2023-12-15 13:53:26 +10:00
Sage Abdullah
1cbfd1cc89
Restore teal color on table header sort link if it's active
Regression in 4426196046
2023-12-13 10:31:07 +00:00
nandini584
0024751a53 ActionController - Be more explicit about element checks for select method
- Move method to alpha order (after `reset`) and check for input/text area explicitly
- Fixes #11307
2023-12-13 11:20:29 +10:00
nandini584
96349aad3e ActionController - Add noop method
- Useful for leveraging data-action approaches without needing a specific method functionality
2023-12-13 11:20:29 +10:00
Matt Westcott
e97449dc5f Funnel all invocations of wagtailadmin/shared/field.html through the formattedfield tag
At this point wagtailadmin/shared/field.html is still used by FieldPanel, as well as third-party code. Replace this by a template that simply pulls the relevant context variables from the template and passes them on to `{% formattedfield %}` (which renders them using the old template, now renamed formatted_field.html). This will allow us to move logic from the template to the tag function without breaking the existing wagtailadmin/shared/field.html API.
2023-12-12 14:58:27 +00:00
Thibaud Colas
b7d2618d93
Remove Safari 14 support in Wagtail admin – update browserslist and TypeScript (#11258)
Co-authored-by: Sage Abdullah <sage.abdullah@torchbox.com>
2023-12-12 10:54:41 +00:00
Ben Morse
09d69d1667
Add display inline-block to the Comment Control's wrapped ToolbarButton 2023-12-06 15:50:03 +00:00
Chiemezuo
b7beb36df6 Ensure expanded side panel does not overlap form content for most viewports
- Set the side panel width custom property ('--side-panel-width') globally, not just on the form container.
- Use this custom property to determine the max width of the form content.
- Fixes #11038
2023-11-30 18:02:54 +10:00
Krzysztof Jeziorny
e763a614f1 Improve vertical alignment of page listing 'explore' arrow icon
Vertically align the arrow in the children cell
2023-11-23 07:20:43 +10:00
Thibaud Colas
82c0fdecbf
Change light theme floating toolbar active color (#11261)
Co-authored-by: Cassidy <cassidy.pittman@torchbox.com>
2023-11-20 12:45:34 +00:00
Thibaud Colas
4e08807d17 Remove unused icon styles 2023-11-17 21:04:57 +00:00
Matt Westcott
c631a64e44 Remove reference to icon font from Draftail/index.js 2023-11-09 08:57:56 +00:00
Matt Westcott
1ee655da0c Remove deprecated icons 2023-11-09 08:57:56 +00:00
Matt Westcott
59262fb47f Remove webpack rule for .woff 2023-11-09 08:57:56 +00:00
Matt Westcott
2616e24e0f Remove 'svg' qualifier from _dropdown.legacy.scss 2023-11-09 08:57:56 +00:00
Matt Westcott
5e6efdae51 Remove styles labelled 'iconfont' 2023-11-09 08:57:56 +00:00
Matt Westcott
7e9c582775 Remove variables for font icons 2023-11-09 08:57:56 +00:00