summaryrefslogtreecommitdiff
path: root/addons/website/static/src/scss
AgeCommit message (Collapse)Author
2019-04-18[IMP] website: make hamburger menu scrollable in small devicesDharmraj Jhala
Currently, in small devices, hamburger menu of the cloned navbar is not scrollable due to fixed position. This commit improves the behavior and makes the affixed navbar scrollable, enabling user to navigate through all the available menus. task-1938637 closes odoo/odoo#32359 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-12[MERGE] forward port branch saas-12.3 up to 120359bf0c9Christophe Simonis
2019-04-05[MERGE] forward port branch saas-12.2 up to f2be461f090Christophe Simonis
2019-04-03[FIX] web_editor: restore ace styleMartin Geubelle
The recent refactoring odoo/odoo@f296992 wrongly moved the ace editor style from `web_editor` to `website`, even though ace is in `«eb_editor`. The editor is also used in Studio (which does not depend on website) so the style was missing in this case. Task 1951290 closes odoo/odoo#32384 Signed-off-by: Christophe Matthieu <Gorash@users.noreply.github.com>
2019-04-10[IMP] website: properly show navbar on iPadSapan Zaveri
Currently, when we open the website on iPad, the navbar is not displayed properly (systray items are overlapping on the website menu). This commit fixes the issue by using '+' icon on the navbar top menus if there is not ample space. This commit also converts multi company selector with 'fa-building' and multi website selector with 'fa-globe' icons on smaller screens. task-1945020 closes odoo/odoo#32321 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-29[MERGE] forward port branch saas-12.1 up to c0cf4049b2aChristophe Simonis
2019-03-29[MERGE] forward port branch 12.0 up to 09fb2469b49Christophe Simonis
2019-03-29[FIX] website: "Visits" no overlap "active users" in dashboardNicolas Lempereur
The current style on "Active users: {number}" placed it 60 pixels over were it should be, so this was: - overlapping "Visits" title - not sparing vertical size (since we use "position:relative") opw-1961605 closes #32245 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-03-21[FIX] web_editor: prevent overriding of toolbar CSS by themesAntoine Guenet
While waiting for a larger fix of the themes, force prevent overriding of the web editor's UI CSS by themes. This is achieved by applying `!important` on all web editor UI CSS. This is a temporary fix until the themes CSS is fixed and/or the new web editor library is ready. closes odoo/odoo#31721 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-14[FIX] website: restore ace editor resize and line numbersAndrea Ulliana
Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the gutter in ACE Editor was broken. We were not able to resize and view the line numbers anymore. closes odoo/odoo#31838 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-03-11[MERGE] forward port branch saas-12.1 up to 2b3296bbf8bChristophe Simonis
2019-03-08[MERGE] forward port branch 12.0 up to c023d0784f2Christophe Simonis
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-03-07[FIX] website: edition of links on safari and firefox is now possibleGorash
closes odoo/odoo#31629 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-04-01[IMP] website: use Chart.js in community dashboardMathieu Duckerts-Antoine
This commit is one part of the task 'removing nvd3'. We use now Chart.js to draw charts. Task ID: 1946138
2019-04-01[MERGE] forward port branch saas-12.2 up to 18c735361a6Christophe Simonis
2019-03-29[IMP] website_blog, *: improve social links visualqsm-odoo
* website Use real social colors which makes the blogs look more modern. Introduce the colors for github, instagram and youtube. Part of https://github.com/odoo/odoo/pull/31749 task-1948882
2019-03-25[MERGE] forward port branch saas-12.2 up to 230ad8c381eChristophe Simonis
closes odoo/odoo#32088 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-03-18[FIX] website: restore default h1 color in customize dialogqsm-odoo
Since the bootstrap update that was merged with https://github.com/odoo/odoo/commit/754ec4450832dceef83c3a0abb79401f2e7ec05d the customize theme dialog was showing transparent colors for the headings. This was because bootstrap changed the value of the related variable from 'inherit' to 'null' to avoid an useless css rule if the headings are supposed to have the same color as the body text. closes odoo/odoo#31909 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-02-14[IMP] web_editor: lazy load the wysiwygChristophe Matthieu
Issue: wysiwyg asset slow down the loading of the website, error inadvertently introduced: https://github.com/odoo/odoo/pull/29775 The assets are now loaded assynchroneously, when the editor is needed, its assets will be loaded. closes odoo/odoo#30700
2019-02-08[IMP] website, *: allow to control the header font-sizeqsm-odoo
* portal The user can now choose the font-size of its header menu items through the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website, *: add new logo sizing optionqsm-odoo
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website: improve affix menu to work with all headersqsm-odoo
Now that the logo can be resized, the affix menu had to be adapted to handle tall headers. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[IMP] website: review customize loadingqsm-odoo
Before this commit, the loading was shown during colorpicker choice or body image choice too, which makes no sense. This commit also make a new loading visual which is less intrusive and flicker less. PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-08[REF] website: unify the theme customize dialog color optionsqsm-odoo
Before this commit, color options in the theme customize were treated as big exception in the system. The whole color panel XML was defined client-side and used custom design. Now, all colors are defined as options in the "server-side" template, allowing for more customizations and better maintenance. This commit also makes the color saving system generic to allow for more new options in the future (like customizing the logo height or the font size, which is the next task). PR https://github.com/odoo/odoo/pull/29624 task-1904244
2019-02-14[FIX] website: restore mobile preview header colorsqsm-odoo
Part of https://github.com/odoo/odoo/pull/31117 task-1941156 closes odoo/odoo#31117
2019-02-05[IMP] website: improve documentation of user custom filesqsm-odoo
See https://github.com/odoo/odoo/pull/29999
2019-02-05[IMP] website, *: improve CSS edition usability + add JS editionAndrea Ulliana
* web_editor Currently, when an user wants to edit the css of its website, he has access to lots of files and, in debug mode, to even more files. While the feature is nice for people who know what they are doing, a lambda person can easily break its website by changing the wrong files. Also, nothing warns the user that the files that are edited will never receive updates anymore (unless if they are reset). The goal is to prevent those behavior while still allowing the add custom css. Another goal is to be able to *add* custom javascript. Custom files created for the user: SCSS: user_custom_rules.scss, user_custom_bootstrap_overridden.scss JS: user_custom_javascript.js See https://github.com/odoo/odoo/pull/29999 task-1919350
2019-02-04[MERGE] forward port branch saas-12.1 up to 4524ad06a8aChristophe Simonis
2019-01-16[FIX] website: solve alignment bugs in onboardingAnshuman Sharma
- Fix the position of 'Add to menu' toggle button in new page dialog - Properly align tip icon in the welcome message task-1895287 closes odoo/odoo#29403
2019-01-10[FIX] website: allow to remove jumbotron bg colorqsm-odoo
In the 'banner' snippet, there is a column using a white jumbotron component. Those comes with a default background color so when using the website builder to remove the white background, it did not go away; it was replaced with the default background color (some gray). This commit sets the default background color of jumbotron components to 'transparent'. task-1889341 closes odoo/odoo#30099
2019-01-08[FIX] web, website: set correct order on modal footer buttonRomain Derie
Since 12.0, some modal footer button order were changed. The primary button would not be the one in the modal footer corner. This is against bootstrap but more annoyingly, users are intuitively clicking on the secondary button, ending up closing the modal and losing form information they entered. This commit simply fix the regression from 12.0 as before 12.0 these buttons were positionned correctly. Note that a commit in master (saas-12.2) will fix all the other ones that were wrongly positionned before 12.0. Step to reproduce: - Go to an event having the possibility to register. - Click on 'Register Now', a modal is shown to write details (name, email..) - You intuitively click on 'Cancel' as it is the bottom right button |________________________________ CONFIRM _ CANCEL _| - The modal is closed, if you try to open it again your infos are lost Closes #29884 task-1922120
2019-01-23[FIX] web,website: use correct variable to define h* size + force fa fontJeremy Kersten
if you have some style e.g. on btn, and use class="fa fa-bug btn btn-sm" the icon will be rendered with font-family style of btn
2019-01-18[MERGE] forward port branch 12.0 up to f854e01a983Christophe Simonis
2019-01-14[MERGE] forward port branch 12.0 up to 6a0675d36ddChristophe Simonis
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2018-12-06[IMP] website: keep social media popover on one rowqsm-odoo
Before this commit, the social media popover (used in forum but available everywhere) may break over multiple rows if used on a relative positioned small button. This however never occurred in standard <= 12.0 so we will consider this not a bug fix. This will however occur with the upcoming forum refactoring, so we needed a fix for master. This commit forces the social icons on one row and take the opportunity to refactor the template to make a simpler and more beautiful popover by using conventional icons and social media own colors. closes odoo/odoo#29327
2018-12-06[IMP] portal, website: change the default website body bgqsm-odoo
Use a very very very light gray as body background color for the website so that default white cards have some contrast with the body. Also adapt the portal system to use the portal colors when the body bg color is equal to that very very very light gray (while it was compared to $white before). closes odoo/odoo#29318
2018-11-29[MERGE] forward port branch 12.0 up to 82a1e1dcc33Christophe Simonis
2018-11-16[MERGE] forward port branch 12.0 up to bc744a1da46Christophe Simonis
2018-11-14[FIX] website, *: enforce correct UI text-muted colorqsm-odoo
* web_editor - Restore the preservation of Odoo text-muted color (the rule became !important with BS4 and had thus to become !important in the preservation mixin). - Preserve base design in the "new content" menu (which now uses text-muted). Indeed, in some themes, the "new content" links were not even visible anymore. closes odoo/odoo#28666
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-25[IMP] website_event, *: refactor website events layoutsqha-odoo
* base, portal, website, website_event_sale, website_event_track - The previous event registration form was not clear on mobile - Review some layouts to match the new design general idea, using cards (see forum refactoring of https://github.com/odoo/odoo/pull/29235) - Use correct bootstrap components (like a menu instead of a breadcrumb on event pages) - Review options to be able to disable the left / right column and choose the exact options you want to appear in them task-1858034 closes odoo/odoo#30559
2019-01-17[IMP] web_editor,*: Refactoring the wysiwyg editor and 'html' fieldChristophe Matthieu
* Creating a new structure by transforming all the plugins in the library using the odoo inheritance system. Plugins are easier to implement with the AbstractPlugin to add Odoo behaviors. * From now on, the methods of the library (in this case Summernote) can no longer be called by other modules or files. Only the wysiwyg widgets can access it, to simplify the updating process. The wysiwyg object serves as an interface. * Depending on the options the snippets will be loaded or not, the editor will be in an iframe or not... all of this is transparent from the outside. * Regarding iframes, all controllers related to editing have been removed: the new API no longer needs them. This speeds up loading, eases testing and removes complexity for the same features. PUBLIC FEATURES There are several public methods on the Wysiwyg class: * Wysiwyg.prepare (WidgetParent): returns a deferred resolved when the library (xml, lazy, assets...) is loaded. * Wysiwyg.getRange (DOM): returns the range (selection in the dom) * Wysiwyg.setRange (startNode, startOffset, endNode, endOffset): creates a range (selection in the dom) * Wysiwyg.setRangeFromNode (DOM, options) that creates a range from an element (option available to select all, start or end) A jQuery selector was added: :o_editable, which indicates whether the current element is editable. That is, if it is contained in a tag with the attribute 'contentEditable = "true"' or in a tag with the class o_editable. Several methods are also present: * focusIn: makes a focus and places the cursor at the beginning of the element * focusInEnd: makes a focus and places the cursor at the end of the element * selectContent: makes a focus and selects the content HTML FIELD The HTML field can receive different options: * style-inline: {boolean} transforms a class into an inline style when saving and vice versa when reading. * no-attachment: {boolean} prevents the use of attachments (in media dialog) * cssEdit: {xml_id} to use a template containing the css to loaded in an iframe when editing * cssReadonly: {xml_id} to use a template containing the css to load into an iframe when viewing in readonly * snippets: {xml_id} snippets template (can be used with or without cssEdit) * wrapper: {template} qweb static template (containing a tag: id = "wrapper") that will include the content during editing (removed on save) MASS MAILING A widget was created for mass mailing. There are now two fields: body_html and body_arch. body_arch contains the code with the class without conversion into inline style, useful when editing and one with the inline style that is visible in readonly mode and sent by email. Advantage: no spreading errors, able to update css/theme, able to do more changes when converting to inline style so that a maximum of mail clients have an impeccable rendering. Co-authored-by: Antoine Guenet <age@odoo.com>
2019-01-16[IMP] website: improve onboarding flowAnshuman Sharma
- Improve the website tour (typo, tip positions, etc) and added new steps to publish a new page - Make close button of 'Mobile Preview' more visible - Fix the overflow for long menu names in menu editor dialog - Change the menu string from 'Affix Top Menu' to 'Fixed Top Menu' - Change theme customization dialog's title to 'Customize Theme' from 'Customize this theme' - Improve strings for Google Analytics task-1895287 closes odoo/odoo#28199
2019-01-09[FIX] web, website: adapt accordion to bootstrap updateqsm-odoo
Some update to the accordion component made it incompatible with some of our customization.
2019-01-09[FIX] website: adapt default theme font to new BS fontqsm-odoo
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2018-12-26[REF] *: make stronger bootstrap assetsqsm-odoo
* portal, theme_bootswatch, web, web_editor, website With less2sass and bs3tobs4 tasks, the assets structure was reviewed to handle the specificities of both framework and to prepare for our next odoo tasks. In particular, the assets_helpers and bootstrap overrides were basically split into 4 parts: utils, primary variables, secondary variables and bootstrap variables. (see https://github.com/odoo/odoo/commit/6e4db7d13a926845bf82f5b035afede42d6d5a89) Using the !default system for the bootstrap variables parts seems now a good improvement. This is part of what this commit does: adding the default flag for all bootstrap variables overrides and inverting the order of the files in the _assets_backend_helpers and _assets_frontend_helpers templates. This allows to avoid code like this: portal: ``` $body-bg: white; ``` website: ``` @​if $var != null { $body-bg: $var; } ``` This code makes the body white with portal or equal to $var with website if $var has a value. The same behavior in the new file order is achieved with: website: ``` $body-bg: $var !default; ``` portal: ``` $body-bg: white !default; ``` This order is now also followed for the _assets_secondary_variables templates (there are only a few). This commit also make better assets hierarchy by making website inherit from portal assets (instead of web) and portal inherit from web_editor assets (instead of web) (thus relying on strong dependencies instead of installation order which is not always right for migrated databases). closes odoo/odoo#29757