swatches.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /**
  2. * Copyright © Magento, Inc. All rights reserved.
  3. * See COPYING.txt for license details.
  4. */
  5. #swatch-visual-options-panel{
  6. overflow: visible;
  7. }
  8. .swatch_sub-menu_container {
  9. position: absolute;
  10. z-index: 9999;
  11. width: 140px;
  12. display: none;
  13. }
  14. .swatch-visual-options-container .admin__control-table-wrapper {
  15. overflow: inherit;
  16. }
  17. .swatch_row {
  18. padding: 5px;
  19. background-color: #fbfaf6;
  20. position: relative;
  21. height: 30px;
  22. overflow: hidden;
  23. border: 1px solid #000;
  24. }
  25. .position-relative {
  26. position: relative;
  27. }
  28. .swatch_row_name {
  29. position: absolute;
  30. background-color: #fbfaf6;
  31. width: 100%;
  32. height: 100%;
  33. top: 0;
  34. left: 0;
  35. }
  36. .swatch_row_name p {
  37. padding-top: 10px;
  38. }
  39. .swatch_window {
  40. border: 1px solid #000;
  41. width: 30px;
  42. height: 30px;
  43. overflow: hidden;
  44. }
  45. .swatch_window {
  46. border: 1px solid #c6c5c3 !important;
  47. cursor: pointer;
  48. overflow: visible !important;
  49. position: relative;
  50. width: 25px !important;
  51. height: 24px !important;
  52. }
  53. .swatch_window:after {
  54. position: absolute;
  55. content: '\2193';
  56. top: -5px;
  57. font-size: 19px;
  58. color: #808080;
  59. right: -22px;
  60. width: 16px;
  61. height: 32px;
  62. background: #fff;
  63. border-radius: 0 3px 3px 0;
  64. border: 1px solid rgb(173, 173, 173);
  65. text-align: center;
  66. z-index: 8;
  67. }
  68. .swatch_window:before {
  69. position: absolute;
  70. content: '';
  71. top: -4px;
  72. font-size: 19px;
  73. color: #808080;
  74. left: -4px;
  75. width: 27px;
  76. height: 26px;
  77. background: transparent;
  78. border-radius: 3px 0 0 3px;
  79. border: 3px solid rgb(255, 255, 255);
  80. z-index: 1;
  81. outline: 1px solid rgb(173, 173, 173);
  82. }
  83. .swatch_sub-menu_container {
  84. border: 1px solid rgb(173, 173, 173) !important;
  85. border-radius: 5px 0 5px 5px;
  86. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  87. }
  88. .swatch_sub-menu_container .swatch_row {
  89. border: 0 !important;
  90. text-align: left;
  91. cursor: pointer;
  92. border-bottom: 1px solid #e3e3e3 !important;
  93. }
  94. .swatch_sub-menu_container .swatch_row:first-child {
  95. border-radius: 5px 0 0 0;
  96. }
  97. .swatch_sub-menu_container .swatch_row:last-child {
  98. border-bottom: 0 !important;
  99. border-radius: 0 0 5px 5px;
  100. }
  101. .swatch_sub-menu_container .swatch_row .swatch_row_name p {
  102. padding-left: 12px;
  103. }
  104. .swatch_sub-menu_container .swatch_row .swatch_row_name {
  105. background: #fff !important;
  106. }
  107. .swatch_sub-menu_container .swatch_row:hover .swatch_row_name {
  108. background: #fbfaf6 !important;
  109. }
  110. .swatch_sub-menu_container {
  111. margin-left: -94px;
  112. top: 37px;
  113. }
  114. .swatch_sub-menu_container:after {
  115. width: 16px;
  116. background: #fff;
  117. height: 3px;
  118. top: -3px;
  119. right: 0;
  120. content: '';
  121. position: absolute;
  122. }
  123. .swatches-visual-col {
  124. box-sizing: content-box;
  125. position: relative;
  126. }
  127. .col-swatch {
  128. width: 50px;
  129. }
  130. .col-swatch-min-width {
  131. min-width: 65px;
  132. }
  133. .data-table .col-swatch-min-width input[type="text"] {
  134. padding: inherit;
  135. }
  136. .swatches-visual-col.unavailable:after {
  137. content: '';
  138. position: absolute;
  139. width: 35px;
  140. height: 2px;
  141. background: #f00;
  142. transform: rotate(-45deg);
  143. -o-transform: rotate(-45deg);
  144. -moz-transform: rotate(-45deg);
  145. -ms-transform: rotate(-45deg);
  146. -webkit-transform: rotate(-45deg);
  147. z-index: 5;
  148. left: 3px;
  149. top: 20px;
  150. }
  151. .modal-slide .swatches-visual-col.unavailable:after {
  152. left: -4px;
  153. top: 25px;
  154. }
  155. .colorpicker {
  156. z-index: 9999;
  157. }
  158. .attribute-popup-actions {
  159. z-index: 15;
  160. }