aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src
diff options
context:
space:
mode:
authorGravatar Billy Lamberta <blamb@google.com>2018-07-20 10:03:44 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-20 10:06:18 -0700
commit7fc43521ee5dd12525afbc2ad766f562b24f0043 (patch)
tree2bd7b01ae45c6d8b3bac9d2eb606e3a6491df3c4 /tensorflow/docs_src
parent75ca1d8df21cd4c7904ceecb12c0cfc268da361f (diff)
Add CSS style sheet to preprocessed documentation and landing pages.
Remove first button from rendered notebooks (already on page). Quarantine the home page a bit. PiperOrigin-RevId: 205413200
Diffstat (limited to 'tensorflow/docs_src')
-rw-r--r--tensorflow/docs_src/tutorials/_index.yaml52
1 files changed, 1 insertions, 51 deletions
diff --git a/tensorflow/docs_src/tutorials/_index.yaml b/tensorflow/docs_src/tutorials/_index.yaml
index c74fe58089..9534114689 100644
--- a/tensorflow/docs_src/tutorials/_index.yaml
+++ b/tensorflow/docs_src/tutorials/_index.yaml
@@ -2,6 +2,7 @@ project_path: /_project.yaml
book_path: /_book.yaml
description: <!--no description-->
landing_page:
+ custom_css_path: /site-assets/css/style.css
show_side_navs: True
rows:
- description: >
@@ -14,57 +15,6 @@ landing_page:
</p>
items:
- custom_html: >
- <style>
- .tfo-button-primary {
- background-color: #fca851;
- }
- .tfo-button-primary:hover {
- background-color: #ef6c02;
- }
-
- a.colab-button {
- display: inline-block;
- background: rgba(255, 255, 255, 0.75);
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 11px!important;
- text-decoration: none;
- color:#aaa;border: none;
- font-weight: 300;
- border: solid 1px rgba(0, 0, 0, 0.08);
- border-bottom-color: rgba(0, 0, 0, 0.15);
- text-transform: uppercase;
- line-height: 16px
- }
- a.colab-button:hover {
- color: #666;
- background: white;
- border-color: rgba(0, 0, 0, 0.2);
- }
- a.colab-button span {
- background-image: url("/images/colab_logo_button.svg");
- background-repeat:no-repeat;background-size:20px;
- background-position-y:2px;display:inline-block;
- padding-left:24px;border-radius:4px;
- text-decoration:none;
- }
-
- /* adjust code block for smaller screens */
- @media screen and (max-width: 1000px) {
- .tfo-landing-row-item-code-block {
- flex-direction: column !important;
- }
- .tfo-landing-row-item-code-block > .devsite-landing-row-item-code {
- /*display: none;*/
- width: 100%;
- }
- }
- @media screen and (max-width: 720px) {
- .tfo-landing-row-item-code-block {
- display: none;
- }
- }
- </style>
<div class="devsite-landing-row-item-description">
<h3 class="hide-from-toc">Learn and use ML</h3>
<div class="devsite-landing-row-item-description-content">