From 40630d731b16804e8e5b7cdea746fdaa98c03ce6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 15 Apr 2016 07:39:50 -0400 Subject: [PATCH] Collection of CSS fixes This ensures all parameter tables are 100% wide, even if they have only a few items with short descriptions. It makes all the tables the same width. This moves the link icon into the gutter for the main content, and makes it hidden by default (only visible on hover) like in the API site today. This makes the link + method name div be ``white-space: nowrap`` to ensure that when the screen gets narrower the Delete button doesn't fold up on itself. Part of bp:api-ref-in-rst Change-Id: I3892e6c8e3c01956d63a33603ba1bf9146d21161 --- api-ref/source/_static/api-site.css | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/api-ref/source/_static/api-site.css b/api-ref/source/_static/api-site.css index 13f046ec3fa8..e7f5c19bc5d2 100644 --- a/api-ref/source/_static/api-site.css +++ b/api-ref/source/_static/api-site.css @@ -54,4 +54,28 @@ div.document { .operation-grp { padding-top: 0.5em; padding-bottom: 1em; -} \ No newline at end of file +} + +/* Ensure the method buttons and their links don't split lines when +the page is narrower */ +.operation { + /* this moves the link icon into the gutter */ + margin-left: -1.25em; + margin-right: 1.25em; + white-space: nowrap; +} + +/* These make the links only show up on hover */ +a.operation-anchor { + visibility: hidden; +} + +.operation-grp:hover a.operation-anchor { + visibility: visible; +} + +/* All tables for requests should be full width */ + +.api-detail table.docutils { + width: 100%; +}