@net7/components 3.0.2-rc.2

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 (232) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/components/advanced-autocomplete/advanced-autocomplete.mjs +25 -0
  3. package/esm2020/lib/components/advanced-autocomplete/advanced-autocomplete.mock.mjs +100 -0
  4. package/esm2020/lib/components/alert/alert.mjs +24 -0
  5. package/esm2020/lib/components/alert/alert.mock.mjs +11 -0
  6. package/esm2020/lib/components/anchor-wrapper/anchor-wrapper.mjs +35 -0
  7. package/esm2020/lib/components/breadcrumbs/breadcrumbs.mjs +25 -0
  8. package/esm2020/lib/components/breadcrumbs/breadcrumbs.mock.mjs +25 -0
  9. package/esm2020/lib/components/bubble-chart/bubble-chart.mjs +315 -0
  10. package/esm2020/lib/components/bubble-chart/bubble-chart.mock.mjs +4025 -0
  11. package/esm2020/lib/components/carousel/carousel.mjs +89 -0
  12. package/esm2020/lib/components/carousel/carousel.mock.mjs +135 -0
  13. package/esm2020/lib/components/chart/chart.mjs +37 -0
  14. package/esm2020/lib/components/chart/chart.mock.mjs +112 -0
  15. package/esm2020/lib/components/content-placeholder/content-placeholder.mjs +17 -0
  16. package/esm2020/lib/components/content-placeholder/content-placeholder.mock.mjs +13 -0
  17. package/esm2020/lib/components/data-widget/data-widget.mjs +29 -0
  18. package/esm2020/lib/components/data-widget/data-widget.mock.mjs +13 -0
  19. package/esm2020/lib/components/datepicker/datepicker.mjs +44 -0
  20. package/esm2020/lib/components/datepicker/datepicker.mock.mjs +8 -0
  21. package/esm2020/lib/components/facet/facet.mjs +24 -0
  22. package/esm2020/lib/components/facet/facet.mock.mjs +103 -0
  23. package/esm2020/lib/components/facet-header/facet-header.mjs +24 -0
  24. package/esm2020/lib/components/facet-header/facet-header.mock.mjs +9 -0
  25. package/esm2020/lib/components/facet-year-range/facet-year-range.mjs +53 -0
  26. package/esm2020/lib/components/facet-year-range/facet-year-range.mock.mjs +30 -0
  27. package/esm2020/lib/components/footer/footer.mjs +25 -0
  28. package/esm2020/lib/components/footer/footer.mock.mjs +48 -0
  29. package/esm2020/lib/components/header/header.mjs +51 -0
  30. package/esm2020/lib/components/header/header.mock.mjs +83 -0
  31. package/esm2020/lib/components/hero/hero.mjs +41 -0
  32. package/esm2020/lib/components/hero/hero.mock.mjs +25 -0
  33. package/esm2020/lib/components/histogram-range/histogram-range.mjs +376 -0
  34. package/esm2020/lib/components/histogram-range/histogram-range.mock.mjs +243 -0
  35. package/esm2020/lib/components/image-viewer/image-viewer.mjs +55 -0
  36. package/esm2020/lib/components/image-viewer/image-viewer.mock.mjs +25 -0
  37. package/esm2020/lib/components/image-viewer-tools/image-viewer-tools.mjs +28 -0
  38. package/esm2020/lib/components/image-viewer-tools/image-viewer-tools.mock.mjs +54 -0
  39. package/esm2020/lib/components/inner-title/inner-title.mjs +40 -0
  40. package/esm2020/lib/components/inner-title/inner-title.mock.mjs +52 -0
  41. package/esm2020/lib/components/input-checkbox/input-checkbox.mjs +24 -0
  42. package/esm2020/lib/components/input-checkbox/input-checkbox.mock.mjs +25 -0
  43. package/esm2020/lib/components/input-link/input-link.mjs +24 -0
  44. package/esm2020/lib/components/input-link/input-link.mock.mjs +38 -0
  45. package/esm2020/lib/components/input-select/input-select.mjs +24 -0
  46. package/esm2020/lib/components/input-select/input-select.mock.mjs +12 -0
  47. package/esm2020/lib/components/input-text/input-text.mjs +24 -0
  48. package/esm2020/lib/components/input-text/input-text.mock.mjs +13 -0
  49. package/esm2020/lib/components/item-preview/item-preview.mjs +25 -0
  50. package/esm2020/lib/components/item-preview/item-preview.mock.mjs +43 -0
  51. package/esm2020/lib/components/loader/loader.mjs +16 -0
  52. package/esm2020/lib/components/loader/loader.mock.mjs +4 -0
  53. package/esm2020/lib/components/map/map.mjs +64 -0
  54. package/esm2020/lib/components/map/map.mock.mjs +25 -0
  55. package/esm2020/lib/components/metadata-viewer/metadata-viewer.mjs +19 -0
  56. package/esm2020/lib/components/metadata-viewer/metadata-viewer.mock.mjs +74 -0
  57. package/esm2020/lib/components/nav/nav.mjs +22 -0
  58. package/esm2020/lib/components/nav/nav.mock.mjs +29 -0
  59. package/esm2020/lib/components/pagination/pagination.mjs +31 -0
  60. package/esm2020/lib/components/pagination/pagination.mock.mjs +23 -0
  61. package/esm2020/lib/components/progress-line/progress-line.mjs +19 -0
  62. package/esm2020/lib/components/progress-line/progress-line.mock.mjs +5 -0
  63. package/esm2020/lib/components/sidebar-header/sidebar-header.mjs +24 -0
  64. package/esm2020/lib/components/sidebar-header/sidebar-header.mock.mjs +9 -0
  65. package/esm2020/lib/components/signup/signup.mjs +44 -0
  66. package/esm2020/lib/components/signup/signup.mock.mjs +106 -0
  67. package/esm2020/lib/components/simple-autocomplete/simple-autocomplete.mjs +25 -0
  68. package/esm2020/lib/components/simple-autocomplete/simple-autocomplete.mock.mjs +15 -0
  69. package/esm2020/lib/components/table/table.mjs +35 -0
  70. package/esm2020/lib/components/table/table.mock.mjs +152 -0
  71. package/esm2020/lib/components/tag/tag.mjs +24 -0
  72. package/esm2020/lib/components/tag/tag.mock.mjs +8 -0
  73. package/esm2020/lib/components/text-viewer/text-viewer.mjs +37 -0
  74. package/esm2020/lib/components/text-viewer/text-viewer.mock.mjs +39 -0
  75. package/esm2020/lib/components/timeline/timeline.mjs +51 -0
  76. package/esm2020/lib/components/timeline/timeline.mock.mjs +137 -0
  77. package/esm2020/lib/components/toast/toast.mjs +24 -0
  78. package/esm2020/lib/components/toast/toast.mock.mjs +47 -0
  79. package/esm2020/lib/components/tooltip-content/tooltip-content.mjs +25 -0
  80. package/esm2020/lib/components/tooltip-content/tooltip-content.mock.mjs +19 -0
  81. package/esm2020/lib/components/tree/tree.mjs +25 -0
  82. package/esm2020/lib/components/tree/tree.mock.mjs +274 -0
  83. package/esm2020/lib/components/wizard/wizard.mjs +24 -0
  84. package/esm2020/lib/components/wizard/wizard.mock.mjs +29 -0
  85. package/esm2020/lib/dv-components-lib.module.mjs +191 -0
  86. package/esm2020/lib/shared-interfaces.mjs +2 -0
  87. package/esm2020/net7-components.mjs +5 -0
  88. package/esm2020/public-api.mjs +93 -0
  89. package/fesm2015/net7-components.mjs +8154 -0
  90. package/fesm2015/net7-components.mjs.map +1 -0
  91. package/fesm2020/net7-components.mjs +8168 -0
  92. package/fesm2020/net7-components.mjs.map +1 -0
  93. package/lib/components/advanced-autocomplete/advanced-autocomplete.d.ts +57 -0
  94. package/lib/components/advanced-autocomplete/advanced-autocomplete.mock.d.ts +2 -0
  95. package/lib/components/alert/alert.d.ts +46 -0
  96. package/lib/components/alert/alert.mock.d.ts +2 -0
  97. package/lib/components/anchor-wrapper/anchor-wrapper.d.ts +16 -0
  98. package/lib/components/breadcrumbs/breadcrumbs.d.ts +50 -0
  99. package/lib/components/breadcrumbs/breadcrumbs.mock.d.ts +2 -0
  100. package/lib/components/bubble-chart/bubble-chart.d.ts +108 -0
  101. package/lib/components/bubble-chart/bubble-chart.mock.d.ts +2 -0
  102. package/lib/components/carousel/carousel.d.ts +166 -0
  103. package/lib/components/carousel/carousel.mock.d.ts +2 -0
  104. package/lib/components/chart/chart.d.ts +46 -0
  105. package/lib/components/chart/chart.mock.d.ts +2 -0
  106. package/lib/components/content-placeholder/content-placeholder.d.ts +28 -0
  107. package/lib/components/content-placeholder/content-placeholder.mock.d.ts +2 -0
  108. package/lib/components/data-widget/data-widget.d.ts +50 -0
  109. package/lib/components/data-widget/data-widget.mock.d.ts +2 -0
  110. package/lib/components/datepicker/datepicker.d.ts +43 -0
  111. package/lib/components/datepicker/datepicker.mock.d.ts +2 -0
  112. package/lib/components/facet/facet.d.ts +129 -0
  113. package/lib/components/facet/facet.mock.d.ts +2 -0
  114. package/lib/components/facet-header/facet-header.d.ts +44 -0
  115. package/lib/components/facet-header/facet-header.mock.d.ts +2 -0
  116. package/lib/components/facet-year-range/facet-year-range.d.ts +83 -0
  117. package/lib/components/facet-year-range/facet-year-range.mock.d.ts +2 -0
  118. package/lib/components/footer/footer.d.ts +118 -0
  119. package/lib/components/footer/footer.mock.d.ts +2 -0
  120. package/lib/components/header/header.d.ts +281 -0
  121. package/lib/components/header/header.mock.d.ts +2 -0
  122. package/lib/components/hero/hero.d.ts +75 -0
  123. package/lib/components/hero/hero.mock.d.ts +2 -0
  124. package/lib/components/histogram-range/histogram-range.d.ts +113 -0
  125. package/lib/components/histogram-range/histogram-range.mock.d.ts +2 -0
  126. package/lib/components/image-viewer/image-viewer.d.ts +61 -0
  127. package/lib/components/image-viewer/image-viewer.mock.d.ts +2 -0
  128. package/lib/components/image-viewer-tools/image-viewer-tools.d.ts +116 -0
  129. package/lib/components/image-viewer-tools/image-viewer-tools.mock.d.ts +2 -0
  130. package/lib/components/inner-title/inner-title.d.ts +61 -0
  131. package/lib/components/inner-title/inner-title.mock.d.ts +2 -0
  132. package/lib/components/input-checkbox/input-checkbox.d.ts +67 -0
  133. package/lib/components/input-checkbox/input-checkbox.mock.d.ts +2 -0
  134. package/lib/components/input-link/input-link.d.ts +54 -0
  135. package/lib/components/input-link/input-link.mock.d.ts +2 -0
  136. package/lib/components/input-select/input-select.d.ts +67 -0
  137. package/lib/components/input-select/input-select.mock.d.ts +2 -0
  138. package/lib/components/input-text/input-text.d.ts +81 -0
  139. package/lib/components/input-text/input-text.mock.d.ts +2 -0
  140. package/lib/components/item-preview/item-preview.d.ts +93 -0
  141. package/lib/components/item-preview/item-preview.mock.d.ts +2 -0
  142. package/lib/components/loader/loader.d.ts +22 -0
  143. package/lib/components/loader/loader.mock.d.ts +2 -0
  144. package/lib/components/map/map.d.ts +69 -0
  145. package/lib/components/map/map.mock.d.ts +2 -0
  146. package/lib/components/metadata-viewer/metadata-viewer.d.ts +65 -0
  147. package/lib/components/metadata-viewer/metadata-viewer.mock.d.ts +8 -0
  148. package/lib/components/nav/nav.d.ts +66 -0
  149. package/lib/components/nav/nav.mock.d.ts +2 -0
  150. package/lib/components/pagination/pagination.d.ts +94 -0
  151. package/lib/components/pagination/pagination.mock.d.ts +2 -0
  152. package/lib/components/progress-line/progress-line.d.ts +23 -0
  153. package/lib/components/progress-line/progress-line.mock.d.ts +2 -0
  154. package/lib/components/sidebar-header/sidebar-header.d.ts +44 -0
  155. package/lib/components/sidebar-header/sidebar-header.mock.d.ts +2 -0
  156. package/lib/components/signup/signup.d.ts +109 -0
  157. package/lib/components/signup/signup.mock.d.ts +2 -0
  158. package/lib/components/simple-autocomplete/simple-autocomplete.d.ts +40 -0
  159. package/lib/components/simple-autocomplete/simple-autocomplete.mock.d.ts +2 -0
  160. package/lib/components/table/table.d.ts +89 -0
  161. package/lib/components/table/table.mock.d.ts +2 -0
  162. package/lib/components/tag/tag.d.ts +45 -0
  163. package/lib/components/tag/tag.mock.d.ts +2 -0
  164. package/lib/components/text-viewer/text-viewer.d.ts +34 -0
  165. package/lib/components/text-viewer/text-viewer.mock.d.ts +2 -0
  166. package/lib/components/timeline/timeline.d.ts +30 -0
  167. package/lib/components/timeline/timeline.mock.d.ts +2 -0
  168. package/lib/components/toast/toast.d.ts +84 -0
  169. package/lib/components/toast/toast.mock.d.ts +2 -0
  170. package/lib/components/tooltip-content/tooltip-content.d.ts +24 -0
  171. package/lib/components/tooltip-content/tooltip-content.mock.d.ts +2 -0
  172. package/lib/components/tree/tree.d.ts +79 -0
  173. package/lib/components/tree/tree.mock.d.ts +2 -0
  174. package/lib/components/wizard/wizard.d.ts +57 -0
  175. package/lib/components/wizard/wizard.mock.d.ts +2 -0
  176. package/lib/dv-components-lib.module.d.ts +50 -0
  177. package/lib/shared-interfaces.d.ts +60 -0
  178. package/net7-components.d.ts +5 -0
  179. package/package.json +44 -0
  180. package/public-api.d.ts +85 -0
  181. package/src/lib/styles/_imports.scss +77 -0
  182. package/src/lib/styles/atoms/_button.scss +205 -0
  183. package/src/lib/styles/components/_advanced-autocomplete.scss +190 -0
  184. package/src/lib/styles/components/_alert.scss +115 -0
  185. package/src/lib/styles/components/_anchor-wrapper.scss +29 -0
  186. package/src/lib/styles/components/_breadcrumbs.scss +99 -0
  187. package/src/lib/styles/components/_bubble-chart.scss +33 -0
  188. package/src/lib/styles/components/_carousel.scss +184 -0
  189. package/src/lib/styles/components/_chart.scss +28 -0
  190. package/src/lib/styles/components/_content-placeholder.scss +74 -0
  191. package/src/lib/styles/components/_data-widget.scss +93 -0
  192. package/src/lib/styles/components/_datepicker.scss +29 -0
  193. package/src/lib/styles/components/_facet-header.scss +58 -0
  194. package/src/lib/styles/components/_facet-year-range.scss +63 -0
  195. package/src/lib/styles/components/_facet.scss +164 -0
  196. package/src/lib/styles/components/_footer.scss +116 -0
  197. package/src/lib/styles/components/_header.scss +474 -0
  198. package/src/lib/styles/components/_hero.scss +207 -0
  199. package/src/lib/styles/components/_histogram-range.scss +36 -0
  200. package/src/lib/styles/components/_image-viewer-tools.scss +225 -0
  201. package/src/lib/styles/components/_image-viewer.scss +173 -0
  202. package/src/lib/styles/components/_inner-title.scss +161 -0
  203. package/src/lib/styles/components/_input-checkbox.scss +50 -0
  204. package/src/lib/styles/components/_input-link.scss +78 -0
  205. package/src/lib/styles/components/_input-select.scss +25 -0
  206. package/src/lib/styles/components/_input-text.scss +53 -0
  207. package/src/lib/styles/components/_item-preview.scss +218 -0
  208. package/src/lib/styles/components/_loader.scss +54 -0
  209. package/src/lib/styles/components/_map.scss +31 -0
  210. package/src/lib/styles/components/_metadata-viewer.scss +52 -0
  211. package/src/lib/styles/components/_nav.scss +57 -0
  212. package/src/lib/styles/components/_pagination.scss +170 -0
  213. package/src/lib/styles/components/_progress-line.scss +53 -0
  214. package/src/lib/styles/components/_sidebar-header.scss +69 -0
  215. package/src/lib/styles/components/_signup.scss +157 -0
  216. package/src/lib/styles/components/_simple-autocomplete.scss +60 -0
  217. package/src/lib/styles/components/_table.scss +129 -0
  218. package/src/lib/styles/components/_tag.scss +51 -0
  219. package/src/lib/styles/components/_text-viewer.scss +446 -0
  220. package/src/lib/styles/components/_timeline.scss +29 -0
  221. package/src/lib/styles/components/_toast.scss +99 -0
  222. package/src/lib/styles/components/_tooltip-content.scss +29 -0
  223. package/src/lib/styles/components/_tree.scss +208 -0
  224. package/src/lib/styles/components/_wizard.scss +150 -0
  225. package/src/lib/styles/generic/_color_scheme.scss +27 -0
  226. package/src/lib/styles/generic/_mixins.scss +81 -0
  227. package/src/lib/styles/generic/_variables.scss +385 -0
  228. package/src/lib/styles/global/_forms.scss +122 -0
  229. package/src/lib/styles/global/_global.scss +46 -0
  230. package/src/lib/styles/global/_normalize.scss +433 -0
  231. package/src/lib/styles/global/_typography.scss +88 -0
  232. package/src/lib/styles/utilities/_grids.scss +361 -0
@@ -0,0 +1,474 @@
1
+ /**
2
+ * HEADER
3
+ *
4
+ * Style for header, including main navigation
5
+ */
6
+
7
+ /* ------------------------------------ *\
8
+ HEADER
9
+ \* ------------------------------------ */
10
+ .n7-header {
11
+ height: $header-height;
12
+ background-color: $header-bg-color;
13
+
14
+ &__content {
15
+ height: $header-height;
16
+ display: flex;
17
+ flex-wrap: nowrap;
18
+ }
19
+
20
+ /* Logo and title */
21
+ &__logo-title {
22
+ flex-grow: 0;
23
+ flex-shrink: 0;
24
+ flex-basis: auto;
25
+ cursor: pointer;
26
+ }
27
+
28
+ &__logo-link {
29
+ display: flex;
30
+ flex-wrap: nowrap;
31
+ align-items: center;
32
+ height: 100%;
33
+ }
34
+
35
+ &__logo {
36
+ max-height: $header-logo-height;
37
+ width: auto;
38
+ height: auto;
39
+ }
40
+
41
+ &__title-subtitle {
42
+ padding: $space;
43
+ }
44
+
45
+ &__title {
46
+ margin: 0 0 calc($space/2) 0;
47
+ color: $color-text;
48
+ font-size: $font-size-m;
49
+ font-weight: $font-weight-bold;
50
+ }
51
+
52
+ &__subtitle {
53
+ margin: 0;
54
+ color: $color-text;
55
+ font-size: $font-size-s;
56
+ font-weight: $font-weight-normal;
57
+ }
58
+
59
+ /* Main menu */
60
+ &__nav {
61
+ flex-grow: 2;
62
+ flex-basis: auto;
63
+ z-index: 2;
64
+ }
65
+
66
+ &__nav-content {
67
+ height: 100%;
68
+ }
69
+
70
+ &__nav-list {
71
+ height: 100%;
72
+ margin: 0;
73
+ padding: 0;
74
+ list-style: none;
75
+ text-align: right;
76
+ }
77
+
78
+ &__nav-item {
79
+ display: inline-block;
80
+ position: relative;
81
+ height: 100%;
82
+ margin: 0;
83
+ cursor: pointer;
84
+
85
+ &:hover {
86
+ .n7-header__subnav-list {
87
+ display: block;
88
+ }
89
+ }
90
+ }
91
+
92
+ &__nav-link {
93
+ display: flex;
94
+ align-items: center;
95
+ height: 100%;
96
+ color: $color-text;
97
+ }
98
+
99
+ &__nav-icon {
100
+ margin-right: $space;
101
+ }
102
+
103
+ &__nav-label {
104
+ font-size: $font-size-m;
105
+ }
106
+
107
+ /* Current page */
108
+ &__nav-item.is-current {
109
+ .n7-header__nav-label {
110
+ font-weight: $font-weight-bold;
111
+ }
112
+ }
113
+
114
+ /* Sublevel (dropdown) menu */
115
+ &__subnav-list {
116
+ display: none;
117
+ position: absolute;
118
+ left: -50%;
119
+ margin: 0;
120
+ padding: 0;
121
+ background-color: $color-background-base;
122
+ list-style: none;
123
+ text-align: left;
124
+ }
125
+
126
+ &__subnav-item {
127
+ margin: 0;
128
+ padding: 0;
129
+
130
+ &:last-child {
131
+ .n7-header__subnav-link {
132
+ border-bottom: 0;
133
+ }
134
+ }
135
+ }
136
+
137
+ &__subnav-link {
138
+ display: block;
139
+ padding: $space*1.5;
140
+ border-bottom: 1px solid $color-border-light;
141
+ color: $color-text;
142
+ }
143
+
144
+ /* Current page */
145
+ &__subnav-item.is-current {
146
+ .n7-header__subnav-label {
147
+ font-weight: $font-weight-bold;
148
+ }
149
+ }
150
+
151
+ /* Tools: search, actions, buttons, user profile */
152
+ &__tools {
153
+ flex-grow: 0;
154
+ // flex-basis: 0;
155
+ display: flex;
156
+ flex-wrap: nowrap;
157
+ align-items: center;
158
+ justify-content: flex-end;
159
+ height: 100%;
160
+ margin-left: auto;
161
+ padding: 0 0 0 $space*2;
162
+ }
163
+
164
+ /* Search */
165
+ &__search {
166
+ position: relative;
167
+ }
168
+
169
+ &__search-input[type="search"] {
170
+ height: $header-search-input-height;
171
+ line-height: $header-search-input-height;
172
+ }
173
+
174
+ &__search-btn {
175
+ position: absolute;
176
+ right: 0;
177
+ border: 0;
178
+ background-color: transparent;
179
+
180
+ &:after {
181
+ content: "\e9b9";
182
+ color: $color-text-light;
183
+ font-family: "n7-icon";
184
+ font-size: $font-size-l;
185
+ vertical-align: middle;
186
+ line-height: $header-search-input-height;
187
+ }
188
+ }
189
+
190
+ &__search-btn-label {
191
+ display: none;
192
+ }
193
+
194
+ /* Actions */
195
+ &__actions {
196
+ display: flex;
197
+ height: $header-height;
198
+ }
199
+
200
+ &__action {
201
+ position: relative;
202
+ display: flex;
203
+ align-items: center;
204
+ justify-content: center;
205
+ width: $header-height;
206
+ height: $header-height;
207
+ cursor: pointer;
208
+ }
209
+
210
+ &__action-icon {
211
+ font-size: $font-size-xxl;
212
+ }
213
+
214
+ &__action-badge {
215
+ display: block;
216
+ position: absolute;
217
+ top: 31%;
218
+ right: 34%;
219
+ width: 10px;
220
+ height: 10px;
221
+ border-radius: 50%;
222
+ background-color: $color-main;
223
+
224
+ &.has-text {
225
+ top: 24%;
226
+ right: 23%;
227
+ width: auto;
228
+ height: 18px;
229
+ line-height: 18px;
230
+ border-radius: 9px;
231
+ padding: 0 calc($space/2);
232
+ color: $color-text-inverse;
233
+ font-size: $font-size-xs - 1;
234
+ font-weight: $font-weight-bold;
235
+ }
236
+ }
237
+
238
+ /* Buttons */
239
+ &__buttons {
240
+ flex-shrink: 0;
241
+
242
+ > * {
243
+ margin-right: $space;
244
+ &:last-child {
245
+ margin-right: 0;
246
+ }
247
+ }
248
+ }
249
+
250
+ /* User */
251
+ &__user {
252
+ flex-shrink: 0;
253
+ padding-left: $space * 2;
254
+ }
255
+
256
+ &__user-content {
257
+ display: flex;
258
+ flex-wrap: nowrap;
259
+ align-items: center;
260
+ }
261
+
262
+ &__user-img {
263
+ flex-grow: 0;
264
+ flex-shrink: 0;
265
+ width: $header-user-thumb-size;
266
+ height: $header-user-thumb-size;
267
+ margin-right: $space;
268
+ border-radius: 50%;
269
+ }
270
+
271
+ &__user-name {
272
+ display: flex;
273
+ align-items: center;
274
+ margin: 0;
275
+ line-height: 1.2;
276
+ font-size: $font-size-s;
277
+
278
+ &:after {
279
+ content: "\e908";
280
+ font-family: "n7-icon";
281
+ font-size: $font-size-m;
282
+ vertical-align: middle;
283
+ }
284
+ }
285
+
286
+ &__user-name-label {
287
+ margin-right: $space;
288
+ }
289
+
290
+ /* Mobile menu toggle */
291
+ &__mobile-menu-toggle {
292
+ display: none;
293
+ align-items: center;
294
+ height: $header-height;
295
+ }
296
+
297
+ &__mobile-menu-icon {
298
+ font-size: $font-size-xl;
299
+ cursor: pointer;
300
+ }
301
+
302
+ /* Mobile menu toggle */
303
+ &__mobile-menu-close {
304
+ display: none;
305
+ position: fixed;
306
+ z-index: 2;
307
+ width: 30px;
308
+ height: 30px;
309
+ top: $space*3;
310
+ right: $space*3;
311
+ font-size: $font-size-xl;
312
+ color: $color-text;
313
+ cursor: pointer;
314
+
315
+ &:hover {
316
+ color: $color-text-link;
317
+ }
318
+ }
319
+ }
320
+
321
+
322
+ /* ------------------------------------ *\
323
+ #MEDIA-QUERIES
324
+ \* ------------------------------------ */
325
+ @media all and (max-width: $header-breakpoint-mobile) {
326
+
327
+ .n7-header {
328
+ &__nav-content {
329
+ display: none;
330
+ }
331
+
332
+ &__user-name {
333
+ display: none;
334
+ }
335
+
336
+ &__tools {
337
+ align-self: flex-end;
338
+ }
339
+
340
+ &__mobile-menu-toggle {
341
+ display: flex;
342
+ align-self: flex-end;
343
+ }
344
+ }
345
+
346
+ /* Style for fullscreen responsive navigation */
347
+ .n7-header {
348
+ &__nav-content {
349
+ position: fixed;
350
+ // display: flex;
351
+ align-items: center;
352
+ justify-content: center;
353
+ flex-direction: column;
354
+ background-color: $color-background-base;
355
+ top: 0;
356
+ left: 0;
357
+ bottom: 0;
358
+ right: 0;
359
+ }
360
+
361
+ /* Displays mobile nav when .is-mobile-nav-displayed is inserted into .n7-header */
362
+ &.is-mobile-nav-displayed {
363
+ .n7-header__nav-content {
364
+ display: flex;
365
+ }
366
+
367
+ .n7-header__mobile-menu-close {
368
+ display: block;
369
+ }
370
+ }
371
+
372
+ &__nav-content {
373
+ height: 100%;
374
+ }
375
+
376
+ &__nav-list {
377
+ width: 100%;
378
+ height: auto;
379
+ overflow-y: auto;
380
+ }
381
+
382
+ &__nav-item {
383
+ display: block;
384
+ height: auto;
385
+ padding: $space*2 0;
386
+ }
387
+
388
+ &__nav-link {
389
+ display: block;
390
+ text-align: center;
391
+ height: auto;
392
+ }
393
+
394
+ &__nav-icon {
395
+ font-size: $font-size-l;
396
+ }
397
+
398
+ &__nav-label {
399
+ font-size: $font-size-xl;
400
+ }
401
+
402
+ /* Sublevel (dropdown) menu */
403
+ &__subnav-list {
404
+ display: block;
405
+ position: relative;
406
+ left: auto;
407
+ margin-top: $space*2;
408
+ background-color: transparent;
409
+ text-align: center;
410
+ }
411
+
412
+ &__subnav-item {
413
+ &:last-child {
414
+ .n7-header__subnav-link {
415
+ padding-bottom: 0;
416
+ }
417
+ }
418
+ }
419
+
420
+ &__subnav-link {
421
+ border-bottom: 0;
422
+ padding: $space*2;
423
+ }
424
+
425
+ &__subnav-icon {
426
+ font-size: $font-size-m;
427
+ }
428
+
429
+ &__subnav-label {
430
+ font-size: $font-size-l;
431
+ }
432
+ }
433
+
434
+ }
435
+
436
+ @media all and (max-width: $header-breakpoint-mobile-small) {
437
+
438
+ .n7-header {
439
+ height: $header-height-mobile;
440
+
441
+ &__logo {
442
+ max-height: $header-logo-height-mobile;
443
+ }
444
+
445
+ &__title {
446
+ font-size: $font-size-s;
447
+ }
448
+
449
+ &__subtitle {
450
+ font-size: $font-size-xs;
451
+ }
452
+
453
+ &__search-input[type="search"] {
454
+ height: $header-search-input-height-mobile;
455
+ line-height: $header-search-input-height-mobile;
456
+ }
457
+
458
+ &__search-btn {
459
+ &:after {
460
+ line-height: $header-search-input-height-mobile;
461
+ }
462
+ }
463
+
464
+ &__user-img {
465
+ width: $header-user-thumb-size-mobile;
466
+ height: $header-user-thumb-size-mobile;
467
+ }
468
+
469
+ &__mobile-menu-toggle {
470
+ height: $header-height-mobile;
471
+ }
472
+ }
473
+
474
+ }
@@ -0,0 +1,207 @@
1
+ /**
2
+ * HERO
3
+ *
4
+ * Component displaying the following elements:
5
+ * - title
6
+ * - text
7
+ * - input (usually used for seacrh purposes)
8
+ * - button/call to action
9
+ * - image
10
+ * - background image
11
+ *
12
+ * This component is used for hero section at the top of the homepage or
13
+ * for call to action sections (usually in homepage)
14
+ */
15
+
16
+ /* ------------------------------------ *\
17
+ #HERO
18
+ \* ------------------------------------ */
19
+ .n7-hero {
20
+ position: relative;
21
+ height: $hero-height;
22
+ background-repeat: no-repeat;
23
+ background-size: cover;
24
+ background-color: $hero-background-color;
25
+ background-position: center center;
26
+
27
+ /* Overlay */
28
+ &.has-background-image:after {
29
+ @include overlay();
30
+ }
31
+
32
+ &__content {
33
+ position: relative;
34
+ z-index: 10;
35
+ max-width: $hero-content-width;
36
+ margin: 0 auto;
37
+ }
38
+
39
+ /* Text wrapper */
40
+ &__text-wrapper {
41
+ display: flex;
42
+ flex-direction: column;
43
+ justify-content: center;
44
+ align-items: flex-start;
45
+ height: $hero-height;
46
+ }
47
+
48
+ &__title {
49
+ margin: 0 0 $space*2 0;
50
+ font-family: $font-family-headings;
51
+ font-size: $font-size-xxl;
52
+ font-weight: $font-weight-bold;
53
+ line-height: 1.1;
54
+ color: $color-text-inverse;
55
+ }
56
+
57
+ &__text {
58
+ margin: 0 0 $space*2 0;
59
+ font-family: $font-family-main;
60
+ font-size: $font-size-l;
61
+ font-weight: $font-weight-normal;
62
+ line-height: 1.3;
63
+ color: $color-text-inverse;
64
+
65
+ p {
66
+ margin-bottom: 0;
67
+ font-size: $font-size-l;
68
+ color: $color-text-inverse;
69
+ }
70
+ }
71
+
72
+ &__input-wrapper {
73
+ min-width: 50%;
74
+ position: relative;
75
+ }
76
+
77
+ &__input {
78
+ width: 100%;
79
+ margin: 0 0 $space*2 0;
80
+ box-sizing: border-box;
81
+ }
82
+
83
+ &__input-icon {
84
+ position: absolute;
85
+ top: 0;
86
+ right: $space;
87
+ font-size: $font-size-l;
88
+ color: $color-text-light;
89
+ line-height: $form-input-height;
90
+ }
91
+
92
+ &__btn {
93
+ display: inline-block;
94
+ }
95
+ }
96
+
97
+
98
+ /* ------------------------------------ *\
99
+ #WITH-IMAGE
100
+ \* ------------------------------------ */
101
+ .n7-hero.has-image {
102
+ .n7-hero__content {
103
+ display: flex;
104
+ // display: grid;
105
+ // grid-template-columns: 1fr 300px;
106
+ // grid-column-gap: $grid-gutter-h;
107
+ }
108
+
109
+ /* Text */
110
+ .n7-hero__text-wrapper {
111
+ flex: 1;
112
+ margin-right: $grid-gutter-h;
113
+ }
114
+
115
+ .n7-hero__title,
116
+ .n7-hero__text {
117
+ width: 100%; /* For IE bug, text overflowing container when contained in flex item */
118
+ }
119
+
120
+ /* Image */
121
+ .n7-hero__image-wrapper {
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ @include flex-item-width($hero-image-text-width);
126
+ padding: $space*3 0;
127
+ }
128
+
129
+ .n7-hero__image {
130
+ max-width: 100%;
131
+ max-height: 100%;
132
+ width: auto;
133
+ height: auto;
134
+ box-sizing: border-box;
135
+ }
136
+ }
137
+
138
+
139
+ /* ------------------------------------ *\
140
+ #MEDIA-QUERIES
141
+ \* ------------------------------------ */
142
+ @media all and (max-width: $hero-content-width + $space*4) {
143
+
144
+ .n7-hero {
145
+ &__content {
146
+ padding: 0 $space*2;
147
+ }
148
+ }
149
+
150
+ }
151
+
152
+ @media all and (max-width: $breakpoint-laptop) {
153
+
154
+ /* With image */
155
+ .n7-hero.has-image {
156
+ .n7-hero__content {
157
+ grid-template-columns: 1fr 220px;
158
+ }
159
+ }
160
+
161
+ }
162
+
163
+ @media all and (max-width: $breakpoint-mobile) {
164
+
165
+ .n7-hero {
166
+ height: auto;
167
+ padding: $space*2 0;
168
+
169
+ &__text-wrapper {
170
+ height: auto;
171
+ }
172
+
173
+ &__title {
174
+ margin: 0 0 $space*2 0;
175
+ font-size: $font-size-l;
176
+ }
177
+
178
+ &__text {
179
+ margin: 0 0 $space*2 0;
180
+ font-size: $font-size-m;
181
+ }
182
+ }
183
+
184
+ /* With image */
185
+ .n7-hero.has-image {
186
+ .n7-hero__content {
187
+ display: flex;
188
+ flex-direction: column;
189
+ }
190
+
191
+ /* Invert text and image order */
192
+ .n7-hero__text-wrapper {
193
+ order: 2;
194
+ }
195
+
196
+ .n7-hero__image-wrapper {
197
+ order: 1;
198
+ padding: 0;
199
+ margin-bottom: $space*2;
200
+ }
201
+ }
202
+
203
+ }
204
+
205
+ /* Retina */
206
+ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
207
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ * HISTOGRAM-RANGE
3
+ *
4
+ * Brief description of the component here.
5
+ */
6
+
7
+ /* ------------------------------------ *\
8
+ #HISTOGRAM-RANGE
9
+ \* ------------------------------------ */
10
+ .n7-histogram-range {
11
+ box-sizing: border-box;
12
+ display: inline-block;
13
+ position: relative;
14
+ width: 100%;
15
+
16
+ & > svg {
17
+ width: 100% !important;
18
+ box-sizing: border-box;
19
+ }
20
+ }
21
+
22
+ /* ------------------------------------ *\
23
+ #MEDIA-QUERIES
24
+ \* ------------------------------------ */
25
+ @media all and (max-width: $breakpoint-laptop) {
26
+ }
27
+
28
+ @media all and (max-width: $breakpoint-ipad-portrait) {
29
+ }
30
+
31
+ @media all and (max-width: $breakpoint-smartphone-landscape) {
32
+ }
33
+
34
+ /* Retina */
35
+ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
36
+ }