File tree Expand file tree Collapse file tree 6 files changed +66
-53
lines changed
docs-app/src/components/SideNav Expand file tree Collapse file tree 6 files changed +66
-53
lines changed Original file line number Diff line number Diff line change 1
- < h1 > < span class ="ray-text--h1 "> Heading 1</ span > </ h1 >
2
- < h2 > < span class ="ray-text--h2 "> Heading 2</ span > </ h1 >
3
- < h3 > < span class ="ray-text--h3 "> Heading 3</ span > </ h1 >
4
- < h4 > < span class ="ray-text--h4 "> Heading 4</ span > </ h1 >
5
- < h5 > < span class ="ray-text--h5 "> Heading 5</ span > </ h1 >
6
- < h6 > < span class ="ray-text--h6 "> Heading 6</ span > </ h1 >
1
+ < span class ="ray-text--h1 "> Heading 1</ span > < br / >
2
+ < span class ="ray-text--h2 "> Heading 2</ span > < br / >
3
+ < span class ="ray-text--h3 "> Heading 3</ span > < br / >
4
+ < span class ="ray-text--h4 "> Heading 4</ span > < br / >
5
+ < span class ="ray-text--h5 "> Heading 5</ span > < br / >
6
+ < span class ="ray-text--h6 "> Heading 6</ span > < br / >
Original file line number Diff line number Diff line change
1
+ < ol >
2
+ < li > Item one</ li >
3
+ < li > Item two</ li >
4
+ < li > Item three</ li >
5
+ < li >
6
+ Item four
7
+ < ul >
8
+ < li > and a one</ li >
9
+ < li > and a two</ li >
10
+ < li > and a three</ li >
11
+ </ ul >
12
+ </ li >
13
+ < li > Item five</ li >
14
+ </ ol >
Original file line number Diff line number Diff line change @@ -67,6 +67,14 @@ Add a `<footer class="ray-blockquote__footer">` to identify a source.
67
67
>
68
68
</component >
69
69
70
+ ## Lists
71
+
72
+ <component
73
+ component="typography"
74
+ variation="typography-list"
75
+ >
76
+ </component >
77
+
70
78
# Font Family
71
79
72
80
<p class =" ray-text--body-large " >Limiting font-families, a tight type scale, and content limits will keep it tight.</p >
Original file line number Diff line number Diff line change 41
41
}
42
42
}
43
43
}
44
-
45
- ul ,
46
- li {
47
- list-style-type : none ;
48
- margin : 0 ;
49
- padding : 0 ;
50
- }
51
44
}
Original file line number Diff line number Diff line change 3
3
@mixin ray-display-1 {
4
4
font-size : 4rem ;
5
5
line-height : 5.5rem ;
6
+ margin : 0 0 2rem ;
6
7
}
7
8
8
9
@mixin ray-display-2 {
9
10
font-size : 3rem ;
10
11
line-height : 4rem ;
12
+ margin : 0 0 2rem ;
11
13
}
12
14
13
15
@mixin ray-h1 {
14
16
font-size : 2.5rem ;
15
17
line-height : 3.5rem ;
16
- margin-bottom : 1.5rem ;
18
+ margin : 0 0 1.5rem ;
17
19
}
18
20
19
21
@mixin ray-h2 {
20
22
font-size : 2rem ;
21
23
line-height : 2.75rem ;
22
- margin-bottom : 1.5rem ;
24
+ margin : 0 0 1.5rem ;
23
25
}
24
26
25
27
@mixin ray-h3 {
26
28
font-size : 1.5rem ;
27
29
line-height : 2.25rem ;
28
- margin-bottom : 1rem ;
30
+ margin : 0 0 1rem ;
29
31
}
30
32
31
33
@mixin ray-h4 {
32
34
font-size : 1.25rem ;
33
35
line-height : 2rem ;
34
- margin-bottom : 1rem ;
36
+ margin : 0 0 1rem ;
35
37
}
36
38
37
39
@mixin ray-h5 {
38
40
font-size : 1rem ;
39
41
line-height : 1.75rem ;
40
- margin-bottom : 1rem ;
42
+ margin : 0 0 1rem ;
41
43
}
42
44
43
45
@mixin ray-h6 {
44
46
font-size : 0.875rem ;
45
47
line-height : 1.5rem ;
46
- margin-bottom : 1rem ;
48
+ margin : 0 0 1rem ;
47
49
}
48
50
49
51
@mixin ray-body {
50
52
font-size : 1rem ;
51
53
line-height : 1.75rem ;
54
+ margin : 0 0 1rem ;
52
55
}
53
56
54
57
@mixin ray-body-large {
55
58
font-size : 1.25rem ;
56
59
line-height : 2rem ;
60
+ margin : 0 0 1rem ;
57
61
}
58
62
59
63
@mixin ray-body-small {
60
64
font-size : 0.875rem ;
61
65
line-height : 1.5rem ;
66
+ margin : 0 0 0.75rem ;
62
67
}
63
68
64
69
@mixin ray-body-x-small {
65
70
font-size : 0.75rem ;
66
71
line-height : 1.25rem ;
72
+ margin : 0 0 0.5rem ;
67
73
}
68
74
69
75
@include exports (' ray-typography' ) {
70
- h1 ,
71
- h2 ,
72
- h3 ,
73
- h4 ,
74
- h5 ,
75
- h6 {
76
- margin : 0 ;
77
- }
78
-
79
76
.#{$ray-class-prefix } text--display-1 {
80
77
@include ray-display-1 ;
81
78
}
142
139
@include ray-h6 ;
143
140
}
144
141
145
- p {
146
- font-weight : 400 ;
147
- margin : 0 ;
148
- }
149
-
150
- p {
151
- & :not (:last-child ) {
152
- margin-bottom : 1rem ;
153
- }
154
- }
155
-
156
142
.#{$ray-class-prefix } text--body-large {
157
143
@include ray-body ;
158
144
193
179
font-weight : 400 ;
194
180
font-family : $ray-font-stack-mono ;
195
181
color : $ray-color-text-medium ;
182
+ margin : 0 ;
196
183
197
184
& ::before {
198
185
content : ' \2014\00A0 ' ;
199
186
}
200
187
}
201
188
189
+ ul ,
190
+ ol {
191
+ margin : 0.75rem 0 ;
192
+ padding-left : 2rem ;
193
+
194
+ ul ,
195
+ ol {
196
+ margin : 0 0 0.25rem 0 ;
197
+ }
198
+ }
199
+
200
+ ul li {
201
+ list-style-type : circle ;
202
+ }
203
+
204
+ ol {
205
+ list-style-type : decimal ;
206
+ }
207
+
202
208
.#{$ray-class-prefix } running-text {
203
209
h1 ,
204
210
h2 ,
241
247
@extend .#{$ray-class-prefix } text--body-small ;
242
248
}
243
249
244
- ul ,
245
- ol {
246
- margin : 0.75rem 0 ;
247
- padding-left : 2rem ;
248
- }
249
-
250
- ul li {
251
- list-style-type : circle ;
252
- }
253
-
254
- ol li {
255
- list-style-type : decimal ;
256
- }
257
-
258
250
blockquote {
259
251
@extend .#{$ray-class-prefix } blockquote ;
260
252
}
Original file line number Diff line number Diff line change 24
24
transition : left 0.15s ease ;
25
25
padding : 4rem 0 ;
26
26
27
+ ul {
28
+ list-style-type : none ;
29
+ margin : 0 ;
30
+ padding : 0 ;
31
+ }
32
+
27
33
& --open {
28
34
left : 0 ;
29
35
}
You can’t perform that action at this time.
0 commit comments