[REF] *: get rid of introduced @extend
During first scss convertion, classes called as mixins were changed to an @extend instruction which was the best approximation given the fact there is no equivalent in sass to do that. The problem is that the instruction is slowing the scss computation a lot and might also break the style in unexpected ways because of the complex unwanted selectors the instruction induces. This commit removes the need of extends. This is done case per case. Sometimes this involves adding classes in xml, sometimes to change the style a little, ... The button rendering refactoring which was made at the start of the LESS to SASS merge was also done in prevision of this. After this commit, sass computation is like 5-6 times faster than less computation while it was like 10 times *slower* before this commit.
This commit is contained in:
@@ -318,7 +318,7 @@
|
||||
<t t-name="Sidebar">
|
||||
<t t-foreach="widget.sections" t-as="section">
|
||||
<div class="btn-group o_dropdown">
|
||||
<button t-if="section.name != 'buttons'" class="o_dropdown_toggler_btn btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<button t-if="section.name != 'buttons'" class="o_dropdown_toggler_btn btn btn-sm btn-link btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
<t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
|
||||
<t t-esc="section.label"/> <span class="caret"/>
|
||||
</button>
|
||||
@@ -1026,7 +1026,7 @@
|
||||
<ul class="dropdown-menu o_searchview_autocomplete" role="menu"></ul>
|
||||
</t>
|
||||
<div t-name="SearchView.FilterMenu" class="btn-group o_dropdown">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm btn-link btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<span class="fa fa-filter"/> Filters <span class="caret"/>
|
||||
</button>
|
||||
<ul class="dropdown-menu o_filters_menu" role="menu">
|
||||
@@ -1138,7 +1138,7 @@
|
||||
</select>
|
||||
</t>
|
||||
<div t-name="SearchView.GroupByMenu" class="btn-group hidden-xs o_dropdown">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm btn-link btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<span class="fa fa-bars"/> Group By <span class="caret"/>
|
||||
</button>
|
||||
<ul class="dropdown-menu o_group_by_menu" role="menu">
|
||||
@@ -1159,7 +1159,7 @@
|
||||
</li>
|
||||
</t>
|
||||
<div t-name="SearchView.FavoriteMenu" class="btn-group o_dropdown">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<button class="o_dropdown_toggler_btn btn btn-sm btn-link btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false" tabindex="-1">
|
||||
<span class="fa fa-star"/> Favorites <span class="caret"/>
|
||||
</button>
|
||||
<ul class="dropdown-menu o_favorites_menu" role="menu">
|
||||
|
||||
Reference in New Issue
Block a user