From 07fb6bbf1d50684d96c8dcf76f12166f80423a7c Mon Sep 17 00:00:00 2001 From: Kai Jauslin Date: Tue, 26 Jan 2021 22:43:40 +0100 Subject: [PATCH] Fix default banner css namespacing (#604) --- pywb/static/default_banner.css | 10 +++++----- pywb/static/default_banner.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pywb/static/default_banner.css b/pywb/static/default_banner.css index 1f9b03d7..302b7848 100644 --- a/pywb/static/default_banner.css +++ b/pywb/static/default_banner.css @@ -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,8 +184,8 @@ margin: 0 5px; } - #_wb_frame_top_banner .no-mobile + #_wb_frame_top_banner ._wb_no-mobile { display: none; } -} +} \ No newline at end of file diff --git a/pywb/static/default_banner.js b/pywb/static/default_banner.js index c1251dc8..8777244a 100644 --- a/pywb/static/default_banner.js +++ b/pywb/static/default_banner.js @@ -15,7 +15,7 @@ This file is part of pywb, https://github.com/webrecorder/pywb You should have received a copy of the GNU General Public License along with pywb. If not, see . - + */ // Creates the default pywb banner. @@ -159,7 +159,7 @@ This file is part of pywb, https://github.com/webrecorder/pywb var logoContents = ""; logoContents += "" + window.banner_info.logoAlt + ""; - logoContents += "" + window.banner_info.logoAlt + ""; + logoContents += "" + 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 = "" + window.banner_info.calendarAlt + " " +window.banner_info.calendarLabel + ""; + calendarLink.innerHTML = "" + window.banner_info.calendarAlt + " " +window.banner_info.calendarLabel + ""; 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); @@ -317,4 +317,4 @@ This file is part of pywb, https://github.com/webrecorder/pywb } } -})(); +})(); \ No newline at end of file