@ilo-org/styles 1.3.4 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/components/blockquote.css +1 -0
- package/css/components/card.css +1 -1
- package/css/components/datacard.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/languagetoggle.css +1 -0
- package/css/components/list.css +1 -1
- package/css/components/multilinkcard.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/socialmedia.css +1 -1
- package/css/components/video.css +1 -1
- package/css/global.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +2 -2
- package/css/index.css.map +1 -1
- package/css/monorepo.css +2 -2
- package/css/monorepo.css.map +1 -1
- package/package.json +4 -4
- package/scss/_mixins.scss +176 -11
- package/scss/components/_blockquote.scss +88 -81
- package/scss/components/_card.scss +38 -37
- package/scss/components/_datacard.scss +11 -0
- package/scss/components/_featurecard.scss +19 -29
- package/scss/components/_languagetoggle.scss +96 -0
- package/scss/components/_list.scss +1 -1
- package/scss/components/_multilinkcard.scss +55 -24
- package/scss/components/_richtext.scss +3 -1
- package/scss/components/_socialmedia.scss +24 -0
- package/scss/components/_video.scss +2 -2
- package/scss/components/index.scss +3 -0
- package/scss/components/navigation/_nav-compact.scss +186 -0
- package/scss/components/navigation/_nav-complex.scss +256 -0
- package/scss/components/navigation/_nav-dropdown.scss +44 -0
- package/scss/components/navigation/_nav-grid.scss +31 -0
- package/scss/components/navigation/_nav-menu.scss +91 -0
- package/scss/components/navigation/index.scss +6 -0
- package/scss/components/navigation/mobile/_nav-mobile-drawer.scss +60 -0
- package/scss/components/navigation/mobile/_nav-mobile-menu.scss +36 -0
- package/scss/components/navigation/mobile/_nav-mobile.scss +171 -0
- package/scss/components/navigation/mobile/index.scss +3 -0
- package/scss/theme/_breakpoints.scss +2 -2
- package/scss/theme/_foundation.scss +2 -22
- package/scss/theme/_typography.scss +53 -0
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
@use "../functions" as *;
|
|
2
2
|
@use "./breakpoints" as *;
|
|
3
|
+
@use "./typography" as *;
|
|
3
4
|
|
|
4
5
|
:root {
|
|
5
|
-
/**
|
|
6
|
-
* Typography
|
|
7
|
-
*/
|
|
8
6
|
--ilo-scale: 1; // default scale for the design system
|
|
9
7
|
|
|
10
|
-
// Display Font Families
|
|
11
|
-
--ilo-fonts-display: Overpass, Noto Sans, sans-serif;
|
|
12
|
-
|
|
13
|
-
// Chinese and Japanese system fonts
|
|
14
|
-
--ilo-fonts-display-zh: PingFang SC, Microsoft YaHei, 微软雅黑, sans-serif;
|
|
15
|
-
--ilo-fonts-display-jp: Noto Sans CJK JP, Yu Gothic, Hiragino Sans,
|
|
16
|
-
TakaoPGothic, sans-serif;
|
|
17
|
-
|
|
18
|
-
// Copy font families
|
|
19
|
-
--ilo-fonts-copy: Noto Sans, sans-serif;
|
|
20
|
-
|
|
21
|
-
// Chinese and Japanese system fonts
|
|
22
|
-
--ilo-fonts-copy-zh: PingFang SC, Microsoft YaHei, 微软雅黑, sans-serif;
|
|
23
|
-
--ilo-fonts-copy-jp: Noto Sans CJK JP, Yu Gothic, Hiragino Sans, TakaoPGothic,
|
|
24
|
-
sans-serif;
|
|
25
|
-
|
|
26
|
-
--ilo-fonts-monospace: monospace;
|
|
27
|
-
--ilo-line-height: 1.46;
|
|
28
|
-
|
|
29
8
|
/**
|
|
30
9
|
* Colors
|
|
31
10
|
*/
|
|
@@ -40,6 +19,7 @@
|
|
|
40
19
|
--ilo-color-gray-charcoal: rgba(45, 45, 45, 1);
|
|
41
20
|
--ilo-color-gray-accessible: rgba(109, 109, 109, 1);
|
|
42
21
|
--ilo-color-gray-light: rgba(237, 240, 242, 1);
|
|
22
|
+
--ilo-color-gray-light-semi-transparent: rgba(237, 240, 242, 0.25);
|
|
43
23
|
--ilo-color-gray-base: rgba(184, 196, 204, 1);
|
|
44
24
|
--ilo-color-red: rgba(250, 60, 75, 1);
|
|
45
25
|
--ilo-color-red-light: rgba(254, 216, 219, 1);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
// Display Font Families
|
|
3
|
+
--ilo-fonts-display: Overpass, Noto Sans, sans-serif;
|
|
4
|
+
|
|
5
|
+
// Chinese and Japanese system fonts
|
|
6
|
+
--ilo-fonts-display-zh: PingFang SC, Microsoft YaHei, 微软雅黑, sans-serif;
|
|
7
|
+
--ilo-fonts-display-jp: Noto Sans CJK JP, Yu Gothic, Hiragino Sans,
|
|
8
|
+
TakaoPGothic, sans-serif;
|
|
9
|
+
|
|
10
|
+
// Copy font families
|
|
11
|
+
--ilo-fonts-copy: Noto Sans, sans-serif;
|
|
12
|
+
|
|
13
|
+
// Chinese and Japanese system fonts
|
|
14
|
+
--ilo-fonts-copy-zh: PingFang SC, Microsoft YaHei, 微软雅黑, sans-serif;
|
|
15
|
+
--ilo-fonts-copy-jp: Noto Sans CJK JP, Yu Gothic, Hiragino Sans, TakaoPGothic,
|
|
16
|
+
sans-serif;
|
|
17
|
+
|
|
18
|
+
--ilo-fonts-monospace: monospace;
|
|
19
|
+
--ilo-line-height: 1.46;
|
|
20
|
+
|
|
21
|
+
// Font Sizes
|
|
22
|
+
--ilo-font-size-2xsm: px-to-rem(10px);
|
|
23
|
+
--ilo-font-size-xsm: px-to-rem(12px);
|
|
24
|
+
--ilo-font-size-sm: px-to-rem(14px);
|
|
25
|
+
--ilo-font-size-md: px-to-rem(16px);
|
|
26
|
+
--ilo-font-size-lg: px-to-rem(18px);
|
|
27
|
+
--ilo-font-size-xlg: px-to-rem(24px);
|
|
28
|
+
--ilo-font-size-2xlg: px-to-rem(28px);
|
|
29
|
+
--ilo-font-size-3xlg: px-to-rem(32px);
|
|
30
|
+
--ilo-font-size-4xlg: px-to-rem(36px);
|
|
31
|
+
--ilo-font-size-5xlg: px-to-rem(44px);
|
|
32
|
+
|
|
33
|
+
// Font Weight
|
|
34
|
+
--ilo-font-weight-light: 300;
|
|
35
|
+
--ilo-font-weight-regular: 400;
|
|
36
|
+
--ilo-font-weight-medium: 500;
|
|
37
|
+
--ilo-font-weight-bold: 700;
|
|
38
|
+
|
|
39
|
+
// Line Height
|
|
40
|
+
--ilo-line-height-xsm: 1.15;
|
|
41
|
+
--ilo-line-height-sm: 1.2;
|
|
42
|
+
--ilo-line-height-md: 1.25;
|
|
43
|
+
--ilo-line-height-lg: 1.3;
|
|
44
|
+
--ilo-line-height-xlg: 1.35;
|
|
45
|
+
--ilo-line-height-2xlg: 1.45;
|
|
46
|
+
--ilo-line-height-3xlg: 1.5;
|
|
47
|
+
|
|
48
|
+
// Letter Spacing
|
|
49
|
+
--ilo-letter-spacing-xsm: -3.5%;
|
|
50
|
+
--ilo-letter-spacing-sm: -2%;
|
|
51
|
+
--ilo-letter-spacing-md: 0;
|
|
52
|
+
--ilo-letter-spacing-lg: 2%;
|
|
53
|
+
}
|