| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368 |
- @import 'mixins';
- $ng-select-highlight: #3f51b5 !default;
- $ng-select-primary-text: rgba(black, 0.87) !default;
- $ng-select-primary-light-text: rgba(white, 0.87) !default;
- $ng-select-secondary-text: rgba(black, 0.54) !default;
- $ng-select-secondary-light-text: rgba(white, 0.54) !default;
- $ng-select-disabled-text: rgba(black, 0.38) !default;
- $ng-select-divider: rgba(black, 0.12) !default;
- $ng-select-bg: #ffffff !default;
- .ng-select {
- padding-bottom: 1.25em;
- &.ng-select-disabled {
- .ng-select-container {
- &:after {
- border-bottom-color: transparent;
- background-image: linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.42) 33%, transparent 0%);
- background-size: 4px 1px;
- background-repeat: repeat-x;
- }
- .ng-value-container {
- .ng-value {
- color: $ng-select-disabled-text;
- }
- .ng-placeholder {
- color: $ng-select-disabled-text;
- }
- }
- }
- .ng-arrow-wrapper .ng-arrow,
- .ng-clear-wrapper {
- color: $ng-select-disabled-text;
- }
- }
- &.ng-select-focused {
- .ng-select-container {
- &:after {
- border-color: $ng-select-highlight;
- border-width: 2px;
- }
- &.ng-appearance-outline {
- &:after,
- &:hover:after {
- border-color: $ng-select-highlight;
- border-width: 2px;
- }
- }
- .ng-value-container .ng-placeholder {
- transform: translateY(-1.28125em) scale(0.75) perspective(100px) translateZ(0.001px);
- color: $ng-select-highlight;
- }
- .ng-arrow-wrapper .ng-arrow {
- color: $ng-select-highlight;
- }
- }
- }
- .ng-has-value,
- &.ng-select-filtered .ng-select-container {
- .ng-placeholder {
- display: initial;
- }
- }
- .ng-has-value,
- &.ng-select-opened {
- .ng-placeholder {
- transform: translateY(-1.28125em) scale(0.75) perspective(100px) translateZ(0.001px);
- }
- }
- .ng-select-container {
- color: $ng-select-primary-text;
- align-items: baseline;
- min-height: 51.5px;
- &:after {
- border-bottom: thin solid rgba(0, 0, 0, 0.42);
- content: '';
- bottom: 0;
- left: 0;
- right: 0;
- position: absolute;
- transition: border-color 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
- }
- &.ng-appearance-outline {
- padding: 0 0.5em;
- min-height: 60px;
- &:after {
- border: solid 1px $ng-select-divider;
- border-radius: 5px;
- height: calc(100% - 0.5em);
- pointer-events: none;
- transition: border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
- }
- &:hover:after {
- border-color: $ng-select-primary-text;
- border-width: 2px;
- }
- .ng-placeholder {
- padding: 0 0.25em;
- background-color: $ng-select-bg;
- z-index: 1;
- }
- .ng-value {
- padding-left: 0.25em;
- }
- }
- .ng-value-container {
- align-items: stretch;
- padding: 0.4375em 0;
- border-top: 0.84375em solid transparent;
- .ng-placeholder {
- position: absolute;
- color: $ng-select-secondary-text;
- transform-origin: left 0;
- transition:
- transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
- color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
- width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- @include rtl {
- transform-origin: right 0;
- }
- }
- .ng-input {
- bottom: 0.4375em;
- }
- }
- }
- &.ng-select-single {
- .ng-select-container {
- &.ng-appearance-outline {
- .ng-arrow-wrapper {
- bottom: 17px;
- }
- .ng-clear-wrapper {
- bottom: 14px;
- }
- }
- .ng-arrow-wrapper {
- align-self: flex-end;
- bottom: 9px;
- }
- .ng-clear-wrapper {
- align-self: flex-end;
- bottom: 7px;
- }
- }
- }
- &.ng-select-multiple {
- &.ng-select-disabled {
- .ng-select-container .ng-value-container .ng-value {
- background-color: $ng-select-divider;
- color: rgba(0, 0, 0, 0.26);
- }
- .ng-appearance-outline {
- &:after,
- &:hover:after {
- background-image: none;
- border: dotted 1px $ng-select-divider;
- }
- }
- }
- .ng-select-container {
- &.ng-appearance-outline {
- &.ng-has-value {
- .ng-arrow-wrapper,
- .ng-clear-wrapper {
- border-top: none;
- }
- }
- .ng-arrow-wrapper {
- top: 0;
- }
- .ng-clear-wrapper {
- top: 4px;
- }
- }
- .ng-value-container {
- .ng-value {
- background-color: $ng-select-highlight;
- border-radius: 2px;
- color: $ng-select-bg;
- padding: 2px 5px;
- margin: 0 0.4375em 0.4375em 0;
- @include rtl {
- margin: 0 0 0.4375em 0.4375em;
- }
- &.ng-value-disabled {
- background-color: $ng-select-divider;
- color: rgba(0, 0, 0, 0.26);
- }
- .ng-value-label {
- font-size: 14px;
- font-weight: 500;
- }
- .ng-value-icon {
- color: $ng-select-secondary-light-text;
- padding-right: 5px;
- @include rtl {
- padding-left: 5px;
- padding-right: 0;
- }
- &:hover {
- color: $ng-select-primary-light-text;
- }
- }
- }
- .ng-input {
- line-height: 1.375em;
- }
- }
- &.ng-has-value {
- align-items: center;
- .ng-value-container {
- padding-bottom: 0;
- padding-top: 0.1875em;
- }
- .ng-clear-wrapper,
- .ng-arrow-wrapper {
- border-top: 0.84375em solid transparent;
- }
- }
- }
- }
- .ng-clear-wrapper {
- color: $ng-select-secondary-text;
- &:hover {
- color: $ng-select-primary-text;
- }
- &:focus {
- color: $ng-select-primary-text;
- outline: none;
- }
- }
- .ng-arrow-wrapper {
- bottom: 2px;
- .ng-arrow {
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-top: 5px solid;
- margin: 0 4px;
- color: $ng-select-secondary-text;
- }
- }
- .ng-spinner-zone {
- top: 3px;
- }
- }
- .ng-dropdown-panel {
- background: $ng-select-bg;
- left: 0;
- &.ng-select-top {
- bottom: calc(100% - 0.84375em);
- box-shadow:
- 0 -5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 -8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 -3px 14px 2px $ng-select-divider;
- }
- &.ng-select-right {
- left: 100%;
- top: calc(0% + 0.84375em);
- box-shadow:
- 0 -5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 -8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 -3px 14px 2px $ng-select-divider;
- margin-left: 4px;
- }
- &.ng-select-bottom {
- top: calc(100% - 1.25em);
- box-shadow:
- 0 5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 3px 14px 2px $ng-select-divider;
- }
- &.ng-select-left {
- left: calc(-100% - 4px);
- top: calc(0% + 0.84375em);
- box-shadow:
- 0 -5px 5px -3px rgba(0, 0, 0, 0.2),
- 0 -8px 10px 1px rgba(0, 0, 0, 0.14),
- 0 -3px 14px 2px $ng-select-divider;
- }
- &.multiple {
- .ng-option {
- &.selected {
- background: $ng-select-bg;
- }
- &.marked {
- background: rgba(0, 0, 0, 0.04);
- }
- }
- }
- .ng-dropdown-header {
- border-bottom: 1px solid $ng-select-divider;
- padding: 0 16px;
- line-height: 3em;
- min-height: 3em;
- }
- .ng-dropdown-footer {
- border-top: 1px solid $ng-select-divider;
- padding: 0 16px;
- line-height: 3em;
- min-height: 3em;
- }
- .ng-dropdown-panel-items {
- .ng-optgroup {
- user-select: none;
- cursor: pointer;
- line-height: 3em;
- height: 3em;
- padding: 0 16px;
- color: $ng-select-secondary-text;
- font-weight: 500;
- &.ng-option-marked {
- background: rgba(0, 0, 0, 0.04);
- }
- &.ng-option-disabled {
- cursor: default;
- }
- &.ng-option-selected {
- background: $ng-select-divider;
- color: $ng-select-highlight;
- }
- }
- .ng-option {
- line-height: 3em;
- min-height: 3em;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 0 16px;
- text-decoration: none;
- position: relative;
- color: $ng-select-primary-text;
- text-align: left;
- @include rtl {
- text-align: right;
- }
- &.ng-option-marked {
- background: rgba(0, 0, 0, 0.04);
- color: $ng-select-primary-text;
- }
- &.ng-option-selected {
- background: $ng-select-divider;
- color: $ng-select-highlight;
- }
- &.ng-option-disabled {
- color: $ng-select-disabled-text;
- }
- &.ng-option-child {
- padding-left: 32px;
- @include rtl {
- padding-right: 32px;
- padding-left: 0;
- }
- }
- .ng-tag-label {
- padding-right: 5px;
- @include rtl {
- padding-left: 5px;
- padding-right: 0;
- }
- font-size: 80%;
- font-weight: 400;
- color: $ng-select-disabled-text;
- }
- }
- }
- }
|