@madgex/design-system 1.21.3 → 1.21.4
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/dist/_tokens/css/_tokens.css +9 -1
- package/dist/_tokens/js/_tokens-module.js +179 -1
- package/dist/_tokens/scss/_tokens.scss +27 -1
- package/dist/css/index.css +61 -3
- package/package.json +1 -1
- package/src/components/tabs/_template.njk +1 -1
- package/src/components/tabs/tabs.config.js +2 -0
- package/src/helpers/edited-text/README.md +5 -0
- package/src/helpers/edited-text/edited-text.njk +28 -0
- package/src/scss/components/__index.scss +5 -0
- package/src/scss/core/_lists.scss +12 -6
- package/src/scss/helpers/__index.scss +1 -0
- package/src/scss/helpers/_edited-text.scss +22 -0
- package/src/scss/index.scss +2 -7
- package/src/tokens/font.json +34 -0
- package/src/typography/font-types.njk +3 -0
- package/src/typography/lists.njk +29 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 15 Aug 2019 16:50:36 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -96,6 +96,14 @@
|
|
|
96
96
|
--mds-font-type-body-copy-md-line-height: 1.34;
|
|
97
97
|
--mds-font-type-body-copy-lg-size: 16px;
|
|
98
98
|
--mds-font-type-body-copy-lg-line-height: 1.38;
|
|
99
|
+
--mds-font-type-body-copy-bulk-default-size: 14px;
|
|
100
|
+
--mds-font-type-body-copy-bulk-default-line-height: 1.71;
|
|
101
|
+
--mds-font-type-body-copy-bulk-sm-size: 16px;
|
|
102
|
+
--mds-font-type-body-copy-bulk-sm-line-height: 1.75;
|
|
103
|
+
--mds-font-type-body-copy-bulk-md-size: 18px;
|
|
104
|
+
--mds-font-type-body-copy-bulk-md-line-height: 1.67;
|
|
105
|
+
--mds-font-type-body-copy-bulk-lg-size: 16px;
|
|
106
|
+
--mds-font-type-body-copy-bulk-lg-line-height: 1.75;
|
|
99
107
|
--mds-font-type-pica-default-size: 15px;
|
|
100
108
|
--mds-font-type-pica-default-line-height: 1.34;
|
|
101
109
|
--mds-font-type-pica-sm-size: 16px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Thu,
|
|
3
|
+
* Generated on Thu, 15 Aug 2019 16:50:36 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -1956,6 +1956,184 @@ module.exports = {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
1958
|
},
|
|
1959
|
+
"body-copy-bulk": {
|
|
1960
|
+
"default": {
|
|
1961
|
+
"size": {
|
|
1962
|
+
"value": "14px",
|
|
1963
|
+
"original": {
|
|
1964
|
+
"value": "14px"
|
|
1965
|
+
},
|
|
1966
|
+
"name": "MdsFontTypeBodyCopyBulkDefaultSize",
|
|
1967
|
+
"attributes": {
|
|
1968
|
+
"category": "font",
|
|
1969
|
+
"type": "type",
|
|
1970
|
+
"item": "body-copy-bulk",
|
|
1971
|
+
"subitem": "default",
|
|
1972
|
+
"state": "size"
|
|
1973
|
+
},
|
|
1974
|
+
"path": [
|
|
1975
|
+
"font",
|
|
1976
|
+
"type",
|
|
1977
|
+
"body-copy-bulk",
|
|
1978
|
+
"default",
|
|
1979
|
+
"size"
|
|
1980
|
+
]
|
|
1981
|
+
},
|
|
1982
|
+
"line-height": {
|
|
1983
|
+
"value": "1.71",
|
|
1984
|
+
"original": {
|
|
1985
|
+
"value": "1.71"
|
|
1986
|
+
},
|
|
1987
|
+
"name": "MdsFontTypeBodyCopyBulkDefaultLineHeight",
|
|
1988
|
+
"attributes": {
|
|
1989
|
+
"category": "font",
|
|
1990
|
+
"type": "type",
|
|
1991
|
+
"item": "body-copy-bulk",
|
|
1992
|
+
"subitem": "default",
|
|
1993
|
+
"state": "line-height"
|
|
1994
|
+
},
|
|
1995
|
+
"path": [
|
|
1996
|
+
"font",
|
|
1997
|
+
"type",
|
|
1998
|
+
"body-copy-bulk",
|
|
1999
|
+
"default",
|
|
2000
|
+
"line-height"
|
|
2001
|
+
]
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
"sm": {
|
|
2005
|
+
"size": {
|
|
2006
|
+
"value": "16px",
|
|
2007
|
+
"original": {
|
|
2008
|
+
"value": "16px"
|
|
2009
|
+
},
|
|
2010
|
+
"name": "MdsFontTypeBodyCopyBulkSmSize",
|
|
2011
|
+
"attributes": {
|
|
2012
|
+
"category": "font",
|
|
2013
|
+
"type": "type",
|
|
2014
|
+
"item": "body-copy-bulk",
|
|
2015
|
+
"subitem": "sm",
|
|
2016
|
+
"state": "size"
|
|
2017
|
+
},
|
|
2018
|
+
"path": [
|
|
2019
|
+
"font",
|
|
2020
|
+
"type",
|
|
2021
|
+
"body-copy-bulk",
|
|
2022
|
+
"sm",
|
|
2023
|
+
"size"
|
|
2024
|
+
]
|
|
2025
|
+
},
|
|
2026
|
+
"line-height": {
|
|
2027
|
+
"value": "1.75",
|
|
2028
|
+
"original": {
|
|
2029
|
+
"value": "1.75"
|
|
2030
|
+
},
|
|
2031
|
+
"name": "MdsFontTypeBodyCopyBulkSmLineHeight",
|
|
2032
|
+
"attributes": {
|
|
2033
|
+
"category": "font",
|
|
2034
|
+
"type": "type",
|
|
2035
|
+
"item": "body-copy-bulk",
|
|
2036
|
+
"subitem": "sm",
|
|
2037
|
+
"state": "line-height"
|
|
2038
|
+
},
|
|
2039
|
+
"path": [
|
|
2040
|
+
"font",
|
|
2041
|
+
"type",
|
|
2042
|
+
"body-copy-bulk",
|
|
2043
|
+
"sm",
|
|
2044
|
+
"line-height"
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"md": {
|
|
2049
|
+
"size": {
|
|
2050
|
+
"value": "18px",
|
|
2051
|
+
"original": {
|
|
2052
|
+
"value": "18px"
|
|
2053
|
+
},
|
|
2054
|
+
"name": "MdsFontTypeBodyCopyBulkMdSize",
|
|
2055
|
+
"attributes": {
|
|
2056
|
+
"category": "font",
|
|
2057
|
+
"type": "type",
|
|
2058
|
+
"item": "body-copy-bulk",
|
|
2059
|
+
"subitem": "md",
|
|
2060
|
+
"state": "size"
|
|
2061
|
+
},
|
|
2062
|
+
"path": [
|
|
2063
|
+
"font",
|
|
2064
|
+
"type",
|
|
2065
|
+
"body-copy-bulk",
|
|
2066
|
+
"md",
|
|
2067
|
+
"size"
|
|
2068
|
+
]
|
|
2069
|
+
},
|
|
2070
|
+
"line-height": {
|
|
2071
|
+
"value": "1.67",
|
|
2072
|
+
"original": {
|
|
2073
|
+
"value": "1.67"
|
|
2074
|
+
},
|
|
2075
|
+
"name": "MdsFontTypeBodyCopyBulkMdLineHeight",
|
|
2076
|
+
"attributes": {
|
|
2077
|
+
"category": "font",
|
|
2078
|
+
"type": "type",
|
|
2079
|
+
"item": "body-copy-bulk",
|
|
2080
|
+
"subitem": "md",
|
|
2081
|
+
"state": "line-height"
|
|
2082
|
+
},
|
|
2083
|
+
"path": [
|
|
2084
|
+
"font",
|
|
2085
|
+
"type",
|
|
2086
|
+
"body-copy-bulk",
|
|
2087
|
+
"md",
|
|
2088
|
+
"line-height"
|
|
2089
|
+
]
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"lg": {
|
|
2093
|
+
"size": {
|
|
2094
|
+
"value": "16px",
|
|
2095
|
+
"original": {
|
|
2096
|
+
"value": "16px"
|
|
2097
|
+
},
|
|
2098
|
+
"name": "MdsFontTypeBodyCopyBulkLgSize",
|
|
2099
|
+
"attributes": {
|
|
2100
|
+
"category": "font",
|
|
2101
|
+
"type": "type",
|
|
2102
|
+
"item": "body-copy-bulk",
|
|
2103
|
+
"subitem": "lg",
|
|
2104
|
+
"state": "size"
|
|
2105
|
+
},
|
|
2106
|
+
"path": [
|
|
2107
|
+
"font",
|
|
2108
|
+
"type",
|
|
2109
|
+
"body-copy-bulk",
|
|
2110
|
+
"lg",
|
|
2111
|
+
"size"
|
|
2112
|
+
]
|
|
2113
|
+
},
|
|
2114
|
+
"line-height": {
|
|
2115
|
+
"value": "1.75",
|
|
2116
|
+
"original": {
|
|
2117
|
+
"value": "1.75"
|
|
2118
|
+
},
|
|
2119
|
+
"name": "MdsFontTypeBodyCopyBulkLgLineHeight",
|
|
2120
|
+
"attributes": {
|
|
2121
|
+
"category": "font",
|
|
2122
|
+
"type": "type",
|
|
2123
|
+
"item": "body-copy-bulk",
|
|
2124
|
+
"subitem": "lg",
|
|
2125
|
+
"state": "line-height"
|
|
2126
|
+
},
|
|
2127
|
+
"path": [
|
|
2128
|
+
"font",
|
|
2129
|
+
"type",
|
|
2130
|
+
"body-copy-bulk",
|
|
2131
|
+
"lg",
|
|
2132
|
+
"line-height"
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
1959
2137
|
"pica": {
|
|
1960
2138
|
"default": {
|
|
1961
2139
|
"size": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
3
|
Do not edit directly
|
|
4
|
-
Generated on Thu,
|
|
4
|
+
Generated on Thu, 15 Aug 2019 16:50:36 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
$mds-color-brand-1-base: #1b75bb !default;
|
|
@@ -96,6 +96,14 @@ $mds-font-type-body-copy-md-size: 18px !default;
|
|
|
96
96
|
$mds-font-type-body-copy-md-line-height: 1.34 !default;
|
|
97
97
|
$mds-font-type-body-copy-lg-size: 16px !default;
|
|
98
98
|
$mds-font-type-body-copy-lg-line-height: 1.38 !default;
|
|
99
|
+
$mds-font-type-body-copy-bulk-default-size: 14px !default;
|
|
100
|
+
$mds-font-type-body-copy-bulk-default-line-height: 1.71 !default;
|
|
101
|
+
$mds-font-type-body-copy-bulk-sm-size: 16px !default;
|
|
102
|
+
$mds-font-type-body-copy-bulk-sm-line-height: 1.75 !default;
|
|
103
|
+
$mds-font-type-body-copy-bulk-md-size: 18px !default;
|
|
104
|
+
$mds-font-type-body-copy-bulk-md-line-height: 1.67 !default;
|
|
105
|
+
$mds-font-type-body-copy-bulk-lg-size: 16px !default;
|
|
106
|
+
$mds-font-type-body-copy-bulk-lg-line-height: 1.75 !default;
|
|
99
107
|
$mds-font-type-pica-default-size: 15px !default;
|
|
100
108
|
$mds-font-type-pica-default-line-height: 1.34 !default;
|
|
101
109
|
$mds-font-type-pica-sm-size: 16px !default;
|
|
@@ -332,6 +340,24 @@ $tokens: (
|
|
|
332
340
|
'line-height': $mds-font-type-body-copy-lg-line-height
|
|
333
341
|
)
|
|
334
342
|
),
|
|
343
|
+
'body-copy-bulk': (
|
|
344
|
+
'default': (
|
|
345
|
+
'size': $mds-font-type-body-copy-bulk-default-size,
|
|
346
|
+
'line-height': $mds-font-type-body-copy-bulk-default-line-height
|
|
347
|
+
),
|
|
348
|
+
'sm': (
|
|
349
|
+
'size': $mds-font-type-body-copy-bulk-sm-size,
|
|
350
|
+
'line-height': $mds-font-type-body-copy-bulk-sm-line-height
|
|
351
|
+
),
|
|
352
|
+
'md': (
|
|
353
|
+
'size': $mds-font-type-body-copy-bulk-md-size,
|
|
354
|
+
'line-height': $mds-font-type-body-copy-bulk-md-line-height
|
|
355
|
+
),
|
|
356
|
+
'lg': (
|
|
357
|
+
'size': $mds-font-type-body-copy-bulk-lg-size,
|
|
358
|
+
'line-height': $mds-font-type-body-copy-bulk-lg-line-height
|
|
359
|
+
)
|
|
360
|
+
),
|
|
335
361
|
'pica': (
|
|
336
362
|
'default': (
|
|
337
363
|
'size': $mds-font-type-pica-default-size,
|
package/dist/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Do not edit directly
|
|
3
|
-
Generated on Thu,
|
|
3
|
+
Generated on Thu, 15 Aug 2019 16:50:36 GMT
|
|
4
4
|
*/
|
|
5
5
|
html,
|
|
6
6
|
body,
|
|
@@ -514,11 +514,12 @@ body {
|
|
|
514
514
|
margin: 0 0 20px 0;
|
|
515
515
|
padding: 0;
|
|
516
516
|
list-style-type: none;
|
|
517
|
-
list-style-position:
|
|
517
|
+
list-style-position: outside;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
.mds-
|
|
520
|
+
.mds-list__item {
|
|
521
521
|
margin-bottom: 8px;
|
|
522
|
+
margin-left: 16px;
|
|
522
523
|
}
|
|
523
524
|
|
|
524
525
|
.mds-list--bullet {
|
|
@@ -554,6 +555,10 @@ body {
|
|
|
554
555
|
margin-right: 8px;
|
|
555
556
|
}
|
|
556
557
|
|
|
558
|
+
.mds-list--multilevel .mds-list {
|
|
559
|
+
margin: 8px 0 0 0;
|
|
560
|
+
}
|
|
561
|
+
|
|
557
562
|
/* Source: https://github.com/kristoferjoseph/flexboxgrid */
|
|
558
563
|
.mds-grid-row {
|
|
559
564
|
box-sizing: border-box;
|
|
@@ -1683,6 +1688,32 @@ body {
|
|
|
1683
1688
|
}
|
|
1684
1689
|
}
|
|
1685
1690
|
|
|
1691
|
+
.mds-font-body-copy-bulk {
|
|
1692
|
+
font-size: 0.875rem;
|
|
1693
|
+
line-height: 1.71;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
@media (min-width: 25em) {
|
|
1697
|
+
.mds-font-body-copy-bulk {
|
|
1698
|
+
font-size: 1rem;
|
|
1699
|
+
line-height: 1.75;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
@media (min-width: 37.5em) {
|
|
1704
|
+
.mds-font-body-copy-bulk {
|
|
1705
|
+
font-size: 1.125rem;
|
|
1706
|
+
line-height: 1.67;
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
@media (min-width: 63em) {
|
|
1711
|
+
.mds-font-body-copy-bulk {
|
|
1712
|
+
font-size: 1rem;
|
|
1713
|
+
line-height: 1.75;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1686
1717
|
.mds-font-pica {
|
|
1687
1718
|
font-size: 0.9375rem;
|
|
1688
1719
|
line-height: 1.34;
|
|
@@ -4618,3 +4649,30 @@ body {
|
|
|
4618
4649
|
.mds-border-radius-none {
|
|
4619
4650
|
border-radius: 0;
|
|
4620
4651
|
}
|
|
4652
|
+
|
|
4653
|
+
.mds-edited-text ul,
|
|
4654
|
+
.mds-edited-text ol {
|
|
4655
|
+
margin: 0 0 20px 0;
|
|
4656
|
+
padding: 0;
|
|
4657
|
+
list-style-position: outside;
|
|
4658
|
+
}
|
|
4659
|
+
|
|
4660
|
+
.mds-edited-text ul ul,
|
|
4661
|
+
.mds-edited-text ul ol,
|
|
4662
|
+
.mds-edited-text ol ul,
|
|
4663
|
+
.mds-edited-text ol ol {
|
|
4664
|
+
margin: 8px 0 0 0;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
.mds-edited-text ul {
|
|
4668
|
+
list-style-type: disc;
|
|
4669
|
+
}
|
|
4670
|
+
|
|
4671
|
+
.mds-edited-text ol {
|
|
4672
|
+
list-style-type: decimal;
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
.mds-edited-text li {
|
|
4676
|
+
margin-bottom: 8px;
|
|
4677
|
+
margin-left: 16px;
|
|
4678
|
+
}
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{%- endif -%}
|
|
39
39
|
{% endset -%}
|
|
40
40
|
|
|
41
|
-
<section class="mds-tabs__panel{%- if not item.selected %} mds-tabs__panel--hidden {%- endif -%}" id="{{ tabPanelId }}">{{ item.content | safe }}</section>
|
|
41
|
+
<section class="mds-tabs__panel{%- if not item.selected %} mds-tabs__panel--hidden {%- endif -%}{% if item.contentClasses %} {{ item.contentClasses }}{% endif %}" id="{{ tabPanelId }}">{{ item.content | safe }}</section>
|
|
42
42
|
{%- endfor -%}
|
|
43
43
|
</div>
|
|
44
44
|
{% endif %}
|
|
@@ -23,6 +23,7 @@ module.exports = {
|
|
|
23
23
|
id: 'next-week',
|
|
24
24
|
content:
|
|
25
25
|
'<strong>Next week:</strong><ul><li>Lorem</li><li>ipsum</li><li>dolor</li><li>sit</li><li>amet</li></ul><p>next week</p>',
|
|
26
|
+
contentClasses: 'mds-edited-text',
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
label: 'Next month',
|
|
@@ -54,6 +55,7 @@ module.exports = {
|
|
|
54
55
|
label: 'Seagulls',
|
|
55
56
|
content:
|
|
56
57
|
'<strong>Seagulls:</strong><ul><li>Lorem</li><li>ipsum</li><li>dolor</li><li>sit</li><li>amet</li></ul><p>next week</p>',
|
|
58
|
+
contentClasses: 'mds-edited-text',
|
|
57
59
|
},
|
|
58
60
|
],
|
|
59
61
|
},
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<div class="mds-edited-text">
|
|
2
|
+
<ol>
|
|
3
|
+
<li>
|
|
4
|
+
one
|
|
5
|
+
</li>
|
|
6
|
+
<li>
|
|
7
|
+
<a href="#two">two</a>
|
|
8
|
+
</li>
|
|
9
|
+
<li>three
|
|
10
|
+
<ul>
|
|
11
|
+
<li>first</li>
|
|
12
|
+
<li>second</li>
|
|
13
|
+
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget metus nisi. Morbi sollicitudin, erat sed elementum suscipit, dolor nibh sagittis dui, at ultrices massa erat non ipsum. Nam euismod dapibus augue, sit amet efficitur urna malesuada vitae. Sed tincidunt felis a turpis vulputate, vitae sodales nibh imperdiet. Donec ullamcorper risus quis convallis mollis. Nullam nec magna lectus. Etiam in lobortis purus. Duis vestibulum, nibh sit amet commodo porttitor, nunc metus eleifend magna, at venenatis tortor justo at eros. Vivamus eu tincidunt mi, vel fermentum tortor. Aenean tempus, magna a scelerisque consequat, libero tortor porttitor neque, nec aliquam lorem purus sodales diam. Pellentesque a orci vitae orci fringilla sollicitudin quis vitae leo.
|
|
14
|
+
<ul>
|
|
15
|
+
<li>once</li>
|
|
16
|
+
<li>twice</li>
|
|
17
|
+
</ul>
|
|
18
|
+
</li>
|
|
19
|
+
</ul>
|
|
20
|
+
</li>
|
|
21
|
+
<li>
|
|
22
|
+
<a href="#two">four</a>
|
|
23
|
+
</li>
|
|
24
|
+
<li>
|
|
25
|
+
<a href="#two">five</a>
|
|
26
|
+
</li>
|
|
27
|
+
</ol>
|
|
28
|
+
</div>
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
margin: 0 0 ($mds-size-baseline * 5) 0;
|
|
3
3
|
padding: 0;
|
|
4
4
|
list-style-type: none;
|
|
5
|
-
list-style-position:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
list-style-position: outside;
|
|
6
|
+
}
|
|
7
|
+
.mds-list__item {
|
|
8
|
+
margin-bottom: $mds-size-baseline * 2;
|
|
9
|
+
margin-left: $mds-size-baseline * 4;
|
|
10
10
|
}
|
|
11
|
+
|
|
11
12
|
.mds-list--bullet {
|
|
12
13
|
list-style-type: disc;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
.mds-list--number {
|
|
15
17
|
list-style-type: decimal;
|
|
16
18
|
}
|
|
@@ -37,4 +39,8 @@
|
|
|
37
39
|
display: inline-block;
|
|
38
40
|
margin-bottom: 0;
|
|
39
41
|
margin-right: $mds-size-baseline * 2;
|
|
40
|
-
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.mds-list--multilevel .mds-list {
|
|
45
|
+
margin: ($mds-size-baseline * 2) 0 0 0;
|
|
46
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.mds-edited-text {
|
|
2
|
+
ul,
|
|
3
|
+
ol {
|
|
4
|
+
margin: 0 0 ($mds-size-baseline * 5) 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
list-style-position: outside;
|
|
7
|
+
ul,
|
|
8
|
+
ol {
|
|
9
|
+
margin: ($mds-size-baseline * 2) 0 0 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
ul {
|
|
13
|
+
list-style-type: disc;
|
|
14
|
+
}
|
|
15
|
+
ol {
|
|
16
|
+
list-style-type: decimal;
|
|
17
|
+
}
|
|
18
|
+
li {
|
|
19
|
+
margin-bottom: $mds-size-baseline * 2;
|
|
20
|
+
margin-left: $mds-size-baseline * 4;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/scss/index.scss
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
@import 'functions/_index';
|
|
5
5
|
@import 'utilities/_index';
|
|
6
6
|
@import 'core/_index';
|
|
7
|
-
|
|
8
|
-
@import '../components/icons/icons';
|
|
9
|
-
@import '../components/button/button';
|
|
10
|
-
@import '../components/card/card';
|
|
11
|
-
@import '../components/section-title/section-title';
|
|
12
|
-
@import '../components/tabs/tabs';
|
|
7
|
+
@import 'components/_index';
|
|
13
8
|
|
|
14
9
|
// Should stay last to override other classes
|
|
15
|
-
@import 'helpers/_index';
|
|
10
|
+
@import 'helpers/_index';
|
package/src/tokens/font.json
CHANGED
|
@@ -119,6 +119,40 @@
|
|
|
119
119
|
"line-height": { "value": "1.38" }
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
+
"body-copy-bulk": {
|
|
123
|
+
"default": {
|
|
124
|
+
"size": {
|
|
125
|
+
"value": "14px"
|
|
126
|
+
},
|
|
127
|
+
"line-height": {
|
|
128
|
+
"value": "1.71"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"sm": {
|
|
132
|
+
"size": {
|
|
133
|
+
"value": "16px"
|
|
134
|
+
},
|
|
135
|
+
"line-height": {
|
|
136
|
+
"value": "1.75"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"md": {
|
|
140
|
+
"size": {
|
|
141
|
+
"value": "18px"
|
|
142
|
+
},
|
|
143
|
+
"line-height": {
|
|
144
|
+
"value": "1.67"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"lg": {
|
|
148
|
+
"size": {
|
|
149
|
+
"value": "16px"
|
|
150
|
+
},
|
|
151
|
+
"line-height": {
|
|
152
|
+
"value": "1.75"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
122
156
|
"pica": {
|
|
123
157
|
"default": {
|
|
124
158
|
"size": { "value": "15px" },
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
<h4>Body copy (Usage: Body copy):</h4>
|
|
17
17
|
<p class="mds-font-body-copy">The quick brown fox jumps over the lazy dog</p>
|
|
18
18
|
|
|
19
|
+
<h4>Body copy bulk (Usage: Body copy long text):</h4>
|
|
20
|
+
<p class="mds-font-body-copy-bulk">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eleifend accumsan elementum. Praesent quis facilisis elit. Donec vel suscipit leo. Cras tincidunt lacus sed mauris fringilla sodales. Donec facilisis suscipit augue, id pharetra nisl pharetra vitae. Etiam sed est id nulla ultricies accumsan sit amet ac urna. Etiam a neque eu erat rhoncus sollicitudin. Aenean maximus, mauris vitae porttitor varius, metus massa porttitor nulla, ac iaculis turpis tellus quis dui. Maecenas pharetra a ligula sed imperdiet.</p>
|
|
21
|
+
|
|
19
22
|
<h4>Pica (Usage: Index links, titles or headlines):</h4>
|
|
20
23
|
<p class="mds-font-pica">The quick brown fox jumps over the lazy dog</p>
|
|
21
24
|
|
package/src/typography/lists.njk
CHANGED
|
@@ -33,4 +33,32 @@
|
|
|
33
33
|
<li class="mds-list__item">One</li>
|
|
34
34
|
<li class="mds-list__item">Two</li>
|
|
35
35
|
<li class="mds-list__item">Three</li>
|
|
36
|
-
</ul>
|
|
36
|
+
</ul>
|
|
37
|
+
|
|
38
|
+
<h2>Multilevel list</h2>
|
|
39
|
+
<ol class="mds-list mds-list--number mds-list--multilevel">
|
|
40
|
+
<li class="mds-list__item">
|
|
41
|
+
one
|
|
42
|
+
</li>
|
|
43
|
+
<li class="mds-list__item">
|
|
44
|
+
<a href="#two">two</a>
|
|
45
|
+
</li>
|
|
46
|
+
<li class="mds-list__item">three
|
|
47
|
+
<ul class="mds-list mds-list--bullet">
|
|
48
|
+
<li class="mds-list__item">first</li>
|
|
49
|
+
<li class="mds-list__item">second</li>
|
|
50
|
+
<li class="mds-list__item">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget metus nisi. Morbi sollicitudin, erat sed elementum suscipit, dolor nibh sagittis dui, at ultrices massa erat non ipsum. Nam euismod dapibus augue, sit amet efficitur urna malesuada vitae. Sed tincidunt felis a turpis vulputate, vitae sodales nibh imperdiet. Donec ullamcorper risus quis convallis mollis. Nullam nec magna lectus. Etiam in lobortis purus. Duis vestibulum, nibh sit amet commodo porttitor, nunc metus eleifend magna, at venenatis tortor justo at eros. Vivamus eu tincidunt mi, vel fermentum tortor. Aenean tempus, magna a scelerisque consequat, libero tortor porttitor neque, nec aliquam lorem purus sodales diam. Pellentesque a orci vitae orci fringilla sollicitudin quis vitae leo.
|
|
51
|
+
<ul class="mds-list mds-list--bullet">
|
|
52
|
+
<li class="mds-list__item">once</li>
|
|
53
|
+
<li class="mds-list__item">twice</li>
|
|
54
|
+
</ul>
|
|
55
|
+
</li>
|
|
56
|
+
</ul>
|
|
57
|
+
</li>
|
|
58
|
+
<li class="mds-list__item">
|
|
59
|
+
<a href="#two">four</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li class="mds-list__item">
|
|
62
|
+
<a href="#two">five</a>
|
|
63
|
+
</li>
|
|
64
|
+
</ol>
|