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.

158 lines
2.9 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-size: contain;
  32. position: relative;
  33. float: left;
  34. width: 180px;
  35. height: 180px;
  36. -webkit-border-radius: 90px;
  37. -moz-border-radius: 50%;
  38. border-radius: 50%;
  39. border: solid 1px #aaa;
  40. margin: -1px;
  41. margin-right: 10px;
  42. transition: border .15s;
  43. cursor: crosshair;
  44. }
  45. .jQWCP-wWheel:hover {
  46. border-color: #666;
  47. }
  48. .jQWCP-wWheelOverlay {
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. width: 100%;
  53. height: 100%;
  54. background: #000;
  55. opacity: 0;
  56. -webkit-border-radius: 90px;
  57. -moz-border-radius: 50%;
  58. border-radius: 50%;
  59. }
  60. .jQWCP-wWheelCursor {
  61. width: 8px;
  62. height: 8px;
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. margin: -6px -6px;
  67. cursor: crosshair;
  68. border: solid 2px #fff;
  69. box-shadow: 1px 1px 2px #000;
  70. border-radius: 50%;
  71. }
  72. .jQWCP-slider-wrapper,
  73. .jQWCP-wPreview {
  74. position: relative;
  75. width: 20px;
  76. height: 180px;
  77. float: left;
  78. margin-right: 10px;
  79. }
  80. .jQWCP-wWheel:last-child,
  81. .jQWCP-slider-wrapper:last-child,
  82. .jQWCP-wPreview:last-child {
  83. margin-right: 0;
  84. }
  85. .jQWCP-slider,
  86. .jQWCP-wPreviewBox {
  87. position: absolute;
  88. width: 100%;
  89. height: 100%;
  90. left: 0;
  91. top: 0;
  92. box-sizing: border-box;
  93. border: solid 1px #aaa;
  94. margin: -1px;
  95. -moz-border-radius: 4px;
  96. border-radius: 4px;
  97. transition: border .15s;
  98. }
  99. .jQWCP-slider {
  100. cursor: crosshair;
  101. }
  102. .jQWCP-slider-wrapper:hover .jQWCP-slider {
  103. border-color: #666;
  104. }
  105. .jQWCP-scursor {
  106. position: absolute;
  107. left: 0;
  108. top: 0;
  109. right: 0;
  110. height: 6px;
  111. margin: -5px -1px -5px -3px;
  112. cursor: crosshair;
  113. border: solid 2px #fff;
  114. box-shadow: 1px 1px 2px #000;
  115. border-radius: 4px;
  116. }
  117. .jQWCP-wAlphaSlider,
  118. .jQWCP-wPreviewBox {
  119. background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEVAQEB/f39eaJUuAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYRBDgK9dKdMgAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAARSURBVAjXY/jPwIAVYRf9DwB+vw/x6vMT1wAAAABJRU5ErkJggg==') center center;
  120. }
  121. .jQWCP-overlay {
  122. position: fixed;
  123. top: 0;
  124. left: 0;
  125. bottom: 0;
  126. right: 0;
  127. z-index: 1000;
  128. }
  129. /*********************/
  130. /* Mobile layout */
  131. .jQWCP-mobile.jQWCP-wWidget {
  132. position: fixed;
  133. bottom: 0;
  134. left: 0 !important;
  135. top: auto !important;
  136. width: 100%;
  137. height: 75%;
  138. max-height: 240px;
  139. box-sizing: border-box;
  140. border-radius: 0;
  141. }