@citizenplane/pimp 9.1.12 → 9.2.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.
@@ -131,31 +131,30 @@ onMounted(() => {
131
131
  &__inner {
132
132
  @extend %u-text-ellipsis;
133
133
  box-shadow: inset 0 fn.px-to-em(1) fn.px-to-em(2) rgba(0, 0, 0, 0.12);
134
- outline: none;
135
134
  appearance: none;
136
135
  -webkit-appearance: none;
137
136
  -moz-appearance: none;
138
- border: fn.px-to-rem(1) solid colors.$neutral-dark-4;
137
+ border: none;
138
+ outline: fn.px-to-rem(1) solid colors.$neutral-dark-4;
139
139
  border-radius: fn.px-to-em(10);
140
140
  background-color: colors.$neutral-light;
141
141
  width: 100%;
142
- height: sizing.$component-size-default;
143
142
  color: colors.$neutral-dark;
144
143
  cursor: pointer;
145
- padding: fn.px-to-em(8) calc(#{$cp-select-icon-size} + #{fn.px-to-em(8)} + #{fn.px-to-em(8)}) fn.px-to-em(8)
146
- fn.px-to-em(8);
147
- font-size: fn.px-to-em(16);
144
+ padding: fn.px-to-rem(8) calc(#{$cp-select-icon-size} + #{fn.px-to-rem(8)} + #{fn.px-to-rem(8)}) fn.px-to-rem(8)
145
+ fn.px-to-rem(8);
146
+ line-height: fn.px-to-rem(24);
147
+ font-size: fn.px-to-em(14);
148
148
 
149
149
  &:hover,
150
150
  &:focus {
151
- border-color: colors.$primary-color;
151
+ outline: fn.px-to-rem(1) solid colors.$primary-color;
152
152
  background-color: colors.$neutral-light;
153
153
  }
154
154
 
155
155
  &:focus {
156
- box-shadow:
157
- rgba(colors.$primary-color, 0.1) 0 0 0 fn.px-to-rem(4),
158
- colors.$primary-color 0 0 0 fn.px-to-rem(0.5);
156
+ outline: fn.px-to-rem(2) solid colors.$primary-color;
157
+ box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$primary-color, $lightness: 80%);
159
158
  }
160
159
  }
161
160
 
@@ -174,7 +173,7 @@ onMounted(() => {
174
173
 
175
174
  &--isDisabled {
176
175
  .cpSelect__inner {
177
- border-color: colors.$neutral-dark-4 !important;
176
+ outline: fn.px-to-rem(1) solid colors.$neutral-dark-4 !important;
178
177
  background: colors.$neutral-light-1;
179
178
  }
180
179
 
@@ -193,11 +192,11 @@ onMounted(() => {
193
192
  .cpSelect__inner,
194
193
  .cpSelect__inner:hover,
195
194
  .cpSelect__inner:focus {
196
- border-color: colors.$error-color;
195
+ outline-color: colors.$error-color;
197
196
  }
198
197
 
199
198
  .cpSelect__inner:focus {
200
- box-shadow: 0 0 0 fn.px-to-em(3) color.scale(colors.$error-color, $lightness: 60%);
199
+ box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$error-color, $lightness: 60%);
201
200
  }
202
201
  }
203
202
 
@@ -151,32 +151,33 @@ const isSelectedValue = (value: string): boolean => {
151
151
  <style lang="scss">
152
152
  .cpSelectMenu {
153
153
  position: relative;
154
- font-size: fn.px-to-em(16);
154
+ font-size: fn.px-to-em(14);
155
155
 
156
156
  &__button {
157
157
  box-shadow: inset 0 fn.px-to-em(1) fn.px-to-em(2) rgba(0, 0, 0, 0.12);
158
- border: fn.px-to-rem(1) solid colors.$neutral-dark-4;
158
+ border: none;
159
+ outline: fn.px-to-rem(1) solid colors.$neutral-dark-4;
159
160
  border-radius: fn.px-to-em(10);
160
161
  background: colors.$neutral-light;
161
- padding: fn.px-to-em(12);
162
+ padding: fn.px-to-rem(8);
162
163
  width: 100%;
163
- height: sizing.$component-size-default;
164
164
  display: flex;
165
165
  align-items: center;
166
166
  justify-content: space-between;
167
167
  font-size: inherit;
168
+ line-height: fn.px-to-rem(24);
168
169
  font-weight: normal;
169
170
  text-transform: capitalize;
170
171
 
171
172
  &:hover,
172
173
  &:active,
173
174
  &:focus {
174
- border-color: colors.$secondary-color;
175
+ outline: fn.px-to-rem(1) solid colors.$secondary-color;
175
176
  }
176
177
 
177
178
  &:focus {
178
- outline: none !important;
179
- box-shadow: 0 0 0 fn.px-to-em(3) color.scale(colors.$secondary-color, $lightness: 80%);
179
+ outline: fn.px-to-rem(2) solid colors.$secondary-color;
180
+ box-shadow: 0 0 0 fn.px-to-em(2) color.scale(colors.$secondary-color, $lightness: 80%);
180
181
  }
181
182
  }
182
183