-
Notifications
You must be signed in to change notification settings - Fork 6.8k
/
Copy path_api.scss
163 lines (137 loc) · 3.35 KB
/
_api.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Styles for API docs generated via dgeni from material2 source JsDocs.
.docs-api {
max-width: 100%;
}
.docs-api-method-name-cell,
.docs-api-method-returns-type,
.docs-api-method-parameter-type,
.docs-api a {
color: var(--mat-sys-primary);
}
.docs-api-modifier-method-marker {
background-color: var(--mat-sys-primary-container);
color: var(--mat-sys-on-primary-container);
}
// Force the top-level API docs header to be hidden, since this is already
// captured in the top nav-bar.
.docs-api-h1 {
display: none !important;
}
// Prevent p tags from not breaking, causing x axis overflows.
.docs-api > p {
word-break: break-word;
}
.docs-api-module {
display: flex;
align-items: center;
}
.docs-api-module-import {
margin: 0px;
}
.docs-api-class-name,
.docs-api-module-import,
.docs-api-class-selector-name,
.docs-api-class-export-name {
background: color-mix(in srgb, var(--mat-sys-primary-container) 25%, transparent);
}
// Top header, e.g., "API documentation for dialog".
.docs-api-h2 {
font-size: 30px;
}
// Section header, e.g. "Services" or "Directives"
.docs-api-h3 {
font-size: 24px;
font-weight: 400;
margin-top: 45px;
border-bottom: 1px solid var(--mat-sys-outline-variant)
}
.docs-api-h4 {
font-size: 18px;
font-weight: 400;
}
.docs-api-class-description {
font-size: 12px;
}
.docs-api-property-name {
margin: 0;
}
.docs-api-method-name-row,
.docs-api-method-parameter-row,
.docs-api-properties-name-cell {
font-family: 'Roboto Mono', monospace;
font-weight: 600;
}
.docs-api-properties-name-cell,
.docs-api-method-parameter-row {
font-size: 14px;
}
.docs-api-method-parameter-type {
font-size: 12px;
}
.docs-api-class-name,
.docs-api-module-import {
display: inline;
}
.docs-api-method-name-cell {
font-weight: 700;
font-size: 18px;
}
.docs-api-method-parameters-header-cell,
.docs-api-method-returns-header-cell {
font-size: 14px;
}
.docs-api-input-marker,
.docs-api-output-marker,
.docs-api-deprecated-marker {
// Size corresponding to "caption"-style text in the spec.
font-size: 12px;
}
.docs-api-deprecated-marker {
margin-right: 8px;
}
.docs-api-module-import,
.docs-api-class-selector-name,
.docs-api-class-export-name {
font-family: 'Roboto Mono', monospace;
padding: 3px;
}
.docs-api-class-extends-type {
text-decoration: none;
border-bottom: 1px dotted;
color: inherit;
font-weight: 400;
font-size: 18px;
}
.docs-api-modifier-method-marker {
display: inline-block;
vertical-align: baseline;
padding: 2px 7px;
margin-right: 12px;
border-radius: 5px;
font-size: 13px;
user-select: none;
}
.docs-api-deprecated-marker,
.docs-api-class-deprecated-marker,
.docs-api-interface-deprecated-marker {
display: inline-block;
font-weight: bold;
position: relative;
// We want to set width and height according to our parent
// deprecated marker element because the component that presents
// the tooltip for depcreated message is empty by default and
// empty element can not be able to show up therefore the tooltip
// wont show either. This makes sure that our tooltip component
// is aligned with deprecated marker in position and size.
& .deprecated-content {
position: absolute;
width: 100%;
height: 100%;
top: 0;
border-bottom: 1px dotted grey;
cursor: help;
}
}
.docs-api-deprecated-marker + .docs-api-property-name {
text-decoration: line-through;
}