From 405d97431fa374afdd5cddc6780f8949ee76a2c6 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Sun, 4 Mar 2018 20:30:23 +0000 Subject: [PATCH] fixup! feat(aio): allow template to position embedded ToC (#22565) PR Close #22565 --- aio/src/styles/1-layouts/_content-layout.scss | 11 -------- aio/src/styles/2-modules/_api-pages.scss | 17 +++++++++++ .../templates/api/base.template.html | 28 ++++++------------- .../templates/api/lib/githubLinks.html | 5 +++- 4 files changed, 30 insertions(+), 31 deletions(-) diff --git a/aio/src/styles/1-layouts/_content-layout.scss b/aio/src/styles/1-layouts/_content-layout.scss index 7870fa3fec..c6034396da 100644 --- a/aio/src/styles/1-layouts/_content-layout.scss +++ b/aio/src/styles/1-layouts/_content-layout.scss @@ -37,14 +37,3 @@ aio-shell.page-docs { margin: 24px 0px; background: $lightgray; } - -.page-actions { - float: right; - .material-icons { - border-radius: 4px; - padding: 4px; - font-size: 20px; - background-color: $mist; - color: $mediumgray; - } -} \ No newline at end of file diff --git a/aio/src/styles/2-modules/_api-pages.scss b/aio/src/styles/2-modules/_api-pages.scss index b6a976dcf7..8656691a04 100644 --- a/aio/src/styles/2-modules/_api-pages.scss +++ b/aio/src/styles/2-modules/_api-pages.scss @@ -1,3 +1,15 @@ +.page-actions { + float: right; + .material-icons { + border-radius: 4px; + padding: 4px; + font-size: 20px; + &:hover { + background-color: $mist; + } + } +} + .api-body { .class-overview { @@ -24,6 +36,11 @@ .api-heading { padding: 5px 0; font-size: 16px; + font-weight: bold; + } + + .short-description { + margin: 6px 0 0 10px; } .properties-table { diff --git a/aio/tools/transforms/templates/api/base.template.html b/aio/tools/transforms/templates/api/base.template.html index a5cdb7bb75..63f6490cab 100644 --- a/aio/tools/transforms/templates/api/base.template.html +++ b/aio/tools/transforms/templates/api/base.template.html @@ -2,32 +2,22 @@ {% set comma = joiner(',') %} {% set slash = joiner('/') %}
-
- - -
-