Skip to content

Commit d533e89

Browse files
committed
make uui text style available without use of uui-text
1 parent 47218fe commit d533e89

File tree

1 file changed

+39
-16
lines changed

1 file changed

+39
-16
lines changed

packages/uui-css/lib/uui-text.css

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
.uui-h1,
2+
.uui-h2,
3+
.uui-h3,
4+
.uui-h4,
5+
.uui-h5,
6+
.uui-a,
7+
.uui-p,
8+
.uui-p-lead,
9+
.uui-small,
10+
.uui-quoteblock,
11+
.uui-ul,
12+
.uui-ol,
113
.uui-text {
214
font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
315
font-size: 15px;
@@ -6,7 +18,7 @@
618
}
719

820
.uui-text h1,
9-
.uui-text .uui-h1 {
21+
.uui-h1 {
1022
font-size: var(--uui-type-h1-size);
1123
line-height: var(--uui-size-layout-4);
1224
font-weight: 300;
@@ -20,13 +32,13 @@
2032
}
2133
.uui-text h1.--no-top-margin,
2234
.uui-text h1:first-child,
23-
.uui-text .uui-h1.--no-top-margin,
24-
.uui-text .uui-h1:first-child {
35+
.uui-h1.--no-top-margin,
36+
.uui-h1:first-child {
2537
margin-top: 0;
2638
}
2739

2840
.uui-text h2,
29-
.uui-text .uui-h2 {
41+
.uui-h2 {
3042
font-size: var(--uui-type-h2-size);
3143
line-height: var(--uui-size-layout-3);
3244
font-weight: 300;
@@ -40,13 +52,13 @@
4052
}
4153
.uui-text h2.--no-top-margin,
4254
.uui-text h2:first-child,
43-
.uui-text .uui-h2.--no-top-margin,
44-
.uui-text .uui-h2:first-child {
55+
.uui-h2.--no-top-margin,
56+
.uui-h2:first-child {
4557
margin-top: 0;
4658
}
4759

4860
.uui-text h3,
49-
.uui-text .uui-h3 {
61+
.uui-h3 {
5062
font-size: var(--uui-type-h3-size);
5163
line-height: var(--uui-size-large);
5264
font-weight: 300;
@@ -56,13 +68,13 @@
5668
}
5769
.uui-text h3.--no-top-margin,
5870
.uui-text h3:first-child,
59-
.uui-text .uui-h3.--no-top-margin,
60-
.uui-text .uui-h3:first-child {
71+
.uui-h3.--no-top-margin,
72+
.uui-h3:first-child {
6173
margin-top: 0;
6274
}
6375

6476
.uui-text h4,
65-
.uui-text .uui-h4 {
77+
.uui-h4 {
6678
font-size: var(--uui-type-h4-size);
6779
line-height: 21px;
6880
font-weight: 400;
@@ -72,13 +84,13 @@
7284
}
7385
.uui-text h4.--no-top-margin,
7486
.uui-text h4:first-child,
75-
.uui-text .uui-h4.--no-top-margin,
76-
.uui-text .uui-h4:first-child {
87+
.uui-h4.--no-top-margin,
88+
.uui-h4:first-child {
7789
margin-top: 0;
7890
}
7991

8092
.uui-text h5,
81-
.uui-text .uui-h5 {
93+
.uui-h5 {
8294
font-size: var(--uui-type-h5-size);
8395
line-height: inherit;
8496
font-weight: 700;
@@ -89,38 +101,45 @@
89101

90102
.uui-text h5.--no-top-margin,
91103
.uui-text h5:first-child,
92-
.uui-text .uui-h5.--no-top-margin,
93-
.uui-text .uui-h5:first-child {
104+
.uui-h5.--no-top-margin,
105+
.uui-h5:first-child {
94106
margin-top: 0;
95107
}
96108

109+
.uui-p,
97110
.uui-text p {
98111
margin-top: var(--uui-size-layout-1);
99112
margin-bottom: var(--uui-size-layout-1);
100113
}
114+
.uui-p-lead,
101115
.uui-text p.uui-lead {
102116
font-size: var(--uui-size-6);
103117
}
104118

119+
.uui-a,
105120
.uui-text a {
106121
color: var(--uui-color-interactive);
107122
}
108123

109-
.uui-text a:link,
124+
.uui-a:link,
125+
.uui-a:active .uui-text a:link,
110126
.uui-text a:active {
111127
color: var(--uui-color-interactive);
112128
}
129+
.uui-a:hover,
113130
.uui-text a:hover {
114131
color: var(--uui-color-interactive-emphasis);
115132
}
116133

134+
.uui-small,
117135
.uui-text small {
118136
display: inline-block;
119137
font-size: var(--uui-type-small-size);
120138
line-height: calc(var(--uui-size-2) * 3);
121139
margin-bottom: var(--uui-size-layout-1);
122140
}
123141

142+
.uui-quoteblock,
124143
.uui-text blockquote {
125144
float: right;
126145
font-size: 15px;
@@ -134,6 +153,7 @@
134153
line-height: inherit;
135154
}
136155

156+
.uui-quoteblock:before,
137157
.uui-text blockquote:before {
138158
content: open-quote;
139159
margin-left: -0.4em;
@@ -143,6 +163,7 @@
143163
font-size: 2em;
144164
}
145165

166+
.uui-quoteblock:after,
146167
.uui-text blockquote:after {
147168
content: close-quote;
148169
margin-left: 0.04em;
@@ -154,13 +175,15 @@
154175
display: inline-block;
155176
}
156177

178+
.uui-ul,
157179
.uui-text ul {
158180
list-style-type: square;
159181
padding-left: var(--uui-size-layout-1);
160182
margin-top: var(--uui-size-layout-1);
161183
margin-bottom: var(--uui-size-layout-1);
162184
}
163185

186+
.uui-ol,
164187
.uui-text ol {
165188
padding-left: var(--uui-size-layout-1);
166189
margin-top: var(--uui-size-layout-1);

0 commit comments

Comments
 (0)