Fix banner style
parent
a10c8e24aa
commit
27564bab98
|
@ -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>"
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue