Fork of the espurna firmware for `mhsw` switches
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.

160 lines
3.0 KiB

  1. /**
  2. * jQuery Wheel Color Picker
  3. * Base Stylesheet
  4. *
  5. * http://www.jar2.net/projects/jquery-wheelcolorpicker
  6. *
  7. * Copyright © 2011-2016 Fajar Chandra. All rights reserved.
  8. * Released under MIT License.
  9. * http://www.opensource.org/licenses/mit-license.php
  10. *
  11. * Note: Width, height, left, and top properties are handled by the
  12. * plugin. These values might change on the fly.
  13. */
  14. .jQWCP-wWidget {
  15. position: absolute;
  16. width: 250px;
  17. height: 180px;
  18. background: #eee;
  19. box-shadow: 1px 1px 4px rgba(0,0,0,.5);
  20. border-radius: 4px;
  21. border: solid 1px #aaa;
  22. padding: 10px;
  23. z-index: 1001;
  24. }
  25. .jQWCP-wWidget.jQWCP-block {
  26. position: relative;
  27. border-color: #aaa;
  28. box-shadow: inset 1px 1px 1px #ccc;
  29. }
  30. .jQWCP-wWheel {
  31. background-repeat: no-repeat;
  32. background-position: center;
  33. background-size: contain;
  34. position: relative;
  35. float: left;
  36. width: 180px;
  37. height: 180px;
  38. -webkit-border-radius: 90px;
  39. -moz-border-radius: 50%;
  40. border-radius: 50%;
  41. border: solid 1px #aaa;
  42. margin: -1px;
  43. margin-right: 10px;
  44. transition: border .15s;
  45. cursor: crosshair;
  46. }
  47. .jQWCP-wWheel:hover {
  48. border-color: #666;
  49. }
  50. .jQWCP-wWheelOverlay {
  51. position: absolute;
  52. top: 0;
  53. left: 0;
  54. width: 100%;
  55. height: 100%;
  56. background: #000;
  57. opacity: 0;
  58. -webkit-border-radius: 90px;
  59. -moz-border-radius: 50%;
  60. border-radius: 50%;
  61. }
  62. .jQWCP-wWheelCursor {
  63. width: 8px;
  64. height: 8px;
  65. position: absolute;
  66. top: 50%;
  67. left: 50%;
  68. margin: -6px -6px;
  69. cursor: crosshair;
  70. border: solid 2px #fff;
  71. box-shadow: 1px 1px 2px #000;
  72. border-radius: 50%;
  73. }
  74. .jQWCP-slider-wrapper,
  75. .jQWCP-wPreview {
  76. position: relative;
  77. width: 20px;
  78. height: 180px;
  79. float: left;
  80. margin-right: 10px;
  81. }
  82. .jQWCP-wWheel:last-child,
  83. .jQWCP-slider-wrapper:last-child,
  84. .jQWCP-wPreview:last-child {
  85. margin-right: 0;
  86. }
  87. .jQWCP-slider,
  88. .jQWCP-wPreviewBox {
  89. position: absolute;
  90. width: 100%;
  91. height: 100%;
  92. left: 0;
  93. top: 0;
  94. box-sizing: border-box;
  95. border: solid 1px #aaa;
  96. margin: -1px;
  97. -moz-border-radius: 4px;
  98. border-radius: 4px;
  99. transition: border .15s;
  100. }
  101. .jQWCP-slider {
  102. cursor: crosshair;
  103. }
  104. .jQWCP-slider-wrapper:hover .jQWCP-slider {
  105. border-color: #666;
  106. }
  107. .jQWCP-scursor {
  108. position: absolute;
  109. left: 0;
  110. top: 0;
  111. right: 0;
  112. height: 6px;
  113. margin: -5px -1px -5px -3px;
  114. cursor: crosshair;
  115. border: solid 2px #fff;
  116. box-shadow: 1px 1px 2px #000;
  117. border-radius: 4px;
  118. }
  119. .jQWCP-wAlphaSlider,
  120. .jQWCP-wPreviewBox {
  121. background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEVAQEB/f39eaJUuAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYRBDgK9dKdMgAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAARSURBVAjXY/jPwIAVYRf9DwB+vw/x6vMT1wAAAABJRU5ErkJggg==') center center;
  122. }
  123. .jQWCP-overlay {
  124. position: fixed;
  125. top: 0;
  126. left: 0;
  127. bottom: 0;
  128. right: 0;
  129. z-index: 1000;
  130. }
  131. /*********************/
  132. /* Mobile layout */
  133. .jQWCP-mobile.jQWCP-wWidget {
  134. position: fixed;
  135. bottom: 0;
  136. left: 0 !important;
  137. top: auto !important;
  138. width: 100%;
  139. height: 75%;
  140. max-height: 240px;
  141. box-sizing: border-box;
  142. border-radius: 0;
  143. }