simp-select 1.2.1 → 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 +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/style.css +497 -496
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.
|
|
21
|
-
<script src="https://unpkg.com/simp-select@1.2.
|
|
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:15px;left:var(--simpS_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
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
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.SimpleSel :
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
border:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
align-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
.
|
|
111
|
-
.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
width:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
border
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
color:
|
|
151
|
-
|
|
152
|
-
border
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
text-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
border-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.
|
|
211
|
-
.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
overflow
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
border
|
|
278
|
-
border-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
border-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
max-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
overflow
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
+
}
|