123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520 |
- .SumoSelect {
- p {
- margin: 0;
- }
- width: 200px;
- }
- .SelectBox {
- padding: 5px 8px;
- }
- .sumoStopScroll {
- overflow: hidden;
- }
- /* Filtering style */
- .SumoSelect {
- .hidden {
- display: none;
- }
- .search-txt {
- display: none;
- outline: none;
- }
- .no-match {
- display: none;
- padding: 6px;
- }
- &.open {
- .search-txt {
- display: inline-block;
- position: absolute;
- inset-block-start: 0;
- inset-inline-start: 0;
- width: 100%;
- margin: 0;
- padding: 5px 15px;
- border: none;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border-radius: 5px;
- }
- > .search > {
- span,
- label {
- visibility: hidden;
- }
- }
- }
- }
- /*this is applied on that hidden select. DO NOT USE display:none; or visiblity:hidden; and Do not override any of these properties. */
- .SelectClass,
- .SumoUnder {
- position: absolute;
- inset-block-start: 0;
- inset-inline-start: 0;
- inset-inline-end: 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;
- }
- .SelectClass {
- z-index: 1;
- }
- .SumoSelect {
- > {
- .optWrapper > .options li.opt label,
- .CaptionCont {
- user-select: none;
- -o-user-select: none;
- -moz-user-select: none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- }
- }
- .select-all > label {
- user-select: none;
- -o-user-select: none;
- -moz-user-select: none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- }
- display: inline-block;
- position: relative;
- outline: none;
- width: 100%;
- > {
- .CaptionCont {
- position: relative;
- border: 1px solid $border;
- color: #424e79;
- min-height: 14px;
- background-color: #fff;
- border-radius: 0.25rem;
- margin: 0;
- width: 100%;
- height: 40px;
- line-height: 30px;
- padding: 6px 17px;
- border-radius: 7px;
- > {
- span {
- display: block;
- padding-inline-end: 30px;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- cursor: default;
- &.placeholder {
- color: #9999b5;
- font-style: italic;
- }
- }
- label {
- position: absolute;
- inset-block-start: 0;
- inset-inline-end: 0;
- inset-block-end: 0;
- width: 30px;
- > i:before {
- display: inline-block;
- width: 0;
- height: 0;
- margin-inline-start: 0.255em;
- vertical-align: 0.255em;
- content: "";
- border-block-start: 0.3em solid;
- border-inline-end: 0.3em solid transparent;
- border-block-end: 0;
- border-inline-start: 0.3em solid transparent;
- margin-block-start: 18px;
- color: #bcccda;
- }
- }
- }
- }
- .optWrapper {
- display: none;
- z-index: 1;
- inset-block-start: 30px;
- width: 100%;
- position: absolute;
- inset-inline-start: 0;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- background: #fff;
- border: 1px solid $border;
- border-radius: 3px;
- overflow: hidden;
- }
- }
- &.open > .optWrapper {
- inset-block-start: 35px;
- display: block;
- box-shadow: 0px 16px 18px rgba(104, 113, 123, 0.2);
- background: #fff;
- border-radius: 0 0 7px 7px;
- &.up {
- inset-block-start: auto;
- inset-block-end: 100%;
- margin-block-end: 5px;
- }
- }
- > .optWrapper {
- ul {
- list-style: none;
- display: block;
- padding: 0;
- margin: 0;
- overflow: auto;
- }
- > .options {
- border-radius: 2px;
- position: relative;
- /*Set the height of pop up here (only for desktop mode)*/
- max-height: 250px;
- /*height*/
- }
- &.okCancelInMulti > .options {
- border-radius: 2px 2px 0 0;
- }
- &.selall {
- > .options {
- border-radius: 0 0 2px 2px;
- }
- &.okCancelInMulti > .options {
- border-radius: 0;
- }
- }
- > .options li {
- &.group.disabled > label {
- opacity: 0.5;
- }
- ul li.opt {
- padding-inline-start: 22px;
- }
- }
- &.multiple > .options li ul li.opt {
- padding-inline-start: 50px;
- }
- &.isFloating > .options {
- max-height: 100%;
- }
- > .options {
- li.opt {
- padding: 0px 16px;
- position: relative;
- border-block-end: 1px solid #eff0f6;
- height: 40px;
- line-height: 40px;
- }
- > li.opt:first-child {
- border-radius: 2px 2px 0 0;
- }
- }
- &.selall > .options > li.opt:first-child {
- border-radius: 0;
- }
- > .options > li.opt:last-child {
- border-radius: 0 0 2px 2px;
- border-block-end: none;
- }
- &.okCancelInMulti > .options > li.opt:last-child {
- border-radius: 0;
- }
- > .options li.opt {
- &:hover {
- background-color: #f4f5fb;
- }
- &.sel {
- background-color: #a1c0e4;
- }
- }
- }
- .select-all {
- &.sel {
- background-color: #a1c0e4;
- }
- > span {
- position: absolute;
- display: block;
- width: 30px;
- inset-block-start: 0;
- inset-block-end: 0;
- margin-inline-start: -35px;
- }
- > span i {
- position: absolute;
- margin: auto;
- inset-inline-start: 0;
- inset-inline-end: 0;
- inset-block-start: 0;
- inset-block-end: 0;
- width: 14px;
- height: 14px;
- border: 1px solid #eff0f6;
- border-radius: 2px;
- background-color: #fff;
- }
- &.selected > span i,
- &.partial > span i {
- background-color: $primary-1;
- 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;
- }
- }
- > .optWrapper {
- > .options li {
- label {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- display: block;
- cursor: pointer;
- margin-block-end: 0 !important;
- }
- span {
- display: none;
- }
- &.group > label {
- cursor: default;
- padding: 8px 6px;
- font-weight: bold;
- }
- }
- &.isFloating {
- position: fixed;
- inset-block-start: 0;
- inset-inline-start: 0;
- inset-inline-end: 0;
- width: 90%;
- inset-block-end: 0;
- margin: auto;
- max-height: 90%;
- }
- > .options li.opt.disabled {
- background-color: inherit;
- pointer-events: none;
- * {
- -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;
- }
- }
- &.multiple > .options li.opt {
- padding-inline-start: 35px;
- cursor: pointer;
- span {
- position: absolute;
- display: block;
- width: 30px;
- inset-block-start: 0;
- inset-block-end: 0;
- margin-inline-start: -35px;
- }
- }
- }
- > .optWrapper.multiple > .options li.opt span i {
- position: absolute;
- margin: auto;
- inset-inline-start: 0;
- inset-inline-end: 0;
- inset-block-start: 0;
- inset-block-end: 0;
- width: 14px;
- height: 14px;
- border: 1px solid #eff0f6;
- border-radius: 2px;
- background-color: #fff;
- }
- > .optWrapper {
- > .MultiControls {
- display: none;
- border-block-start: 1px solid $border;
- background-color: #fff;
- border-radius: 0 0 3px 3px;
- }
- &.multiple {
- &.isFloating > .MultiControls {
- display: block;
- margin-block-start: 5px;
- position: absolute;
- inset-block-end: 0;
- width: 100%;
- }
- &.okCancelInMulti > .MultiControls {
- display: block;
- > p {
- padding: 6px;
- &:focus {
- border-color: $primary-1;
- outline: none;
- background-color: $primary-1;
- }
- }
- }
- > .MultiControls > p {
- display: inline-block;
- cursor: pointer;
- padding: 12px;
- width: 50%;
- box-sizing: border-box;
- text-align: center;
- &:hover {
- background-color: #f4f5fb;
- }
- &.btnOk {
- border-inline-end: 1px solid $border;
- border-radius: 0 0 0 3px;
- }
- &.btnCancel {
- border-radius: 0 0 3px 0;
- }
- }
- }
- &.isFloating > .options li.opt {
- padding: 12px 6px;
- }
- &.multiple {
- &.isFloating {
- > .options li.opt {
- padding-inline-start: 35px;
- }
- padding-block-end: 43px;
- }
- > .options li.opt.selected span i {
- background-color: $primary-1;
- 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;
- }
- }
- }
- &.disabled {
- opacity: 0.7;
- cursor: not-allowed;
- > .CaptionCont {
- border-color: #d3dfea;
- box-shadow: none;
- background: #f4f5f9;
- }
- }
- .select-all {
- border-radius: 3px 3px 0 0;
- position: relative;
- border-block-end: 1px solid $border;
- background-color: #fff;
- padding: 8px 0 3px 35px;
- height: 36px;
- cursor: pointer;
- > {
- label,
- span i {
- cursor: pointer;
- }
- }
- &.partial > span i {
- background-color: $border;
- }
- }
- > .optWrapper > .options li.optGroup {
- padding-inline-start: 5px;
- text-decoration: underline;
- }
- }
|