@asd20/ui 3.2.567 → 3.2.568

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.568",
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 {
@@ -89,6 +89,15 @@
89
89
  </a>
90
90
  </client-only>
91
91
 
92
+ <client-only>
93
+ <Asd20LanguageTranslation
94
+ v-if="languageCode"
95
+ reversed
96
+ :languageCode="languageCode"
97
+ v-on="$listeners"
98
+ />
99
+ </client-only>
100
+
92
101
  <client-only>
93
102
  <asd20-notification-group
94
103
  class="asd20-notification-group--floating"
@@ -241,6 +250,7 @@ import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
241
250
  import Asd20PrimaryHeader from '../../../components/organisms/Asd20PrimaryHeader'
242
251
  import Asd20SecondaryHeader from '../../../components/organisms/Asd20SecondaryHeader'
243
252
  import Asd20TertiaryHeader from '../../../components/organisms/Asd20TertiaryHeader'
253
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
244
254
 
245
255
  export default {
246
256
  name: 'Asd20DistrictHomeTemplate',
@@ -271,6 +281,10 @@ export default {
271
281
  Asd20PrimaryHeader,
272
282
  Asd20TertiaryHeader,
273
283
  Asd20SecondaryHeader,
284
+ Asd20LanguageTranslation,
285
+ },
286
+ props: {
287
+ languageCode: { type: String, default: 'en' },
274
288
  },
275
289
  }
276
290
  </script>
@@ -308,6 +322,37 @@ export default {
308
322
  .asd20-organization-picker {
309
323
  display: none;
310
324
  }
325
+ .notification-translation-container {
326
+ display: flex;
327
+ flex-direction: row;
328
+ align-items: center;
329
+ flex-wrap: wrap;
330
+ justify-content: flex-end;
331
+ margin-right: 0.25rem;
332
+ }
333
+ .asd20-language-translation {
334
+ background: rgba(255, 255, 255, 1);
335
+ border-radius: 50%;
336
+ border: 1px solid var(--website-page__alternate-background-color);
337
+ margin-left: 0.5rem;
338
+ .asd20-select-input {
339
+ padding: 0.25rem 0.25rem;
340
+ color: currentColor;
341
+ font-family: Ariel, Arial, Helvetica, sans-serif;
342
+ &__select-wrapper {
343
+ display: none;
344
+ }
345
+ }
346
+ .asd20-icon {
347
+ width: 24px !important;
348
+ height: 24px !important;
349
+ --line-color: currentColor !important;
350
+ --fill-color: var(--color__accent) !important;
351
+ }
352
+ }
353
+ .asd20-language-loader {
354
+ order: 1;
355
+ }
311
356
  & /deep/ .notification-group--status .notifications {
312
357
  padding: 0.25em;
313
358
  border-radius: 1em;
@@ -325,6 +370,7 @@ export default {
325
370
  }
326
371
 
327
372
  .notification-group--floating {
373
+ margin-left: 0.5rem;
328
374
  margin-right: 0;
329
375
  // .bell {
330
376
  // box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
@@ -350,8 +396,10 @@ export default {
350
396
  .double-notification-wrapper {
351
397
  display: flex;
352
398
  flex-direction: row;
353
- justify-content: space-between;
399
+ justify-content: flex-end;
354
400
  width: 100%;
401
+ align-items: center;
402
+ flex-wrap: wrap;
355
403
  }
356
404
  .asd20-header-content {
357
405
  position: absolute;
@@ -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
+ 'translation-button-adjust':
73
+ activeNotificationsByType.floating.length > 0 ||
74
+ activeNotificationsByType.status.length > 0,
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,18 +211,17 @@ 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: 1.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
227
  &__select-wrapper {
@@ -245,7 +245,6 @@ export default {
245
245
  .weather-link {
246
246
  text-decoration: none;
247
247
  border-radius: 3rem;
248
- margin-top: 0.25rem;
249
248
  }
250
249
  .asd20-organization-picker {
251
250
  display: none;
@@ -258,7 +257,9 @@ export default {
258
257
  .double-notification-wrapper {
259
258
  display: flex;
260
259
  flex-direction: row;
261
- justify-content: space-between;
260
+ justify-content: flex-end;
261
+ align-items: center;
262
+ flex-wrap: wrap;
262
263
  }
263
264
  }
264
265
  // .asd20-video-header-content {
@@ -294,24 +295,14 @@ export default {
294
295
  }
295
296
  }
296
297
 
297
- @media (min-width: 668px) {
298
+ @media (min-width: 667px) {
298
299
  .asd20-district-video-template {
299
300
  .asd20-video-header {
300
- .weather-status-and-translation-container {
301
- flex-direction: column;
302
- }
303
301
  .asd20-language-translation {
304
302
  position: relative;
305
303
  top: 0;
306
304
  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
- }
305
+ margin-left: 0.5rem;
315
306
  .asd20-icon {
316
307
  width: 24px !important;
317
308
  height: 24px !important;
@@ -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: 0.25rem;
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: 0 0.05rem;
245
+ .asd20-select-input {
246
+ padding: 0.25rem 0.25rem;
247
+ color: currentColor;
248
+ font-family: Ariel, Arial, Helvetica, sans-serif;
249
+ &__select-wrapper {
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,6 +302,14 @@ export default {
255
302
  }
256
303
  }
257
304
 
305
+ @media (min-width: 667px) {
306
+ .asd20-school-home-template {
307
+ .asd20-language-translation {
308
+ margin: 0 0.5rem;
309
+ }
310
+ }
311
+ }
312
+
258
313
  @media (min-width: 1024px) {
259
314
  .asd20-school-home-template {
260
315
  display: block;
@@ -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
+ &__select-wrapper {
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,6 +281,10 @@ export default {
240
281
  @media (min-width: 667px) {
241
282
  .asd20-school-home-video-template {
242
283
  .asd20-notification-group--status {
284
+ right: space(2.5);
285
+ top: space(0.5) !important;
286
+ }
287
+ .asd20-language-translation {
243
288
  right: space(1);
244
289
  top: space(0.5) !important;
245
290
  }
@@ -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
  }