controls.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .molstar-control-row {
  2. position: relative;
  3. height: $row-height;
  4. background: $default-background;
  5. margin-top: 1px;
  6. > span {
  7. line-height: $row-height;
  8. display: block;
  9. width: $control-label-width + $control-spacing;
  10. text-align: right;
  11. padding: 0 $control-spacing;
  12. color: color-lower-contrast($font-color, 15%);
  13. @include non-selectable;
  14. }
  15. select, button, input[type=text] {
  16. @extend .molstar-form-control;
  17. }
  18. button {
  19. @extend .molstar-btn;
  20. @extend .molstar-btn-block;
  21. }
  22. > div:nth-child(2) {
  23. background: $molstar-form-control-background;
  24. position: absolute;
  25. left: $control-label-width + $control-spacing;
  26. top: 0;
  27. right: 0;
  28. bottom: 0;
  29. }
  30. }
  31. .molstar-control-group {
  32. position: relative;
  33. }
  34. .molstar-toggle-button {
  35. .molstar-icon {
  36. display: inline-block;
  37. margin-right: 6px;
  38. }
  39. > div > button:hover {
  40. border-color: color-increase-contrast($molstar-form-control-background, 5%) !important;
  41. border: none;
  42. outline-offset: -1px !important;
  43. outline: 1px solid color-increase-contrast($molstar-form-control-background, 20%) !important;
  44. }
  45. }
  46. .molstar-slider {
  47. > div {
  48. > div:first-child {
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. bottom: 0;
  53. right: 0;
  54. width: 100%;
  55. padding-right: 50px;
  56. display: table;
  57. > div {
  58. height: $row-height;
  59. display: table-cell;
  60. vertical-align: middle;
  61. padding: 0 ($control-spacing + 4px);
  62. }
  63. }
  64. > div:last-child {
  65. position: absolute;
  66. height: $row-height;
  67. right: 0;
  68. width: 50px;
  69. top: 0;
  70. bottom: 0;
  71. }
  72. }
  73. input[type=text] {
  74. text-align: right;
  75. }
  76. input[type=range] {
  77. width: 100%;
  78. }
  79. }
  80. .molstar-toggle-color-picker {
  81. button {
  82. border: $control-spacing solid $molstar-form-control-background !important;
  83. margin: 0;
  84. text-align: center;
  85. padding-right: $control-spacing;
  86. padding-left: $control-spacing;
  87. &:hover {
  88. border-color: color-increase-contrast($molstar-form-control-background, 5%) !important;
  89. border: none;
  90. outline-offset: -1px !important;
  91. outline: 1px solid color-increase-contrast($molstar-form-control-background, 20%) !important;
  92. }
  93. }
  94. .molstar-color-picker {
  95. position: absolute;
  96. z-index: 100000;
  97. background: $default-background;
  98. border-top: 1px solid $default-background;
  99. padding-bottom: $control-spacing / 2;
  100. width: 100%;
  101. // input[type=text] {
  102. // background: $molstar-form-control-background !important;
  103. // }
  104. }
  105. }
  106. .molstar-toggle-color-picker-above {
  107. .molstar-color-picker {
  108. top: -2 * 32px - 16px - $control-spacing / 2;
  109. height: 2 * 32px + 16px + $control-spacing / 2;
  110. }
  111. }
  112. .molstar-toggle-color-picker-below {
  113. .molstar-color-picker {
  114. top: $row-height;
  115. height: 2 * 32px + 16px;
  116. }
  117. }
  118. .molstar-control-subgroup {
  119. margin-top: 1px;
  120. .molstar-control-row {
  121. margin-left: $control-spacing !important;
  122. > span {
  123. width: $control-label-width !important;
  124. }
  125. > div:nth-child(2) {
  126. left: $control-label-width !important;
  127. }
  128. }
  129. }
  130. .molstar-conrol-group-expander {
  131. display: block;
  132. position: absolute;
  133. line-height: $row-height;
  134. padding: 0;
  135. left: 0;
  136. top: 0;
  137. width: $control-label-width + $control-spacing;
  138. text-align: left;
  139. .molstar-icon {
  140. line-height: $row-height - 3;
  141. width: $row-height - 1;
  142. text-align: center;
  143. display: inline-block;
  144. font-size: 100%;
  145. }
  146. }
  147. .molstar-plugin-layout_controls {
  148. position: absolute;
  149. left: $control-spacing;
  150. top: $control-spacing;
  151. }
  152. .molstar-plugin-layout_controls > button:first-child {
  153. margin-right: 6px;
  154. }
  155. .molstar-empty-control {
  156. display: none;
  157. }
  158. .molstar-control .molstar-btn-block {
  159. margin-bottom: 0px;
  160. margin-top: 0px;
  161. }
  162. .molstar-row-text {
  163. > div {
  164. line-height: $row-height;
  165. text-align: center;
  166. }
  167. }