설명 없음
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.

_check-box.scss 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /*************************************
  2. check-box style CSS
  3. *************************************/
  4. .widget-check-box {
  5. margin-bottom: 10px;
  6. }
  7. .sidbar-widget {
  8. padding-top: 20px;
  9. }
  10. .sidbar-widget .title {
  11. font-weight: fontweight(bold);
  12. font-size: 18px;
  13. padding-bottom: 20px;
  14. margin-bottom: 20px;
  15. position: relative;
  16. display: block;
  17. border-bottom: 1px solid $border-color;
  18. text-transform: capitalize;
  19. &::before {
  20. content: "";
  21. position: absolute;
  22. left: 0;
  23. bottom: -1px;
  24. width: 60px;
  25. height: 2px;
  26. background: $theme-color;
  27. }
  28. }
  29. .sidbar-widget .sub-title {
  30. font-weight: fontweight(semi-bold);
  31. font-size: 16px;
  32. margin-bottom: 10px;
  33. text-transform: capitalize;
  34. }
  35. .widget-check-box input[type="checkbox"] {
  36. display: none;
  37. }
  38. .widget-check-box input[type="checkbox"] + label {
  39. position: relative;
  40. padding-top: 3px;
  41. padding-left: 30px;
  42. cursor: pointer;
  43. text-transform: capitalize;
  44. user-select: none;
  45. font-size: 14px;
  46. line-height: 22px;
  47. }
  48. .widget-check-box input[type="checkbox"] + label:hover {
  49. color: $theme-color;
  50. }
  51. .widget-check-box input[type="checkbox"] + label:before {
  52. content: "";
  53. display: block;
  54. width: 15px;
  55. height: 15px;
  56. border: 1px solid $border-color;
  57. border-radius: 3px;
  58. position: absolute;
  59. left: 0;
  60. top: 5px;
  61. opacity: 1;
  62. }
  63. .widget-check-box input[type="checkbox"] + label:hover:before {
  64. border-color: $theme-color;
  65. }
  66. .widget-check-box.color-grey input[type="checkbox"] + label:before {
  67. background-color: $black-soft;
  68. box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
  69. border: 1px solid rgba(0, 0, 0, 0.05);
  70. }
  71. .widget-check-box.color-grey input[type="checkbox"]:checked + label:before {
  72. background-color: transparent;
  73. }
  74. .widget-check-box.color-white input[type="checkbox"] + label:before {
  75. box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
  76. border: 1px solid rgba(0, 0, 0, 0.05);
  77. }
  78. .widget-check-box.color-black input[type="checkbox"] + label:before {
  79. background-color: $tab-menu-color;
  80. border: 1px solid $tab-menu-color;
  81. }
  82. .widget-check-box.color-camel input[type="checkbox"] + label:before {
  83. background-color: $camel;
  84. border: 1px solid $camel;
  85. }
  86. .widget-check-box.color-camel input[type="checkbox"]:checked + label:before {
  87. background-color: transparent;
  88. }
  89. .widget-check-box input[type="checkbox"]:checked + label:before {
  90. width: 10px;
  91. top: -1px;
  92. left: 5px;
  93. border-color: $theme-color;
  94. border-radius: 0;
  95. opacity: 1;
  96. border-top-color: transparent;
  97. border-left-color: transparent;
  98. @include transform(rotate(45deg));
  99. }
  100. // theme1
  101. .theme1 {
  102. .widget-check-box input[type="checkbox"]:checked + label:before {
  103. border-color: $theme-color;
  104. border-radius: 0;
  105. opacity: 1;
  106. border-top-color: transparent;
  107. border-left-color: transparent;
  108. @include transform(rotate(45deg));
  109. }
  110. }
  111. .widget-check-box.color-black input[type="checkbox"]:checked + label:before {
  112. background: 0 0;
  113. }
  114. /* radio check box style */
  115. .widget-check-box input[type="radio"]:checked,
  116. .widget-check-box input[type="radio"]:not(:checked) {
  117. position: absolute;
  118. left: -9999px;
  119. }
  120. .widget-check-box input[type="radio"]:checked + label,
  121. .widget-check-box input[type="radio"]:not(:checked) + label {
  122. position: relative;
  123. padding-left: 35px;
  124. cursor: pointer;
  125. line-height: 20px;
  126. display: inline-block;
  127. }
  128. .widget-check-box input[type="radio"]:checked + label:before,
  129. .widget-check-box input[type="radio"]:not(:checked) + label:before {
  130. content: "";
  131. position: absolute;
  132. left: 0;
  133. top: 0;
  134. width: 20px;
  135. height: 20px;
  136. border: 2px solid $border-color;
  137. border-radius: 100%;
  138. background: $color-white;
  139. }
  140. .widget-check-box input[type="radio"]:checked + label:after,
  141. .widget-check-box input[type="radio"]:not(:checked) + label:after {
  142. content: "";
  143. width: 12px;
  144. height: 12px;
  145. background: $theme-color;
  146. position: absolute;
  147. top: 4px;
  148. left: 4px;
  149. border-radius: 100%;
  150. }
  151. .widget-check-box input[type="radio"]:not(:checked) + label:after {
  152. opacity: 0;
  153. @include transform(scale(0));
  154. }
  155. .widget-check-box input[type="radio"]:checked + label:after {
  156. opacity: 1;
  157. @include transform(scale(1));
  158. }
  159. .widget-check-box input[type="radio"] + label:hover {
  160. color: $theme-color;
  161. }
  162. /* check-box style CSS End */
  163. #amount {
  164. border: 0;
  165. color: #565656;
  166. font-size: 14px;
  167. margin: 0 0 20px;
  168. }
  169. .sidbar-widget .ui-widget-content {
  170. border: 1px solid $theme-color;
  171. }
  172. .sidbar-widget .ui-slider-horizontal {
  173. height: 5px;
  174. }
  175. .sidbar-widget .ui-widget-header {
  176. background: $theme-color;
  177. }
  178. .sidbar-widget .ui-slider-handle {
  179. top: 50%;
  180. width: 15px;
  181. height: 15px;
  182. border: none;
  183. background: $color-white;
  184. box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
  185. outline: 0;
  186. cursor: pointer;
  187. margin-top: -7.5px;
  188. border-radius: 100%;
  189. }
  190. /*************************************
  191. check-box style CSS END
  192. *************************************/