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.

62 lines
1.9 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. .mk_field_color_picker {
  20. .o_opacity_slider {
  21. display: none ! important;
  22. }
  23. input#opacity {
  24. display: none ! important;
  25. }
  26. label[for="opacity"] {
  27. display: none ! important;
  28. }
  29. }
  30. .o_field_widget.mk_field_color {
  31. .mk_field_color_input {
  32. width: auto;
  33. display: inline-block;
  34. }
  35. .mk_field_color_button {
  36. display: inline-block;
  37. margin-bottom: 0.25rem;
  38. line-height: 1.42rem;
  39. }
  40. }
  41. span.mk_field_color_index {
  42. @for $size from 1 through length($o-colors) {
  43. &.mk_color_index_#{$size - 1} {
  44. color: nth($o-colors, $size);
  45. }
  46. }
  47. }
  48. select.mk_field_color_index {
  49. &.mk_color_index_0, .mk_color_index_0 {
  50. background-color: $white ! important;
  51. color: nth($o-colors, 1) ! important;
  52. }
  53. @for $size from 2 through length($o-colors) {
  54. &.mk_color_index_#{$size - 1}, .mk_color_index_#{$size - 1} {
  55. background-color: nth($o-colors, $size) ! important;
  56. color: $white ! important;
  57. }
  58. }
  59. }