@revivejs/ng-multiselect-dropdown 1.0.0

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.
@@ -0,0 +1,210 @@
1
+ $base-color: #337ab7;
2
+ $disable-background-color: #eceeef;
3
+ .multiselect-dropdown {
4
+ position: relative;
5
+ width: 100%;
6
+ font-size: inherit;
7
+ font-family: inherit;
8
+ .dropdown-btn {
9
+ display: inline-block;
10
+ border: 1px solid #adadad;
11
+ width: 100%;
12
+ padding: 6px 12px;
13
+ margin-bottom: 0;
14
+ font-weight: normal;
15
+ line-height: 1.52857143;
16
+ text-align: left;
17
+ vertical-align: middle;
18
+ cursor: pointer;
19
+ background-image: none;
20
+ border-radius: 4px;
21
+ .selected-item {
22
+ border: 1px solid $base-color;
23
+ margin-right: 4px;
24
+ background: $base-color;
25
+ padding: 0px 5px;
26
+ color: #fff;
27
+ border-radius: 2px;
28
+ float: left;
29
+ a {
30
+ text-decoration: none;
31
+ }
32
+ }
33
+ .selected-item:hover {
34
+ box-shadow: 1px 1px #959595;
35
+ }
36
+ .dropdown-down {
37
+ display: inline-block;
38
+ top: 10px;
39
+ width: 0;
40
+ height: 0;
41
+ border-top: 10px solid #adadad;
42
+ border-left: 10px solid transparent;
43
+ border-right: 10px solid transparent;
44
+ }
45
+ .dropdown-up {
46
+ display: inline-block;
47
+ width: 0;
48
+ height: 0;
49
+ border-bottom: 10px solid #adadad;
50
+ border-left: 10px solid transparent;
51
+ border-right: 10px solid transparent;
52
+ }
53
+ }
54
+ .disabled {
55
+ & > span {
56
+ background-color: $disable-background-color;
57
+ }
58
+ }
59
+ }
60
+
61
+ .dropdown-list {
62
+ position: absolute;
63
+ padding-top: 6px;
64
+ width: 100%;
65
+ z-index: 9999;
66
+ border: 1px solid #ccc;
67
+ border-radius: 3px;
68
+ background: #fff;
69
+ margin-top: 10px;
70
+ box-shadow: 0px 1px 5px #959595;
71
+ ul {
72
+ padding: 0px;
73
+ list-style: none;
74
+ overflow: auto;
75
+ margin: 0px;
76
+ }
77
+ li {
78
+ padding: 6px 10px;
79
+ cursor: pointer;
80
+ text-align: left;
81
+ }
82
+ .filter-textbox {
83
+ border-bottom: 1px solid #ccc;
84
+ position: relative;
85
+ padding: 10px;
86
+ input {
87
+ border: 0px;
88
+ width: 100%;
89
+ padding: 0px 0px 0px 26px;
90
+ }
91
+ input:focus {
92
+ outline: none;
93
+ }
94
+ }
95
+ }
96
+
97
+ .multiselect-item-checkbox input[type='checkbox'] {
98
+ border: 0;
99
+ clip: rect(0 0 0 0);
100
+ height: 1px;
101
+ margin: -1px;
102
+ overflow: hidden;
103
+ padding: 0;
104
+ position: absolute;
105
+ width: 1px;
106
+ }
107
+
108
+ .multiselect-item-checkbox input[type='checkbox']:focus + div:before,
109
+ .multiselect-item-checkbox input[type='checkbox']:hover + div:before {
110
+ border-color: $base-color;
111
+ background-color: #f2f2f2;
112
+ }
113
+
114
+ .multiselect-item-checkbox input[type='checkbox']:active + div:before {
115
+ transition-duration: 0s;
116
+ }
117
+
118
+ .multiselect-item-checkbox input[type='checkbox'] + div {
119
+ position: relative;
120
+ padding-left: 2em;
121
+ vertical-align: middle;
122
+ user-select: none;
123
+ cursor: pointer;
124
+ margin: 0px;
125
+ color: #000;
126
+ }
127
+
128
+ .multiselect-item-checkbox input[type='checkbox'] + div:before {
129
+ box-sizing: content-box;
130
+ content: '';
131
+ color: $base-color;
132
+ position: absolute;
133
+ top: 50%;
134
+ left: 0;
135
+ width: 14px;
136
+ height: 14px;
137
+ margin-top: -9px;
138
+ border: 2px solid $base-color;
139
+ text-align: center;
140
+ transition: all 0.4s ease;
141
+ }
142
+
143
+ .multiselect-item-checkbox input[type='checkbox'] + div:after {
144
+ box-sizing: content-box;
145
+ content: '';
146
+ background-color: $base-color;
147
+ position: absolute;
148
+ top: 50%;
149
+ left: 4px;
150
+ width: 10px;
151
+ height: 10px;
152
+ margin-top: -5px;
153
+ transform: scale(0);
154
+ transform-origin: 50%;
155
+ transition: transform 200ms ease-out;
156
+ }
157
+
158
+ .multiselect-item-checkbox input[type='checkbox']:disabled + div:before {
159
+ border-color: #cccccc;
160
+ }
161
+
162
+ .multiselect-item-checkbox
163
+ input[type='checkbox']:disabled:focus
164
+ + div:before
165
+ .multiselect-item-checkbox
166
+ input[type='checkbox']:disabled:hover
167
+ + div:before {
168
+ background-color: inherit;
169
+ }
170
+
171
+ .multiselect-item-checkbox
172
+ input[type='checkbox']:disabled:checked
173
+ + div:before {
174
+ background-color: #cccccc;
175
+ }
176
+
177
+ .multiselect-item-checkbox input[type='checkbox'] + div:after {
178
+ background-color: transparent;
179
+ top: 50%;
180
+ left: 4px;
181
+ width: 8px;
182
+ height: 3px;
183
+ margin-top: -4px;
184
+ border-style: solid;
185
+ border-color: #ffffff;
186
+ border-width: 0 0 3px 3px;
187
+ border-image: none;
188
+ transform: rotate(-45deg) scale(0);
189
+ }
190
+
191
+ .multiselect-item-checkbox input[type='checkbox']:checked + div:after {
192
+ content: '';
193
+ transform: rotate(-45deg) scale(1);
194
+ transition: transform 200ms ease-out;
195
+ }
196
+
197
+ .multiselect-item-checkbox input[type='checkbox']:checked + div:before {
198
+ animation: borderscale 200ms ease-in;
199
+ background: $base-color;
200
+ }
201
+
202
+ .multiselect-item-checkbox input[type='checkbox']:checked + div:after {
203
+ transform: rotate(-45deg) scale(1);
204
+ }
205
+
206
+ @keyframes borderscale {
207
+ 50% {
208
+ box-shadow: 0 0 0 2px $base-color;
209
+ }
210
+ }