You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.4 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (C) 2017 MuK IT GmbH
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. **********************************************************************************/
  19. .o_field_widget.o_field_image {
  20. @include media-breakpoint-up(sm, $o-extra-grid-breakpoints) {
  21. .mk_form_image_wrapper {
  22. min-height: 60px;
  23. min-width: 80px;
  24. }
  25. }
  26. .mk_form_image_controls {
  27. @include o-position-absolute($left: 0, $bottom: 0);
  28. width: 100%;
  29. color: white;
  30. background-color: $o-brand-primary;
  31. opacity: 0;
  32. transition: opacity ease 400ms;
  33. > button.fa {
  34. border: none;
  35. background-color: transparent;
  36. }
  37. > .fa {
  38. margin: 5px;
  39. cursor: pointer;
  40. }
  41. }
  42. &:hover .mk_form_image_controls {
  43. opacity: 0.8;
  44. }
  45. @include media-breakpoint-down(xs, $o-extra-grid-breakpoints) {
  46. .mk_form_image_controls{
  47. position: initial;
  48. opacity: 1;
  49. > .fa{
  50. width: 50%;
  51. padding: 6px;
  52. margin: 0px;
  53. text-align: center;
  54. background: $o-brand-secondary;
  55. }
  56. }
  57. }
  58. }
  59. .o_field_widget.o_field_image.oe_avatar {
  60. .mk_form_image_controls {
  61. @include o-position-absolute($left: 0, $bottom: 10px);
  62. }
  63. img {
  64. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  65. max-width: $o-avatar-size;
  66. max-height: $o-avatar-size;
  67. vertical-align: top;
  68. margin-bottom: 10px;
  69. border: none;
  70. }
  71. @include media-breakpoint-down(xs, $o-extra-grid-breakpoints) {
  72. .mk_form_image_controls{
  73. position: initial;
  74. > .fa{
  75. background: $o-brand-secondary;
  76. }
  77. }
  78. }
  79. }