diff --git a/aio/src/styles/2-modules/_api-pages.scss b/aio/src/styles/2-modules/_api-pages.scss
index f25126d2db..7bfdb19556 100644
--- a/aio/src/styles/2-modules/_api-pages.scss
+++ b/aio/src/styles/2-modules/_api-pages.scss
@@ -10,6 +10,16 @@
}
}
+.api-header {
+ display: flex;
+ align-items: center;
+
+ @media screen and (max-width: 600px) {
+ flex-direction: column;
+ align-items: flex-start;
+ }
+}
+
.api-body {
.class-overview {
diff --git a/aio/src/styles/2-modules/_heading-anchors.scss b/aio/src/styles/2-modules/_heading-anchors.scss
index e3a169fae4..cbf88cf111 100644
--- a/aio/src/styles/2-modules/_heading-anchors.scss
+++ b/aio/src/styles/2-modules/_heading-anchors.scss
@@ -3,7 +3,7 @@
.header-link {
color: $mediumgray;
- margin-left: 8px;
+ margin: 0 4px;
text-decoration: none;
user-select: none;
visibility: hidden;
diff --git a/aio/src/styles/2-modules/_label.scss b/aio/src/styles/2-modules/_label.scss
index 6efd06cb64..45d225fa8a 100644
--- a/aio/src/styles/2-modules/_label.scss
+++ b/aio/src/styles/2-modules/_label.scss
@@ -38,6 +38,14 @@ label.raised, .api-header label {
.api-header label {
+ // The API badges should be a little smaller
+ padding: 2px 10px;
+ font-size: 12px;
+
+ @media screen and (max-width: 600px) {
+ margin: 4px 0;
+ }
+
&.api-status-label {
background-color: $mediumgray;
}
diff --git a/aio/tools/transforms/templates/api/base.template.html b/aio/tools/transforms/templates/api/base.template.html
index 63f6490cab..69514248fd 100644
--- a/aio/tools/transforms/templates/api/base.template.html
+++ b/aio/tools/transforms/templates/api/base.template.html
@@ -20,13 +20,13 @@
{% for crumb in doc.breadCrumbs %}{% if not loop.last %} {$ slash() $} {% if crumb.path %}{$ crumb.text $}{% else %}{$ crumb.text $}{% endif %}{% endif %}{% endfor %}
{$ doc.name $}
+
{% if doc.deprecated !== undefined %}{% endif %}
{% if doc.experimental !== undefined %}{% endif %}
{% if doc.stable !== undefined %}{% endif %}
-
- {$ doc.name $}
- {$ version $}