main
Bob Mottram 2020-06-10 14:14:26 +01:00
parent 0f5537ad37
commit 65e5e4eec3
2 changed files with 7 additions and 5 deletions

View File

@ -67,7 +67,12 @@ a:link {
} }
.searchBanner { .searchBanner {
height: 10%; background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5)), url("search_banner.png");
width: 90%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
} }
.follow { .follow {

View File

@ -5881,10 +5881,7 @@ def htmlSearch(translate: {},
if os.path.isfile(themeSearchBannerFilename): if os.path.isfile(themeSearchBannerFilename):
copyfile(themeSearchBannerFilename, searchBannerFilename) copyfile(themeSearchBannerFilename, searchBannerFilename)
if os.path.isfile(searchBannerFilename): if os.path.isfile(searchBannerFilename):
followStr += \ followStr += '<center><div class="searchBanner"></div></center>'
'<center>><div class="searchBanner">' \
'<img loading="lazy" src="' + actor + '/search_banner.png" ' \
'title="" alt=""></div></center>'
# show the search box # show the search box
followStr += '<div class="follow">' followStr += '<div class="follow">'