| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- @mixin box-sizing() {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- @mixin wrap-text() {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .ng-select {
- position: relative;
- display: block;
- @include box-sizing;
- div,
- input,
- span {
- @include box-sizing;
- }
- [hidden] {
- display: none;
- }
- &.ng-select-searchable {
- .ng-select-container .ng-value-container .ng-input {
- opacity: 1;
- }
- }
- &.ng-select-opened .ng-select-container {
- z-index: 1001;
- }
- &.ng-select-disabled {
- .ng-select-container {
- .ng-value-container {
- .ng-placeholder,
- .ng-value {
- user-select: none;
- cursor: default;
- }
- }
- }
- .ng-arrow-wrapper {
- cursor: default;
- }
- }
- &.ng-select-filtered {
- .ng-placeholder {
- display: none;
- }
- }
- .ng-select-container {
- cursor: default;
- display: flex;
- outline: none;
- overflow: hidden;
- position: relative;
- width: 100%;
- .ng-value-container {
- display: flex;
- flex: 1;
- .ng-input {
- opacity: 0;
- > input {
- box-sizing: content-box;
- background: none transparent;
- border: 0 none;
- box-shadow: none;
- outline: none;
- padding: 0;
- cursor: default;
- width: 100%;
- &::-ms-clear {
- display: none;
- }
- &[readonly] {
- user-select: unset;
- width: 0;
- padding: 0;
- }
- }
- }
- }
- }
- &.ng-select-single {
- &.ng-select-filtered {
- .ng-select-container .ng-value-container .ng-value {
- visibility: hidden;
- }
- }
- .ng-select-container {
- .ng-value-container {
- @include wrap-text;
- .ng-value {
- @include wrap-text;
- .ng-value-icon {
- display: none;
- }
- }
- .ng-input {
- position: absolute;
- left: 0;
- width: 100%;
- }
- }
- }
- }
- &.ng-select-multiple {
- &.ng-select-disabled {
- > .ng-select-container .ng-value-container .ng-value {
- .ng-value-icon {
- display: none;
- }
- }
- }
- .ng-select-container {
- .ng-value-container {
- flex-wrap: wrap;
- .ng-placeholder {
- position: absolute;
- }
- .ng-value {
- white-space: nowrap;
- &.ng-value-disabled {
- .ng-value-icon {
- display: none;
- }
- }
- .ng-value-icon {
- cursor: pointer;
- }
- }
- .ng-input {
- flex: 1;
- z-index: 2;
- }
- .ng-placeholder {
- z-index: 1;
- }
- }
- }
- }
- .ng-clear-wrapper {
- cursor: pointer;
- position: relative;
- width: 17px;
- user-select: none;
- .ng-clear {
- display: inline-block;
- font-size: 18px;
- line-height: 1;
- pointer-events: none;
- }
- }
- .ng-spinner-loader {
- border-radius: 50%;
- width: 17px;
- height: 17px;
- margin-right: 5px;
- font-size: 10px;
- position: relative;
- text-indent: -9999em;
- border-top: 2px solid rgba(66, 66, 66, 0.2);
- border-right: 2px solid rgba(66, 66, 66, 0.2);
- border-bottom: 2px solid rgba(66, 66, 66, 0.2);
- border-left: 2px solid #424242;
- transform: translateZ(0);
- animation: load8 0.8s infinite linear;
- &:after {
- border-radius: 50%;
- width: 17px;
- height: 17px;
- }
- @-webkit-keyframes load8 {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes load8 {
- 0% {
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- }
- .ng-arrow-wrapper {
- cursor: pointer;
- position: relative;
- text-align: center;
- user-select: none;
- .ng-arrow {
- pointer-events: none;
- display: inline-block;
- height: 0;
- width: 0;
- position: relative;
- }
- }
- }
- .ng-dropdown-panel {
- box-sizing: border-box;
- position: absolute;
- opacity: 0;
- width: 100%;
- z-index: 1050;
- -webkit-overflow-scrolling: touch;
- .ng-dropdown-panel-items {
- display: block;
- height: auto;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- max-height: 240px;
- overflow-y: auto;
- .ng-optgroup {
- @include wrap-text();
- }
- .ng-option {
- box-sizing: border-box;
- cursor: pointer;
- display: block;
- @include wrap-text();
- .ng-option-label:empty:before {
- content: '\200b';
- }
- .highlighted {
- font-weight: bold;
- text-decoration: underline;
- }
- &.disabled {
- cursor: default;
- }
- }
- }
- .scroll-host {
- overflow: hidden;
- overflow-y: auto;
- position: relative;
- display: block;
- -webkit-overflow-scrolling: touch;
- }
- .scrollable-content {
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- position: absolute;
- }
- .total-padding {
- width: 1px;
- opacity: 0;
- }
- }
- .ng-visually-hidden {
- position: absolute !important;
- width: 1px;
- height: 1px;
- margin: -1px;
- padding: 0;
- overflow: hidden;
- clip: rect(0 0 0 0);
- border: 0;
- white-space: nowrap;
- }
|