Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit c932eec

Browse files
author
Eric Jimenez
committed
docs(code color fix): restored old color for code in parts that are not the api doc, use the same styling for all links in entire site
1 parent 8a49b4a commit c932eec

File tree

3 files changed

+34
-37
lines changed

3 files changed

+34
-37
lines changed

public/resources/css/base/_type.scss

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ body {
1313
}
1414
}
1515

16+
// NOTE: (ericjim) the new api docs use material design blue 600 links in this fashion.
1617
a {
17-
color: $blueberry;
18+
color: #1E88E5;
19+
text-decoration: none;
20+
21+
&:hover {
22+
text-decoration-color: #1E88E5;
23+
text-decoration: underline;
24+
}
1825
}
1926

2027
code {
21-
background: #eef1f2;
28+
background: $lightgrey;
2229
border-radius: 2px;
2330
font-family: $mono-font;
24-
color: $regal;
31+
color: $darkgrey;
2532
padding: 0px 4px;
26-
}
27-
28-
p code {
29-
border-bottom: 1px dotted $regal;
30-
31-
&:hover {
32-
border-bottom: 1px solid $regal;
33-
}
33+
font-size: 90%;
3434
}
3535

3636
.location-badge {
@@ -118,11 +118,6 @@ p code {
118118
h4 {
119119
font-size: 16px;
120120
}
121-
p {
122-
font-size: 15px;
123-
color: #5c7078;
124-
line-height: 28pt;
125-
}
126121
}
127122

128123
table th,
@@ -234,4 +229,4 @@ table td {
234229
}
235230
}
236231
}
237-
}
232+
}

public/resources/css/module/_api.scss

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,16 @@ input.api-filter {
129129
}
130130
}
131131

132-
a {
133-
code {
134-
color: $ocean;
132+
.class-description-content {
133+
a {
134+
code, .api-doc-code {
135+
color: #1E88E5 !important;
136+
}
135137
}
136138
}
137139

140+
138141
p {
139-
color: #1a2326;
140142

141143
&.selector {
142144
margin: 0;
@@ -146,7 +148,7 @@ input.api-filter {
146148
margin: 0 0 16px 16px !important;
147149
}
148150

149-
code {
151+
.api-doc-code {
150152
border-bottom: 0px;
151153

152154
:hover {
@@ -207,7 +209,7 @@ input.api-filter {
207209
}
208210
}
209211

210-
code {
212+
.api-doc-code {
211213
font-size: 14px;
212214
color: #1a2326;
213215

@@ -230,7 +232,7 @@ input.api-filter {
230232
}
231233
}
232234

233-
code {
235+
.api-doc-code {
234236
font-size: 12px;
235237
}
236238

tools/api-builder/angular.io-package/templates/class.template.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,35 @@
3131
div(flex="20" flex-xs="100")
3232
h2(class="h2-api-docs") Class Overview
3333
div(flex="80" flex-xs="100")
34-
code.no-bg class {$ doc.name $} {
34+
code(class="no-bg api-doc-code") class {$ doc.name $} {
3535

3636
{% if doc.statics.length %}
3737
.div(layout="column")
3838
{% for member in doc.statics %}{% if not member.internal %}
3939
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
4040
a(class="code-anchor" href="#{$ member.name $}-anchor")
41-
code(class="code-background") {$ member.name | indent(6, false) | trim $}
42-
code {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
41+
code(class="code-background api-doc-code") {$ member.name | indent(6, false) | trim $}
42+
code(class="api-doc-code") {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
4343
{% endif %}{% endfor %}
4444
{% endif %}
4545
{% if doc.constructorDoc.name %}
4646
.div(layout="column")
4747
pre(class="prettyprint no-bg-with-indent")
4848
a(class="code-anchor" href="#constructor")
49-
code(class="code-background") {$ doc.constructorDoc.name $}
50-
code {$ paramList(doc.constructorDoc.parameters) | indent(8, false) | trim $}
49+
code(class="code-background api-doc-code") {$ doc.constructorDoc.name $}
50+
code(class="api-doc-code") {$ paramList(doc.constructorDoc.parameters) | indent(8, false) | trim $}
5151
{% endif %}
5252
{% if doc.members.length %}
5353
.div(layout="column")
5454
{% for member in doc.members %}{% if not member.internal %}
5555
pre(class="prettyprint no-bg-with-indent")
5656
a(class="code-anchor" href="#{$ member.name $}-anchor")
57-
code(class="code-background") {$ member.name | indent(6, false) | trim $}
58-
code {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
57+
code(class="code-background api-doc-code") {$ member.name | indent(6, false) | trim $}
58+
code(class="api-doc-code") {$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
5959
{% endif %}{% endfor %}
6060
{% endif %}
6161
p.selector
62-
code.no-bg }
62+
code(class="api-doc-code no-bg") }
6363

6464
{% block additional %}
6565
{% endblock %}
@@ -80,7 +80,7 @@
8080
h2(class="h2-api-docs") Class Export
8181
div(flex="80" flex-xs="100")
8282
pre.prettyprint.no-bg
83-
code.no-pln.
83+
code(class="api-doc-code no-pln").
8484
export {$ doc.docType $} {$ doc.name $}
8585

8686
{%- if doc.decorators.length %}
@@ -91,7 +91,7 @@
9191
div(flex="80" flex-xs="100")
9292
{%- for decorator in doc.decorators %}
9393
pre.prettyprint.no-bg
94-
code.
94+
code(class="api-doc-code")
9595
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(10, false) $}
9696
:marked
9797
{%- if decorator.notYetDocumented %}
@@ -110,7 +110,7 @@
110110
div(flex="80" flex-xs="100")
111111
a(name="constructor" class="anchor-offset")
112112
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ doc.constructorDoc.name $}') }")
113-
code.
113+
code(class="api-doc-code").
114114
{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.parameters) | indent(8, false) | trim $}
115115
:marked
116116
{%- if doc.constructorDoc.notYetDocumented %}
@@ -127,7 +127,7 @@
127127
div(flex="80" flex-xs="100")
128128
{% for member in doc.statics %}{% if not member.internal %}
129129
pre.prettyprint.no-bg
130-
code.
130+
code(class="api-doc-code").
131131
{$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
132132
:marked
133133
{%- if member.notYetDocumented %}
@@ -151,7 +151,7 @@
151151
{% for member in doc.members %}{% if not member.internal %}
152152
a(name="{$ member.name $}-anchor" class="anchor-offset")
153153
pre(class="prettyprint no-bg" ng-class="{ 'anchor-focused': appCtrl.isApiDocMemberFocused('{$ member.name $}') }")
154-
code.
154+
code(class="api-doc-code").
155155
{$ member.name $}{$ paramList(member.parameters) | indent(8, false) | trim $}{$ returnType(member.returnType) $}
156156

157157
:marked

0 commit comments

Comments
 (0)