simp-select 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,8 +17,8 @@ npm install simp-select --save
17
17
  ```
18
18
  Or you can load it via a script tag as follows:
19
19
  ```
20
- <script src="https://unpkg.com/simp-select@1.2.2/dist/simpleSelect.js" ></script>
21
- <script src="https://unpkg.com/simp-select@1.2.2/dist/polyfill.js" ></script> - for IE 11
20
+ <script src="https://unpkg.com/simp-select@1.2.3/dist/simpleSelect.js" ></script>
21
+ <script src="https://unpkg.com/simp-select@1.2.3/dist/polyfill.js" ></script> - for IE 11
22
22
  Or get last version
23
23
  <script src="https://unpkg.com/simp-select"></script>
24
24
  ```
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- :root{--simpS_bg:#fff;--simpS_pad_hor:15px;--simpS_height_top:40px;--simpS_color:#27272a;--simpS_color_light:#eae9e9;--simpS_color_cheked:#d9d7d7;--simpS_color_yes:green;--simpS_color_no:red;--simpS_color_placeholder:#5d5c5c;--simpS_color_dis:#8b8b8b;--simpS_status_bar:rgba(46,122,1,.67);--simpS_dropdownBg:var(--simpS_bg);--simpS_labelBg:var(--simpS_bg);--simpS_label_pad_hor:4px;--simpS_borderColor:var(--simpS_color);--simpS_DropDownBorderColor:var(--simpS_borderColor);--simpS_radius:4px;--simpS_f_size:16px;--simpS_f_shadow:0 0 3px 0 var(--simpS_color);--simpS_size_check:20px;--simpS_li_h:36px;--simpS_btn_h:34px;--simpS_btn_bg:#f9f9f9;--simpS_btn_bg_reverse:#eeecec}.SimpleSel{-webkit-box-sizing:border-box;box-sizing:border-box;color:#27272a;color:var(--simpS_color);font-size:16px;font-size:var(--simpS_f_size);position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel--disabled{color:#8b8b8b;color:var(--simpS_color_dis);opacity:.8}.SimpleSel *,.SimpleSel :after,.SimpleSel :before{-webkit-box-sizing:border-box;box-sizing:border-box}.SimpleSel--float .SimpleSel__select_init{visibility:hidden}.SimpleSel__select_init{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;opacity:0;position:absolute;right:0;top:0;width:100%}.SimpleSel__select_init--native{z-index:5}.SimpleSel__bottom_control,.SimpleSel__control{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-ms-flex-line-pack:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-content:center;align-items:center;-webkit-appearance:none;background-color:#f9f9f9;background-color:var(--simpS_btn_bg);border:none;border-radius:0;color:inherit;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font:inherit;height:34px;height:var(--simpS_btn_h);justify-content:center;line-height:normal;margin:0;outline:none;overflow:visible;padding:1px 10px;text-align:center;width:auto}.SimpleSel__bottom_control:hover,.SimpleSel__control:hover{background-color:#eeecec;background-color:var(--simpS_btn_bg_reverse)}.SimpleSel__list_item_icon,.SimpleSel__reset_all__icon,.SimpleSel__select_all__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border:1px solid;border-radius:4px;border-radius:var(--simpS_radius);display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;height:var(--simpS_size_check);justify-content:center;margin-right:7px;position:relative;width:20px;width:var(--simpS_size_check)}.SimpleSel__list_item_icon:before,.SimpleSel__select_all__icon:before{border:solid;border-width:0 2px 2px 0;content:"";display:block;height:11px;height:calc(var(--simpS_size_check)/2 + 1px);left:4px;top:1px;-webkit-transform:rotate(45deg) translate(-17%,-10%);transform:rotate(45deg) translate(-17%,-10%);-webkit-transition:all .25s;transition:all .25s;width:6.66667px;width:calc(var(--simpS_size_check)/3)}.SimpleSel__top{position:relative}.SimpleSel__top_body{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;background-color:#fff;background-color:var(--simpS_bg);border:2px solid #27272a;border:2px solid var(--simpS_borderColor);border-radius:4px;border-radius:var(--simpS_radius);color:currentColor;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:space-between;padding:5px 0 5px 15px;padding:5px 0 5px var(--simpS_pad_hor);position:relative}.SimpleSel--disabled .SimpleSel__top_body{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel__top_body:focus-visible{-webkit-box-shadow:0 0 3px 0 #27272a;box-shadow:0 0 3px 0 #27272a;-webkit-box-shadow:var(--simpS_f_shadow);box-shadow:var(--simpS_f_shadow)}.SimpleSel__title{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.SimpleSel__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:center;position:relative;width:40px;width:var(--simpS_height_top)}.SimpleSel__icon:after{border-bottom:2px solid;border-right:2px solid;content:"";display:inline;height:.5em;left:50%;position:absolute;top:calc(50% - 2px);-webkit-transform:rotate(45deg) translate(-50%,-50%);transform:rotate(45deg) translate(-50%,-50%);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:transform .25s,top .25s;transition:transform .25s,top .25s;width:.5em}.SimpleSel--open .SimpleSel__icon:after{top:calc(50% + 2px);-webkit-transform:rotate(225deg) translate(-50%,-50%);transform:rotate(225deg) translate(-50%,-50%)}.SimpleSel--always_open .SimpleSel__icon{display:none}.SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,.SimpleSel__list_item--not_value,.SimpleSel__title--placeholder{color:#5d5c5c;color:var(--simpS_color_placeholder)}.SimpleSel__body{-ms-scroll-chaining:none;background-color:#fff;background-color:var(--simpS_dropdownBg);border:1px solid #27272a;border:1px solid var(--simpS_DropDownBorderColor);border-radius:4px;border-radius:var(--simpS_radius);max-height:0;opacity:0;overflow:hidden;overflow-y:auto;overscroll-behavior:contain;position:absolute;-webkit-transition:all .25s;transition:all .25s;visibility:hidden;width:100%;z-index:3}.SimpleSel--body-always_open{max-height:none;opacity:1;position:relative;top:auto;visibility:visible}.SimpleSel:not(.SimpleSel--up) .SimpleSel--multi{margin-top:2px;top:100%}.SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body{bottom:100%;margin-bottom:2px}.SimpleSel--open .SimpleSel__body{max-height:230px;opacity:1;visibility:visible}.SimpleSel__search_wrap{padding:5px 10px}.SimpleSel__search{border-radius:4px;border-radius:var(--simpS_radius);padding:2px 15px;padding:2px var(--simpS_pad_hor);width:100%}.SimpleSel__search--top{display:none;height:100%;left:0;opacity:0;position:absolute;top:0}.SimpleSel--open .SimpleSel__search--top{display:block;opacity:1}.SimpleSel__search--dropdown{border:none;border-bottom:1px solid;border-radius:0;height:34px;height:var(--simpS_btn_h)}.SimpleSel__controls{border-bottom:1px solid;display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel__control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__control+.SimpleSel__control{border-left:1px solid}.SimpleSel__select_all__icon{border-color:green;border-color:var(--simpS_color_yes);border-radius:50%;color:#d9d7d7;color:var(--simpS_color_cheked)}.SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon{color:#eae9e9;color:var(--simpS_color_light)}.SimpleSel[data-check-all-multi=yes] .SimpleSel__select_all__icon{color:green;color:var(--simpS_color_yes)}.SimpleSel__reset_all__icon{border-radius:50%;color:red;color:var(--simpS_color_no);position:relative}.SimpleSel__reset_all__icon:after,.SimpleSel__reset_all__icon:before{background-color:currentColor;content:" ";height:60%;left:8px;left:calc(var(--simpS_f_size)/2);position:absolute;width:2px}.SimpleSel__reset_all__icon:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.SimpleSel__reset_all__icon:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.SimpleSel__bottom_controls{border-top:1px solid;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:5px;position:sticky}.SimpleSel__bottom_controls--hide{display:none}.SimpleSel--float .SimpleSel__bottom_controls--hide{display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel__bottom_control--hide{display:none}.SimpleSel__bottom_control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__bottom_control--ok{text-transform:uppercase}.SimpleSel__bottom_control+.SimpleSel__bottom_control{border-left:1px solid}.SimpleSel__list{list-style-type:none;margin:0;padding:0}.SimpleSel__group_items:not(:first-child){margin-top:5px}.SimpleSel__group_title{background-color:#eae9e9;background-color:var(--simpS_color_light);cursor:default;display:block;font-size:1.02em;font-weight:700;margin-bottom:2px;padding:6px 10px}.SimpleSel__group{list-style-type:none;margin:0;padding:0}.SimpleSel__list_item{cursor:pointer}.SimpleSel__list_item:not(:last-child){border-bottom:1px solid #eae9e9;border-bottom:1px solid var(--simpS_color_light)}.SimpleSel__list_item--disabled{cursor:default;opacity:.5}.SimpleSel__list_item_body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:36px;min-height:var(--simpS_li_h);padding:5px 15px;padding:5px var(--simpS_pad_hor)}@media (hover:hover){.SimpleSel__list_item:not(.SimpleSel__list_item--disabled) .SimpleSel__list_item_body:hover{background-color:#eae9e9;background-color:var(--simpS_color_light);cursor:pointer}}.SimpleSel--single .SimpleSel__list_item--checked{background-color:#d9d7d7;background-color:var(--simpS_color_cheked)}.SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before{height:0;opacity:0;width:0}.SimpleSel__close{display:none}.SimpleSel--body_open{overflow:hidden;position:relative}.SimpleSel--float .SimpleSel__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:none;-ms-flex-direction:column;flex-direction:column;left:50%;max-height:90%;max-width:90%;overflow:hidden;overflow-y:auto;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.SimpleSel--open{z-index:7}.SimpleSel--float .SimpleSel__bottom_control--hide,.SimpleSel--float.SimpleSel--open .SimpleSel__body{display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel--float .SimpleSel__list{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__debounce_progress_bar{potransition-property:width;background-color:rgba(46,122,1,.67);background-color:var(--simpS_status_bar);bottom:0;height:5px;left:0;position:absolute;-webkit-transition-duration:0ms;transition-duration:0ms;-webkit-transition-timing-function:linear;transition-timing-function:linear;width:0}.SimpleSel__debounce_progress_bar.this--animating{-webkit-transition-duration:1ms;transition-duration:1ms;-webkit-transition-duration:var(--duration,1ms);transition-duration:var(--duration,1ms);width:100%}.SimpleSel--label_mode.SimpleSel--fill_without_value .SimpleSel__title{opacity:0;pointer-events:none;visibility:hidden}.SimpleSel__label{left:4px;left:var(--simpS_label_pad_hor);pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all .2s ease;transition:all .2s ease}.SimpleSel--fill_with_value .SimpleSel__label{background-color:#fff;background-color:var(--simpS_labelBg);padding:0 4px;padding:0 var(--simpS_label_pad_hor);top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}
1
+ :root{--simpS_bg:#fff;--simpS_pad_hor:15px;--simpS_height_top:40px;--simpS_color:#27272a;--simpS_color_light:#eae9e9;--simpS_color_cheked:#d9d7d7;--simpS_color_yes:green;--simpS_color_no:red;--simpS_color_placeholder:#5d5c5c;--simpS_color_dis:#8b8b8b;--simpS_status_bar:rgba(46,122,1,.67);--simpS_dropdownBg:var(--simpS_bg);--simpS_labelBg:var(--simpS_bg);--simpS_label_left:var(--simpS_pad_hor);--simpS_label_pad_hor_active:4px;--simpS_borderColor:var(--simpS_color);--simpS_DropDownBorderColor:var(--simpS_borderColor);--simpS_radius:4px;--simpS_f_size:16px;--simpS_f_shadow:0 0 3px 0 var(--simpS_color);--simpS_size_check:20px;--simpS_li_h:36px;--simpS_btn_h:34px;--simpS_btn_bg:#f9f9f9;--simpS_btn_bg_reverse:#eeecec}.SimpleSel{-webkit-box-sizing:border-box;box-sizing:border-box;color:#27272a;color:var(--simpS_color);font-size:16px;font-size:var(--simpS_f_size);position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel--disabled{color:#8b8b8b;color:var(--simpS_color_dis);opacity:.8}.SimpleSel *,.SimpleSel :after,.SimpleSel :before{-webkit-box-sizing:border-box;box-sizing:border-box}.SimpleSel--float .SimpleSel__select_init{visibility:hidden}.SimpleSel__select_init{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;opacity:0;position:absolute;right:0;top:0;width:100%}.SimpleSel__select_init--native{z-index:5}.SimpleSel__bottom_control,.SimpleSel__control{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-ms-flex-line-pack:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-content:center;align-items:center;-webkit-appearance:none;background-color:#f9f9f9;background-color:var(--simpS_btn_bg);border:none;border-radius:0;color:inherit;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font:inherit;height:34px;height:var(--simpS_btn_h);justify-content:center;line-height:normal;margin:0;outline:none;overflow:visible;padding:1px 10px;text-align:center;width:auto}.SimpleSel__bottom_control:hover,.SimpleSel__control:hover{background-color:#eeecec;background-color:var(--simpS_btn_bg_reverse)}.SimpleSel__list_item_icon,.SimpleSel__reset_all__icon,.SimpleSel__select_all__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border:1px solid;border-radius:4px;border-radius:var(--simpS_radius);display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;height:var(--simpS_size_check);justify-content:center;margin-right:7px;position:relative;width:20px;width:var(--simpS_size_check)}.SimpleSel__list_item_icon:before,.SimpleSel__select_all__icon:before{border:solid;border-width:0 2px 2px 0;content:"";display:block;height:11px;height:calc(var(--simpS_size_check)/2 + 1px);left:4px;top:1px;-webkit-transform:rotate(45deg) translate(-17%,-10%);transform:rotate(45deg) translate(-17%,-10%);-webkit-transition:all .25s;transition:all .25s;width:6.66667px;width:calc(var(--simpS_size_check)/3)}.SimpleSel__top{position:relative}.SimpleSel__top_body{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;background-color:#fff;background-color:var(--simpS_bg);border:2px solid #27272a;border:2px solid var(--simpS_borderColor);border-radius:4px;border-radius:var(--simpS_radius);color:currentColor;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:space-between;padding:5px 0 5px 15px;padding:5px 0 5px var(--simpS_pad_hor);position:relative}.SimpleSel--disabled .SimpleSel__top_body{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.SimpleSel__top_body:focus-visible{-webkit-box-shadow:0 0 3px 0 #27272a;box-shadow:0 0 3px 0 #27272a;-webkit-box-shadow:var(--simpS_f_shadow);box-shadow:var(--simpS_f_shadow)}.SimpleSel__title{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.SimpleSel__icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;height:var(--simpS_height_top);justify-content:center;position:relative;width:40px;width:var(--simpS_height_top)}.SimpleSel__icon:after{border-bottom:2px solid;border-right:2px solid;content:"";display:inline;height:.5em;left:50%;position:absolute;top:calc(50% - 2px);-webkit-transform:rotate(45deg) translate(-50%,-50%);transform:rotate(45deg) translate(-50%,-50%);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:transform .25s,top .25s;transition:transform .25s,top .25s;width:.5em}.SimpleSel--open .SimpleSel__icon:after{top:calc(50% + 2px);-webkit-transform:rotate(225deg) translate(-50%,-50%);transform:rotate(225deg) translate(-50%,-50%)}.SimpleSel--always_open .SimpleSel__icon{display:none}.SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,.SimpleSel__list_item--not_value,.SimpleSel__title--placeholder{color:#5d5c5c;color:var(--simpS_color_placeholder)}.SimpleSel__body{-ms-scroll-chaining:none;background-color:#fff;background-color:var(--simpS_dropdownBg);border:1px solid #27272a;border:1px solid var(--simpS_DropDownBorderColor);border-radius:4px;border-radius:var(--simpS_radius);max-height:0;opacity:0;overflow:hidden;overflow-y:auto;overscroll-behavior:contain;position:absolute;-webkit-transition:all .25s;transition:all .25s;visibility:hidden;width:100%;z-index:3}.SimpleSel--body-always_open{max-height:none;opacity:1;position:relative;top:auto;visibility:visible}.SimpleSel:not(.SimpleSel--up) .SimpleSel--multi{margin-top:2px;top:100%}.SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body{bottom:100%;margin-bottom:2px}.SimpleSel--open .SimpleSel__body{max-height:230px;opacity:1;visibility:visible}.SimpleSel__search_wrap{padding:5px 10px}.SimpleSel__search{border-radius:4px;border-radius:var(--simpS_radius);padding:2px 15px;padding:2px var(--simpS_pad_hor);width:100%}.SimpleSel__search--top{display:none;height:100%;left:0;opacity:0;position:absolute;top:0}.SimpleSel--open .SimpleSel__search--top{display:block;opacity:1}.SimpleSel__search--dropdown{border:none;border-bottom:1px solid;border-radius:0;height:34px;height:var(--simpS_btn_h)}.SimpleSel__controls{border-bottom:1px solid;display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel__control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__control+.SimpleSel__control{border-left:1px solid}.SimpleSel__select_all__icon{border-color:green;border-color:var(--simpS_color_yes);border-radius:50%;color:#d9d7d7;color:var(--simpS_color_cheked)}.SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon{color:#eae9e9;color:var(--simpS_color_light)}.SimpleSel[data-check-all-multi=yes] .SimpleSel__select_all__icon{color:green;color:var(--simpS_color_yes)}.SimpleSel__reset_all__icon{border-radius:50%;color:red;color:var(--simpS_color_no);position:relative}.SimpleSel__reset_all__icon:after,.SimpleSel__reset_all__icon:before{background-color:currentColor;content:" ";height:60%;left:8px;left:calc(var(--simpS_f_size)/2);position:absolute;width:2px}.SimpleSel__reset_all__icon:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.SimpleSel__reset_all__icon:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.SimpleSel__bottom_controls{border-top:1px solid;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:5px;position:sticky}.SimpleSel__bottom_controls--hide{display:none}.SimpleSel--float .SimpleSel__bottom_controls--hide{display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel__bottom_control--hide{display:none}.SimpleSel__bottom_control{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__bottom_control--ok{text-transform:uppercase}.SimpleSel__bottom_control+.SimpleSel__bottom_control{border-left:1px solid}.SimpleSel__list{list-style-type:none;margin:0;padding:0}.SimpleSel__group_items:not(:first-child){margin-top:5px}.SimpleSel__group_title{background-color:#eae9e9;background-color:var(--simpS_color_light);cursor:default;display:block;font-size:1.02em;font-weight:700;margin-bottom:2px;padding:6px 10px}.SimpleSel__group{list-style-type:none;margin:0;padding:0}.SimpleSel__list_item{cursor:pointer}.SimpleSel__list_item:not(:last-child){border-bottom:1px solid #eae9e9;border-bottom:1px solid var(--simpS_color_light)}.SimpleSel__list_item--disabled{cursor:default;opacity:.5}.SimpleSel__list_item_body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:36px;min-height:var(--simpS_li_h);padding:5px 15px;padding:5px var(--simpS_pad_hor)}@media (hover:hover){.SimpleSel__list_item:not(.SimpleSel__list_item--disabled) .SimpleSel__list_item_body:hover{background-color:#eae9e9;background-color:var(--simpS_color_light);cursor:pointer}}.SimpleSel--single .SimpleSel__list_item--checked{background-color:#d9d7d7;background-color:var(--simpS_color_cheked)}.SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before{height:0;opacity:0;width:0}.SimpleSel__close{display:none}.SimpleSel--body_open{overflow:hidden;position:relative}.SimpleSel--float .SimpleSel__body{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:none;-ms-flex-direction:column;flex-direction:column;left:50%;max-height:90%;max-width:90%;overflow:hidden;overflow-y:auto;position:fixed;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.SimpleSel--open{z-index:7}.SimpleSel--float .SimpleSel__bottom_control--hide,.SimpleSel--float.SimpleSel--open .SimpleSel__body{display:-webkit-box;display:-ms-flexbox;display:flex}.SimpleSel--float .SimpleSel__list{-webkit-box-flex:1;-ms-flex:1;flex:1}.SimpleSel__debounce_progress_bar{potransition-property:width;background-color:rgba(46,122,1,.67);background-color:var(--simpS_status_bar);bottom:0;height:5px;left:0;position:absolute;-webkit-transition-duration:0ms;transition-duration:0ms;-webkit-transition-timing-function:linear;transition-timing-function:linear;width:0}.SimpleSel__debounce_progress_bar.this--animating{-webkit-transition-duration:1ms;transition-duration:1ms;-webkit-transition-duration:var(--duration,1ms);transition-duration:var(--duration,1ms);width:100%}.SimpleSel--label_mode.SimpleSel--fill_without_value .SimpleSel__title{opacity:0;pointer-events:none;visibility:hidden}.SimpleSel__label{left:15px;left:var(--simpS_label_left);pointer-events:none;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all .2s ease;transition:all .2s ease}.SimpleSel--fill_with_value .SimpleSel__label{background-color:#fff;background-color:var(--simpS_labelBg);padding:0 4px;padding:0 var(--simpS_label_pad_hor_active);top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simp-select",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "simp-select - this plugin replaces the select",
5
5
  "main": "dist/simpleSelect.js",
6
6
  "types": "dist/simpleSelect.d.ts",
package/src/style.css CHANGED
@@ -1,496 +1,497 @@
1
- :root {
2
- --simpS_bg: white;
3
- --simpS_pad_hor: 15px;
4
- --simpS_height_top: 40px;
5
- --simpS_color: #27272a;
6
- --simpS_color_light: #eae9e9;
7
- --simpS_color_cheked: #d9d7d7;
8
- --simpS_color_yes: green;
9
- --simpS_color_no: red;
10
- --simpS_color_placeholder: #5d5c5c;
11
- --simpS_color_dis: #8b8b8b;
12
- --simpS_status_bar: rgba(46, 122, 1, 0.67);
13
- --simpS_dropdownBg: var(--simpS_bg);
14
- --simpS_labelBg: var(--simpS_bg);
15
- --simpS_label_pad_hor: 4px;
16
- --simpS_borderColor: var(--simpS_color);
17
- --simpS_DropDownBorderColor: var(--simpS_borderColor);
18
-
19
- --simpS_radius: 4px;
20
- --simpS_f_size: 16px;
21
- --simpS_f_shadow: 0 0 3px 0 var(--simpS_color);
22
-
23
-
24
- --simpS_size_check: 20px;
25
-
26
- --simpS_li_h: 36px;
27
-
28
- --simpS_btn_h: 34px;
29
- --simpS_btn_bg: #f9f9f9;
30
- --simpS_btn_bg_reverse: #eeecec;
31
-
32
- }
33
- .SimpleSel {
34
- position: relative;
35
- box-sizing: border-box;
36
- color: var(--simpS_color);
37
- font-size: var(--simpS_f_size);
38
- user-select: none;
39
- }
40
- .SimpleSel--disabled {
41
- color: var(--simpS_color_dis);
42
- opacity: .8;
43
-
44
- }
45
-
46
- /* start all setting */
47
-
48
- .SimpleSel * {
49
- box-sizing: border-box;
50
- }
51
- .SimpleSel :after,
52
- .SimpleSel :before {
53
- box-sizing: border-box;
54
- }
55
-
56
- .SimpleSel--float .SimpleSel__select_init {
57
- visibility: hidden;
58
- }
59
-
60
- .SimpleSel__select_init {
61
- position: absolute;
62
- opacity: 0;
63
- top: 0;
64
- right: 0;
65
- width: 100%;
66
- height: 100%;
67
- /*z-index: 2;*/
68
- box-sizing: border-box;
69
- }
70
- .SimpleSel__select_init--native {
71
- z-index: 5;
72
- }
73
-
74
- /* end all setting */
75
-
76
- /* start Buttons */
77
- .SimpleSel__bottom_control,
78
- .SimpleSel__control {
79
- margin: 0;
80
- width: auto;
81
- overflow: visible;
82
- color: inherit;
83
- font: inherit;
84
- line-height: normal;
85
- -webkit-font-smoothing: inherit;
86
- -moz-osx-font-smoothing: inherit;
87
- -webkit-appearance: none;
88
- outline: none;
89
- cursor: pointer;
90
-
91
- background-color: var(--simpS_btn_bg);
92
- padding: 1px 10px;
93
- text-align: center;
94
- border-radius: 0;
95
- border: none;
96
- display: flex;
97
- align-content: center;
98
- align-items: center;
99
- justify-content: center;
100
- height: var(--simpS_btn_h);
101
- }
102
- .SimpleSel__bottom_control:hover,
103
- .SimpleSel__control:hover {
104
- background-color: var(--simpS_btn_bg_reverse);
105
- }
106
- /* end Buttons */
107
-
108
- /* start Checkbox */
109
- .SimpleSel__select_all__icon,
110
- .SimpleSel__list_item_icon,
111
- .SimpleSel__reset_all__icon {
112
- width: var(--simpS_size_check);
113
- height: var(--simpS_size_check);
114
- position: relative;
115
- border: 1px solid currentColor;
116
- margin-right: 7px;
117
- display: flex;
118
- align-items: center;
119
- justify-content: center;
120
- border-radius: var(--simpS_radius);
121
- }
122
- .SimpleSel__list_item_icon:before,
123
- .SimpleSel__select_all__icon:before {
124
- content: "";
125
- display: block;
126
- transition: 0.25s all;
127
- transform: rotate(45deg) translate(-17%, -10%);
128
- top: 1px;
129
- left: 4px;
130
- /*width: 7px;*/
131
- width: calc(var(--simpS_size_check) / 3);
132
- height: calc(var(--simpS_size_check) / 2 + 1px);
133
- border: solid currentColor;
134
- border-width: 0 2px 2px 0;
135
- }
136
- /* end Checkbox */
137
-
138
-
139
-
140
- .SimpleSel__top {
141
- position: relative;
142
- }
143
- .SimpleSel__top_body {
144
- position: relative;
145
-
146
- height: var(--simpS_height_top);
147
- padding: 5px 0 5px var(--simpS_pad_hor);
148
-
149
- background-color: var(--simpS_bg);
150
- color: currentColor;
151
- border: 2px solid var(--simpS_borderColor);
152
- border-radius: var(--simpS_radius);
153
-
154
- display: flex;
155
- align-items: center;
156
- justify-content: space-between;
157
-
158
- cursor: pointer;
159
- }
160
-
161
- .SimpleSel--disabled .SimpleSel__top_body {
162
- cursor: default;
163
- user-select: none;
164
- }
165
-
166
- .SimpleSel__top_body:focus-visible {
167
- box-shadow: var(--simpS_f_shadow);
168
- }
169
-
170
- .SimpleSel__title {
171
- flex: 1;
172
- white-space: nowrap;
173
- overflow: hidden;
174
- text-overflow: ellipsis;
175
- text-align: left;
176
- }
177
-
178
- .SimpleSel__icon {
179
- width: var(--simpS_height_top);
180
- height: var(--simpS_height_top);
181
- display: flex;
182
- align-items: center;
183
- justify-content: center;
184
- position: relative;
185
- }
186
- .SimpleSel__icon:after {
187
- content: '';
188
- transition: .25s transform, .25s top;
189
- width: 0.5em;
190
- height: 0.5em;
191
- border-bottom: 2px currentColor solid;
192
- border-right: 2px currentColor solid;
193
- display: inline;
194
- position: absolute;
195
- transform-origin: left top;
196
- top: calc(50% - 2px);
197
- left: 50%;
198
- transform: rotate(45deg) translate(-50%,-50%);
199
- }
200
- .SimpleSel--open .SimpleSel__icon:after {
201
- top: calc(50% + 2px);
202
- transform: rotate(225deg) translate(-50%,-50%);
203
- }
204
-
205
- .SimpleSel--always_open .SimpleSel__icon {
206
- display: none;
207
- }
208
-
209
- .SimpleSel__list_item--not_value,
210
- .SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,
211
- .SimpleSel__title--placeholder {
212
- color: var(--simpS_color_placeholder);
213
- }
214
-
215
-
216
- .SimpleSel__body {
217
- max-height: 0;
218
- opacity: 0;
219
- visibility: hidden;
220
- overflow: hidden;
221
- overflow-y: auto;
222
- position: absolute;
223
- transition: .25s all;
224
- width: 100%;
225
- border: 1px solid var(--simpS_DropDownBorderColor);
226
- z-index: 3;
227
- border-radius: var(--simpS_radius);
228
- background-color: var(--simpS_dropdownBg);
229
- overscroll-behavior: contain;
230
- }
231
- .SimpleSel--body-always_open {
232
- max-height: none;
233
- position: relative;
234
- top: auto;
235
- opacity: 1;
236
- visibility: visible;
237
- }
238
-
239
- .SimpleSel:not(.SimpleSel--up) .SimpleSel--multi {
240
- top: 100%;
241
- margin-top: 2px;
242
- }
243
-
244
- .SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body {
245
- bottom: 100%;
246
- margin-bottom: 2px;
247
- }
248
-
249
- .SimpleSel--open .SimpleSel__body {
250
- max-height: 230px;
251
- opacity: 1;
252
- visibility: visible;
253
- }
254
-
255
- .SimpleSel__search_wrap{
256
- padding: 5px 10px;
257
- }
258
- .SimpleSel__search{
259
- width: 100%;
260
- border-radius: var(--simpS_radius);
261
- padding: 2px var(--simpS_pad_hor);
262
- }
263
- .SimpleSel__search--top {
264
- position: absolute;
265
- top: 0;
266
- left: 0;
267
- height: 100%;
268
- opacity: 0;
269
- display: none;
270
- }
271
- .SimpleSel--open .SimpleSel__search--top {
272
- opacity: 1;
273
- display: block;
274
- }
275
- .SimpleSel__search--dropdown {
276
- border: none;
277
- border-bottom: 1px solid currentColor;
278
- border-radius: 0;
279
- height: var(--simpS_btn_h);
280
- }
281
-
282
- /* controls */
283
- .SimpleSel__controls {
284
- display: flex;
285
- border-bottom: 1px solid currentColor;
286
- }
287
- .SimpleSel__control {
288
- flex: 1;
289
- }
290
- .SimpleSel__control + .SimpleSel__control {
291
- border-left: 1px solid;
292
- }
293
- .SimpleSel__select_all__icon {
294
- color: var(--simpS_color_cheked);
295
- border-radius: 50%;
296
- border-color: var(--simpS_color_yes);
297
- }
298
- .SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon {
299
- color: var(--simpS_color_light);
300
- }
301
- .SimpleSel[data-check-all-multi="yes"] .SimpleSel__select_all__icon {
302
- color: var(--simpS_color_yes);
303
- }
304
-
305
- .SimpleSel__reset_all__icon {
306
- position: relative;
307
- border-radius: 50%;
308
- color: var(--simpS_color_no);
309
-
310
- }
311
- .SimpleSel__reset_all__icon:before, .SimpleSel__reset_all__icon:after {
312
- position: absolute;
313
- left: calc(var(--simpS_f_size) / 2);
314
- content: ' ';
315
- height: 60%;
316
- width: 2px;
317
- background-color: currentColor;
318
- }
319
- .SimpleSel__reset_all__icon:before {
320
- transform: rotate(45deg);
321
- }
322
- .SimpleSel__reset_all__icon:after {
323
- transform: rotate(-45deg);
324
- }
325
-
326
-
327
- .SimpleSel__bottom_controls {
328
- display: flex;
329
- position: sticky;
330
- border-top: 1px solid currentColor;
331
- margin-top: 5px;
332
- bottom: 0;
333
- }
334
- .SimpleSel__bottom_controls--hide {
335
- display: none;
336
- }
337
- .SimpleSel--float .SimpleSel__bottom_controls--hide{
338
- display: flex;
339
- }
340
- .SimpleSel__bottom_control--hide {
341
- display: none;
342
- }
343
- .SimpleSel__bottom_control {
344
- flex: 1;
345
- }
346
- .SimpleSel__bottom_control--ok{
347
- text-transform: uppercase;
348
- }
349
- .SimpleSel__bottom_control + .SimpleSel__bottom_control {
350
- border-left: 1px solid ;
351
- }
352
-
353
-
354
- /**List*/
355
- .SimpleSel__list {
356
- list-style-type: none;
357
- margin: 0;
358
- padding: 0;
359
- }
360
- .SimpleSel__group_items:not(:first-child) {
361
- margin-top: 5px;
362
- }
363
- .SimpleSel__group_title {
364
- font-weight: bold;
365
- cursor: default;
366
- display: block;
367
- padding: 6px 10px ;
368
- margin-bottom: 2px;
369
- font-size: 1.02em;
370
- background-color: var(--simpS_color_light);
371
- }
372
-
373
- .SimpleSel__group {
374
- list-style-type: none;
375
- margin: 0;
376
- padding: 0;
377
- }
378
-
379
-
380
-
381
- .SimpleSel__list_item {
382
- cursor: pointer;
383
- }
384
- .SimpleSel__list_item:not(:last-child) {
385
- border-bottom: 1px solid var(--simpS_color_light);
386
- }
387
-
388
- .SimpleSel__list_item--disabled {
389
- opacity: .5;
390
- cursor: default;
391
- }
392
-
393
- .SimpleSel__list_item_body {
394
- padding: 5px var(--simpS_pad_hor);
395
- display: flex;
396
- align-items: center;
397
- min-height: var(--simpS_li_h);
398
- }
399
- @media (hover: hover) {
400
- .SimpleSel__list_item:not(.SimpleSel__list_item--disabled) {
401
- .SimpleSel__list_item_body:hover {
402
- cursor: pointer;
403
- background-color: var(--simpS_color_light);
404
- }
405
- }
406
- }
407
-
408
-
409
- .SimpleSel--single .SimpleSel__list_item--checked {
410
- background-color: var(--simpS_color_cheked);
411
- }
412
-
413
- .SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before {
414
- opacity: 0;
415
- width: 0;
416
- height: 0;
417
- }
418
-
419
- .SimpleSel__close {
420
- display: none;
421
- }
422
-
423
- /* FLOAT */
424
- .SimpleSel--body_open {
425
- overflow: hidden;
426
- position: relative;
427
- }
428
-
429
-
430
- .SimpleSel--float .SimpleSel__body {
431
- position: fixed;
432
- max-width: 90%;
433
- max-height: 90%;
434
- left: 50%;
435
- top: 50%;
436
- overflow: hidden;
437
- overflow-y: auto;
438
- transform: translate(-50%, -50%);
439
- flex-direction: column;
440
- display: none;
441
- }
442
- .SimpleSel--open {
443
- z-index: 7;
444
- }
445
- .SimpleSel--float.SimpleSel--open .SimpleSel__body{
446
- display: flex;
447
- }
448
-
449
- .SimpleSel--float .SimpleSel__bottom_control--hide {
450
- display: flex;
451
- }
452
- .SimpleSel--float .SimpleSel__list {
453
- flex: 1;
454
- }
455
-
456
-
457
- .SimpleSel__debounce_progress_bar {
458
- transition-timing-function: linear;
459
- potransition-property: width;
460
- width: 0;
461
- height: 5px;
462
- background-color: var(--simpS_status_bar);
463
- transition-duration: 0ms;
464
- position: absolute;
465
- bottom: 0;
466
- left: 0;
467
-
468
-
469
- }
470
- .SimpleSel__debounce_progress_bar.this--animating {
471
- width: 100%;
472
- transition-duration: var(--duration, 1ms);
473
- }
474
-
475
- /** **/
476
- .SimpleSel--label_mode.SimpleSel--fill_without_value {
477
- .SimpleSel__title {
478
- opacity: 0;
479
- visibility: hidden;
480
- pointer-events: none;
481
- }
482
- }
483
- .SimpleSel__label {
484
- position: absolute;
485
- top: 50%;
486
- left: var(--simpS_label_pad_hor);
487
- transform: translateY(-50%);
488
- transition: all 0.2s ease;
489
- pointer-events: none;
490
- }
491
- .SimpleSel--fill_with_value .SimpleSel__label {
492
- top: 0;
493
- transform: translateY(-50%);
494
- background-color: var(--simpS_labelBg);
495
- padding: 0 var(--simpS_label_pad_hor);
496
- }
1
+ :root {
2
+ --simpS_bg: white;
3
+ --simpS_pad_hor: 15px;
4
+ --simpS_height_top: 40px;
5
+ --simpS_color: #27272a;
6
+ --simpS_color_light: #eae9e9;
7
+ --simpS_color_cheked: #d9d7d7;
8
+ --simpS_color_yes: green;
9
+ --simpS_color_no: red;
10
+ --simpS_color_placeholder: #5d5c5c;
11
+ --simpS_color_dis: #8b8b8b;
12
+ --simpS_status_bar: rgba(46, 122, 1, 0.67);
13
+ --simpS_dropdownBg: var(--simpS_bg);
14
+ --simpS_labelBg: var(--simpS_bg);
15
+ --simpS_label_left: var(--simpS_pad_hor);
16
+ --simpS_label_pad_hor_active: 4px;
17
+ --simpS_borderColor: var(--simpS_color);
18
+ --simpS_DropDownBorderColor: var(--simpS_borderColor);
19
+
20
+ --simpS_radius: 4px;
21
+ --simpS_f_size: 16px;
22
+ --simpS_f_shadow: 0 0 3px 0 var(--simpS_color);
23
+
24
+
25
+ --simpS_size_check: 20px;
26
+
27
+ --simpS_li_h: 36px;
28
+
29
+ --simpS_btn_h: 34px;
30
+ --simpS_btn_bg: #f9f9f9;
31
+ --simpS_btn_bg_reverse: #eeecec;
32
+
33
+ }
34
+ .SimpleSel {
35
+ position: relative;
36
+ box-sizing: border-box;
37
+ color: var(--simpS_color);
38
+ font-size: var(--simpS_f_size);
39
+ user-select: none;
40
+ }
41
+ .SimpleSel--disabled {
42
+ color: var(--simpS_color_dis);
43
+ opacity: .8;
44
+
45
+ }
46
+
47
+ /* start all setting */
48
+
49
+ .SimpleSel * {
50
+ box-sizing: border-box;
51
+ }
52
+ .SimpleSel :after,
53
+ .SimpleSel :before {
54
+ box-sizing: border-box;
55
+ }
56
+
57
+ .SimpleSel--float .SimpleSel__select_init {
58
+ visibility: hidden;
59
+ }
60
+
61
+ .SimpleSel__select_init {
62
+ position: absolute;
63
+ opacity: 0;
64
+ top: 0;
65
+ right: 0;
66
+ width: 100%;
67
+ height: 100%;
68
+ /*z-index: 2;*/
69
+ box-sizing: border-box;
70
+ }
71
+ .SimpleSel__select_init--native {
72
+ z-index: 5;
73
+ }
74
+
75
+ /* end all setting */
76
+
77
+ /* start Buttons */
78
+ .SimpleSel__bottom_control,
79
+ .SimpleSel__control {
80
+ margin: 0;
81
+ width: auto;
82
+ overflow: visible;
83
+ color: inherit;
84
+ font: inherit;
85
+ line-height: normal;
86
+ -webkit-font-smoothing: inherit;
87
+ -moz-osx-font-smoothing: inherit;
88
+ -webkit-appearance: none;
89
+ outline: none;
90
+ cursor: pointer;
91
+
92
+ background-color: var(--simpS_btn_bg);
93
+ padding: 1px 10px;
94
+ text-align: center;
95
+ border-radius: 0;
96
+ border: none;
97
+ display: flex;
98
+ align-content: center;
99
+ align-items: center;
100
+ justify-content: center;
101
+ height: var(--simpS_btn_h);
102
+ }
103
+ .SimpleSel__bottom_control:hover,
104
+ .SimpleSel__control:hover {
105
+ background-color: var(--simpS_btn_bg_reverse);
106
+ }
107
+ /* end Buttons */
108
+
109
+ /* start Checkbox */
110
+ .SimpleSel__select_all__icon,
111
+ .SimpleSel__list_item_icon,
112
+ .SimpleSel__reset_all__icon {
113
+ width: var(--simpS_size_check);
114
+ height: var(--simpS_size_check);
115
+ position: relative;
116
+ border: 1px solid currentColor;
117
+ margin-right: 7px;
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ border-radius: var(--simpS_radius);
122
+ }
123
+ .SimpleSel__list_item_icon:before,
124
+ .SimpleSel__select_all__icon:before {
125
+ content: "";
126
+ display: block;
127
+ transition: 0.25s all;
128
+ transform: rotate(45deg) translate(-17%, -10%);
129
+ top: 1px;
130
+ left: 4px;
131
+ /*width: 7px;*/
132
+ width: calc(var(--simpS_size_check) / 3);
133
+ height: calc(var(--simpS_size_check) / 2 + 1px);
134
+ border: solid currentColor;
135
+ border-width: 0 2px 2px 0;
136
+ }
137
+ /* end Checkbox */
138
+
139
+
140
+
141
+ .SimpleSel__top {
142
+ position: relative;
143
+ }
144
+ .SimpleSel__top_body {
145
+ position: relative;
146
+
147
+ height: var(--simpS_height_top);
148
+ padding: 5px 0 5px var(--simpS_pad_hor);
149
+
150
+ background-color: var(--simpS_bg);
151
+ color: currentColor;
152
+ border: 2px solid var(--simpS_borderColor);
153
+ border-radius: var(--simpS_radius);
154
+
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: space-between;
158
+
159
+ cursor: pointer;
160
+ }
161
+
162
+ .SimpleSel--disabled .SimpleSel__top_body {
163
+ cursor: default;
164
+ user-select: none;
165
+ }
166
+
167
+ .SimpleSel__top_body:focus-visible {
168
+ box-shadow: var(--simpS_f_shadow);
169
+ }
170
+
171
+ .SimpleSel__title {
172
+ flex: 1;
173
+ white-space: nowrap;
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ text-align: left;
177
+ }
178
+
179
+ .SimpleSel__icon {
180
+ width: var(--simpS_height_top);
181
+ height: var(--simpS_height_top);
182
+ display: flex;
183
+ align-items: center;
184
+ justify-content: center;
185
+ position: relative;
186
+ }
187
+ .SimpleSel__icon:after {
188
+ content: '';
189
+ transition: .25s transform, .25s top;
190
+ width: 0.5em;
191
+ height: 0.5em;
192
+ border-bottom: 2px currentColor solid;
193
+ border-right: 2px currentColor solid;
194
+ display: inline;
195
+ position: absolute;
196
+ transform-origin: left top;
197
+ top: calc(50% - 2px);
198
+ left: 50%;
199
+ transform: rotate(45deg) translate(-50%,-50%);
200
+ }
201
+ .SimpleSel--open .SimpleSel__icon:after {
202
+ top: calc(50% + 2px);
203
+ transform: rotate(225deg) translate(-50%,-50%);
204
+ }
205
+
206
+ .SimpleSel--always_open .SimpleSel__icon {
207
+ display: none;
208
+ }
209
+
210
+ .SimpleSel__list_item--not_value,
211
+ .SimpleSel--single[data-count-checked-full="0"] .SimpleSel__title,
212
+ .SimpleSel__title--placeholder {
213
+ color: var(--simpS_color_placeholder);
214
+ }
215
+
216
+
217
+ .SimpleSel__body {
218
+ max-height: 0;
219
+ opacity: 0;
220
+ visibility: hidden;
221
+ overflow: hidden;
222
+ overflow-y: auto;
223
+ position: absolute;
224
+ transition: .25s all;
225
+ width: 100%;
226
+ border: 1px solid var(--simpS_DropDownBorderColor);
227
+ z-index: 3;
228
+ border-radius: var(--simpS_radius);
229
+ background-color: var(--simpS_dropdownBg);
230
+ overscroll-behavior: contain;
231
+ }
232
+ .SimpleSel--body-always_open {
233
+ max-height: none;
234
+ position: relative;
235
+ top: auto;
236
+ opacity: 1;
237
+ visibility: visible;
238
+ }
239
+
240
+ .SimpleSel:not(.SimpleSel--up) .SimpleSel--multi {
241
+ top: 100%;
242
+ margin-top: 2px;
243
+ }
244
+
245
+ .SimpleSel--up:not(.SimpleSel--float) .SimpleSel__body {
246
+ bottom: 100%;
247
+ margin-bottom: 2px;
248
+ }
249
+
250
+ .SimpleSel--open .SimpleSel__body {
251
+ max-height: 230px;
252
+ opacity: 1;
253
+ visibility: visible;
254
+ }
255
+
256
+ .SimpleSel__search_wrap{
257
+ padding: 5px 10px;
258
+ }
259
+ .SimpleSel__search{
260
+ width: 100%;
261
+ border-radius: var(--simpS_radius);
262
+ padding: 2px var(--simpS_pad_hor);
263
+ }
264
+ .SimpleSel__search--top {
265
+ position: absolute;
266
+ top: 0;
267
+ left: 0;
268
+ height: 100%;
269
+ opacity: 0;
270
+ display: none;
271
+ }
272
+ .SimpleSel--open .SimpleSel__search--top {
273
+ opacity: 1;
274
+ display: block;
275
+ }
276
+ .SimpleSel__search--dropdown {
277
+ border: none;
278
+ border-bottom: 1px solid currentColor;
279
+ border-radius: 0;
280
+ height: var(--simpS_btn_h);
281
+ }
282
+
283
+ /* controls */
284
+ .SimpleSel__controls {
285
+ display: flex;
286
+ border-bottom: 1px solid currentColor;
287
+ }
288
+ .SimpleSel__control {
289
+ flex: 1;
290
+ }
291
+ .SimpleSel__control + .SimpleSel__control {
292
+ border-left: 1px solid;
293
+ }
294
+ .SimpleSel__select_all__icon {
295
+ color: var(--simpS_color_cheked);
296
+ border-radius: 50%;
297
+ border-color: var(--simpS_color_yes);
298
+ }
299
+ .SimpleSel[data-count-checked-full="0"] .SimpleSel__select_all__icon {
300
+ color: var(--simpS_color_light);
301
+ }
302
+ .SimpleSel[data-check-all-multi="yes"] .SimpleSel__select_all__icon {
303
+ color: var(--simpS_color_yes);
304
+ }
305
+
306
+ .SimpleSel__reset_all__icon {
307
+ position: relative;
308
+ border-radius: 50%;
309
+ color: var(--simpS_color_no);
310
+
311
+ }
312
+ .SimpleSel__reset_all__icon:before, .SimpleSel__reset_all__icon:after {
313
+ position: absolute;
314
+ left: calc(var(--simpS_f_size) / 2);
315
+ content: ' ';
316
+ height: 60%;
317
+ width: 2px;
318
+ background-color: currentColor;
319
+ }
320
+ .SimpleSel__reset_all__icon:before {
321
+ transform: rotate(45deg);
322
+ }
323
+ .SimpleSel__reset_all__icon:after {
324
+ transform: rotate(-45deg);
325
+ }
326
+
327
+
328
+ .SimpleSel__bottom_controls {
329
+ display: flex;
330
+ position: sticky;
331
+ border-top: 1px solid currentColor;
332
+ margin-top: 5px;
333
+ bottom: 0;
334
+ }
335
+ .SimpleSel__bottom_controls--hide {
336
+ display: none;
337
+ }
338
+ .SimpleSel--float .SimpleSel__bottom_controls--hide{
339
+ display: flex;
340
+ }
341
+ .SimpleSel__bottom_control--hide {
342
+ display: none;
343
+ }
344
+ .SimpleSel__bottom_control {
345
+ flex: 1;
346
+ }
347
+ .SimpleSel__bottom_control--ok{
348
+ text-transform: uppercase;
349
+ }
350
+ .SimpleSel__bottom_control + .SimpleSel__bottom_control {
351
+ border-left: 1px solid ;
352
+ }
353
+
354
+
355
+ /**List*/
356
+ .SimpleSel__list {
357
+ list-style-type: none;
358
+ margin: 0;
359
+ padding: 0;
360
+ }
361
+ .SimpleSel__group_items:not(:first-child) {
362
+ margin-top: 5px;
363
+ }
364
+ .SimpleSel__group_title {
365
+ font-weight: bold;
366
+ cursor: default;
367
+ display: block;
368
+ padding: 6px 10px ;
369
+ margin-bottom: 2px;
370
+ font-size: 1.02em;
371
+ background-color: var(--simpS_color_light);
372
+ }
373
+
374
+ .SimpleSel__group {
375
+ list-style-type: none;
376
+ margin: 0;
377
+ padding: 0;
378
+ }
379
+
380
+
381
+
382
+ .SimpleSel__list_item {
383
+ cursor: pointer;
384
+ }
385
+ .SimpleSel__list_item:not(:last-child) {
386
+ border-bottom: 1px solid var(--simpS_color_light);
387
+ }
388
+
389
+ .SimpleSel__list_item--disabled {
390
+ opacity: .5;
391
+ cursor: default;
392
+ }
393
+
394
+ .SimpleSel__list_item_body {
395
+ padding: 5px var(--simpS_pad_hor);
396
+ display: flex;
397
+ align-items: center;
398
+ min-height: var(--simpS_li_h);
399
+ }
400
+ @media (hover: hover) {
401
+ .SimpleSel__list_item:not(.SimpleSel__list_item--disabled) {
402
+ .SimpleSel__list_item_body:hover {
403
+ cursor: pointer;
404
+ background-color: var(--simpS_color_light);
405
+ }
406
+ }
407
+ }
408
+
409
+
410
+ .SimpleSel--single .SimpleSel__list_item--checked {
411
+ background-color: var(--simpS_color_cheked);
412
+ }
413
+
414
+ .SimpleSel__list_item:not(.SimpleSel__list_item--checked) .SimpleSel__list_item_icon:before {
415
+ opacity: 0;
416
+ width: 0;
417
+ height: 0;
418
+ }
419
+
420
+ .SimpleSel__close {
421
+ display: none;
422
+ }
423
+
424
+ /* FLOAT */
425
+ .SimpleSel--body_open {
426
+ overflow: hidden;
427
+ position: relative;
428
+ }
429
+
430
+
431
+ .SimpleSel--float .SimpleSel__body {
432
+ position: fixed;
433
+ max-width: 90%;
434
+ max-height: 90%;
435
+ left: 50%;
436
+ top: 50%;
437
+ overflow: hidden;
438
+ overflow-y: auto;
439
+ transform: translate(-50%, -50%);
440
+ flex-direction: column;
441
+ display: none;
442
+ }
443
+ .SimpleSel--open {
444
+ z-index: 7;
445
+ }
446
+ .SimpleSel--float.SimpleSel--open .SimpleSel__body{
447
+ display: flex;
448
+ }
449
+
450
+ .SimpleSel--float .SimpleSel__bottom_control--hide {
451
+ display: flex;
452
+ }
453
+ .SimpleSel--float .SimpleSel__list {
454
+ flex: 1;
455
+ }
456
+
457
+
458
+ .SimpleSel__debounce_progress_bar {
459
+ transition-timing-function: linear;
460
+ potransition-property: width;
461
+ width: 0;
462
+ height: 5px;
463
+ background-color: var(--simpS_status_bar);
464
+ transition-duration: 0ms;
465
+ position: absolute;
466
+ bottom: 0;
467
+ left: 0;
468
+
469
+
470
+ }
471
+ .SimpleSel__debounce_progress_bar.this--animating {
472
+ width: 100%;
473
+ transition-duration: var(--duration, 1ms);
474
+ }
475
+
476
+ /** **/
477
+ .SimpleSel--label_mode.SimpleSel--fill_without_value {
478
+ .SimpleSel__title {
479
+ opacity: 0;
480
+ visibility: hidden;
481
+ pointer-events: none;
482
+ }
483
+ }
484
+ .SimpleSel__label {
485
+ position: absolute;
486
+ top: 50%;
487
+ left: var(--simpS_label_left);
488
+ transform: translateY(-50%);
489
+ transition: all 0.2s ease;
490
+ pointer-events: none;
491
+ }
492
+ .SimpleSel--fill_with_value .SimpleSel__label {
493
+ top: 0;
494
+ transform: translateY(-50%);
495
+ background-color: var(--simpS_labelBg);
496
+ padding: 0 var(--simpS_label_pad_hor_active);
497
+ }