Fix banner style

pull/103/head
JulioV 2020-11-18 19:25:43 -05:00
parent a10c8e24aa
commit 27564bab98
2 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
window.addEventListener("DOMContentLoaded", function() {
if(!window.location.pathname.endsWith("/latest/")){
document.querySelector("div[data-md-component=announce]").innerHTML = "You are seeing the docs for a previous version of RAPIDS, <a href='latest/'>click here to go to the latest</a>"
document.querySelector("div[data-md-component=announce]").innerHTML = "<div id='announce-msg'>You are seeing the docs for a previous version of RAPIDS, <a href='latest/'>click here to go to the latest</a></div>"
}
});

View File

@ -15,13 +15,14 @@
div[data-md-component=announce] {
background-color: rgba(255,145,0,.1);
padding: 15px;
text-align: center;
font-size: .8rem;
color: var(--md-admonition-fg-color);
}
div[data-md-component=announce]>a{
div[data-md-component=announce]>div#announce-msg{
color: var(--md-admonition-fg-color);
font-size: .8rem;
text-align: center;
margin: 15px;
}
div[data-md-component=announce]>div#announce-msg>a{
color: var(--md-typeset-a-color);
text-decoration: underline;
}