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
This commit is contained in:
parent
fac72a468b
commit
267c2111ba
@ -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 {
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
{% set css_files = css_files + ['_static/custom.css'] %}
|
||||
|
||||
{% block sidebarsearch %}
|
||||
{% block otherversions %}
|
||||
<div id="admonition_selector">
|
||||
<span class="trigger">Limit Environment Specific Content</span>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user