@aarhus-university/au-lib-react-components 9.11.18 → 10.0.1

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.
Files changed (165) hide show
  1. package/.eslintrc.js +44 -0
  2. package/README.md +19 -20
  3. package/babel.config.js +7 -6
  4. package/build/umd/all.css +1 -1
  5. package/build/umd/all.css.map +1 -1
  6. package/build/umd/all.js +1 -1
  7. package/build/umd/all.js.map +1 -1
  8. package/build/umd/alphabox.js +1 -1
  9. package/build/umd/alphabox.js.map +1 -1
  10. package/build/umd/databox.js +1 -2
  11. package/build/umd/databox.js.map +1 -1
  12. package/build/umd/diagramme.js +1 -1
  13. package/build/umd/diagramme.js.map +1 -1
  14. package/build/umd/flowbox.js +1 -1
  15. package/build/umd/flowbox.js.map +1 -1
  16. package/build/umd/universe.js +1 -1
  17. package/build/umd/universe.js.map +1 -1
  18. package/package.json +66 -60
  19. package/src/components/{delphinus/AUAlertComponent.js → AUAlertComponent.tsx} +70 -85
  20. package/src/components/{AutoSuggestComponent.js → AUAutoSuggestComponent.js} +45 -19
  21. package/src/components/AUCalendarComponent.tsx +493 -0
  22. package/src/components/AUContentToggleComponent.tsx +33 -0
  23. package/src/components/AUDatepickerComponent.tsx +117 -0
  24. package/src/components/AUMobilePrefixComponent.tsx +15 -0
  25. package/src/components/{delphinus/AUModalComponent.js → AUModalComponent.tsx} +80 -94
  26. package/src/components/{form/AUReceiptComponent.js → AUReceiptComponent.tsx} +33 -40
  27. package/src/components/AUSpinnerComponent.tsx +67 -0
  28. package/src/components/{delphinus/AUSubNavComponent.js → AUSubNavComponent.tsx} +38 -53
  29. package/src/components/{form/AUSubmitButtonContainerComponent.js → AUSubmitButtonContainerComponent.tsx} +31 -39
  30. package/src/components/{delphinus/AUTabbedContentComponent.js → AUTabbedContentComponent.tsx} +145 -150
  31. package/src/components/{delphinus/AUTableComponent.js → AUTableComponent.tsx} +24 -28
  32. package/src/components/{delphinus/AUToastComponent.js → AUToastComponent.tsx} +104 -91
  33. package/src/components/{delphinus/AUToolbarComponent.js → AUToolbarComponent.tsx} +45 -48
  34. package/src/components/profile/AUProfileActions.js +128 -128
  35. package/src/components/profile/AUProfileAvatarComponent.js +83 -83
  36. package/src/components/profile/AUProfileAvatarV2Component.js +91 -91
  37. package/src/components/profile/AUProfileAvatarV3Component.tsx +42 -0
  38. package/src/components/profile/AUProfileContainerComponent.js +283 -283
  39. package/src/components/profile/AUProfileHooks.js +30 -30
  40. package/src/components/profile/AUProfileItemComponent.js +54 -54
  41. package/src/components/profile/AUProfileLanguageComponent.js +131 -131
  42. package/src/components/profile/{AUProfileLoginComponent.js → AUProfileLoginComponent.tsx} +3 -18
  43. package/src/components/profile/AUProfileMailComponent.js +307 -307
  44. package/src/components/profile/AUProfileMobileComponent.js +164 -164
  45. package/src/components/profile/AUProfileNameComponent.js +253 -253
  46. package/src/components/profile/AUProfileNextOfKinComponent.js +216 -216
  47. package/src/components/profile/AUProfileReducer.js +230 -230
  48. package/src/components/profile/AUProfileWidgetComponent.js +95 -95
  49. package/src/components/profile/AUProfileWidgetV2Component.js +116 -116
  50. package/src/components/profile/{AUProfileWidgetV3Component.js → AUProfileWidgetV3Component.tsx} +122 -130
  51. package/src/components/wrapping/AUEmbedComponent.js +47 -47
  52. package/src/{components → layout-2016/components}/alphabox/AlphaBoxComponent.js +28 -25
  53. package/src/{components → layout-2016/components}/alphabox/AlphaBoxContentComponent.js +25 -14
  54. package/src/{components → layout-2016/components/common}/AUCollapsibleComponent.js +1 -22
  55. package/src/{components → layout-2016/components/common}/AUSpinnerComponent.js +2 -24
  56. package/src/{components → layout-2016/components}/databox/DataBoxAlphabetComponent.js +1 -1
  57. package/src/{components → layout-2016/components}/databox/DataBoxAssociationComponent.js +2 -2
  58. package/src/{components → layout-2016/components}/databox/DataBoxButtonComponent.js +7 -3
  59. package/src/{components → layout-2016/components}/databox/DataBoxComponent.js +2 -2
  60. package/src/{components → layout-2016/components}/databox/DataBoxGroupingComponent.js +2 -0
  61. package/src/{components → layout-2016/components}/databox/DataBoxSearchResultComponent.js +1 -5
  62. package/src/{components → layout-2016/components}/databox/DataBoxStackedAssociationComponent.js +1 -5
  63. package/src/{components → layout-2016/components}/databox/DataBoxSuggestionComponent.js +0 -0
  64. package/src/{components → layout-2016/components/diagramme}/AUDiagrammeComponent.js +5 -6
  65. package/src/{components → layout-2016/components}/flowbox/FlowBoxComponent.js +8 -8
  66. package/src/{components → layout-2016/components}/flowbox/FlowBoxPhoneComponent.js +3 -5
  67. package/src/{components → layout-2016/components}/profile/AUProfileAvatar2016Component.js +6 -2
  68. package/src/{components → layout-2016/components}/universe/StaffTopComponent.js +4 -3
  69. package/src/{components → layout-2016/components}/universe/StudentTopComponent.js +0 -0
  70. package/src/{components → layout-2016/components}/universe/UniverseContainerComponent.js +11 -8
  71. package/src/layout-2016/lib/all.js +3 -0
  72. package/src/{lib → layout-2016/lib}/au-alphabox.js +1 -3
  73. package/src/{lib → layout-2016/lib}/au-databox.js +6 -9
  74. package/src/{lib → layout-2016/lib}/au-diagramme.js +2 -4
  75. package/src/{lib → layout-2016/lib}/au-flowbox.js +1 -3
  76. package/src/{lib → layout-2016/lib}/universe.js +0 -0
  77. package/src/lib/{helpers.js → helpers.ts} +33 -58
  78. package/src/{components/delphinus/hooks.js → lib/hooks.ts} +33 -28
  79. package/src/lib/{i18n.js → i18n.ts} +600 -601
  80. package/src/lib/{tracking.js → tracking.ts} +69 -65
  81. package/src/lib/{wrapping.js → wrapping.ts} +21 -16
  82. package/src/styles/_settings.scss +10 -10
  83. package/src/styles/alphabox.scss +222 -208
  84. package/src/styles/app.scss +7 -13
  85. package/src/styles/autosuggest.scss +57 -57
  86. package/src/styles/databox.scss +563 -563
  87. package/src/styles/diagramme.scss +119 -119
  88. package/src/styles/flowbox.scss +72 -72
  89. package/src/styles/maps.scss +395 -395
  90. package/tsconfig.json +47 -0
  91. package/types/common/interfaces/gui.d.ts +52 -0
  92. package/types/common/interfaces/model.d.ts +29 -0
  93. package/types/common/main.d.ts +5 -0
  94. package/types/common/package.json +5 -0
  95. package/types/common/payloads.d.ts +0 -0
  96. package/types/common/props.d.ts +165 -0
  97. package/{src/config/webpack.umd.config.js → webpack.config.js} +20 -16
  98. package/.eslintrc +0 -19
  99. package/build/dev.html +0 -329
  100. package/build/umd/auAuth.js +0 -2
  101. package/build/umd/auAuth.js.map +0 -1
  102. package/build/umd/databox.js.LICENSE.txt +0 -5
  103. package/build/umd/news.js +0 -2
  104. package/build/umd/news.js.map +0 -1
  105. package/src/all.js +0 -3
  106. package/src/app.js +0 -263
  107. package/src/components/AUAlertComponent.js +0 -158
  108. package/src/components/AUAmountComponent.js +0 -84
  109. package/src/components/AUBannerComponent.js +0 -99
  110. package/src/components/AUCalendarComponent.js +0 -393
  111. package/src/components/AUDatepickerComponent.js +0 -105
  112. package/src/components/AUFilterCheckboxComponent.js +0 -122
  113. package/src/components/AUFocusComponent.js +0 -55
  114. package/src/components/AUModalComponent.js +0 -94
  115. package/src/components/AUPaginationComponent.js +0 -103
  116. package/src/components/context/AUUserContextComponent.js +0 -91
  117. package/src/components/context/ImpersonateComponent.js +0 -54
  118. package/src/components/delphinus/AUCalendarComponent.js +0 -487
  119. package/src/components/delphinus/AUContentToggleComponent.js +0 -32
  120. package/src/components/delphinus/AUDatepickerComponent.js +0 -164
  121. package/src/components/delphinus/AULoginComponent.js +0 -65
  122. package/src/components/delphinus/AUSpinnerComponent.js +0 -114
  123. package/src/components/form/AUMobilePrefixComponent.js +0 -18
  124. package/src/components/news/EventLayout1Component.js +0 -94
  125. package/src/components/news/EventLayout2Component.js +0 -90
  126. package/src/components/news/EventLayout3Component.js +0 -68
  127. package/src/components/news/NewsCategoriesComponent.js +0 -21
  128. package/src/components/news/NewsCollageBannerComponent.js +0 -71
  129. package/src/components/news/NewsCollageBannerRSSComponent.js +0 -79
  130. package/src/components/news/NewsColumnsComponent.js +0 -125
  131. package/src/components/news/NewsLanguageChangeComponent.js +0 -74
  132. package/src/components/news/NewsLayout1Component.js +0 -80
  133. package/src/components/news/NewsLayout2Component.js +0 -80
  134. package/src/components/news/NewsLayout3Component.js +0 -81
  135. package/src/components/news/NewsLayout4Component.js +0 -80
  136. package/src/components/news/NewsLayout5Component.js +0 -61
  137. package/src/components/news/NewsLayout6Component.js +0 -55
  138. package/src/components/news/NewsLayout7Component.js +0 -58
  139. package/src/components/news/NewsLayout8Component.js +0 -57
  140. package/src/components/news/NewsListComponent.js +0 -291
  141. package/src/components/news/NewsPopUpComponent.js +0 -591
  142. package/src/components/news/NewsRSSComponent.js +0 -74
  143. package/src/components/news/NewsSocialComponent.js +0 -104
  144. package/src/components/news/NewsSubHeaderComponent.js +0 -19
  145. package/src/components/password/AUChangePasswordComponent.js +0 -177
  146. package/src/components/password/AUCurrentPasswordComponent.js +0 -72
  147. package/src/components/password/AUNewPasswordComponent.js +0 -143
  148. package/src/components/password/AUPasswordActions.js +0 -101
  149. package/src/components/password/AUPasswordHooks.js +0 -47
  150. package/src/components/password/AUPasswordReducer.js +0 -78
  151. package/src/components/password/AUPasswordRequirementsComponent.js +0 -29
  152. package/src/components/profile/AUProfileAvatarV3Component.js +0 -80
  153. package/src/config/webpack.dev.config.js +0 -47
  154. package/src/index.js +0 -6
  155. package/src/lib/au-auth.js +0 -227
  156. package/src/lib/au-news.js +0 -371
  157. package/src/lib/menu.js +0 -10
  158. package/src/lib/urlHandler.js +0 -63
  159. package/src/lib/validation.js +0 -181
  160. package/src/styles/alert.scss +0 -39
  161. package/src/styles/calendar.scss +0 -112
  162. package/src/styles/filtercheckbox.scss +0 -5
  163. package/src/styles/modal.scss +0 -35
  164. package/src/styles/pagination.scss +0 -11
  165. package/src/styles/spinner.scss +0 -30
@@ -1,65 +1,69 @@
1
- /* eslint-disable func-names */
2
- /* eslint-env browser */
3
- /* eslint-disable no-sequences */
4
- /* eslint-disable prefer-destructuring */
5
- /* eslint-disable no-param-reassign */
6
- /* eslint-disable prefer-rest-params */
7
- /* eslint-disable no-unused-expressions */
8
- /* eslint-disable dot-notation */
9
- /* eslint-disable wrap-iife */
10
- /*
11
- * Title: TRACKING
12
- * Description: Google Analytics tracking
13
- */
14
-
15
- class AUTracking {
16
- trackers = [
17
- {
18
- account: 'UA-2142081-1',
19
- name: 'default',
20
- },
21
- {
22
- account: 'UA-113308028-1',
23
- name: 'search',
24
- },
25
- ];
26
-
27
- constructor(trackers = []) {
28
- trackers.forEach((tracker) => this.trackers.push(tracker));
29
- this.init();
30
-
31
- this.trackSingle = this.trackSingle.bind(this);
32
- }
33
-
34
- init() {
35
- (function (i, s, o, g, r, a, m) {
36
- i['GoogleAnalyticsObject'] = r;
37
- i[r] = i[r] || function () {
38
- (i[r].q = i[r].q || []).push(arguments);
39
- }, i[r].l = 1 * new Date();
40
- a = s.createElement(o),
41
- m = s.getElementsByTagName(o)[0];
42
- a.async = 1;
43
- a.src = g;
44
- m.parentNode.insertBefore(a, m);
45
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
46
-
47
- this.trackers.forEach((tracker) => {
48
- window.ga('create', tracker.account, 'auto', tracker.name);
49
- window.ga(`${tracker.name}.require`, 'displayfeatures');
50
- window.ga(`${tracker.name}.require`, 'linkid', 'linkid.js');
51
- window.ga(`${tracker.name}.require`, 'GTM-MGFPHKR');
52
- window.ga(`${tracker.name}.set`, 'anonymizeIp', true);
53
-
54
- window.ga(`${tracker.name}.send`, 'pageview');
55
- });
56
- }
57
-
58
- trackSingle(trackerLink) {
59
- if (typeof window.ga !== 'undefined') {
60
- this.trackers.forEach((tracker) => window.ga(`${tracker.name}.send`, 'pageview', trackerLink));
61
- }
62
- }
63
- }
64
-
65
- export default AUTracking;
1
+ /* eslint-disable func-names */
2
+ /* eslint-env browser */
3
+ /* eslint-disable no-sequences */
4
+ /* eslint-disable prefer-destructuring */
5
+ /* eslint-disable no-param-reassign */
6
+ /* eslint-disable prefer-rest-params */
7
+ /* eslint-disable no-unused-expressions */
8
+ /* eslint-disable dot-notation */
9
+ /* eslint-disable wrap-iife */
10
+ /*
11
+ * Title: TRACKING
12
+ * Description: Google Analytics tracking
13
+ */
14
+
15
+ class AUTracking {
16
+ trackers: ITrackers[] = [
17
+ {
18
+ account: 'UA-2142081-1',
19
+ name: 'default',
20
+ },
21
+ {
22
+ account: 'UA-113308028-1',
23
+ name: 'search',
24
+ },
25
+ ];
26
+
27
+ constructor(trackers = []) {
28
+ trackers.forEach((tracker) => this.trackers.push(tracker));
29
+ this.init();
30
+
31
+ this.trackSingle = this.trackSingle.bind(this);
32
+ }
33
+
34
+ init() {
35
+ let gaNewElem: any = {};
36
+ let gaElems: any = {};
37
+ const currdate: any = new Date();
38
+
39
+ ((i, s, o, g, r, a, m): void => {
40
+ i['GoogleAnalyticsObject'] = r;
41
+ i[r] = i[r] || function () {
42
+ (i[r].q = i[r].q || []).push(arguments);
43
+ }, i[r].l = 1 * currdate;
44
+ a = s.createElement(o),
45
+ m = s.getElementsByTagName(o)[0];
46
+ a.async = 1;
47
+ a.src = g;
48
+ m.parentNode.insertBefore(a, m);
49
+ })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga', gaNewElem, gaElems);
50
+
51
+ this.trackers.forEach((tracker) => {
52
+ window.ga('create', tracker.account, 'auto', tracker.name);
53
+ window.ga(`${tracker.name}.require`, 'displayfeatures');
54
+ window.ga(`${tracker.name}.require`, 'linkid', 'linkid.js');
55
+ window.ga(`${tracker.name}.require`, 'GTM-MGFPHKR');
56
+ window.ga(`${tracker.name}.set`, 'anonymizeIp', true);
57
+
58
+ window.ga(`${tracker.name}.send`, 'pageview');
59
+ });
60
+ }
61
+
62
+ trackSingle(trackerLink: string): void {
63
+ if (typeof window.ga !== 'undefined') {
64
+ this.trackers.forEach((tracker) => window.ga(`${tracker.name}.send`, 'pageview', trackerLink));
65
+ }
66
+ }
67
+ }
68
+
69
+ export default AUTracking;
@@ -1,16 +1,21 @@
1
- /* eslint-env browser */
2
- const getSourceForFrame = (serviceUrl, path, referrer, callback) => {
3
- const getSource = async () => {
4
- const url = `${serviceUrl}?path=${path}&referrer=${referrer}`;
5
- const response = await fetch(url, {
6
- credentials: 'include',
7
- });
8
-
9
- const json = await response.json();
10
- callback(json);
11
- };
12
-
13
- getSource();
14
- };
15
-
16
- export default getSourceForFrame;
1
+ /* eslint-env browser */
2
+ const getSourceForFrame = (
3
+ serviceUrl: string,
4
+ path: string,
5
+ referrer: string,
6
+ callback: (data: any) => void,
7
+ ) => {
8
+ const getSource = async (): Promise<void> => {
9
+ const url = `${serviceUrl}?path=${path}&referrer=${referrer}`;
10
+ const response = await fetch(url, {
11
+ credentials: 'include',
12
+ });
13
+
14
+ const json = await response.json();
15
+ callback(json);
16
+ };
17
+
18
+ getSource();
19
+ };
20
+
21
+ export default getSourceForFrame;
@@ -1,11 +1,11 @@
1
- $font-passata-regular: "AUPassataRegular";
2
- $font-passata-bold: "AUPassataBold";
3
- $gray-color:#e4e4e4;
4
- $gray-secondary-color:darken($gray-color, 50%);
5
- $alert-confirm-color: #8bad3f;
6
- $alert-cancel-color: #687989;
7
- $student-color:#8bad3f;
8
- $student-secondary-color:#2a4a0f;
9
- $staff-color: #379fcb;
10
- $staff-secondary-color:#003e5c;
1
+ $font-passata-regular: "AUPassataRegular";
2
+ $font-passata-bold: "AUPassataBold";
3
+ $gray-color:#e4e4e4;
4
+ $gray-secondary-color:darken($gray-color, 50%);
5
+ $alert-confirm-color: #8bad3f;
6
+ $alert-cancel-color: #687989;
7
+ $student-color:#8bad3f;
8
+ $student-secondary-color:#2a4a0f;
9
+ $staff-color: #379fcb;
10
+ $staff-secondary-color:#003e5c;
11
11
  $findicon: 'https://cdn.au.dk/2016/assets/img/databox/find.png';
@@ -1,209 +1,223 @@
1
- .au_alphabox {
2
- overflow: visible;
3
- margin-bottom: 1rem;
4
- position: relative;
5
- >.au_alphabox {
6
- margin-bottom: 0;
7
- }
8
- .dropdown-pane & {
9
- margin-bottom: 0;
10
- }
11
- >div:not(.au_alphabox_content):not(.au_alphabox) { /* because of nested au_alphabox */
12
- padding: 1rem 1rem 0 1rem;
13
- overflow: auto;
14
- }
15
- ul.letters {
16
- display: flex;
17
- justify-content: flex-start;
18
- flex-flow: row wrap;
19
- font-size: 1.1rem;
20
- margin-top: .15rem;
21
- margin-bottom: .75rem;
22
- margin-left: 0;
23
- padding-bottom: .75rem;
24
- border-bottom: 1px solid #ccc;
25
- li {
26
- padding: 0;
27
- margin: 2px 2px;
28
- background-color: #aaa;
29
- text-align: center;
30
- font-size: 1.2rem;
31
- &.available {
32
- button {
33
- cursor: pointer;
34
- color: #fff;
35
- }
36
- }
37
- &.active {
38
- font-weight: bold;
39
- }
40
- &:before {
41
- content: '';
42
- }
43
- button {
44
- font-family: $font-passata-regular;
45
- color: #ccc;
46
- text-transform: uppercase;
47
- width: 20px;
48
- line-height: inherit;
49
- }
50
- }
51
- }
52
- ul.items {
53
- padding: 1rem;
54
- margin: 0;
55
- position: relative;
56
- }
57
- .student & {
58
- background: $student-secondary-color;
59
- .listNav {
60
- .ln-letters {
61
- a {
62
- background-color: #8bad3f;
63
- &.ln-selected {
64
- color: #2a4a0f !important;
65
- }
66
- &.ln-disabled {
67
- background-color: #8bad3f;
68
- }
69
- }
70
- }
71
- }
72
- .alphabox_list_container {
73
- border: 2px solid #2a4a0f;
74
- h3 {
75
- color: #8bad3f;
76
- border-bottom: 2px solid #8bad3f;
77
- }
78
- ul li:before {
79
- color: #8bad3f;
80
- }
81
- }
82
- ul.quicklinks {
83
- a {
84
- background: #447400;
85
- }
86
- }
87
- }
88
- h2 {
89
- color: #fff;
90
- margin: 0;
91
- border: 0;
92
- a {
93
- color: #fff !important;
94
- border: none !important;
95
- &:hover {
96
- text-decoration: underline !important;
97
- }
98
- }
99
- }
100
- p {
101
- color: #fff;
102
- margin: 1rem 0 1rem 0 !important;
103
- font-size: 1.25rem;
104
- }
105
- input[type=text] {
106
- background: #afc3ce url($findicon) no-repeat right center;
107
- border: 0;
108
- float: none;
109
- width: 100%;
110
- margin-bottom: 1.45455rem !important;
111
- &.active {
112
- background-color: #afc3ce;
113
- }
114
- }
115
- ::-webkit-input-placeholder {
116
- color: #333;
117
- }
118
- ::-moz-placeholder {
119
- color: #333;
120
- opacity: 1;
121
- }
122
- :-ms-input-placeholder {
123
- color: #333;
124
- }
125
- .listNav {
126
- margin: 0 0 calc(.5rem - 2px) 0;
127
- .ln-letters {
128
- margin: 1rem 0;
129
- a {
130
- background-color: #006ca4;
131
- border: none !important;
132
- margin: 0 2px 2px 0;
133
- color: #fff;
134
- padding: 2px;
135
- font-size: 1.25rem;
136
- &.ln-selected {
137
- background-color: #fff;
138
- color: #006ca4 !important;
139
- }
140
- &.ln-disabled {
141
- background-color: #006ca4;
142
- color: #7c98a8 !important;
143
- }
144
- }
145
- .all {
146
- display: none;
147
- }
148
- }
149
- font-family: "AUPassataBold";
150
- }
151
- .alphabox_list_container {
152
- background: #fff;
153
- border: 2px solid #006ca4;
154
- padding: 0 1rem 0 1rem;
155
- display: none;
156
- overflow-y: scroll;
157
- -webkit-overflow-scrolling: touch;
158
- h3 {
159
- color: #009ee0;
160
- border-bottom: 2px solid $staff-color;
161
- }
162
- >ul {
163
- max-height: 200px;
164
- overflow: initial !important;
165
- margin-bottom: 2em;
166
- position: relative;
167
- li {
168
- a {
169
- color: $staff-secondary-color;
170
- border-bottom: 1px dotted;
171
- }
172
- }
173
- }
174
- }
175
- ul.quicklinks {
176
- display: flex;
177
- flex-wrap: wrap;
178
- justify-content: space-between;
179
- margin-left: 0;
180
- li {
181
- font: 1.25rem "AUPassataRegular";
182
- text-transform: uppercase;
183
- width: 48.9%;
184
- padding: 0;
185
- line-height: 1;
186
- margin-bottom: 6px;
187
- &:nth-child(odd) {
188
- margin-right: .5em;
189
- }
190
- a {
191
- display: block;
192
- background: #006ca4;
193
- color: #fff;
194
- border: none !important;
195
- padding: .5em;
196
- }
197
- }
198
- }
199
- .au_alphabox_content {
200
- margin-top: 1rem;
201
- margin-bottom: 1rem;
202
- clear: both;
203
- >div {
204
- background: #fff;
205
- max-height: 300px;
206
- overflow-y: scroll;
207
- }
208
- }
1
+ .au_alphabox {
2
+ overflow: visible;
3
+ margin-bottom: 1rem;
4
+ position: relative;
5
+ >.au_alphabox {
6
+ margin-bottom: 0;
7
+ }
8
+ .dropdown-pane & {
9
+ margin-bottom: 0;
10
+ }
11
+ >div:not(.au_alphabox_content):not(.au_alphabox) { /* because of nested au_alphabox */
12
+ padding: 1rem 1rem 0 1rem;
13
+ overflow: auto;
14
+ }
15
+ p.no-results {
16
+ background-color: #fff;
17
+ color: #555;
18
+ padding: 1rem;
19
+ }
20
+ li.no-results a {
21
+ font-weight: bold;
22
+ }
23
+ ul.letters {
24
+ display: flex;
25
+ justify-content: flex-start;
26
+ flex-flow: row wrap;
27
+ font-size: 1.1rem;
28
+ margin-top: .15rem;
29
+ margin-bottom: .75rem;
30
+ margin-left: 0;
31
+ padding-bottom: .75rem;
32
+ li {
33
+ padding: 0;
34
+ margin: 2px 2px;
35
+ background-color: #aaa;
36
+ text-align: center;
37
+ font-size: 1.2rem;
38
+ &.available {
39
+ button {
40
+ cursor: pointer;
41
+ color: #fff;
42
+ }
43
+ }
44
+ &.active {
45
+ font-weight: bold;
46
+ }
47
+ &:before {
48
+ content: '';
49
+ }
50
+ button {
51
+ font-family: $font-passata-regular;
52
+ color: #ccc;
53
+ text-transform: uppercase;
54
+ width: 20px;
55
+ line-height: inherit;
56
+ }
57
+ }
58
+ }
59
+ ul.items {
60
+ padding: 1rem;
61
+ margin: 0;
62
+ position: relative;
63
+ }
64
+ .student & {
65
+ background: $student-secondary-color;
66
+ .listNav {
67
+ .ln-letters {
68
+ a {
69
+ background-color: #8bad3f;
70
+ &.ln-selected {
71
+ color: #2a4a0f !important;
72
+ }
73
+ &.ln-disabled {
74
+ background-color: #8bad3f;
75
+ }
76
+ }
77
+ }
78
+ }
79
+ .alphabox_list_container {
80
+ border: 2px solid #2a4a0f;
81
+ h3 {
82
+ color: #8bad3f;
83
+ border-bottom: 2px solid #8bad3f;
84
+ }
85
+ ul li:before {
86
+ color: #8bad3f;
87
+ }
88
+ }
89
+ ul.quicklinks {
90
+ a {
91
+ background: #447400;
92
+ }
93
+ }
94
+ }
95
+ h2 {
96
+ color: #fff;
97
+ margin: 0;
98
+ border: 0;
99
+ a {
100
+ color: #fff !important;
101
+ border: none !important;
102
+ &:hover {
103
+ text-decoration: underline !important;
104
+ }
105
+ }
106
+ }
107
+ h3 {
108
+ color: #fff;
109
+ margin: 0 0 1rem 0 !important;
110
+ padding-top: 1rem;
111
+ font-size: 1.25rem;
112
+ border-top: 1px solid #fff;
113
+ }
114
+ input[type=text] {
115
+ background: #afc3ce url($findicon) no-repeat right center;
116
+ border: 0;
117
+ float: none;
118
+ width: 100%;
119
+ margin-bottom: 1.45455rem !important;
120
+ &.active {
121
+ background-color: #afc3ce;
122
+ }
123
+ }
124
+ ::-webkit-input-placeholder {
125
+ color: #333;
126
+ }
127
+ ::-moz-placeholder {
128
+ color: #333;
129
+ opacity: 1;
130
+ }
131
+ :-ms-input-placeholder {
132
+ color: #333;
133
+ }
134
+ .listNav {
135
+ margin: 0 0 calc(.5rem - 2px) 0;
136
+ .ln-letters {
137
+ margin: 1rem 0;
138
+ a {
139
+ background-color: #006ca4;
140
+ border: none !important;
141
+ margin: 0 2px 2px 0;
142
+ color: #fff;
143
+ padding: 2px;
144
+ font-size: 1.25rem;
145
+ &.ln-selected {
146
+ background-color: #fff;
147
+ color: #006ca4 !important;
148
+ }
149
+ &.ln-disabled {
150
+ background-color: #006ca4;
151
+ color: #7c98a8 !important;
152
+ }
153
+ }
154
+ .all {
155
+ display: none;
156
+ }
157
+ }
158
+ font-family: "AUPassataBold";
159
+ }
160
+ .alphabox_list_container {
161
+ background: #fff;
162
+ border: 2px solid #006ca4;
163
+ padding: 0 1rem 0 1rem;
164
+ display: none;
165
+ overflow-y: scroll;
166
+ -webkit-overflow-scrolling: touch;
167
+ h3 {
168
+ color: #009ee0;
169
+ border-bottom: 2px solid $staff-color;
170
+ }
171
+ >ul {
172
+ max-height: 200px;
173
+ overflow: initial !important;
174
+ margin-bottom: 2em;
175
+ position: relative;
176
+ li {
177
+ a {
178
+ color: $staff-secondary-color;
179
+ border-bottom: 1px dotted;
180
+ }
181
+ }
182
+ }
183
+ }
184
+ ul.quicklinks {
185
+ display: flex;
186
+ flex-wrap: wrap;
187
+ justify-content: space-between;
188
+ margin-left: 0;
189
+ li {
190
+ font: 1.25rem "AUPassataRegular";
191
+ text-transform: uppercase;
192
+ width: 48.9%;
193
+ padding: 0;
194
+ line-height: 1;
195
+ margin-bottom: 6px;
196
+ &:nth-child(odd) {
197
+ margin-right: .5em;
198
+ }
199
+ a {
200
+ display: block;
201
+ background: #006ca4;
202
+ color: #fff;
203
+ border: none !important;
204
+ padding: .5em;
205
+ }
206
+ @media (max-width: 400px) {
207
+ width: 100%;
208
+ margin-right: 0 !important;
209
+ font-size: 1.72727rem;
210
+ }
211
+ }
212
+ }
213
+ .au_alphabox_content {
214
+ margin-top: 1rem;
215
+ margin-bottom: 1rem;
216
+ clear: both;
217
+ >div {
218
+ background: #fff;
219
+ max-height: 300px;
220
+ overflow-y: scroll;
221
+ }
222
+ }
209
223
  }
@@ -1,13 +1,7 @@
1
- @import "_settings";
2
- @import "alert";
3
- @import "alphabox";
4
- @import "autosuggest";
5
- @import "calendar";
6
- @import "databox";
7
- @import "diagramme";
8
- @import "flowbox";
9
- @import "modal";
10
- @import "spinner";
11
- @import "filtercheckbox";
12
- @import "pagination";
13
- @import "maps";
1
+ @import "_settings";
2
+ @import "alphabox";
3
+ @import "autosuggest";
4
+ @import "databox";
5
+ @import "diagramme";
6
+ @import "flowbox";
7
+ @import "maps";