| 1 |
.SumoSelect p {margin: 0;} |
| 2 |
.SumoSelect{width: 200px;} |
| 3 |
|
| 4 |
.SelectBox {padding: 5px 8px;} |
| 5 |
|
| 6 |
.sumoStopScroll{overflow:hidden;} |
| 7 |
|
| 8 |
/* Filtering style */ |
| 9 |
.SumoSelect .hidden { display:none; } |
| 10 |
.SumoSelect .search-txt{display:none;outline:none;} |
| 11 |
.SumoSelect .no-match{display:none;padding: 6px;} |
| 12 |
.SumoSelect.open .search-txt{display: inline-block;position: absolute;top: 0;left: 0;width: 100%;margin: 0;padding: 5px 8px;border: none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border-radius: 5px;} |
| 13 |
.SumoSelect.open>.search>span, .SumoSelect.open>.search>label{visibility:hidden;} |
| 14 |
|
| 15 |
/*this is applied on that hidden select. DO NOT USE display:none; or visiblity:hidden; and Do not override any of these properties. */ |
| 16 |
.SelectClass,.SumoUnder { position: absolute; top: 0; left: 0; right: 0; height: 100%; width: 100%; border: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; } |
| 17 |
.SelectClass{z-index: 1;} |
| 18 |
|
| 19 |
.SumoSelect > .optWrapper > .options li.opt label, .SumoSelect > .CaptionCont,.SumoSelect .select-all > label { user-select: none; -o-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; } |
| 20 |
|
| 21 |
.SumoSelect { display: inline-block; position: relative;outline:none;} |
| 22 |
.SumoSelect:focus > .CaptionCont,.SumoSelect:hover > .CaptionCont, .SumoSelect.open > .CaptionCont {box-shadow: 0 0 2px #7799D0;border-color: #7799D0;} |
| 23 |
.SumoSelect > .CaptionCont { position: relative; border: 1px solid #A4A4A4; min-height: 14px; background-color: #fff;border-radius:2px;margin:0;} |
| 24 |
.SumoSelect > .CaptionCont > span { display: block; padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;cursor:default;} |
| 25 |
/*placeholder style*/ |
| 26 |
.SumoSelect > .CaptionCont > span.placeholder { color: #ccc; font-style: italic; } |
| 27 |
|
| 28 |
.SumoSelect > .CaptionCont > label { position: absolute; top: 0; right: 0; bottom: 0; width: 30px;} |
| 29 |
.SumoSelect > .CaptionCont > label > i { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wMdBhAJ/fwnjwAAAGFJREFUKM9jYBh+gBFKuzEwMKQwMDB8xaOWlYGB4T4DA0MrsuapDAwM//HgNwwMDDbYTJuGQ8MHBgYGJ1xOYGNgYJiBpuEpAwODHSF/siDZ+ISBgcGClEDqZ2Bg8B6CkQsAPRga0cpRtDEAAAAASUVORK5CYII='); |
| 30 |
background-position: center center; width: 16px; height: 16px; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;background-repeat: no-repeat;opacity: 0.8;} |
| 31 |
|
| 32 |
.SumoSelect > .optWrapper {display:none; z-index: 1000; top: 30px; width: 100%; position: absolute; left: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; background: #fff; border: 1px solid #ddd; box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.11); border-radius: 3px;overflow: hidden;} |
| 33 |
.SumoSelect.open > .optWrapper {top:35px; display:block;} |
| 34 |
.SumoSelect.open > .optWrapper.up {top: auto;bottom: 100%;margin-bottom: 5px;} |
| 35 |
|
| 36 |
.SumoSelect > .optWrapper ul {list-style: none; display: block; padding: 0; margin: 0; overflow: auto;} |
| 37 |
.SumoSelect > .optWrapper > .options { border-radius: 2px;position:relative; |
| 38 |
/*Set the height of pop up here (only for desktop mode)*/ |
| 39 |
max-height: 250px; |
| 40 |
/*height*/ } |
| 41 |
.SumoSelect > .optWrapper.okCancelInMulti > .options { border-radius: 2px 2px 0 0;} |
| 42 |
.SumoSelect > .optWrapper.selall > .options { border-radius: 0 0 2px 2px;} |
| 43 |
.SumoSelect > .optWrapper.selall.okCancelInMulti > .options { border-radius: 0;} |
| 44 |
.SumoSelect > .optWrapper > .options li.group.disabled > label{opacity:0.5;} |
| 45 |
.SumoSelect > .optWrapper > .options li ul li.opt{padding-left: 22px;} |
| 46 |
.SumoSelect > .optWrapper.multiple > .options li ul li.opt{padding-left: 50px;} |
| 47 |
.SumoSelect > .optWrapper.isFloating > .options {max-height: 100%;box-shadow: 0 0 100px #595959;} |
| 48 |
.SumoSelect > .optWrapper > .options li.opt { padding: 6px 6px; position: relative;border-bottom: 1px solid #f5f5f5;} |
| 49 |
.SumoSelect > .optWrapper > .options > li.opt:first-child { border-radius: 2px 2px 0 0; } |
| 50 |
.SumoSelect > .optWrapper.selall > .options > li.opt:first-child { border-radius:0; } |
| 51 |
.SumoSelect > .optWrapper > .options > li.opt:last-child {border-radius: 0 0 2px 2px; border-bottom: none;} |
| 52 |
.SumoSelect > .optWrapper.okCancelInMulti > .options > li.opt:last-child {border-radius: 0;} |
| 53 |
.SumoSelect > .optWrapper > .options li.opt:hover { background-color: #E4E4E4; } |
| 54 |
.SumoSelect > .optWrapper > .options li.opt.sel, .SumoSelect .select-all.sel{background-color: #a1c0e4;} |
| 55 |
|
| 56 |
.SumoSelect > .optWrapper > .options li label { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block;cursor: pointer;} |
| 57 |
.SumoSelect > .optWrapper > .options li span { display: none; } |
| 58 |
.SumoSelect > .optWrapper > .options li.group > label {cursor: default;padding: 8px 6px;font-weight: bold;} |
| 59 |
|
| 60 |
/*Floating styles*/ |
| 61 |
.SumoSelect > .optWrapper.isFloating { position: fixed; top: 0; left: 0; right: 0; width: 90%; bottom: 0; margin: auto; max-height: 90%; } |
| 62 |
|
| 63 |
/*disabled state*/ |
| 64 |
.SumoSelect > .optWrapper > .options li.opt.disabled { background-color: inherit;pointer-events: none;} |
| 65 |
.SumoSelect > .optWrapper > .options li.opt.disabled * { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 5-7 */ filter: alpha(opacity=50); /* Netscape */ -moz-opacity: 0.5; /* Safari 1.x */ -khtml-opacity: 0.5; /* Good browsers */ opacity: 0.5; } |
| 66 |
|
| 67 |
|
| 68 |
/*styling for multiple select*/ |
| 69 |
.SumoSelect > .optWrapper.multiple > .options li.opt { padding-left: 35px;cursor: pointer;} |
| 70 |
.SumoSelect > .optWrapper.multiple > .options li.opt span, |
| 71 |
.SumoSelect .select-all > span{position:absolute;display:block;width:30px;top:0;bottom:0;margin-left:-35px;} |
| 72 |
.SumoSelect > .optWrapper.multiple > .options li.opt span i, |
| 73 |
.SumoSelect .select-all > span i{position: absolute;margin: auto;left: 0;right: 0;top: 0;bottom: 0;width: 14px;height: 14px;border: 1px solid #AEAEAE;border-radius: 2px;box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);background-color: #fff;} |
| 74 |
.SumoSelect > .optWrapper > .MultiControls { display: none; border-top: 1px solid #ddd; background-color: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.13); border-radius: 0 0 3px 3px; } |
| 75 |
.SumoSelect > .optWrapper.multiple.isFloating > .MultiControls { display: block; margin-top: 5px; position: absolute; bottom: 0; width: 100%; } |
| 76 |
|
| 77 |
.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls { display: block; } |
| 78 |
.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls > p { padding: 6px; } |
| 79 |
.SumoSelect > .optWrapper.multiple.okCancelInMulti > .MultiControls > p:focus {box-shadow: 0 0 2px #a1c0e4;border-color: #a1c0e4;outline: none;background-color: #a1c0e4;} |
| 80 |
|
| 81 |
.SumoSelect > .optWrapper.multiple > .MultiControls > p { display: inline-block; cursor: pointer; padding: 12px; width: 50%; box-sizing: border-box; text-align: center; } |
| 82 |
.SumoSelect > .optWrapper.multiple > .MultiControls > p:hover { background-color: #f1f1f1; } |
| 83 |
.SumoSelect > .optWrapper.multiple > .MultiControls > p.btnOk { border-right: 1px solid #DBDBDB; border-radius: 0 0 0 3px; } |
| 84 |
.SumoSelect > .optWrapper.multiple > .MultiControls > p.btnCancel { border-radius: 0 0 3px 0; } |
| 85 |
/*styling for select on popup mode*/ |
| 86 |
.SumoSelect > .optWrapper.isFloating > .options li.opt { padding: 12px 6px; } |
| 87 |
|
| 88 |
/*styling for only multiple select on popup mode*/ |
| 89 |
.SumoSelect > .optWrapper.multiple.isFloating > .options li.opt { padding-left: 35px; } |
| 90 |
.SumoSelect > .optWrapper.multiple.isFloating { padding-bottom: 43px; } |
| 91 |
|
| 92 |
.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i, |
| 93 |
.SumoSelect .select-all.selected > span i, |
| 94 |
.SumoSelect .select-all.partial > span i{background-color: rgb(17, 169, 17);box-shadow: none;border-color: transparent;background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAABMSURBVAiZfc0xDkAAFIPhd2Kr1WRjcAExuIgzGUTIZ/AkImjSofnbNBAfHvzAHjOKNzhiQ42IDFXCDivaaxAJd0xYshT3QqBxqnxeHvhunpu23xnmAAAAAElFTkSuQmCC');background-repeat: no-repeat;background-position: center center;} |
| 95 |
/*disabled state*/ |
| 96 |
.SumoSelect.disabled { opacity: 0.7;cursor: not-allowed;} |
| 97 |
.SumoSelect.disabled > .CaptionCont{border-color:#ccc;box-shadow:none;} |
| 98 |
|
| 99 |
/**Select all button**/ |
| 100 |
.SumoSelect .select-all{border-radius: 3px 3px 0 0;position: relative;border-bottom: 1px solid #ddd;background-color: #fff;padding: 8px 0 3px 35px;height: 20px;cursor: pointer;} |
| 101 |
.SumoSelect .select-all > label, .SumoSelect .select-all > span i{cursor: pointer;} |
| 102 |
.SumoSelect .select-all.partial > span i{background-color:#ccc;} |
| 103 |
|
| 104 |
|
| 105 |
/*styling for optgroups*/ |
| 106 |
.SumoSelect > .optWrapper > .options li.optGroup { padding-left: 5px; text-decoration: underline; } |
| 107 |
|
| 108 |
|