MuK IT GmbH
6 years ago
4 changed files with 84 additions and 1 deletions
-
2muk_web_utils/__manifest__.py
-
53muk_web_utils/static/src/scss/binary.scss
-
29muk_web_utils/static/src/xml/binary.xml
-
1muk_web_utils/template/assets.xml
@ -0,0 +1,53 @@ |
|||
/********************************************************************************** |
|||
* |
|||
* Copyright (C) 2017 MuK IT GmbH |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU Affero General Public License as |
|||
* published by the Free Software Foundation, either version 3 of the |
|||
* License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU Affero General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU Affero General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
* |
|||
**********************************************************************************/ |
|||
|
|||
.o_field_widget.o_field_image { |
|||
.mk_form_image_controls { |
|||
@include o-position-absolute($left: 0, $bottom: 10px); |
|||
width: 100%; |
|||
color: white; |
|||
background-color: $o-brand-primary; |
|||
opacity: 0; |
|||
transition: opacity ease 400ms; |
|||
> button.fa { |
|||
border: none; |
|||
background-color: transparent; |
|||
} |
|||
> .fa { |
|||
margin: 5px; |
|||
cursor: pointer; |
|||
} |
|||
} |
|||
&:hover .mk_form_image_controls { |
|||
opacity: 0.8; |
|||
} |
|||
@include media-breakpoint-down(xs, $o-extra-grid-breakpoints) { |
|||
.mk_form_image_controls{ |
|||
position: initial; |
|||
opacity: 1; |
|||
> .fa{ |
|||
width: 50%; |
|||
padding: 6px; |
|||
margin: 0px; |
|||
text-align: center; |
|||
background: $o-brand-secondary; |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,29 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
|
|||
<!-- |
|||
Copyright (C) 2018 MuK IT GmbH |
|||
|
|||
This program is free software: you can redistribute it and/or modify |
|||
it under the terms of the GNU Affero General Public License as |
|||
published by the Free Software Foundation, either version 3 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU Affero General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Affero General Public License |
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
--> |
|||
|
|||
<templates id="template" xml:space="preserve"> |
|||
|
|||
<t t-extend="FieldBinaryImage"> |
|||
<t t-jquery=".o_form_image_controls" t-operation="after"> |
|||
<div class="mk_form_image_controls"> |
|||
</div> |
|||
</t> |
|||
</t> |
|||
|
|||
</templates> |
Reference in new issue
xxxxxxxxxx