@eeacms/volto-eea-design-system 0.2.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 (263) hide show
  1. package/.coverage.babel.config.js +13 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +50 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +50 -0
  4. package/.github/workflows/node.js.yml +59 -0
  5. package/.prettierignore +4 -0
  6. package/.project.eslintrc.js +45 -0
  7. package/.release-it.json +17 -0
  8. package/.storybook/manager.js +15 -0
  9. package/CHANGELOG.md +1025 -0
  10. package/DEVELOP.md +51 -0
  11. package/LICENSE.md +9 -0
  12. package/README.md +196 -0
  13. package/bootstrap +41 -0
  14. package/cypress.json +17 -0
  15. package/jest-addon.config.js +36 -0
  16. package/locales/volto.pot +0 -0
  17. package/mockups/README.md +1 -0
  18. package/package.json +49 -0
  19. package/razzle.extend.js +23 -0
  20. package/src/helpers/index.js +2 -0
  21. package/src/helpers/useClickOutside.js +30 -0
  22. package/src/helpers/usePrevious.js +9 -0
  23. package/src/i18n.js +180 -0
  24. package/src/index.js +6 -0
  25. package/src/semantic.less +262 -0
  26. package/src/ui/Avatar/Avatar.jsx +32 -0
  27. package/src/ui/Avatar/Avatar.stories.jsx +61 -0
  28. package/src/ui/AvatarGrid/AvatarGrid.jsx +49 -0
  29. package/src/ui/AvatarGrid/AvatarGrid.stories.jsx +66 -0
  30. package/src/ui/Banner/Banner.jsx +59 -0
  31. package/src/ui/Banner/Banner.stories.jsx +121 -0
  32. package/src/ui/Blockquote/Blockquote.jsx +16 -0
  33. package/src/ui/Blockquote/Blockquote.stories.jsx +48 -0
  34. package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +76 -0
  35. package/src/ui/Breadcrumbs/Breadcrumbs.jsx +67 -0
  36. package/src/ui/Breadcrumbs/Breadcrumbs.stories.jsx +30 -0
  37. package/src/ui/Button/Button.stories.jsx +169 -0
  38. package/src/ui/Divider/Divider.jsx +7 -0
  39. package/src/ui/Footer/Contact.jsx +28 -0
  40. package/src/ui/Footer/Footer.jsx +52 -0
  41. package/src/ui/Footer/FooterActions.jsx +22 -0
  42. package/src/ui/Footer/FooterHeader.jsx +10 -0
  43. package/src/ui/Footer/FooterSites.jsx +33 -0
  44. package/src/ui/Footer/Social.jsx +25 -0
  45. package/src/ui/Footer/SubFooter.jsx +9 -0
  46. package/src/ui/FormFieldWrapper/FormFieldWrapper.jsx +51 -0
  47. package/src/ui/Header/Header.jsx +224 -0
  48. package/src/ui/Header/HeaderMenuPopUp.js +79 -0
  49. package/src/ui/Header/HeaderSearchPopUp.js +33 -0
  50. package/src/ui/InpageNavigation/InpageNavigation.jsx +61 -0
  51. package/src/ui/InpageNavigation/InpageNavigation.stories.jsx +166 -0
  52. package/src/ui/KeyContent/KeyContent.jsx +22 -0
  53. package/src/ui/KeyContent/KeyContent.stories.jsx +62 -0
  54. package/src/ui/Loader/Loader.stories.jsx +45 -0
  55. package/src/ui/Logo/Logo.jsx +31 -0
  56. package/src/ui/Popup/Popup.stories.jsx +97 -0
  57. package/src/ui/PublicationCard/PublicationCard.jsx +27 -0
  58. package/src/ui/PublicationCard/PublicationCard.stories.jsx +69 -0
  59. package/src/ui/Pullquote/Pullquote.jsx +44 -0
  60. package/src/ui/Pullquote/Pullquote.stories.jsx +101 -0
  61. package/src/ui/RelatedContent/RelatedContent.jsx +90 -0
  62. package/src/ui/RelatedContent/RelatedContent.stories.jsx +80 -0
  63. package/src/ui/Segment/Segment.stories.jsx +163 -0
  64. package/src/ui/Tag/Tag.jsx +13 -0
  65. package/src/ui/Tag/Tag.stories.jsx +21 -0
  66. package/src/ui/TagList/TagList.jsx +23 -0
  67. package/src/ui/TagList/TagList.stories.jsx +63 -0
  68. package/src/ui/Testimonial/Testimonial.jsx +53 -0
  69. package/src/ui/Testimonial/Testimonial.stories.jsx +51 -0
  70. package/src/ui/Timeline/Timeline.jsx +44 -0
  71. package/src/ui/Timeline/Timeline.stories.jsx +322 -0
  72. package/src/ui/index.js +31 -0
  73. package/templates/eea.hbs +50 -0
  74. package/theme/theme.config +122 -0
  75. package/theme/theme.less +64 -0
  76. package/theme/themes/eea/assets/images/EEA_Logo_Vertical.png +0 -0
  77. package/theme/themes/eea/assets/images/Footer/EEALogo.png +0 -0
  78. package/theme/themes/eea/assets/images/Footer/EULogo.png +0 -0
  79. package/theme/themes/eea/assets/images/Footer/Extras/Logo1.png +0 -0
  80. package/theme/themes/eea/assets/images/Footer/Extras/Logo10.png +0 -0
  81. package/theme/themes/eea/assets/images/Footer/Extras/Logo2.png +0 -0
  82. package/theme/themes/eea/assets/images/Footer/Extras/Logo3.png +0 -0
  83. package/theme/themes/eea/assets/images/Footer/Extras/Logo4.png +0 -0
  84. package/theme/themes/eea/assets/images/Footer/Extras/Logo5.png +0 -0
  85. package/theme/themes/eea/assets/images/Footer/Extras/Logo6.png +0 -0
  86. package/theme/themes/eea/assets/images/Footer/Extras/Logo7.png +0 -0
  87. package/theme/themes/eea/assets/images/Footer/Extras/Logo8.png +0 -0
  88. package/theme/themes/eea/assets/images/Footer/Extras/Logo9.png +0 -0
  89. package/theme/themes/eea/assets/images/Footer/Extras/abstract-visual.svg +32 -0
  90. package/theme/themes/eea/assets/images/Footer/Extras/footervisual.svg +1755 -0
  91. package/theme/themes/eea/assets/images/Footer/Vector1.png +0 -0
  92. package/theme/themes/eea/assets/images/Footer/Vector2.png +0 -0
  93. package/theme/themes/eea/assets/images/Header/EeaLogo.png +0 -0
  94. package/theme/themes/eea/assets/images/Header/Vector.png +0 -0
  95. package/theme/themes/eea/assets/images/Header/close-line.svg +1 -0
  96. package/theme/themes/eea/assets/images/Header/close.png +0 -0
  97. package/theme/themes/eea/assets/images/Header/down-arrow.png +0 -0
  98. package/theme/themes/eea/assets/images/Header/eea-logo.svg +14 -0
  99. package/theme/themes/eea/assets/images/Header/eea.png +0 -0
  100. package/theme/themes/eea/assets/images/Header/eeaIcon.png +0 -0
  101. package/theme/themes/eea/assets/images/Header/global-line.svg +1 -0
  102. package/theme/themes/eea/assets/images/Header/globeIcon.png +0 -0
  103. package/theme/themes/eea/assets/images/Header/hamburgerMenuIcon.png +0 -0
  104. package/theme/themes/eea/assets/images/Header/menu-left-arrow.svg +3 -0
  105. package/theme/themes/eea/assets/images/Header/menu-line.svg +1 -0
  106. package/theme/themes/eea/assets/images/Header/search-line.svg +1 -0
  107. package/theme/themes/eea/assets/images/Header/search.png +0 -0
  108. package/theme/themes/eea/assets/images/Header/searchIcon.png +0 -0
  109. package/theme/themes/eea/assets/images/arrow-down.svg +10 -0
  110. package/theme/themes/eea/assets/images/avatar.png +0 -0
  111. package/theme/themes/eea/assets/images/banner.png +0 -0
  112. package/theme/themes/eea/assets/images/eea-logo.png +0 -0
  113. package/theme/themes/eea/assets/images/eea_icon.png +0 -0
  114. package/theme/themes/eea/assets/images/europe-flag.svg +4 -0
  115. package/theme/themes/eea/assets/images/home-icon.svg +3 -0
  116. package/theme/themes/eea/assets/images/loaderImage.png +0 -0
  117. package/theme/themes/eea/assets/images/mega-menu-arrow.svg +3 -0
  118. package/theme/themes/eea/assets/logo/EEA-Logo-White-2.svg +9 -0
  119. package/theme/themes/eea/assets/logo/EEA-Logo-white.svg +9 -0
  120. package/theme/themes/eea/assets/logo/EIONETLogo.png +0 -0
  121. package/theme/themes/eea/assets/logo/bise.svg +47 -0
  122. package/theme/themes/eea/assets/logo/cca.svg +20 -0
  123. package/theme/themes/eea/assets/logo/copernicus.svg +62 -0
  124. package/theme/themes/eea/assets/logo/energy.svg +77 -0
  125. package/theme/themes/eea/assets/logo/fise.svg +37 -0
  126. package/theme/themes/eea/assets/logo/freshwater.svg +48 -0
  127. package/theme/themes/eea/assets/logo/industry.svg +40 -0
  128. package/theme/themes/eea/assets/logo/insitu.svg +43 -0
  129. package/theme/themes/eea/assets/logo/ipchem.svg +23 -0
  130. package/theme/themes/eea/assets/logo/marine.svg +63 -0
  131. package/theme/themes/eea/collections/breadcrumb.overrides +44 -0
  132. package/theme/themes/eea/collections/breadcrumb.variables +49 -0
  133. package/theme/themes/eea/collections/form.overrides +56 -0
  134. package/theme/themes/eea/collections/form.variables +211 -0
  135. package/theme/themes/eea/collections/grid.overrides +17 -0
  136. package/theme/themes/eea/collections/grid.variables +103 -0
  137. package/theme/themes/eea/collections/menu.overrides +84 -0
  138. package/theme/themes/eea/collections/menu.variables +471 -0
  139. package/theme/themes/eea/collections/message.overrides +34 -0
  140. package/theme/themes/eea/collections/message.variables +142 -0
  141. package/theme/themes/eea/collections/table.overrides +30 -0
  142. package/theme/themes/eea/collections/table.variables +249 -0
  143. package/theme/themes/eea/definitions/elements/icon.less +499 -0
  144. package/theme/themes/eea/elements/button.overrides +199 -0
  145. package/theme/themes/eea/elements/button.variables +405 -0
  146. package/theme/themes/eea/elements/container.overrides +98 -0
  147. package/theme/themes/eea/elements/container.variables +66 -0
  148. package/theme/themes/eea/elements/divider.overrides +17 -0
  149. package/theme/themes/eea/elements/divider.variables +53 -0
  150. package/theme/themes/eea/elements/flag.overrides +1235 -0
  151. package/theme/themes/eea/elements/flag.variables +13 -0
  152. package/theme/themes/eea/elements/header.overrides +205 -0
  153. package/theme/themes/eea/elements/header.variables +151 -0
  154. package/theme/themes/eea/elements/icon.overrides +5589 -0
  155. package/theme/themes/eea/elements/icon.variables +95 -0
  156. package/theme/themes/eea/elements/image.overrides +3 -0
  157. package/theme/themes/eea/elements/image.variables +44 -0
  158. package/theme/themes/eea/elements/input.overrides +83 -0
  159. package/theme/themes/eea/elements/input.variables +104 -0
  160. package/theme/themes/eea/elements/label.overrides +49 -0
  161. package/theme/themes/eea/elements/label.variables +267 -0
  162. package/theme/themes/eea/elements/list.overrides +28 -0
  163. package/theme/themes/eea/elements/list.variables +233 -0
  164. package/theme/themes/eea/elements/loader.overrides +3 -0
  165. package/theme/themes/eea/elements/loader.variables +73 -0
  166. package/theme/themes/eea/elements/placeholder.overrides +3 -0
  167. package/theme/themes/eea/elements/placeholder.variables +55 -0
  168. package/theme/themes/eea/elements/rail.overrides +3 -0
  169. package/theme/themes/eea/elements/rail.variables +34 -0
  170. package/theme/themes/eea/elements/reveal.overrides +3 -0
  171. package/theme/themes/eea/elements/reveal.variables +18 -0
  172. package/theme/themes/eea/elements/segment.overrides +8 -0
  173. package/theme/themes/eea/elements/segment.variables +154 -0
  174. package/theme/themes/eea/elements/step.overrides +18 -0
  175. package/theme/themes/eea/elements/step.variables +130 -0
  176. package/theme/themes/eea/extras/avatar.less +97 -0
  177. package/theme/themes/eea/extras/avatar.variables +34 -0
  178. package/theme/themes/eea/extras/avatarGrid.less +43 -0
  179. package/theme/themes/eea/extras/avatarGrid.variables +20 -0
  180. package/theme/themes/eea/extras/banner.less +213 -0
  181. package/theme/themes/eea/extras/banner.variables +77 -0
  182. package/theme/themes/eea/extras/blockquote.less +89 -0
  183. package/theme/themes/eea/extras/blockquote.variables +35 -0
  184. package/theme/themes/eea/extras/custom.overrides +0 -0
  185. package/theme/themes/eea/extras/custom.variables +0 -0
  186. package/theme/themes/eea/extras/divider.less +14 -0
  187. package/theme/themes/eea/extras/divider.variables +9 -0
  188. package/theme/themes/eea/extras/footer.less +273 -0
  189. package/theme/themes/eea/extras/footer.variables +109 -0
  190. package/theme/themes/eea/extras/header.less +691 -0
  191. package/theme/themes/eea/extras/header.variables +149 -0
  192. package/theme/themes/eea/extras/inpageNavigation.less +57 -0
  193. package/theme/themes/eea/extras/inpageNavigation.variables +30 -0
  194. package/theme/themes/eea/extras/keyContent.less +36 -0
  195. package/theme/themes/eea/extras/keyContent.variables +18 -0
  196. package/theme/themes/eea/extras/main.overrides +31 -0
  197. package/theme/themes/eea/extras/main.variables +33 -0
  198. package/theme/themes/eea/extras/publicationCard.less +62 -0
  199. package/theme/themes/eea/extras/publicationCard.variables +24 -0
  200. package/theme/themes/eea/extras/pullquote.less +76 -0
  201. package/theme/themes/eea/extras/pullquote.variables +34 -0
  202. package/theme/themes/eea/extras/select.overrides +0 -0
  203. package/theme/themes/eea/extras/select.variables +0 -0
  204. package/theme/themes/eea/extras/tag.less +37 -0
  205. package/theme/themes/eea/extras/tag.variables +22 -0
  206. package/theme/themes/eea/extras/tagList.less +50 -0
  207. package/theme/themes/eea/extras/tagList.variables +13 -0
  208. package/theme/themes/eea/extras/testimonial.less +28 -0
  209. package/theme/themes/eea/extras/testimonial.variables +13 -0
  210. package/theme/themes/eea/extras/timeline.less +114 -0
  211. package/theme/themes/eea/extras/timeline.variables +40 -0
  212. package/theme/themes/eea/globals/reset.overrides +454 -0
  213. package/theme/themes/eea/globals/reset.variables +6 -0
  214. package/theme/themes/eea/globals/site.overrides +27 -0
  215. package/theme/themes/eea/globals/site.variables +1135 -0
  216. package/theme/themes/eea/modules/accordion.overrides +83 -0
  217. package/theme/themes/eea/modules/accordion.variables +114 -0
  218. package/theme/themes/eea/modules/chatroom.overrides +3 -0
  219. package/theme/themes/eea/modules/chatroom.variables +3 -0
  220. package/theme/themes/eea/modules/checkbox.overrides +67 -0
  221. package/theme/themes/eea/modules/checkbox.variables +194 -0
  222. package/theme/themes/eea/modules/dimmer.overrides +3 -0
  223. package/theme/themes/eea/modules/dimmer.variables +58 -0
  224. package/theme/themes/eea/modules/dropdown.overrides +53 -0
  225. package/theme/themes/eea/modules/dropdown.variables +390 -0
  226. package/theme/themes/eea/modules/embed.overrides +3 -0
  227. package/theme/themes/eea/modules/embed.variables +53 -0
  228. package/theme/themes/eea/modules/modal.overrides +3 -0
  229. package/theme/themes/eea/modules/modal.variables +193 -0
  230. package/theme/themes/eea/modules/nag.overrides +3 -0
  231. package/theme/themes/eea/modules/nag.variables +74 -0
  232. package/theme/themes/eea/modules/popup.overrides +83 -0
  233. package/theme/themes/eea/modules/popup.variables +153 -0
  234. package/theme/themes/eea/modules/progress.overrides +3 -0
  235. package/theme/themes/eea/modules/progress.variables +113 -0
  236. package/theme/themes/eea/modules/rating.overrides +74 -0
  237. package/theme/themes/eea/modules/rating.variables +103 -0
  238. package/theme/themes/eea/modules/search.overrides +3 -0
  239. package/theme/themes/eea/modules/search.variables +163 -0
  240. package/theme/themes/eea/modules/shape.overrides +3 -0
  241. package/theme/themes/eea/modules/shape.variables +40 -0
  242. package/theme/themes/eea/modules/sidebar.overrides +3 -0
  243. package/theme/themes/eea/modules/sidebar.variables +45 -0
  244. package/theme/themes/eea/modules/sticky.overrides +3 -0
  245. package/theme/themes/eea/modules/sticky.variables +7 -0
  246. package/theme/themes/eea/modules/tab.overrides +13 -0
  247. package/theme/themes/eea/modules/tab.variables +17 -0
  248. package/theme/themes/eea/modules/transition.overrides +1087 -0
  249. package/theme/themes/eea/modules/transition.variables +10 -0
  250. package/theme/themes/eea/modules/video.overrides +3 -0
  251. package/theme/themes/eea/modules/video.variables +16 -0
  252. package/theme/themes/eea/views/ad.overrides +3 -0
  253. package/theme/themes/eea/views/ad.variables +13 -0
  254. package/theme/themes/eea/views/card.overrides +73 -0
  255. package/theme/themes/eea/views/card.variables +237 -0
  256. package/theme/themes/eea/views/comment.overrides +3 -0
  257. package/theme/themes/eea/views/comment.variables +98 -0
  258. package/theme/themes/eea/views/feed.overrides +3 -0
  259. package/theme/themes/eea/views/feed.variables +141 -0
  260. package/theme/themes/eea/views/item.overrides +8 -0
  261. package/theme/themes/eea/views/item.variables +157 -0
  262. package/theme/themes/eea/views/statistic.overrides +19 -0
  263. package/theme/themes/eea/views/statistic.variables +105 -0
@@ -0,0 +1,149 @@
1
+ /*-------------------
2
+ HEADER
3
+ --------------------*/
4
+
5
+ /* Heights */
6
+ @mobileTopSectionHeight : 14px;
7
+ @tabletTopSectionHeight : 30px;
8
+ @computerTopSectionHeight : 33px;
9
+
10
+ @mobileMainSectionHeight : 56px;
11
+ @tabletMainSectionHeight : 117px;
12
+ @computerMainSectionHeight : 160px;
13
+
14
+ @mobilePopUpHeight : calc(100vh - (@mobileTopSectionHeight + @mobileMainSectionHeight));
15
+ @tabletPopUpHeight : calc(100vh - (@tabletTopSectionHeight + @tabletMainSectionHeight));
16
+ @computerPopUpHeight : calc(100vh - (@computerTopSectionHeight + @computerMainSectionHeight));
17
+
18
+ /* Header font sizes */
19
+ @headerMinyFontSize: 0.5rem;
20
+ @headerTinyFontSize: 0.625rem;
21
+ @headerSmallFontSize: 0.75rem;
22
+ @headerMediumFontSize: 0.875rem;
23
+ @headerLargeFontSize: 1.125rem;
24
+
25
+ /* Top */
26
+ @topSectionBackground : @silverGray;
27
+ @topSectionItemColor : @japaneseIndigo;
28
+ @topSectionItemFontWeight : @bold;
29
+ @mobileTopSectionItemFontSize : @headerSmallFontSize;
30
+ @tabletTopSectionItemFontSize : @headerSmallFontSize;
31
+ @topSectionZindex : 1;
32
+
33
+ /* Dropdown */
34
+ @mobileDropdownMenuMarginTop : 0.188rem;
35
+ @tabletDropdownMenuMarginTop : 0.438rem;
36
+ @dropdownFontSize : @headerSmallFontSize;
37
+ @dropdownFontWeight : @bold;
38
+ /* Dropdown Menu */
39
+ @dropdownMenuLeft : auto;
40
+ @dropdownMenuRight : 0;
41
+ @dropdownMenuWrapperGap : 0.313rem;
42
+ @dropdownMenuWrapperMargin : 0.313rem 0;
43
+ @dropdownMenuContentWhiteSpace : pre-wrap;
44
+ @dropdownMenuContentFontWeight : @normal;
45
+ @mobileDropdownMenuContentFontSize : @headerSmallFontSize;
46
+ @desktopDropdownMenuContentFontSize : @headerSmallFontSize;
47
+ @dropdownMenuItemColorHover : @white;
48
+ @dropdownMenuItemBackgroundColorHover : @japaneseIndigo;
49
+ // Official Union
50
+ @officialUnionGap : 0.75rem;
51
+ @officialUnionMenuFontSize : @headerMediumFontSize;
52
+ @officialUnionTextFontWeight : @normal;
53
+ @officialUnionLinkFontWeight : @bold;
54
+ @officialUnionLinkColor : @japaneseIndigo;
55
+ @mobileOfficialUnionPadding : 0.313rem;
56
+ @tabletOfficialUnionPadding : 0.75rem;
57
+ @mobileOfficialUnionMaxWidth : 110px;
58
+ @tabletOfficialUnionMaxWidth : 373px;
59
+ //@mobileOfficialUnionImageWidth : 11px;
60
+ @mobileOfficialUnionImageWidth : 16px;
61
+ @tabletOfficialUnionImageWidth : 33px;
62
+
63
+ // Theme Sites
64
+ @themeSitesMenuWidth : 210px;
65
+ @themeSitesMenuSiteLinkColor : @japaneseIndigo;
66
+ @themeSitesMenuSiteLinkFontWeight : @normal;
67
+ @themeSitesMenuItemPadding : 0.125rem 0.313rem;
68
+ // Language
69
+ @mobileLanguageFontSize : @headerTinyFontSize;
70
+ @tabletLanguageFontSize : @headerMediumFontSize;
71
+ @mobileLanguageMenuTop : 0.75rem;
72
+ @tabletLanguageMenuTop : 18px;
73
+ @languageMenuPadding : 0.125rem 1.25rem;
74
+ @languageMenuItemFontWeight : @normal;
75
+ @mobileLanguageCountryCodeMarginLeft : 3px;
76
+ @mobileLanguageCountryCodeFontWeight : @bold;
77
+
78
+ /* Main Section */
79
+ @headerMainSectionBackground : @white;
80
+
81
+ /* Logo */
82
+ @logoWidth : 100%;
83
+ @mobileLogoMaxWidth : 122px;
84
+ @tabletLogoMaxWidth : 252px;
85
+ @computerLogoMaxWidth : 348px;
86
+ @mobileLogoMarginTop : 0.563rem;
87
+ @tabletLogoMarginTop : 0.938rem;
88
+ @computerLogoMarginTop : 1.25rem;
89
+
90
+ /* Main menu */
91
+ @mainMenuItemColor : @deepBlue;
92
+ @mainMenuItemFontSize : ~"min(max(0.875rem, 1.5vw), 1.125rem)";
93
+ @mainMenuItemFontWeight : 500;
94
+ @mainMenuItemPlaceSelf : flex-end;
95
+ @mainMenuItemActiveColor : @secondaryColor;
96
+ @mainMenuItemActiveBorder : 3px solid @secondaryColor;
97
+
98
+ /* Actions (Mega menu & Search) */
99
+ @mobileActionsBoxWidth: 30px;
100
+ @tabletActionsBoxWidth: 66px;
101
+ @computerActionsBoxWidth: 72px;
102
+
103
+ /* Mega menu and Search popup */
104
+ @mobilePopupMarginTop : 5vh;
105
+ @tabletPopupMarginTop : 10vh;
106
+ @computerPopupMarginTop : 18vh;
107
+
108
+ /* Mega menu */
109
+ @megaMenuBackgroundGradient: linear-gradient(166.78deg, @darkCerulean 39.52%, @darkCyan 118.9%);
110
+
111
+ /* Menu link and toggle */
112
+ @mobileMegaMenuColor : @white;
113
+ @megaMenuLinkPadding : 0 1.25rem;
114
+ @megaMenuWordBreak : break-word;
115
+ @toggleMenuFirstPadding : 0;
116
+ @mobileToggleMenuFirstPadding : 0.5rem 0;
117
+ @mobileToggleMenuSecondPadding : 0.5rem 1.25rem;
118
+ @mobileToggleMenuThirdPadding : 0.5rem 2.5rem;
119
+
120
+ @megaMenuLiAlignItems : center;
121
+
122
+ @mobileMegaMenuMarginBottom : 0.25em;
123
+ @tabletMegaMenuMarginBottom : 0.4em;
124
+ @computerMegaMenuMarginBottom : 0.6em;
125
+
126
+ // Font sizes and line heights
127
+ @megaMenuFontSize: ~"min(max(1.125rem, 3.5vw), 2.2rem)";
128
+
129
+ /* Fallback font sizes for ie and opera mini */
130
+ @mobileMegaMenuFontSize : 1.125rem;
131
+ @tabletMegaMenuFontSize : @h1;
132
+
133
+ ////////@computerMegaMenuFirstFontSize : 3rem;
134
+ ////////@computerMegaMenuSecondFontSize : 2.5rem;
135
+ ////////@computerMegaMenuThirdFontSize : 2.25rem;
136
+
137
+ @megaMenuLineHeight : 1.2;
138
+
139
+ // Icon
140
+ @megaMenuIconFontFamily : 'remixicon';
141
+ @megaMenuAfterIcon : "\EA6E";
142
+ @megaMenuIconAfterColor : @white;
143
+ @tabletMegaMenuIconAfterFontSize : 1rem;
144
+ @computerMegaMenuIconAfterFontSize: 1.875rem;
145
+
146
+ /* Search box */
147
+ @searchBoxBackgroundGradient : linear-gradient(340.97deg, @darkCerulean 9.19%, #009591 77.47%);
148
+
149
+ @searchBoxWrapperGap : 75px;
@@ -0,0 +1,57 @@
1
+ @type: 'extra';
2
+ @element: 'inpageNavigation';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*******************************
7
+ Inpage Navigation
8
+ *******************************/
9
+
10
+ #inpage-navigation {
11
+ position: fixed;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ cursor: pointer;
16
+ width: @tabletNavWidth;
17
+ height: @tabletNavHeight;
18
+ bottom: @navBottom;
19
+ right: @navRight;
20
+ background-color: @navBackground;
21
+ border-radius: @circularRadius;
22
+ color: @navColor;
23
+ font-weight: @navFontWeight;
24
+
25
+ /* Icon align fix */
26
+ > div > i.icon,
27
+ i.icons {
28
+ line-height: @mobileInpageNavigationIconLineHeight;
29
+ margin-right: @inpageNavigationIconMarginRight;
30
+ font-size: @mobileInpageNavigationIconFontSize;
31
+ }
32
+
33
+ &.hidden {
34
+ display: none;
35
+ }
36
+ }
37
+
38
+ @media only screen and (min-width: @computerBreakpoint) {
39
+ #inpage-navigation {
40
+ width: @computerNavWidth;
41
+ height: @computerNavHeight;
42
+
43
+ > div > i.icon,
44
+ i.icons {
45
+ line-height: @computerInpageNavigationIconLineHeight;
46
+ font-size: @computerInpageNavigationIconFontSize;
47
+ }
48
+
49
+ .text {
50
+ margin-top: @inpageNavigationTextMarginTop;
51
+ font-size: @inpageNavigationTextFontSize;
52
+ font-weight: @inpageNavigationTextFontWeight;
53
+ text-align: @inpageNavigationTextAlign;
54
+ font-variant: @inpageNavigationTextFontVariant;
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,30 @@
1
+ /*******************************
2
+ Inpage Navigation
3
+ *******************************/
4
+
5
+ @navBottom : @largeGap;
6
+ @navRight : @largeGap;
7
+ @navBackground : @darkCerulean;
8
+ @navColor : @white;
9
+ @navFontWeight : @bold;
10
+
11
+ /* Inpage navigation size */
12
+ @tabletNavWidth : 2.25rem;
13
+ @tabletNavHeight : 2.25rem;
14
+ @computerNavWidth : 3.125rem;
15
+ @computerNavHeight : 3.125rem;
16
+
17
+ /* Desktop Icon */
18
+ @inpageNavigationIconWidth : 100%;
19
+ @inpageNavigationIconMarginRight : 0;
20
+ @mobileInpageNavigationIconLineHeight : 2.75rem;
21
+ @computerInpageNavigationIconLineHeight : 1.5rem;
22
+ @mobileInpageNavigationIconFontSize : 2rem;
23
+ @computerInpageNavigationIconFontSize : 1.9rem;
24
+
25
+ /* Text */
26
+ @inpageNavigationTextMarginTop : -22px;
27
+ @inpageNavigationTextFontSize : 1.125rem;
28
+ @inpageNavigationTextFontWeight : 900;
29
+ @inpageNavigationTextAlign : center;
30
+ @inpageNavigationTextFontVariant: small-caps;
@@ -0,0 +1,36 @@
1
+ @type: 'extra';
2
+ @element: 'keyContent';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ .eea.key-content {
7
+ background-color: @keyContentBackgroundColor;
8
+
9
+ .title {
10
+ text-align: center;
11
+ font-weight: @keyContentTitleFontWeight;
12
+ font-size: @keyContentTitleFontSize;
13
+ }
14
+
15
+ .ui.bulleted.list {
16
+ margin-left: @keyContentListMarginLeft;
17
+ }
18
+
19
+ .item {
20
+ margin-left: 74.85px;
21
+ margin-bottom: 34.07px;
22
+ }
23
+
24
+ .item::before {
25
+ color: @keyContentListItemBeforeColor;
26
+ margin-left: @keyContentListItemBeforeMarginLeft;
27
+ }
28
+ }
29
+
30
+ .eea.key-content.colored {
31
+ .title {
32
+ text-align: left;
33
+ color: @keyContentColoredTitleColor;
34
+ margin-left: @keyContentColoredTitleMarginLeft;
35
+ }
36
+ }
@@ -0,0 +1,18 @@
1
+ /*******************************
2
+ Key Content
3
+ *******************************/
4
+
5
+ @keyContentBackgroundColor : #f9f9f9;
6
+
7
+ /* Title */
8
+ @keyContentTitleFontWeight: 700;
9
+ @keyContentTitleFontSize : 36px;
10
+
11
+ /* List */
12
+ @keyContentListMarginLeft: 0;
13
+ @keyContentListItemBeforeColor : @darkCyan;
14
+ @keyContentListItemBeforeMarginLeft : -38.84px;
15
+
16
+ /* Colored Title */
17
+ @keyContentColoredTitleColor : @darkCyan;
18
+ @keyContentColoredTitleMarginLeft : 74.85px;
@@ -0,0 +1,31 @@
1
+ .addReducedTextElements() when (@reduceTextElementsSize = true) {
2
+ @{textElementsParentSelector} {
3
+ @{textElementsSelectors} {
4
+ max-width: @textElementsMaxWidth;
5
+ margin-right: @textElementsRightMargin;
6
+ margin-left: @textElementsLeftMargin;
7
+ }
8
+ }
9
+ }
10
+
11
+ .addReducedTextElements();
12
+
13
+ // login page keep the small size of login container
14
+ #page-login {
15
+ .container {
16
+ max-width: @loginContainerMaxWidth;
17
+ }
18
+ // reset left margin since help is a p tag
19
+ .help {
20
+ margin-left: 0 !important;
21
+ }
22
+ }
23
+
24
+ // Checkbox box-shadow override from pastanaga
25
+ .ui.checkbox {
26
+ label {
27
+ &:before {
28
+ box-shadow: @checkboxBoxShadow;
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,33 @@
1
+ // #2749 Pastanaga text block readability enhancements
2
+ @reduceTextElementsSize: false;
3
+ @textElementsMaxWidth: 800px;
4
+ @textElementsParentSelector: .content-area;
5
+ @textElementsSelectors: e("h1, h2, h3:not(.relatedItems-header), h4, h5, h6,
6
+ p:not(.right):not(.left):not(.data-figure):not(.help),
7
+ ol, ul, blockquote, .slate-table");
8
+ @textElementsLeftMargin: auto !important;
9
+ @textElementsRightMargin: auto !important;
10
+
11
+ /* Mobile Menu Nav */
12
+ @mobileMenuNavAlignItems: center;
13
+ @mobileMenuNavJustifyContent: center;
14
+ @mobileMenuNavTextAlign: center;
15
+
16
+ /* Mobile Menu Nav Menu */
17
+ @mobileMenuNavMenuAlignItems: center;
18
+ @mobileMenuNavMenuFontSize: @24px;
19
+
20
+ /* Mobile Menu Nav Item */
21
+ @mobileMenuNavItemJustifyContent: center;
22
+ @mobileMenuNavItemLineHeight: 1.25;
23
+
24
+ /* Checkbox */
25
+ @checkboxBorderUnchecked: 1px solid @oldSilver;
26
+ @checkboxBorderChecked: 1px solid @darkCerulean;
27
+ @checkboxColor: @white;
28
+ @checkboxBoxShadow: none;
29
+
30
+ /*-------------------
31
+ login.less
32
+ --------------------*/
33
+ @loginContainerMaxWidth: 680px !important;
@@ -0,0 +1,62 @@
1
+ @type: 'extra';
2
+ @element: 'publicationCard';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*-------------------
7
+ Publication Card
8
+ --------------------*/
9
+
10
+ .eea.publication.card {
11
+ color: @publicationCardtextColor;
12
+ //position: relative;
13
+ height: @publicationCardHeight;
14
+ background-color: @publicationCardBackgroundColor;
15
+ display: flex;
16
+ flex-direction: column;
17
+ justify-content: space-between;
18
+
19
+ a {
20
+ display: contents;
21
+ text-decoration: none;
22
+ color: @publicationCardtextColor;
23
+ cursor: pointer;
24
+ }
25
+
26
+ .header {
27
+ background-repeat: no-repeat;
28
+ background-position: center;
29
+ background-size: contain;
30
+ height: calc(100% - @cardDescriptionMaxHeight);
31
+ }
32
+
33
+ .description {
34
+ background-color: @publicationCardDescriptionColor;
35
+ height: @cardDescriptionHeight;
36
+ padding: @cardDescriptionPadding;
37
+ //position: absolute;
38
+ //bottom: 0;
39
+ width: @cardDescriptionWidth;
40
+ max-height: @cardDescriptionMaxHeight;
41
+
42
+ .tag {
43
+ font-size: @cardDescriptionTagFontSize;
44
+ font-weight: @cardDescriptionTagFontWeight;
45
+ }
46
+
47
+ .text {
48
+ font-size: @cardDescriptionTextFontSize;
49
+ font-weight: @cardDescriptionTextFontWeight;
50
+ }
51
+ }
52
+ }
53
+
54
+ @media only screen and (min-width: @computerBreakpoint) {
55
+ .eea.publication.card {
56
+ margin: @publicationCardMargin;
57
+
58
+ .description {
59
+ height: @computerCardDescriptionHeight;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,24 @@
1
+ /*-------------------
2
+ Publication Card
3
+ --------------------*/
4
+
5
+ @publicationCardtextColor: @white;
6
+ @publicationCardMargin: 10px 0;
7
+ @publicationCardHeight: 268px;
8
+
9
+ /* Colors */
10
+ @publicationCardBackgroundColor: #BCBEC0;
11
+ @publicationCardDescriptionColor: #3D5265;
12
+
13
+ /* Description */
14
+ @cardDescriptionHeight: auto;
15
+ @cardDescriptionMaxHeight: 135px;
16
+ @computerCardDescriptionHeight: auto;
17
+ @cardDescriptionPadding: 20px;
18
+ @cardDescriptionWidth: 100%;
19
+
20
+ @cardDescriptionTagFontSize: 12px;
21
+ @cardDescriptionTagFontWeight: 400;
22
+ @cardDescriptionTextFontSize: 16px;
23
+ @cardDescriptionTextFontWeight: 700;
24
+
@@ -0,0 +1,76 @@
1
+ @type: 'extra';
2
+ @element: 'pullquote';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*******************************
7
+ Pullquote
8
+ *******************************/
9
+
10
+ .eea.pullquote {
11
+ padding: @pullquotePadding;
12
+ margin: @pullquoteMargin;
13
+ word-break: @contentWordBreak;
14
+ hyphens: @contentWordBreakHyphens;
15
+
16
+ .quotes.wrapper {
17
+ display: flex;
18
+
19
+ .quote {
20
+ padding: @mobileQuotePadding;
21
+ }
22
+
23
+ i.icon {
24
+ display: flex;
25
+ align-items: flex-end;
26
+ font-size: @mobileQuoteIconSize;
27
+ color: @quoteIconColor;
28
+ }
29
+
30
+ i.icomn:first-child {
31
+ align-self:flex-start
32
+ }
33
+
34
+ i.icon:last-child {
35
+ align-self: flex-end;
36
+ }
37
+ }
38
+
39
+ .author {
40
+ color: @authorTextColor;
41
+ text-align: @authorTextAlign;
42
+ font-weight: @authorFontWeight;
43
+ font-size: @authorFontSize;
44
+ margin: @authorMargin;
45
+ }
46
+
47
+ .meta {
48
+ text-align: @metaTextAlign;
49
+ font-weight: @metaFontWeight;
50
+ font-size: @metaFontSize;
51
+ }
52
+ }
53
+
54
+ @media only screen and (min-width: @tabletBreakpoint) {
55
+ .eea.pullquote {
56
+ .quotes.wrapper {
57
+ .quote {
58
+ padding :@tabletQuotePadding;
59
+ }
60
+
61
+ i.icon {
62
+ font-size: @tabletQuoteIconSize;
63
+ }
64
+ }
65
+ }
66
+ .eea.pullquote.left {
67
+ width: @maxWidthOnFloat;
68
+ padding: @pullquoteFloatLeftPadding;
69
+ float: left;
70
+ }
71
+ .eea.pullquote.right {
72
+ width: @maxWidthOnFloat;
73
+ padding: @pullquoteFloatRightPadding;
74
+ float: right;
75
+ }
76
+ }
@@ -0,0 +1,34 @@
1
+ /*******************************
2
+ Pullquote
3
+ *******************************/
4
+
5
+ /* Body */
6
+ @pullquotePadding : @largeGap 0;
7
+ @pullquoteFloatLeftPadding : @largeGap @largeGap @largeGap 0;
8
+ @pullquoteFloatRightPadding : @largeGap 0 @largeGap @largeGap;
9
+ @pullquoteMargin : 0;
10
+ @maxWidthOnFloat : 50%;
11
+ @contentWordBreak : break-word;
12
+ @contentWordBreakHyphens : manual;
13
+
14
+ /* Quote paragraph */
15
+ @mobileQuotePadding : 0;
16
+ @tabletQuotePadding : 0.5rem 0 1rem;
17
+
18
+ /* Author */
19
+ @authorTextColor : @darkCyan;
20
+ @authorTextAlign : right;
21
+ @authorFontWeight : @bold;
22
+ @authorFontSize : 1.25rem;
23
+ @authorMargin : 0;
24
+
25
+ /* Metadata */
26
+ @metaTextAlign : right;
27
+ @metaFontWeight : @normal;
28
+ @metaFontSize : 1rem;
29
+
30
+ /* Icon */
31
+ @mobileQuoteIconSize : 2rem;
32
+ @tabletQuoteIconSize : 3rem;
33
+ @quoteIconColor : @secondaryColor;
34
+ @quoteDownIconFloat : right;
File without changes
File without changes
@@ -0,0 +1,37 @@
1
+ @type: 'extra';
2
+ @element: 'tag';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*******************************
7
+ Tag
8
+ *******************************/
9
+
10
+ .tag {
11
+ cursor: pointer;
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ text-align: center;
16
+ height: @tagHeight;
17
+ margin: @tagMargin;
18
+ padding: @tagPadding;
19
+ background: @tagDefaultColor;
20
+ font-size: @tagNameFontSize;
21
+ font-weight: @tagNameFontWeight;
22
+ line-height: @tagNameLineHeight;
23
+
24
+ .icon {
25
+ width: unset;
26
+ height: unset;
27
+ margin: @tagHashtagMargin;
28
+ font-size: @tagHashtagFontSize;
29
+ font-weight: @tagNameFontWeight;
30
+ display: inline-flex;
31
+ color: @tagNameFontColor;
32
+ }
33
+
34
+ .name {
35
+ color: @tagNameFontColor;
36
+ }
37
+ }
@@ -0,0 +1,22 @@
1
+ /*******************************
2
+ Tags
3
+ *******************************/
4
+
5
+ /* Tags */
6
+ @tagPadding : @mediumGap 0;
7
+ @tagHeight : 1.25rem;
8
+ @tagMargin : 0 @mediumGap 0 0;
9
+
10
+ /* Tag Icon */
11
+ @tagHashtagFontSize : 0.75rem;
12
+ @tagHashtagMargin : 0 0.2rem 0 0;
13
+
14
+ /* Tag text */
15
+ @tagNameFontSize : 1rem;
16
+ @tagNameFontColor : @japaneseIndigo;
17
+ @tagNameFontColorWithBackground : @white;
18
+ @tagNameFontWeight : 500;
19
+ @tagNameLineHeight : 1.25rem;
20
+
21
+ /* Tags Colors */
22
+ @tagDefaultColor : transparent;
@@ -0,0 +1,50 @@
1
+ @type: 'extra';
2
+ @element: 'tagList';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*******************************
7
+ Tag
8
+ *******************************/
9
+
10
+ .tags {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: flex-start;
14
+ justify-content: right;
15
+ width: @tagsBodyWidth;
16
+ line-height: @tagsLineHeight;
17
+
18
+ .tags-title {
19
+ text-align: right;
20
+ height: @tagsLineHeight;
21
+ color: @tagsTitleFontColor;
22
+ margin-right: @tagsTitleMargin;
23
+ font-weight: @tagsFontWeight;
24
+ font-size: @tagsFontSize;
25
+ }
26
+
27
+ .tags-content {
28
+ line-height: @tagsLineHeight;
29
+ display: inline-flex;
30
+ align-items: center;
31
+ flex-wrap: wrap;
32
+ flex-direction: column;
33
+ }
34
+ }
35
+
36
+ .tags.left {
37
+ justify-content: left;
38
+ }
39
+
40
+ @media only screen and (min-width: @tabletBreakpoint) {
41
+
42
+ .tags {
43
+ flex-direction: row;
44
+ align-items: center;
45
+
46
+ .tags-content {
47
+ flex-direction: inherit;
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,13 @@
1
+ /*******************************
2
+ Tags
3
+ *******************************/
4
+
5
+ /* Body */
6
+ @tagsBodyWidth : 100%;
7
+
8
+ /* Tags Title */
9
+ @tagsTitleFontColor : @japaneseIndigo;
10
+ @tagsTitleMargin : 1rem;
11
+ @tagsFontWeight : 400;
12
+ @tagsFontSize : 1.125rem;
13
+ @tagsLineHeight : 1.312rem;