File tree Expand file tree Collapse file tree 2 files changed +78
-73
lines changed
tools/transforms/templates/api Expand file tree Collapse file tree 2 files changed +78
-73
lines changed Original file line number Diff line number Diff line change 1
1
.api-section {
2
- position : relative ;
3
-
4
- pre {
5
- white-space : pre-wrap ;
2
+ position : relative ;
3
+
4
+ pre {
5
+ white-space : pre-wrap ;
6
+ }
7
+
8
+ table .api-table {
9
+ min-width : 680px ;
10
+
11
+ thead th {
12
+ color : white ;
13
+ font-size : 16px ;
14
+ background-color : $pink ;
15
+ border-radius : 4px 4px 0 0 ;
16
+ text-transform : none ;
17
+ padding : 8px 24px ;
6
18
}
7
19
8
- table .api-table {
9
- min-width : 680px ;
10
-
11
- thead th {
12
- color : white ;
13
- font-size : 16px ;
14
- background-color : $pink ;
15
- border-radius : 4px 4px 0 0 ;
16
- text-transform : none ;
17
- padding : 8px 24px ;
18
- }
19
-
20
- tbody {
21
- pre {
22
- white-space : normal ;
23
- margin : 4px ;
24
- padding : 4px 16px ;
25
- }
26
-
27
- td , th {
28
- padding : 0 ;
29
- }
30
-
31
- th {
32
- max-width : 150px ;
33
- }
34
- }
35
-
20
+ tbody {
21
+ pre {
22
+ white-space : normal ;
23
+ margin : 4px ;
24
+ padding : 4px 16px ;
25
+ }
26
+
27
+ td ,
28
+ th {
29
+ padding : 0 ;
30
+ }
31
+
32
+ th {
33
+ max-width : 150px ;
34
+ }
36
35
}
36
+ }
37
37
}
38
38
39
39
.api-body {
40
+ max-width : 1200px ;
40
41
41
- max-width : 1200px ;
42
-
43
- table {
44
-
45
- th {
46
- text-transform : none ;
47
- font-size : 16px ;
48
- font-weight : bold ;
49
- }
50
-
51
- tr {
52
- border-bottom : 1px solid $lightgray ;
53
- }
54
-
55
- td {
56
- vertical-align : middle ;
57
- }
42
+ table {
43
+ th {
44
+ text-transform : none ;
45
+ font-size : 16px ;
46
+ font-weight : bold ;
47
+ }
58
48
59
- hr {
60
- margin : 16 px 0 ;
61
- }
49
+ tr {
50
+ border-bottom : 1 px solid $lightgray ;
51
+ }
62
52
63
- tr :last-child {
64
- border-bottom : none ;
65
- }
53
+ td {
54
+ vertical-align : middle ;
55
+ }
66
56
67
- & .item-table {
68
- td {
69
- padding : 32px ;
70
- }
71
- }
57
+ hr {
58
+ margin : 16px 0 ;
59
+ }
72
60
73
- & .list-table {
74
- td {
75
- padding : 16px 24px ;
76
- }
77
- }
61
+ tr :last-child {
62
+ border-bottom : none ;
78
63
}
79
64
80
- /* used to target the short description */
81
- > p :nth-child (2 ) {
82
- border-left : 5px solid $pink ;
83
- font-size : 1rem ;
84
- line-height : 1.25 ;
85
- padding-left : .5rem ;
65
+ & .item-table {
66
+ td {
67
+ padding : 32px ;
68
+ }
69
+ }
86
70
71
+ & .list-table {
72
+ td {
73
+ padding : 16px 24px ;
74
+ }
75
+ }
76
+ }
77
+
78
+ /* used to target the short description */
79
+ > p :nth-child (2 ) {
80
+ border-left : 5px solid $pink ;
81
+ font-size : 1rem ;
82
+ line-height : 1.25 ;
83
+ padding-left : 0.5rem ;
84
+ }
85
+
86
+ .export-list {
87
+ a {
88
+ & .deprecated {
89
+ text-decoration : line-through ;
90
+ }
87
91
}
88
- }
92
+ }
93
+ }
Original file line number Diff line number Diff line change 9
9
< ul >
10
10
{% for export in doc.exports -%}
11
11
{% if not export.duplicateOf %}
12
- < li > < a href ="{$ export.path $} "> {$ export.name $}</ a > </ li >
12
+ < li > < a {% if export.deprecated %} class =" deprecated " {% endif %} href ="{$ export.path $} "> {$ export.name $}</ a > </ li >
13
13
{% endif %}
14
14
{%- endfor %}
15
15
</ ul >
You can’t perform that action at this time.
0 commit comments