@burh/nuxt-core 1.0.451 → 1.0.453

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.
@@ -26,7 +26,7 @@
26
26
  <span
27
27
  v-if="items.number"
28
28
  :class="items.color ? items.color : ''"
29
- class="display-1 font-weight-bold"
29
+ class="display-1 font-weight-bold number-value"
30
30
  >{{ items.percentage ? items.percentage : items.number}}</span
31
31
  >
32
32
  <p
@@ -111,6 +111,18 @@ export default {
111
111
  }
112
112
  }
113
113
  }
114
+ @media screen and (max-width: 1380px){
115
+ font-size: .8rem;
116
+ }
117
+ @media screen and (max-width: 1132px){
118
+ font-size: .7rem;
119
+ }
120
+ @media screen and (max-width: 1009px){
121
+ font-size: .67rem;
122
+ }
123
+ @media screen and (max-width: 768px){
124
+ font-size: 1rem;
125
+ }
114
126
  }
115
127
 
116
128
  .chart__graph {
@@ -134,9 +146,30 @@ export default {
134
146
  align-items: center;
135
147
  justify-content: center;
136
148
  flex-direction: column;
137
-
138
149
  }
139
150
 
151
+ .number-value{
152
+ font-size: 2rem;
153
+
154
+ @media screen and (max-width: 1380px){
155
+ font-size: 1.5rem;
156
+ }
157
+ @media screen and (max-width: 1075px){
158
+ font-size: 1.3rem;
159
+ }
160
+ @media screen and (max-width: 934px){
161
+ font-size: 1.2rem;
162
+ }
163
+ @media screen and (max-width: 952px){
164
+ font-size: 1rem;
165
+ }
166
+ @media screen and (max-width: 768px){
167
+ font-size: 1.8rem;
168
+ }
169
+ @media screen and (max-width: 672px){
170
+ font-size: 1.4rem;
171
+ }
172
+ }
140
173
  .card__content {
141
174
  width: 100%;
142
175
  }
@@ -144,6 +177,7 @@ export default {
144
177
  .card-title {
145
178
  font-size: 1rem;
146
179
  }
180
+
147
181
  .info-box {
148
182
  @media (min-width: 576px) {
149
183
  flex: 0 0 50%;
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
  <div>
17
17
  <button
18
- @click="!isLocked ? $emit('filter-apply') : $emit('open-plan-modal')"
18
+ @click="!isLocked ? handleFilterApply() : $emit('open-plan-modal')"
19
19
  class="base__filter__button apply"
20
20
  :class="{ 'disabled': isLocked }"
21
21
  >
@@ -44,6 +44,12 @@ export default {
44
44
  type: Boolean,
45
45
  default: false
46
46
  }
47
+ },
48
+ methods: {
49
+ handleFilterApply() {
50
+ this.$bus.$emit('close-dropdown');
51
+ this.$emit('filter-apply');
52
+ }
47
53
  }
48
54
  };
49
55
  </script>
@@ -1,14 +1,15 @@
1
1
  <template>
2
- <div>
2
+ <div :class="{'filter__with__dropdown' : isDropdownOpen}">
3
3
  <div
4
4
  v-if="isDropdownOpen"
5
5
  id="backgroundFade"
6
+ @mousedown="dropDownOutsideClick"
6
7
  ></div>
7
8
  <div
8
- v-click-outside="dropDownOutsideClick"
9
+ ref="filterContainer"
9
10
  class="filter__container"
10
11
  :class="{'filter__container__dropdown--open': isDropdownOpen}"
11
- ref="filterContainer"
12
+ :style="`--filter-text-color: ${this.baseColor}; --filter-base-color: ${this.baseColor}22`"
12
13
  >
13
14
  <button
14
15
  class="filter__item"
@@ -61,6 +62,10 @@ export default {
61
62
  type: Boolean,
62
63
  default: false
63
64
  },
65
+ baseColor: {
66
+ type: String,
67
+ default: '#5865F2'
68
+ }
64
69
  },
65
70
  data() {
66
71
  return {
@@ -104,10 +109,22 @@ export default {
104
109
  this.isDropdownOpen = false;
105
110
  }
106
111
  }
112
+ },
113
+ mounted() {
114
+ this.$bus.$on('close-dropdown', () => this.isDropdownOpen = false);
115
+ },
116
+ beforeDestroy() {
117
+ this.$bus.$off('close-dropdown');
107
118
  }
108
119
  };
109
120
  </script>
110
121
 
122
+ <style lang="scss">
123
+ .el-select-dropdown.el-popper {
124
+ z-index: 2147483020!important;
125
+ }
126
+ </style>
127
+
111
128
  <style lang="scss" scoped>
112
129
  @keyframes fadeIn {
113
130
  from { opacity: 0; }
@@ -137,15 +154,26 @@ export default {
137
154
  width: 100vw;
138
155
  height: 100vh;
139
156
  background: rgba(255, 255, 255, 0.6);
140
- z-index: 200;
157
+ z-index: 1050;
141
158
  animation: 0.5s fadeIn;
142
159
  }
143
160
 
161
+ .filter__with__dropdown {
162
+ @media (max-width: 820px) {
163
+ & {
164
+ z-index: 2147483010;
165
+ }
166
+ }
167
+ }
168
+
144
169
  .filter__container__dropdown--open {
145
- z-index: 210!important;
170
+ z-index: 1060!important;
146
171
  }
147
172
 
148
173
  .filter__container {
174
+ $baseColor: var(--filter-base-color);
175
+ $textColor: var(--filter-text-color);
176
+
149
177
  position: relative;
150
178
  z-index: 100;
151
179
  margin-bottom: 10px;
@@ -202,10 +230,10 @@ export default {
202
230
  background: transparent;
203
231
  &:focus {
204
232
  outline: none;
205
- background: rgba(31, 140, 235, 0.2);
233
+ background: $baseColor;
206
234
  border-color: transparent;
207
235
  p {
208
- color: #5865F2;
236
+ color: $textColor;
209
237
  }
210
238
  }
211
239
  &:not(.filter__item--active):not(:disabled):hover {
@@ -225,10 +253,10 @@ export default {
225
253
  white-space: nowrap;
226
254
  }
227
255
  &--active {
228
- background: rgba(31, 140, 235, 0.2);
256
+ background: $baseColor;
229
257
  border-color: transparent;
230
258
  p {
231
- color: #5865F2;
259
+ color: $textColor;
232
260
  }
233
261
  }
234
262
  .status {
@@ -198,7 +198,7 @@ export default {
198
198
  }
199
199
  &--active {
200
200
  img {
201
- border-color: #1F8CEB;
201
+ border-color: #5865f2;
202
202
  }
203
203
  }
204
204
  }
@@ -273,7 +273,7 @@ export default {
273
273
  font-size: 0.7rem;
274
274
  user-select: none;
275
275
  &--active {
276
- border-color: #1F8CEB;
276
+ border-color: #5865f2;
277
277
  }
278
278
  }
279
279
 
@@ -29,6 +29,10 @@ export default {
29
29
  fallbackText: {
30
30
  type: String,
31
31
  required: true
32
+ },
33
+ fallbackSingle: {
34
+ type: Boolean,
35
+ default: true
32
36
  }
33
37
  },
34
38
  methods: {
@@ -47,7 +51,11 @@ export default {
47
51
  let userAvatarName;
48
52
 
49
53
  if (this.fallbackText) {
50
- userAvatarName = this.fallbackText.slice(0, 1).toUpperCase();
54
+ if (this.fallbackSingle) {
55
+ userAvatarName = this.fallbackText.slice(0, 1).toUpperCase();
56
+ } else {
57
+ userAvatarName = this.fallbackText;
58
+ }
51
59
  } else {
52
60
  userAvatarName = 'BURH';
53
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.451",
3
+ "version": "1.0.453",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {