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.

84 lines
2.4 KiB

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