| 1 |
.pos { |
| 2 |
background: $gray-900; |
| 3 |
--btn-height-size: 54px; |
| 4 |
direction: ltr; |
| 5 |
padding: 0; |
| 6 |
margin: 0; |
| 7 |
background-color: #f0eeee; |
| 8 |
color: $o-gray-900; |
| 9 |
-webkit-user-select: none; |
| 10 |
-moz-user-select: none; |
| 11 |
user-select: none; |
| 12 |
text-shadow: none; |
| 13 |
touch-action: manipulation; |
| 14 |
} |
| 15 |
/* ********* Generic element styling ********* */ |
| 16 |
|
| 17 |
.dvh-100 { |
| 18 |
// we specify the 100vh as a fallback in case the browser does not |
| 19 |
// know dvh |
| 20 |
height: 100vh !important; |
| 21 |
height: 100dvh !important; |
| 22 |
} |
| 23 |
|
| 24 |
.pos a { |
| 25 |
text-decoration: none; |
| 26 |
color: $gray-700; |
| 27 |
} |
| 28 |
|
| 29 |
.pos li { |
| 30 |
list-style-type: none; |
| 31 |
} |
| 32 |
|
| 33 |
/* --- Generic Restyling and Resets --- */ |
| 34 |
|
| 35 |
html { |
| 36 |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
| 37 |
font-family: sans-serif; |
| 38 |
} |
| 39 |
|
| 40 |
.pos .oe_invisible{ |
| 41 |
visibility: hidden !important; |
| 42 |
} |
| 43 |
.pos .clearfix:after { |
| 44 |
content:" "; |
| 45 |
display: block; |
| 46 |
visibility: hidden; |
| 47 |
line-height: 0; |
| 48 |
height: 0; |
| 49 |
clear: both; |
| 50 |
} |
| 51 |
|
| 52 |
.pos input::-webkit-outer-spin-button, |
| 53 |
.pos input::-webkit-inner-spin-button { |
| 54 |
-webkit-appearance: none; |
| 55 |
margin: 0; |
| 56 |
} |
| 57 |
|
| 58 |
@media screen and (max-width: 575px) { |
| 59 |
.pos .modal-dialog{ |
| 60 |
margin: 0; |
| 61 |
max-height: 92dvh; |
| 62 |
} |
| 63 |
.pos .modal-content{ |
| 64 |
max-height: 92dvh; |
| 65 |
border-radius: 1rem 1rem 0 0; |
| 66 |
animation: popUp 0.2s ease-in-out forwards; |
| 67 |
} |
| 68 |
.pos .modal-body{ |
| 69 |
overflow: auto; |
| 70 |
} |
| 71 |
.pos .modal-dialog-centered { |
| 72 |
position: fixed; |
| 73 |
inset: auto 0 0 0; |
| 74 |
min-height: unset; |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
@keyframes popUp { |
| 79 |
0% { |
| 80 |
transform: translateY(100%); |
| 81 |
} |
| 82 |
100% { |
| 83 |
transform: translateY(0); |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
.pos .o_error_detail { |
| 88 |
user-select: text; |
| 89 |
} |
| 90 |
|
| 91 |
// .o-default-button would be hidden with web assets, but the dialog css file excluded from pos |
| 92 |
// as o-default-button is used inside custom pos dialogs, only apply it to form dialogs |
| 93 |
.o_dialog:has(.o_form_view) { |
| 94 |
button.o-default-button:not(:only-child) { |
| 95 |
display: none; |
| 96 |
} |
| 97 |
} |