@funidata/fudis-core 0.0.2-alpha.5 → 0.0.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.
- package/_index.scss +1 -0
- package/package.json +1 -1
- package/src/foundations/typography/classes.scss +122 -0
package/_index.scss
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
@forward './src/foundations/grid/mixins';
|
|
18
18
|
@forward './src/foundations/spacing/mixins';
|
|
19
19
|
@forward './src/foundations/typography/mixins';
|
|
20
|
+
@forward './src/foundations/typography/classes';
|
|
20
21
|
@forward './src/foundations/utilities/mixins';
|
|
21
22
|
@forward './src/foundations/z-index/mixins';
|
|
22
23
|
@forward './src/foundations/spacing/classes';
|
package/package.json
CHANGED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use './mixins.scss' as typography;
|
|
2
|
+
@use './../colors/mixins.scss' as colorMixins;
|
|
3
|
+
@use './../focus/mixins.scss' as focus;
|
|
4
|
+
@use './../utilities/mixins.scss' as utilities;
|
|
5
|
+
|
|
6
|
+
.fudis-heading {
|
|
7
|
+
@include colorMixins.text-color('gray-dark');
|
|
8
|
+
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
margin-top: 0;
|
|
11
|
+
|
|
12
|
+
// For keyboard users, where Heading tag is focused manually
|
|
13
|
+
&:focus-visible {
|
|
14
|
+
@include focus.focus-generic;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__variant {
|
|
18
|
+
&__xxs {
|
|
19
|
+
@include typography.heading-xxs;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__xs {
|
|
23
|
+
@include typography.heading-xs;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__sm {
|
|
27
|
+
@include typography.heading-sm;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__md {
|
|
31
|
+
@include typography.heading-md;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__lg {
|
|
35
|
+
@include typography.heading-lg;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__xl {
|
|
39
|
+
@include typography.heading-xl;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__xxl {
|
|
43
|
+
@include typography.heading-xxl;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__align {
|
|
48
|
+
&__left {
|
|
49
|
+
text-align: left;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__right {
|
|
53
|
+
text-align: right;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__center {
|
|
57
|
+
text-align: center;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.fudis-body-text {
|
|
63
|
+
@include utilities.box-reset;
|
|
64
|
+
@include colorMixins.text-color('gray-dark');
|
|
65
|
+
|
|
66
|
+
&__sm-regular {
|
|
67
|
+
@include typography.body-text-sm-regular;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__md-regular {
|
|
71
|
+
@include typography.body-text-md-regular;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__lg-regular {
|
|
75
|
+
@include typography.body-text-lg-regular;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__md-light {
|
|
79
|
+
@include typography.body-text-md-light;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__lg-light {
|
|
83
|
+
@include typography.body-text-lg-light;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__left {
|
|
87
|
+
text-align: left;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__right {
|
|
91
|
+
text-align: right;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__center {
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.fudis-link {
|
|
100
|
+
&__size {
|
|
101
|
+
&__inherit {
|
|
102
|
+
@include typography.link-inherit;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&__md {
|
|
106
|
+
@include typography.link-md;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__lg {
|
|
110
|
+
@include typography.link-lg;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.fudis-text-emptystate {
|
|
116
|
+
@include typography.text-emptystate;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.fudis-table-caption {
|
|
120
|
+
@include typography.table-caption();
|
|
121
|
+
}
|
|
122
|
+
|