From 267c2111bab6fa937f00ebd05efeb1b3d5927824 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Fri, 7 Jul 2017 21:40:52 +0000 Subject: [PATCH] Re-enable admonition selector for openstackdocstheme In the transition to openstackdocstheme we lost the admonition selector. This is because the new theme doesn't provide the same extension points as the old one, so we were trying to inject the selector into a non-existent block. This change moves it to a block that does exist in the theme and tweaks the styling a bit so it fits better in its new place. Note that this does result in it becoming part of the page header area as opposed to the sidebar. There doesn't appear to be any block in the sidebar that we can use for this purpose. I think we should go ahead and fix the selector this way, and if we decide we can't stand the new location we can work with the docs team to get a new block in the sidebar that we can use. Change-Id: I10d8f701a108d20f77cf1ab7538b0eb7eb313601 Closes-Bug: 1702523 --- _custom/custom.css | 7 ------- _templates/layout.html | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/_custom/custom.css b/_custom/custom.css index 7c686a35..7bab9e3c 100644 --- a/_custom/custom.css +++ b/_custom/custom.css @@ -84,8 +84,6 @@ } .trigger { - display: block; - font-size: 110%; color: rgba(255, 255, 255, 0.75); line-height: 2.5; position: relative; @@ -95,12 +93,7 @@ .trigger:after { content: '▾'; - display: block; font-family: FontAwesome; - font-size: 70%; - position: absolute; - right: 1.618em; - top: 6px; } .trigger:hover { diff --git a/_templates/layout.html b/_templates/layout.html index c3de3148..64c366ca 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -9,7 +9,7 @@ {% set css_files = css_files + ['_static/custom.css'] %} -{% block sidebarsearch %} +{% block otherversions %}
Limit Environment Specific Content