@asd20/ui 3.2.567 → 3.2.569

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.567",
8
+ "version": "3.2.569",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -83,8 +83,8 @@ export default {
83
83
  margin-bottom: 0;
84
84
  min-height: space(1);
85
85
  &::v-deep .asd20-loader {
86
- height: 48px;
87
- width: 48px;
86
+ // height: 48px;
87
+ width: 36px;
88
88
  position: inherit;
89
89
  // margin-bottom: space(0.5);
90
90
  background: transparent;
@@ -165,7 +165,7 @@ export default {
165
165
  margin-left: 1rem;
166
166
  }
167
167
  &::v-deep .notification-group--floating {
168
- margin-right: space(1.25);
168
+ // margin-right: space(1.25);
169
169
  .bell {
170
170
  z-index: 1000;
171
171
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
@@ -263,7 +263,7 @@ $max: 4rem;
263
263
  &__top {
264
264
  flex-direction: row;
265
265
  justify-content: flex-end;
266
- padding: space(0.25) space(1);
266
+ // padding: space(0.25) space(1);
267
267
  align-items: center !important;
268
268
  }
269
269
  }
@@ -322,7 +322,7 @@ $max: 4rem;
322
322
  &__top {
323
323
  position: relative;
324
324
  margin: 0;
325
- padding: space(1) space(3) space(1) space(3);
325
+ // padding: space(1) space(3) space(1) space(3);
326
326
  grid-column: 1/-1;
327
327
  grid-row: 1/7;
328
328
  background: transparent;
@@ -340,10 +340,10 @@ $max: 4rem;
340
340
  padding-right: 0;
341
341
  }
342
342
  &::v-deep .asd20-notification-group--floating {
343
- position: absolute;
344
- right: space(3);
345
- top: space(3.5);
346
- margin-right: 0;
343
+ // position: absolute;
344
+ // right: space(3);
345
+ // top: space(3.5);
346
+ // margin-right: 0;
347
347
  }
348
348
 
349
349
  &__content {
@@ -121,8 +121,8 @@ export default {
121
121
  }
122
122
 
123
123
  & /deep/ .notification-group--floating {
124
+ margin-left: 0.5rem;
124
125
  margin-right: 0;
125
- margin-left: 0.25rem;
126
126
  }
127
127
  }
128
128
  .scroll-down-indicator {
@@ -198,7 +198,7 @@ export default {
198
198
  }
199
199
  &__top {
200
200
  position: absolute;
201
- padding: space(0.5) space(1);
201
+ padding: space(0.5) space(0);
202
202
  }
203
203
  }
204
204
  }
@@ -27,7 +27,7 @@ const wrapper = {
27
27
  floating: [],
28
28
  status: [],
29
29
  }
30
- return boolean('Show Notifications', true)
30
+ return boolean('Show Notifications', false)
31
31
  ? notifications || empty
32
32
  : empty
33
33
  },
@@ -89,6 +89,20 @@
89
89
  </a>
90
90
  </client-only>
91
91
 
92
+ <client-only>
93
+ <Asd20LanguageTranslation
94
+ :class="
95
+ activeNotificationsByType.status.length > 0
96
+ ? ''
97
+ : 'translation-button-adjust'
98
+ "
99
+ v-if="languageCode"
100
+ reversed
101
+ :languageCode="languageCode"
102
+ v-on="$listeners"
103
+ />
104
+ </client-only>
105
+
92
106
  <client-only>
93
107
  <asd20-notification-group
94
108
  class="asd20-notification-group--floating"
@@ -241,6 +255,7 @@ import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
241
255
  import Asd20PrimaryHeader from '../../../components/organisms/Asd20PrimaryHeader'
242
256
  import Asd20SecondaryHeader from '../../../components/organisms/Asd20SecondaryHeader'
243
257
  import Asd20TertiaryHeader from '../../../components/organisms/Asd20TertiaryHeader'
258
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
244
259
 
245
260
  export default {
246
261
  name: 'Asd20DistrictHomeTemplate',
@@ -271,6 +286,10 @@ export default {
271
286
  Asd20PrimaryHeader,
272
287
  Asd20TertiaryHeader,
273
288
  Asd20SecondaryHeader,
289
+ Asd20LanguageTranslation,
290
+ },
291
+ props: {
292
+ languageCode: { type: String, default: 'en' },
274
293
  },
275
294
  }
276
295
  </script>
@@ -298,7 +317,7 @@ export default {
298
317
  background: #fff;
299
318
  position: relative;
300
319
  z-index: 100;
301
- padding: space(0.5) space(1);
320
+ padding: space(0) space(0);
302
321
  display: flex;
303
322
  justify-content: space-between;
304
323
  align-items: center;
@@ -308,6 +327,42 @@ export default {
308
327
  .asd20-organization-picker {
309
328
  display: none;
310
329
  }
330
+ .notification-translation-container {
331
+ display: flex;
332
+ flex-direction: row;
333
+ align-items: center;
334
+ flex-wrap: wrap;
335
+ justify-content: flex-end;
336
+ margin-right: 0.25rem;
337
+ }
338
+ .asd20-language-translation {
339
+ background: rgba(255, 255, 255, 1);
340
+ border-radius: 50%;
341
+ border: 1px solid var(--website-page__alternate-background-color);
342
+ // margin-left: 0.5rem;
343
+ .asd20-select-input {
344
+ padding: 0.25rem 0.25rem;
345
+ color: currentColor;
346
+ font-family: Ariel, Arial, Helvetica, sans-serif;
347
+ &__overlay-label {
348
+ display: none;
349
+ }
350
+ }
351
+ .asd20-icon {
352
+ width: 24px !important;
353
+ height: 24px !important;
354
+ --line-color: currentColor !important;
355
+ --fill-color: var(--color__accent) !important;
356
+ }
357
+ }
358
+ .asd20-language-loader {
359
+ order: 1;
360
+ }
361
+ .translation-button-adjust {
362
+ position: absolute;
363
+ top: space(1.375);
364
+ right: space(0.5);
365
+ }
311
366
  & /deep/ .notification-group--status .notifications {
312
367
  padding: 0.25em;
313
368
  border-radius: 1em;
@@ -325,6 +380,7 @@ export default {
325
380
  }
326
381
 
327
382
  .notification-group--floating {
383
+ margin-left: 0.5rem;
328
384
  margin-right: 0;
329
385
  // .bell {
330
386
  // box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
@@ -350,8 +406,10 @@ export default {
350
406
  .double-notification-wrapper {
351
407
  display: flex;
352
408
  flex-direction: row;
353
- justify-content: space-between;
409
+ justify-content: space-around;
354
410
  width: 100%;
411
+ align-items: center;
412
+ flex-wrap: wrap;
355
413
  }
356
414
  .asd20-header-content {
357
415
  position: absolute;
@@ -377,6 +435,23 @@ export default {
377
435
  // }
378
436
  }
379
437
 
438
+ @media (min-width: 667px) {
439
+ .asd20-district-home-template {
440
+ .logo-header {
441
+ padding: 0 space(1);
442
+ }
443
+ .translation-button-adjust {
444
+ position: relative !important;
445
+ top: 0 !important;
446
+ right: 0 !important;
447
+ }
448
+ .double-notification-wrapper {
449
+ padding-right: space(1);
450
+ justify-content: flex-end !important;
451
+ }
452
+ }
453
+ }
454
+
380
455
  @media (min-width: 1024px) {
381
456
  .asd20-district-home-template {
382
457
  display: block;
@@ -52,19 +52,6 @@
52
52
  "
53
53
  >
54
54
  <div class="weather-status-and-translation-container">
55
- <client-only>
56
- <Asd20LanguageTranslation
57
- :class="{
58
- 'translation-button-adjust':
59
- activeNotificationsByType.floating.length > 0 ||
60
- activeNotificationsByType.status.length > 0,
61
- }"
62
- v-if="languageCode"
63
- reversed
64
- :languageCode="languageCode"
65
- v-on="$listeners"
66
- />
67
- </client-only>
68
55
  <client-only>
69
56
  <a
70
57
  class="weather-link"
@@ -78,6 +65,20 @@
78
65
  />
79
66
  </a>
80
67
  </client-only>
68
+
69
+ <client-only>
70
+ <Asd20LanguageTranslation
71
+ :class="
72
+ activeNotificationsByType.status.length > 0
73
+ ? ''
74
+ : 'translation-button-adjust'
75
+ "
76
+ v-if="languageCode"
77
+ reversed
78
+ :languageCode="languageCode"
79
+ v-on="$listeners"
80
+ />
81
+ </client-only>
81
82
  </div>
82
83
 
83
84
  <client-only>
@@ -210,21 +211,20 @@ export default {
210
211
  .weather-status-and-translation-container {
211
212
  display: flex;
212
213
  flex-direction: row;
214
+ align-items: center;
213
215
  }
214
216
  .asd20-language-translation {
215
217
  position: absolute;
216
- top: 1rem;
218
+ top: 3.5rem;
217
219
  right: 0.5rem;
218
- flex-grow: 1;
219
220
  background: rgba(255, 255, 255, 0.9);
220
221
  border-radius: 3rem;
222
+ border: 1px solid var(--website-page__alternate-background-color);
221
223
  .asd20-select-input {
222
- // padding-left: 0.5em;
223
- padding: 0.375rem;
224
- // flex-grow: 1;
224
+ padding: 0.25rem 0.25rem;
225
225
  color: currentColor;
226
226
  font-family: Ariel, Arial, Helvetica, sans-serif;
227
- &__select-wrapper {
227
+ &__overlay-label {
228
228
  display: none;
229
229
  }
230
230
  }
@@ -240,12 +240,13 @@ export default {
240
240
  }
241
241
 
242
242
  .translation-button-adjust {
243
- top: 3.5rem;
243
+ position: absolute;
244
+ top: space(1);
245
+ right: space(0.5);
244
246
  }
245
247
  .weather-link {
246
248
  text-decoration: none;
247
249
  border-radius: 3rem;
248
- margin-top: 0.25rem;
249
250
  }
250
251
  .asd20-organization-picker {
251
252
  display: none;
@@ -258,7 +259,9 @@ export default {
258
259
  .double-notification-wrapper {
259
260
  display: flex;
260
261
  flex-direction: row;
261
- justify-content: space-between;
262
+ justify-content: flex-end;
263
+ align-items: center;
264
+ flex-wrap: wrap;
262
265
  }
263
266
  }
264
267
  // .asd20-video-header-content {
@@ -294,24 +297,14 @@ export default {
294
297
  }
295
298
  }
296
299
 
297
- @media (min-width: 668px) {
300
+ @media (min-width: 667px) {
298
301
  .asd20-district-video-template {
299
302
  .asd20-video-header {
300
- .weather-status-and-translation-container {
301
- flex-direction: column;
302
- }
303
303
  .asd20-language-translation {
304
304
  position: relative;
305
305
  top: 0;
306
306
  right: 0;
307
- .asd20-select-input {
308
- padding: 0 0 0 0;
309
- padding-left: 0.5em;
310
- &__select-wrapper {
311
- display: inherit;
312
- flex-grow: 0;
313
- }
314
- }
307
+ margin-left: 0.5rem;
315
308
  .asd20-icon {
316
309
  width: 24px !important;
317
310
  height: 24px !important;
@@ -320,7 +313,12 @@ export default {
320
313
  }
321
314
  }
322
315
  .translation-button-adjust {
323
- top: 0;
316
+ position: absolute;
317
+ top: space(1);
318
+ right: space(0.5);
319
+ }
320
+ .double-notification-wrapper {
321
+ justify-content: center;
324
322
  }
325
323
  }
326
324
  .asd20-video-header-content {
@@ -347,12 +345,19 @@ export default {
347
345
  // }
348
346
  }
349
347
  .asd20-video-header {
348
+ .translation-button-adjust {
349
+ position: absolute;
350
+ top: space(-1) !important;
351
+ right: space(0) !important;
352
+ }
353
+ .double-notification-wrapper {
354
+ justify-content: flex-end !important;
355
+ }
350
356
  .asd20-video-header-content {
351
357
  position: absolute;
352
358
  bottom: 20%;
353
359
  transform: translate3d(0, calc(-70% * var(--scroll-progress)), 0);
354
360
  animation: slide_left 1s ease-in-out 0.5s both;
355
-
356
361
  .lead {
357
362
  }
358
363
  }
@@ -61,31 +61,42 @@
61
61
  </template>
62
62
 
63
63
  <template slot="top">
64
- <client-only>
65
- <a
66
- class="weather-link"
67
- href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
68
- >
64
+ <div class="notification-translation-container">
65
+ <client-only>
66
+ <a
67
+ class="weather-link"
68
+ href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
69
+ >
70
+ <asd20-notification-group
71
+ :notifications="activeNotificationsByType.status"
72
+ group-type="status"
73
+ @dismiss="$emit('dismiss-notification', $event)"
74
+ @toggle-all="$emit('toggle-all')"
75
+ />
76
+ </a>
77
+ </client-only>
78
+
79
+ <client-only>
80
+ <Asd20LanguageTranslation
81
+ v-if="languageCode"
82
+ reversed
83
+ :languageCode="languageCode"
84
+ v-on="$listeners"
85
+ />
86
+ </client-only>
87
+
88
+ <!-- Floating Notifications -->
89
+ <client-only>
69
90
  <asd20-notification-group
70
- :notifications="activeNotificationsByType.status"
71
- group-type="status"
91
+ class="asd20-notification-group--floating"
92
+ :notifications="activeNotificationsByType.floating"
93
+ :total-dismissed-notifications="totalDismissedNotifications"
94
+ group-type="floating"
72
95
  @dismiss="$emit('dismiss-notification', $event)"
73
96
  @toggle-all="$emit('toggle-all')"
74
- />
75
- </a>
76
- </client-only>
77
-
78
- <!-- Floating Notifications -->
79
- <client-only>
80
- <asd20-notification-group
81
- class="asd20-notification-group--floating"
82
- :notifications="activeNotificationsByType.floating"
83
- :total-dismissed-notifications="totalDismissedNotifications"
84
- group-type="floating"
85
- @dismiss="$emit('dismiss-notification', $event)"
86
- @toggle-all="$emit('toggle-all')"
87
- ></asd20-notification-group>
88
- </client-only>
97
+ ></asd20-notification-group>
98
+ </client-only>
99
+ </div>
89
100
  </template>
90
101
  </asd20-school-homepage-header>
91
102
 
@@ -139,6 +150,7 @@ import Asd20PageContent from '../../../components/organisms/Asd20PageContent'
139
150
  import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
140
151
  import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
141
152
  import Asd20OrganizationPicker from '../../../components/organisms/Asd20OrganizationPicker'
153
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
142
154
 
143
155
  // Helpers
144
156
  import _get from 'lodash-es/get'
@@ -160,6 +172,10 @@ export default {
160
172
  Asd20NotificationGroup,
161
173
  Asd20FeedsSection,
162
174
  Asd20OrganizationPicker,
175
+ Asd20LanguageTranslation,
176
+ },
177
+ props: {
178
+ languageCode: { type: String, default: 'en' },
163
179
  },
164
180
 
165
181
  computed: {
@@ -213,6 +229,37 @@ export default {
213
229
  text-decoration: none;
214
230
  border-radius: 50%;
215
231
  }
232
+ .notification-translation-container {
233
+ display: flex;
234
+ flex-direction: row;
235
+ align-items: center;
236
+ flex-wrap: wrap;
237
+ justify-content: flex-end;
238
+ margin-right: space(1.5);
239
+ }
240
+ .asd20-language-translation {
241
+ background: rgba(255, 255, 255, 1);
242
+ border-radius: 50%;
243
+ border: 1px solid var(--website-page__alternate-background-color);
244
+ margin-left: 0.05rem;
245
+ .asd20-select-input {
246
+ padding: 0.25rem 0.25rem;
247
+ color: currentColor;
248
+ font-family: Ariel, Arial, Helvetica, sans-serif;
249
+ &__overlay-label {
250
+ display: none;
251
+ }
252
+ }
253
+ .asd20-icon {
254
+ width: 24px !important;
255
+ height: 24px !important;
256
+ --line-color: currentColor !important;
257
+ --fill-color: var(--color__accent) !important;
258
+ }
259
+ }
260
+ .asd20-language-loader {
261
+ order: 1;
262
+ }
216
263
  .pickerContainer {
217
264
  display: none;
218
265
  }
@@ -255,11 +302,25 @@ export default {
255
302
  }
256
303
  }
257
304
 
305
+ @media (min-width: 667px) {
306
+ .asd20-school-home-template {
307
+ .notification-translation-container {
308
+ margin-right: space(1);
309
+ }
310
+ .asd20-language-translation {
311
+ margin-left: 0.5rem;
312
+ }
313
+ }
314
+ }
315
+
258
316
  @media (min-width: 1024px) {
259
317
  .asd20-school-home-template {
260
318
  display: block;
261
319
  margin-left: space(3);
262
320
  margin-top: 0;
321
+ .notification-translation-container {
322
+ margin-right: 0.25rem;
323
+ }
263
324
  .asd20-notification--status {
264
325
  .asd20-notification__content {
265
326
  padding-right: 0;
@@ -76,6 +76,15 @@
76
76
  </a>
77
77
  </client-only>
78
78
 
79
+ <client-only>
80
+ <Asd20LanguageTranslation
81
+ v-if="languageCode"
82
+ reversed
83
+ :languageCode="languageCode"
84
+ v-on="$listeners"
85
+ />
86
+ </client-only>
87
+
79
88
  <!-- Floating Notifications -->
80
89
  <client-only>
81
90
  <asd20-notification-group
@@ -140,6 +149,7 @@ import Asd20PageContent from '../../../components/organisms/Asd20PageContent'
140
149
  import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
141
150
  import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
142
151
  import Asd20OrganizationPicker from '../../../components/organisms/Asd20OrganizationPicker'
152
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
143
153
 
144
154
  // Helpers
145
155
  import _get from 'lodash-es/get'
@@ -161,6 +171,10 @@ export default {
161
171
  Asd20NotificationGroup,
162
172
  Asd20FeedsSection,
163
173
  Asd20OrganizationPicker,
174
+ Asd20LanguageTranslation,
175
+ },
176
+ props: {
177
+ languageCode: { type: String, default: 'en' },
164
178
  },
165
179
  }
166
180
  </script>
@@ -207,9 +221,36 @@ export default {
207
221
  margin-top: space(0);
208
222
  }
209
223
  .asd20-notification-group--status {
224
+ position: absolute;
225
+ right: space(2);
226
+ top: space(0.5) !important;
227
+ }
228
+ .asd20-language-translation {
210
229
  position: absolute;
211
230
  right: space(0.5);
212
231
  top: space(0.5) !important;
232
+ z-index: 2;
233
+ background: rgba(255, 255, 255, 1);
234
+ border-radius: 50%;
235
+ border: 1px solid var(--website-page__alternate-background-color);
236
+ margin: 0 0.05rem;
237
+ .asd20-select-input {
238
+ padding: 0.25rem 0.25rem;
239
+ color: currentColor;
240
+ font-family: Ariel, Arial, Helvetica, sans-serif;
241
+ &__overlay-label {
242
+ display: none;
243
+ }
244
+ }
245
+ .asd20-icon {
246
+ width: 24px !important;
247
+ height: 24px !important;
248
+ --line-color: currentColor !important;
249
+ --fill-color: var(--color__accent) !important;
250
+ }
251
+ }
252
+ .asd20-language-loader {
253
+ order: 1;
213
254
  }
214
255
 
215
256
  .asd20-notification-group--floating {
@@ -240,9 +281,13 @@ export default {
240
281
  @media (min-width: 667px) {
241
282
  .asd20-school-home-video-template {
242
283
  .asd20-notification-group--status {
243
- right: space(1);
284
+ right: space(2.5);
244
285
  top: space(0.5) !important;
245
286
  }
287
+ .asd20-language-translation {
288
+ right: space(1);
289
+ top: space(1) !important;
290
+ }
246
291
  .asd20-notification-group--floating {
247
292
  right: space(1);
248
293
  top: space(2) !important;
@@ -290,6 +335,10 @@ export default {
290
335
  }
291
336
  .asd20-notification-group--status {
292
337
  order: 0;
338
+ right: space(5.5) !important;
339
+ top: space(6) !important;
340
+ }
341
+ .asd20-language-translation {
293
342
  right: space(4) !important;
294
343
  top: space(6) !important;
295
344
  }