1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-17 20:50:12 +01:00

Adds navbar logo to pdf viewer

This commit is contained in:
Dimitrios Kaitantzidis 2023-10-27 20:08:13 +03:00
parent 116b034878
commit 6bf172fb25
2 changed files with 16 additions and 2 deletions

View File

@ -2352,14 +2352,14 @@ body {
.secondaryToolbar, .secondaryToolbar,
.editorParamsToolbar { .editorParamsToolbar {
position: relative; position: relative;
height: 32px; height: 35px;
background-color: var(--toolbar-bg-color); background-color: var(--toolbar-bg-color);
box-shadow: var(--toolbar-box-shadow); box-shadow: var(--toolbar-box-shadow);
border-bottom: var(--toolbar-border-bottom); border-bottom: var(--toolbar-border-bottom);
} }
#toolbarViewer { #toolbarViewer {
height: 32px; height: 35px;
} }
#loadingBar { #loadingBar {

View File

@ -27,6 +27,12 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta name="google" content="notranslate"> <meta name="google" content="notranslate">
<title>PDF.js viewer</title> <title>PDF.js viewer</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<!-- This snippet is used in production (included from view-pdf.html) --> <!-- This snippet is used in production (included from view-pdf.html) -->
<link rel="resource" type="application/l10n" href="/pdfjs/locale/locale.properties"> <link rel="resource" type="application/l10n" href="/pdfjs/locale/locale.properties">
<script src="/pdfjs/pdf.js"></script> <script src="/pdfjs/pdf.js"></script>
@ -336,6 +342,14 @@ See https://github.com/adobe-type-tools/cmap-resources
tabindex="15" tabindex="15"
data-l10n-id="page" autocomplete="off"> data-l10n-id="page" autocomplete="off">
<span id="numPages" class="toolbarLabel"></span> <span id="numPages" class="toolbarLabel"></span>
<a class="navbar-brand mt-1 hiddenLargeView" href="/">
<img class="main-icon" src="favicon.svg" alt="icon" style="max-height: 1.8rem;">
<span class="icon-text mt-1" style="color: #ffffff;">Stirling PDF</span>
</a>
<a class="navbar-brand mt-1 visibleLargeView" href="/">
<img class="main-icon" src="favicon.svg" alt="icon" style="max-height: 1.8rem;">
</a>
</div> </div>
<div id="toolbarViewerRight"> <div id="toolbarViewerRight">