summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/fields.less
AgeCommit message (Collapse)Author
2018-06-29[MERGE] forward port branch saas-15 up to ce84bacd720Christophe Simonis
2018-04-18[FIX] web: don't ignore required attrs on image fieldsAaron Bohy
Before this rev., falsy image fields could be saved even if they were required.
2018-04-11[FIX] web: fixes some design alignementsstefanorigano
- Use 'baseline' to ensure that the priority icon will align to the parent's baseline - Align the favorite icon in dashboards - Align the statusbar's caret in form views
2017-10-13[MERGE] forward port branch saas-16 up to 8ee9024a4c8Christophe Simonis
2017-10-12[FIX] web, hr_timesheet_sheet: make m2o friendly-usable outside of viewsqsm-odoo
Before this commit, m2o external button was always floating outside the m2o main DOM element, on the right. This induced problems when using the m2o outside of views (like in Odoo Studio). Now, the m2o design is made so that this button is inside the m2o, except in form views where we expect the button to overflow in the tables' right paddings.
2017-09-28[FIX] web: review UI tag color systemqsm-odoo
- Kanban colors and tag colors are now the same - Tag color 0 (default) is now back to be the invisible kanban one - Same colorpicker for kanban and tags - Define correct number of colors (12 not 13) - Color 0 should be a neutral one (gray) - ...
2017-08-28[REF] web: set UI custom color-schemestefanorigano
Create LESS variables so that they can be used elsewhere in the UI (for tags, kanban cards' colors, ...).
2017-08-09[IMP] account: Add a new boolean_favorite widgetJigar Patel
Purpose ======= Projects and soon sales teams have a manual "favorite" button that calls a toggle_favorite method It should actually be a widget on a boolean field Specifications ============== Develop a favorite widget for kanban view that allows to toggle a boolean field Probably update boolean field to allow inverse method on it Functionally nothing changed.
2017-06-15[FIX] web: display dashboard graphs in full-widthMartin Geubelle
With the new views, the class `o_field_widget` is added on every field widget and is styled with `display: inline-block`. The dashboards used to display graphs in full-width so this behaviour is restored.
2017-06-15[FIX] web: correctly style `o_status` classMartin Geubelle
The `o_status` style has been moved in a previous rev. in `fields.less` which is only for `o_field_widget` nodes. This class however is used in other context than a field (e.g. on a label in the project.task.type form view) so its style needs to be placed at an upper level.
2017-05-11[FIX] web: use o_tag_color outside of badgesMartin Geubelle
Since rev https://github.com/odoo/odoo/commit/250e716c3a12e88acb4a199b427dc47d4ec55d5d the colors have been mistakenly moved in a too restrictive rule and could only be used in a badge.
2017-05-08[FIX] web: numbers in list views should be right-alignedqsm-odoo
Before this commit, numbers in list views were right-aligned depending on the widget they were using (float/monetary). Now, the input text alignment is inherited from the parent which should solve the problem.
2017-05-04[REF] web, *: restore views designqsm-odoo
Since the new views merge, a lot of design elements were broken. This was particularly impacting the fields in the editable list view; indeed the editable list view is not using an inline form view anymore so the fields in the list were not properly styled as the LESS was still defined assuming the form view environment (for example the invalid fields were red for o2m fields in form view but not in editable list view even though they got the right CSS class). This commit refactor the LESS following these rules: - No more division of non-layout and layout rules. Dividing LESS rules in x_layout.less and x.less was a mistake. Many rules can be considered to be layout and not layout at the same time, developers always have to switch from one file part to the other, many CSS selectors (and rules!) are duplicated for nothing, ... - Field style is extracted from x_view.less and put in the new fields.less file. As before, the fields_extra.less will contain the rules specific to community so that the enterprise repo can override those by replacing the whole file. - Many classes have been renamed so that o_form_x_y becomes o_x_y as many classes can now be applied outside of form view. These classes should not be used in templates anyway. The commit also changes the DOM of fields so that it is more minimalist (no useless parent div, etc). Input elements are not automatically styled anymore, they have to get the o_input class explicitely. This allows to fix lots of small style bugs of previous versions (required monetary field had not the proper style, readonly m2m tags appeared as editable, ...). This also improves the LESS code. The editable list view should also completely stop flickering on chrome and firefox. The commit also removes the orange outline on list view dirty cells. The commit also removes deprecated static xml, LESS and other code. Notice there are still styles to restore/fix and LESS to improve.