[IMP] web: revamp block_ui

This commit simplifies the SCSS of the block_ui component.

task-2750837

Part-of: odoo/odoo#83811
This commit is contained in:
Brieuc-brd
2022-03-30 11:12:56 +02:00
parent cf0398f9c3
commit d55740fbbc
2 changed files with 9 additions and 32 deletions
+3 -3
View File
@@ -71,12 +71,12 @@ export class BlockUI extends Component {
}
BlockUI.template = xml`
<div t-att-class="state.blockUI ? 'o_blockUI' : ''">
<div t-att-class="state.blockUI ? 'o_blockUI fixed-top d-flex justify-content-center align-items-center flex-column vh-100 bg-black' : ''">
<t t-if="state.blockUI">
<div class="o_spinner">
<div class="o_spinner mb-3 h-auto">
<img src="/web/static/img/spin.png" alt="Loading..."/>
</div>
<div class="o_message">
<div class="o_message text-center">
<t t-esc="state.line1"/> <br/>
<t t-esc="state.line2"/>
</div>
+6 -29
View File
@@ -1,31 +1,8 @@
.o_blockUI {
position: fixed;
top: 0;
left: 0;
z-index: 1100;
cursor: wait;
background: #000000;
opacity: 0.6;
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
.o_spinner {
height: 4.2rem;
margin-bottom: 1rem;
img {
animation: fa-spin 1s infinite steps(12);
}
}
.o_message {
color: #ffffff;
text-align: center;
}
cursor: wait;
opacity: 0.6;
img {
animation: fa-spin 1s infinite steps(12);
}
}