mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Fix default banner css namespacing (#604)
This commit is contained in:
parent
a0aaa7558d
commit
07fb6bbf1d
@ -159,7 +159,7 @@
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.mobile {
|
||||
._wb_mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -170,11 +170,11 @@
|
||||
height: 26px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
#_wb_frame_top_banner ._wb_linked_logo img:not(.mobile)
|
||||
#_wb_frame_top_banner ._wb_linked_logo img:not(._wb_mobile)
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
#_wb_frame_top_banner .mobile
|
||||
#_wb_frame_top_banner ._wb_mobile
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
@ -184,7 +184,7 @@
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
#_wb_frame_top_banner .no-mobile
|
||||
#_wb_frame_top_banner ._wb_no-mobile
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ This file is part of pywb, https://github.com/webrecorder/pywb
|
||||
|
||||
var logoContents = "";
|
||||
logoContents += "<img src='" + window.banner_info.logoImg + "' alt='" + window.banner_info.logoAlt + "'>";
|
||||
logoContents += "<img src='" + window.banner_info.logoImg + "' class='mobile' alt='" + window.banner_info.logoAlt + "'>";
|
||||
logoContents += "<img src='" + window.banner_info.logoImg + "' class='_wb_mobile' alt='" + window.banner_info.logoAlt + "'>";
|
||||
|
||||
logo.innerHTML = logoContents;
|
||||
this.banner.appendChild(logo);
|
||||
@ -178,7 +178,7 @@ This file is part of pywb, https://github.com/webrecorder/pywb
|
||||
var calendarLink = document.createElement("a");
|
||||
calendarLink.setAttribute("id", "calendarLink");
|
||||
calendarLink.setAttribute("href", "#");
|
||||
calendarLink.innerHTML = "<img src='" + calendarImg + "' alt='" + window.banner_info.calendarAlt + "'><span class='no-mobile'> " +window.banner_info.calendarLabel + "</span>";
|
||||
calendarLink.innerHTML = "<img src='" + calendarImg + "' alt='" + window.banner_info.calendarAlt + "'><span class='_wb_no-mobile'> " +window.banner_info.calendarLabel + "</span>";
|
||||
ancillaryLinks.appendChild(calendarLink);
|
||||
this.calendarLink = calendarLink;
|
||||
|
||||
@ -187,7 +187,7 @@ This file is part of pywb, https://github.com/webrecorder/pywb
|
||||
var languages = document.createElement("div");
|
||||
|
||||
var label = document.createElement("span");
|
||||
label.setAttribute("class", "no-mobile");
|
||||
label.setAttribute("class", "_wb_no-mobile");
|
||||
label.appendChild(document.createTextNode(window.banner_info.choiceLabel + " "));
|
||||
languages.appendChild(label);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user