pdf.js/web/viewer.css

1910 lines
45 KiB
CSS
Raw Normal View History

/* Copyright 2014 Mozilla Foundation
2012-09-01 07:48:21 +09:00
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import url(pdf_viewer.css);
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
:root {
--sidebar-width: 200px;
}
* {
padding: 0;
margin: 0;
}
html {
height: 100%;
width: 100%;
2013-12-15 07:01:49 +09:00
/* Font size is needed to make the activity bar the correct size. */
font-size: 10px;
}
body {
height: 100%;
width: 100%;
background-color: rgba(64, 64, 64, 1);
background-image: url(images/texture.png);
}
body,
input,
button,
select {
font: message-box;
outline: none;
}
2012-04-26 09:20:13 +09:00
.hidden {
2013-09-05 06:48:31 +09:00
display: none !important;
2012-04-26 09:20:13 +09:00
}
2011-10-19 04:40:59 +09:00
[hidden] {
display: none !important;
2011-10-19 04:40:59 +09:00
}
#viewerContainer.pdfPresentationMode:-ms-fullscreen {
top: 0px !important;
overflow: hidden !important;
}
#viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop {
background-color: rgba(0, 0, 0, 1);
}
#viewerContainer.pdfPresentationMode:fullscreen {
2012-07-31 00:12:49 +09:00
top: 0px;
border-top: 2px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 1);
2012-07-31 00:12:49 +09:00
width: 100%;
height: 100%;
2012-10-11 09:32:48 +09:00
overflow: hidden;
cursor: none;
2018-04-04 07:18:57 +09:00
user-select: none;
}
.pdfPresentationMode:fullscreen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:fullscreen .textLayer > span {
cursor: none;
}
.pdfPresentationMode.pdfPresentationModeControls > *,
.pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
2012-10-11 09:32:48 +09:00
cursor: default;
2012-07-31 00:12:49 +09:00
}
#outerContainer {
width: 100%;
height: 100%;
position: relative;
}
#sidebarContainer {
position: absolute;
top: 32px;
bottom: 0;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
width: 200px; /* Here, and elsewhere below, keep the constant value for compatibility
with older browsers that lack support for CSS variables. */
width: var(--sidebar-width);
2012-05-02 01:43:48 +09:00
visibility: hidden;
z-index: 100;
border-top: 1px solid rgba(51, 51, 51, 1);
transition-duration: 200ms;
transition-timing-function: ease;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] #sidebarContainer {
transition-property: left;
2012-05-02 07:08:30 +09:00
left: -200px;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
left: calc(-1 * var(--sidebar-width));
2012-05-02 07:08:30 +09:00
}
html[dir='rtl'] #sidebarContainer {
transition-property: right;
2012-05-02 07:08:30 +09:00
right: -200px;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
right: calc(-1 * var(--sidebar-width));
}
.loadingInProgress #sidebarContainer {
top: 36px;
}
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
#outerContainer.sidebarResizing #sidebarContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
/* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
2018-04-04 07:18:57 +09:00
user-select: none;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
}
#outerContainer.sidebarMoving #sidebarContainer,
#outerContainer.sidebarOpen #sidebarContainer {
2012-05-02 01:43:48 +09:00
visibility: visible;
}
html[dir='ltr'] #outerContainer.sidebarOpen #sidebarContainer {
2012-04-26 05:46:17 +09:00
left: 0px;
}
html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer {
2012-05-02 07:08:30 +09:00
right: 0px;
}
#mainContainer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-width: 320px;
2012-05-02 07:08:30 +09:00
}
#sidebarContent {
2012-04-26 04:14:09 +09:00
top: 32px;
bottom: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
width: 100%;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.1);
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] #sidebarContent {
left: 0;
2019-12-25 22:15:39 +09:00
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
2012-05-02 07:08:30 +09:00
}
html[dir='rtl'] #sidebarContent {
right: 0;
2019-12-25 22:15:39 +09:00
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
}
#viewerContainer {
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
top: 32px;
right: 0;
bottom: 0;
left: 0;
outline: none;
}
#viewerContainer:not(.pdfPresentationMode) {
transition-duration: 200ms;
transition-timing-function: ease;
}
2014-01-22 06:56:19 +09:00
html[dir='ltr'] #viewerContainer {
2019-12-25 22:15:39 +09:00
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05);
2014-01-22 06:56:19 +09:00
}
html[dir='rtl'] #viewerContainer {
2019-12-25 22:15:39 +09:00
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
2014-01-22 06:56:19 +09:00
}
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
#outerContainer.sidebarResizing #viewerContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
transition-duration: 0s;
}
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
transition-property: left;
left: 200px;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
left: var(--sidebar-width);
}
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
transition-property: right;
right: 200px;
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
right: var(--sidebar-width);
}
.toolbar {
2013-02-07 08:19:29 +09:00
position: relative;
left: 0;
right: 0;
z-index: 9999;
cursor: default;
}
#toolbarContainer {
width: 100%;
}
#toolbarSidebar {
width: 100%;
height: 32px;
background-color: rgba(66, 66, 66, 1); /* fallback */
background-image: url(images/texture.png),
2019-12-25 22:15:39 +09:00
linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95));
2014-01-22 06:56:19 +09:00
}
html[dir='ltr'] #toolbarSidebar {
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
2019-12-25 22:15:39 +09:00
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 0 1px rgba(0, 0, 0, 0.1);
}
2014-01-22 06:56:19 +09:00
html[dir='rtl'] #toolbarSidebar {
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
2019-12-25 22:15:39 +09:00
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 0 1px rgba(0, 0, 0, 0.1);
2014-01-22 06:56:19 +09:00
}
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
#sidebarResizer {
position: absolute;
top: 0;
bottom: 0;
width: 6px;
z-index: 200;
cursor: ew-resize;
}
html[dir='ltr'] #sidebarResizer {
right: -6px;
}
html[dir='rtl'] #sidebarResizer {
left: -6px;
}
2013-09-05 06:48:31 +09:00
#toolbarContainer, .findbar, .secondaryToolbar {
position: relative;
height: 32px;
background-color: rgba(71, 71, 71, 1); /* fallback */
background-image: url(images/texture.png),
2019-12-25 22:15:39 +09:00
linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95));
2014-01-22 06:56:19 +09:00
}
html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
2019-12-25 22:15:39 +09:00
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 1px 1px rgba(0, 0, 0, 0.1);
}
2014-01-22 06:56:19 +09:00
html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
2019-12-25 22:15:39 +09:00
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 1px 1px rgba(0, 0, 0, 0.1);
2014-01-22 06:56:19 +09:00
}
2012-09-12 01:30:44 +09:00
2013-02-07 08:19:29 +09:00
#toolbarViewer {
height: 32px;
}
#loadingBar {
position: relative;
width: 100%;
height: 4px;
background-color: rgba(51, 51, 51, 1);
border-bottom: 1px solid rgba(51, 51, 51, 1);
2013-02-07 08:19:29 +09:00
}
#loadingBar .progress {
position: absolute;
top: 0;
left: 0;
width: 0%;
height: 100%;
background-color: rgba(221, 221, 221, 1);
2013-02-07 08:19:29 +09:00
overflow: hidden;
transition: width 200ms;
}
@keyframes progressIndeterminate {
0% { left: -142px; }
100% { left: 0; }
2013-02-07 08:19:29 +09:00
}
#loadingBar .progress.indeterminate {
background-color: rgba(153, 153, 153, 1);
2013-02-07 08:19:29 +09:00
transition: none;
}
#loadingBar .progress.indeterminate .glimmer {
2013-02-07 08:19:29 +09:00
position: absolute;
top: 0;
left: 0;
height: 100%;
width: calc(100% + 150px);
background: repeating-linear-gradient(135deg,
rgba(187, 187, 187, 1) 0, rgba(153, 153, 153, 1) 5px,
rgba(153, 153, 153, 1) 45px, rgba(221, 221, 221, 1) 55px,
rgba(221, 221, 221, 1) 95px, rgba(187, 187, 187, 1) 100px);
animation: progressIndeterminate 950ms linear infinite;
2013-02-07 08:19:29 +09:00
}
2013-09-05 06:48:31 +09:00
.findbar, .secondaryToolbar {
top: 32px;
2012-09-12 01:30:44 +09:00
position: absolute;
z-index: 10000;
height: auto;
2012-09-12 01:30:44 +09:00
min-width: 16px;
padding: 0px 6px 0px 6px;
margin: 4px 2px 4px 2px;
2019-12-25 21:28:04 +09:00
color: rgba(217, 217, 217, 1);
2012-09-12 01:30:44 +09:00
font-size: 12px;
line-height: 14px;
text-align: left;
2012-09-29 03:18:45 +09:00
cursor: default;
}
.findbar {
min-width: 300px;
}
.findbar > div {
height: 32px;
}
.findbar.wrapContainers > div {
clear: both;
}
.findbar.wrapContainers > div#findbarMessageContainer {
height: auto;
}
html[dir='ltr'] .findbar {
left: 68px;
}
html[dir='rtl'] .findbar {
right: 68px;
}
2012-09-29 03:18:45 +09:00
.findbar label {
2018-04-04 07:18:57 +09:00
user-select: none;
2012-09-29 03:18:45 +09:00
}
#findInput {
width: 200px;
}
#findInput::-webkit-input-placeholder {
2019-12-25 21:28:04 +09:00
color: rgba(191, 191, 191, 1);
}
#findInput::placeholder {
font-style: italic;
}
2012-10-11 07:46:04 +09:00
#findInput[data-status="pending"] {
background-image: url(images/loading-small.png);
background-repeat: no-repeat;
background-position: right;
}
html[dir='rtl'] #findInput[data-status="pending"] {
background-position: left;
}
2013-09-05 06:48:31 +09:00
.secondaryToolbar {
padding: 6px;
height: auto;
z-index: 30000;
}
html[dir='ltr'] .secondaryToolbar {
right: 4px;
}
html[dir='rtl'] .secondaryToolbar {
left: 4px;
}
#secondaryToolbarButtonContainer {
max-width: 200px;
max-height: 400px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: -4px;
2013-09-05 06:48:31 +09:00
}
#secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
#secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
display: none !important;
}
2013-09-05 06:48:31 +09:00
.doorHanger,
.doorHangerRight {
2019-12-25 22:15:39 +09:00
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
2013-09-05 06:48:31 +09:00
.doorHanger:after, .doorHanger:before,
.doorHangerRight:after, .doorHangerRight:before {
bottom: 100%;
border: solid rgba(0, 0, 0, 0);
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
2013-09-05 06:48:31 +09:00
.doorHanger:after,
.doorHangerRight:after {
2019-12-25 22:15:39 +09:00
border-bottom-color: rgba(82, 82, 82, 0.99);
border-width: 8px;
}
2013-09-05 06:48:31 +09:00
.doorHanger:before,
.doorHangerRight:before {
2019-12-25 22:15:39 +09:00
border-bottom-color: rgba(0, 0, 0, 0.5);
border-width: 9px;
}
2013-09-05 06:48:31 +09:00
html[dir='ltr'] .doorHanger:after,
html[dir='rtl'] .doorHangerRight:after {
2013-02-23 02:52:05 +09:00
left: 13px;
margin-left: -8px;
}
2013-09-05 06:48:31 +09:00
html[dir='ltr'] .doorHanger:before,
html[dir='rtl'] .doorHangerRight:before {
2013-02-23 02:52:05 +09:00
left: 13px;
margin-left: -9px;
}
2013-09-05 06:48:31 +09:00
html[dir='rtl'] .doorHanger:after,
html[dir='ltr'] .doorHangerRight:after {
2013-02-23 02:52:05 +09:00
right: 13px;
margin-right: -8px;
}
2013-09-05 06:48:31 +09:00
html[dir='rtl'] .doorHanger:before,
html[dir='ltr'] .doorHangerRight:before {
2013-02-23 02:52:05 +09:00
right: 13px;
margin-right: -9px;
}
2014-07-16 23:39:34 +09:00
#findResultsCount {
2019-12-25 21:28:04 +09:00
background-color: rgba(217, 217, 217, 1);
color: rgba(82, 82, 82, 1);
2014-07-16 23:39:34 +09:00
text-align: center;
padding: 3px 4px;
}
2012-09-29 03:18:45 +09:00
#findMsg {
font-style: italic;
color: rgba(166, 183, 208, 1);
2012-09-12 01:30:44 +09:00
}
#findMsg:empty {
display: none;
}
2012-09-12 01:30:44 +09:00
#findInput.notFound {
2019-12-25 22:19:09 +09:00
background-color: rgba(255, 102, 102, 1);
2012-09-12 01:30:44 +09:00
}
#toolbarViewerMiddle {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] #toolbarViewerLeft,
html[dir='rtl'] #toolbarViewerRight {
float: left;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] #toolbarViewerRight,
html[dir='rtl'] #toolbarViewerLeft {
float: right;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] #toolbarViewerLeft > *,
html[dir='ltr'] #toolbarViewerMiddle > *,
html[dir='ltr'] #toolbarViewerRight > *,
html[dir='ltr'] .findbar * {
position: relative;
float: left;
}
2012-05-02 07:08:30 +09:00
html[dir='rtl'] #toolbarViewerLeft > *,
html[dir='rtl'] #toolbarViewerMiddle > *,
html[dir='rtl'] #toolbarViewerRight > *,
html[dir='rtl'] .findbar * {
position: relative;
2012-05-02 07:08:30 +09:00
float: right;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .splitToolbarButton {
margin: 3px 2px 4px 0;
display: inline-block;
}
2012-05-02 07:08:30 +09:00
html[dir='rtl'] .splitToolbarButton {
margin: 3px 0 4px 2px;
display: inline-block;
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: left;
}
2012-05-02 07:08:30 +09:00
html[dir='rtl'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: right;
2012-02-05 05:13:12 +09:00
}
2013-09-05 06:48:31 +09:00
.toolbarButton,
.secondaryToolbarButton,
.overlayButton {
border: 0 none;
2014-05-19 00:32:26 +09:00
background: none;
2012-04-27 06:38:41 +09:00
width: 32px;
height: 25px;
2012-02-05 05:13:12 +09:00
}
2012-05-04 23:51:21 +09:00
.toolbarButton > span {
2012-05-05 02:34:18 +09:00
display: inline-block;
width: 0;
height: 0;
overflow: hidden;
}
2013-09-05 06:48:31 +09:00
.toolbarButton[disabled],
.secondaryToolbarButton[disabled],
.overlayButton[disabled] {
2012-04-26 08:48:01 +09:00
opacity: .5;
}
2012-06-08 05:51:29 +09:00
.splitToolbarButton.toggled .toolbarButton {
margin: 0;
}
.splitToolbarButton:hover > .toolbarButton,
2012-05-02 01:43:48 +09:00
.splitToolbarButton:focus > .toolbarButton,
2012-06-08 05:51:29 +09:00
.splitToolbarButton.toggled > .toolbarButton,
.toolbarButton.textButton {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.12);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
border: 1px solid rgba(0, 0, 0, 0.35);
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
.splitToolbarButton > .toolbarButton:hover,
2012-05-02 01:43:48 +09:00
.splitToolbarButton > .toolbarButton:focus,
2012-06-08 05:51:29 +09:00
.dropdownToolbarButton:hover,
2014-01-22 08:07:07 +09:00
.overlayButton:hover,
.overlayButton:focus,
2012-06-08 05:51:29 +09:00
.toolbarButton.textButton:hover,
.toolbarButton.textButton:focus {
2019-12-25 22:15:39 +09:00
background-color: rgba(0,0,0,0.2);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 0 1px rgba(0, 0, 0, 0.05);
z-index: 199;
}
.splitToolbarButton > .toolbarButton {
position: relative;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
position: relative;
margin: 0;
margin-right: -1px;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
border-right-color: rgba(0, 0, 0, 0);
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
position: relative;
margin: 0;
margin-left: -1px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-left-color: rgba(0, 0, 0, 0);
}
.splitToolbarButtonSeparator {
padding: 8px 0;
width: 1px;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.5);
z-index: 99;
2019-12-25 22:15:39 +09:00
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
display: inline-block;
margin: 5px 0;
2012-05-02 07:08:30 +09:00
}
html[dir='ltr'] .splitToolbarButtonSeparator {
2013-02-27 05:06:53 +09:00
float: left;
}
2012-05-02 07:08:30 +09:00
html[dir='rtl'] .splitToolbarButtonSeparator {
2013-02-27 05:06:53 +09:00
float: right;
2012-05-02 07:08:30 +09:00
}
.splitToolbarButton:hover > .splitToolbarButtonSeparator,
.splitToolbarButton.toggled > .splitToolbarButtonSeparator {
2012-04-27 06:38:41 +09:00
padding: 12px 0;
margin: 1px 0;
2019-12-25 22:15:39 +09:00
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
transition-property: padding;
transition-duration: 10ms;
transition-timing-function: ease;
}
.toolbarButton,
2013-09-05 06:48:31 +09:00
.dropdownToolbarButton,
.secondaryToolbarButton,
.overlayButton {
min-width: 16px;
2012-04-27 06:38:41 +09:00
padding: 2px 6px 0;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 2px;
2019-12-25 22:15:39 +09:00
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
line-height: 14px;
2018-04-04 07:18:57 +09:00
user-select: none;
/* Opera does not support user-select, use <... unselectable="on"> instead */
cursor: default;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .toolbarButton,
2014-01-22 08:07:07 +09:00
html[dir='ltr'] .overlayButton,
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .dropdownToolbarButton {
margin: 3px 2px 4px 0;
}
html[dir='rtl'] .toolbarButton,
2014-01-22 08:07:07 +09:00
html[dir='rtl'] .overlayButton,
2012-05-02 07:08:30 +09:00
html[dir='rtl'] .dropdownToolbarButton {
margin: 3px 0 4px 2px;
}
.toolbarButton:hover,
2012-05-02 01:43:48 +09:00
.toolbarButton:focus,
2013-09-05 06:48:31 +09:00
.dropdownToolbarButton,
2014-01-22 08:07:07 +09:00
.overlayButton,
2013-09-05 06:48:31 +09:00
.secondaryToolbarButton:hover,
.secondaryToolbarButton:focus {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.12);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
border: 1px solid rgba(0, 0, 0, 0.35);
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.toolbarButton:hover:active,
2014-01-22 08:07:07 +09:00
.overlayButton:hover:active,
2013-09-05 06:48:31 +09:00
.dropdownToolbarButton:hover:active,
.secondaryToolbarButton:hover:active {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.2);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
transition-property: background-color, border-color, box-shadow;
transition-duration: 10ms;
transition-timing-function: linear;
}
.toolbarButton.toggled,
2013-09-05 06:48:31 +09:00
.splitToolbarButton.toggled > .toolbarButton.toggled,
.secondaryToolbarButton.toggled {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.3);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
transition-property: background-color, border-color, box-shadow;
transition-duration: 10ms;
transition-timing-function: linear;
}
.toolbarButton.toggled:hover:active,
2013-09-05 06:48:31 +09:00
.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
.secondaryToolbarButton.toggled:hover:active {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.4);
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.55);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.3) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.dropdownToolbarButton {
width: 120px;
max-width: 120px;
padding: 0;
2011-09-22 07:32:36 +09:00
overflow: hidden;
2012-05-02 07:08:30 +09:00
background: url(images/toolbarButton-menuArrows.png) no-repeat;
}
html[dir='ltr'] .dropdownToolbarButton {
background-position: 95%;
}
html[dir='rtl'] .dropdownToolbarButton {
background-position: 5%;
2011-08-31 21:22:48 +09:00
}
2012-04-18 03:10:52 +09:00
.dropdownToolbarButton > select {
min-width: 140px;
2012-04-14 03:13:53 +09:00
font-size: 12px;
2019-12-25 21:28:04 +09:00
color: rgba(242, 242, 242, 1);
2013-02-27 05:06:53 +09:00
margin: 0;
padding: 3px 2px 2px;
2013-02-27 05:06:53 +09:00
border: none;
background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
}
.dropdownToolbarButton > select > option {
2019-12-25 21:28:04 +09:00
background: rgba(61, 61, 61, 1);
}
#customScaleOption {
display: none;
}
#pageWidthOption {
border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .splitToolbarButton:first-child,
html[dir='ltr'] .toolbarButton:first-child,
html[dir='rtl'] .splitToolbarButton:last-child,
html[dir='rtl'] .toolbarButton:last-child {
margin-left: 4px;
2012-02-05 05:13:12 +09:00
}
2012-05-02 07:08:30 +09:00
html[dir='ltr'] .splitToolbarButton:last-child,
html[dir='ltr'] .toolbarButton:last-child,
html[dir='rtl'] .splitToolbarButton:first-child,
html[dir='rtl'] .toolbarButton:first-child {
margin-right: 4px;
2011-08-31 21:22:48 +09:00
}
.toolbarButtonSpacer {
width: 30px;
2011-08-31 21:22:48 +09:00
display: inline-block;
height: 1px;
}
2013-02-23 02:52:05 +09:00
html[dir='ltr'] #findPrevious {
margin-left: 3px;
}
html[dir='ltr'] #findNext {
margin-right: 3px;
}
html[dir='rtl'] #findPrevious {
margin-right: 3px;
}
html[dir='rtl'] #findNext {
margin-left: 3px;
}
2013-09-05 06:48:31 +09:00
.toolbarButton::before,
.secondaryToolbarButton::before {
/* All matching images have a size of 16x16
* All relevant containers have a size of 32x25 */
position: absolute;
2013-09-05 06:48:31 +09:00
display: inline-block;
top: 4px;
left: 7px;
}
2013-09-15 02:33:00 +09:00
2013-09-05 06:48:31 +09:00
html[dir="ltr"] .secondaryToolbarButton::before {
left: 4px;
}
html[dir="rtl"] .secondaryToolbarButton::before {
right: 4px;
}
2013-09-15 02:33:00 +09:00
html[dir='ltr'] .toolbarButton#sidebarToggle::before {
2013-09-05 06:48:31 +09:00
content: url(images/toolbarButton-sidebarToggle.png);
}
2013-09-15 02:33:00 +09:00
html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl.png);
}
2013-09-05 06:48:31 +09:00
2013-09-15 02:33:00 +09:00
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
2013-09-05 06:48:31 +09:00
content: url(images/toolbarButton-secondaryToolbarToggle.png);
}
2013-09-15 02:33:00 +09:00
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png);
}
2013-02-23 02:52:05 +09:00
html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous.png);
}
html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl.png);
}
html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next.png);
}
html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl.png);
}
2012-05-02 09:39:24 +09:00
html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp.png);
}
2012-05-02 09:39:24 +09:00
html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl.png);
}
2012-05-02 09:39:24 +09:00
html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown.png);
}
2012-05-02 09:39:24 +09:00
html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl.png);
}
.toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut.png);
}
.toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn.png);
}
2013-09-05 06:48:31 +09:00
.toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode.png);
2012-07-31 00:12:49 +09:00
}
2013-09-05 06:48:31 +09:00
.toolbarButton.print::before,
.secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print.png);
2013-09-05 06:48:31 +09:00
}
2013-09-05 06:48:31 +09:00
.toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before {
2012-05-21 07:12:58 +09:00
content: url(images/toolbarButton-openFile.png);
}
2013-09-05 06:48:31 +09:00
.toolbarButton.download::before,
.secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download.png);
}
.toolbarButton.bookmark,
.secondaryToolbarButton.bookmark {
2012-04-27 06:38:41 +09:00
box-sizing: border-box;
outline: none;
2012-05-01 06:58:12 +09:00
padding-top: 4px;
text-decoration: none;
}
.secondaryToolbarButton.bookmark {
padding-top: 5px;
}
.bookmark[href='#'] {
2013-03-19 07:53:45 +09:00
opacity: .5;
pointer-events: none;
}
.toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark.png);
}
2012-04-13 08:29:15 +09:00
#viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail.png);
}
2013-09-15 02:33:00 +09:00
html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline.png);
}
2013-09-15 02:33:00 +09:00
html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl.png);
}
#viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments.png);
}
#viewFind.toolbarButton::before {
content: url(images/toolbarButton-search.png);
}
.toolbarButton.pdfSidebarNotification::after {
position: absolute;
display: inline-block;
top: 1px;
/* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
content: '';
background-color: rgba(112, 219, 85, 1);
height: 9px;
width: 9px;
border-radius: 50%;
}
html[dir='ltr'] .toolbarButton.pdfSidebarNotification::after {
left: 17px;
}
html[dir='rtl'] .toolbarButton.pdfSidebarNotification::after {
right: 17px;
}
2013-09-05 06:48:31 +09:00
.secondaryToolbarButton {
position: relative;
margin: 0 0 4px 0;
padding: 3px 0 1px 0;
height: auto;
min-height: 25px;
width: auto;
min-width: 100%;
white-space: normal;
}
html[dir="ltr"] .secondaryToolbarButton {
padding-left: 24px;
text-align: left;
}
html[dir="rtl"] .secondaryToolbarButton {
padding-right: 24px;
text-align: right;
}
html[dir="ltr"] .secondaryToolbarButton.bookmark {
padding-left: 27px;
}
html[dir="rtl"] .secondaryToolbarButton.bookmark {
padding-right: 27px;
2013-09-05 06:48:31 +09:00
}
html[dir="ltr"] .secondaryToolbarButton > span {
padding-right: 4px;
}
html[dir="rtl"] .secondaryToolbarButton > span {
padding-left: 4px;
}
.secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage.png);
}
.secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage.png);
}
.secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw.png);
}
.secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw.png);
}
.secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool.png);
}
.secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool.png);
}
.secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical.png);
}
.secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal.png);
}
.secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped.png);
}
.secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone.png);
}
.secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd.png);
}
.secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven.png);
}
2014-01-22 08:07:07 +09:00
.secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties.png);
}
2013-09-05 06:48:31 +09:00
.verticalToolbarSeparator {
display: block;
padding: 8px 0;
margin: 8px 4px;
width: 1px;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
2013-09-05 06:48:31 +09:00
}
html[dir='ltr'] .verticalToolbarSeparator {
margin-left: 2px;
}
html[dir='rtl'] .verticalToolbarSeparator {
margin-right: 2px;
}
.horizontalToolbarSeparator {
display: block;
2013-09-05 06:48:31 +09:00
margin: 0 0 4px 0;
height: 1px;
width: 100%;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
2013-09-05 06:48:31 +09:00
}
.toolbarField {
padding: 3px 6px;
margin: 4px 0 4px 0;
border-radius: 2px;
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.09);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
border-width: 1px;
border-style: solid;
2019-12-25 22:15:39 +09:00
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
2019-12-25 21:28:04 +09:00
color: rgba(242, 242, 242, 1);
font-size: 12px;
line-height: 14px;
outline-style: none;
transition-property: background-color, border-color, box-shadow;
transition-duration: 150ms;
transition-timing-function: ease;
}
.toolbarField[type=checkbox] {
display: inline-block;
margin: 8px 0px;
}
2012-04-26 00:32:37 +09:00
.toolbarField.pageNumber {
-moz-appearance: textfield; /* hides the spinner in moz */
2012-06-08 05:51:29 +09:00
min-width: 16px;
text-align: right;
2012-04-26 03:21:10 +09:00
width: 40px;
2012-04-26 00:32:37 +09:00
}
.toolbarField.pageNumber.visiblePageIsLoading {
background-image: url(images/loading-small.png);
background-repeat: no-repeat;
background-position: 1px;
}
2012-04-26 03:10:53 +09:00
.toolbarField.pageNumber::-webkit-inner-spin-button,
.toolbarField.pageNumber::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.toolbarField:hover {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.11);
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.43) rgba(0, 0, 0, 0.45);
}
.toolbarField:focus {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.15);
border-color: rgba(77, 184, 255, 0.8) rgba(77, 184, 255, 0.85) rgba(77, 184, 255, 0.9);
}
.toolbarLabel {
min-width: 16px;
padding: 3px 6px 3px 2px;
margin: 4px 2px 4px 0;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 2px;
2019-12-25 21:28:04 +09:00
color: rgba(217, 217, 217, 1);
font-size: 12px;
line-height: 14px;
text-align: left;
2018-04-04 07:18:57 +09:00
user-select: none;
cursor: default;
}
#thumbnailView {
position: absolute;
width: calc(100% - 60px);
top: 0;
2012-04-13 07:13:58 +09:00
bottom: 0;
padding: 10px 30px 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
2011-10-29 01:16:17 +09:00
}
#thumbnailView > a:active,
#thumbnailView > a:focus {
outline: 0;
}
.thumbnail {
margin: 0 10px 5px 10px;
}
Implement sidebar resizing for modern browsers, by utilizing CSS variables (issue 2072) By making use of modern CSS features, in this case [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables), implementing sidebar resizing is actually quite simple. Not only will the amount of added code be fairly small, but it should also be easy to maintain since there's no need for complicated JavaScript hacks in order to update the CSS. Another benefit is that the JavaScript code doesn't need to make detailed assumptions about the exact structure of the HTML/CSS code. Obviously this will not work in older browsers, such as IE, that lack support for CSS variables. In those cases sidebar resizing is simply disabled (via feature detection), and the resizing DOM element hidden, and the behaviour is thus *identical* to the current (fixed-width) sidebar. However, considering the simplicity of the implementation, I really don't see why limiting this feature to "modern" browsers is a problem. Finally, note that a few edge-cases meant that the patch is a bit larger than what the basic functionality would dictate. Among those is first of all proper RTL support, and secondly (automatic) resizing of the sidebar when the width of the *entire* viewer changes. Another, pre-existing, issue fixed here is the incomplete interface of `NullL10n`. *Please note:* This patch has been successfully tested in both LTR and RTL viewer locales, in recent versions of Firefox and Chrome. Fixes 2072.
2017-10-10 23:16:05 +09:00
html[dir='ltr'] .thumbnail {
float: left;
}
html[dir='rtl'] .thumbnail {
float: right;
}
#thumbnailView > a:last-of-type > .thumbnail {
margin-bottom: 10px;
2012-04-14 06:14:05 +09:00
}
#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
margin-bottom: 9px;
}
.thumbnail:not([data-loaded]) {
border: 1px dashed rgba(255, 255, 255, 0.5);
margin: -1px 9px 4px 9px;
2012-04-14 06:14:05 +09:00
}
.thumbnailImage {
border: 1px solid rgba(0, 0, 0, 0);
2012-04-14 06:14:05 +09:00
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
opacity: 0.8;
z-index: 99;
background-color: rgba(255, 255, 255, 1);
background-clip: content-box;
}
.thumbnailSelectionRing {
border-radius: 2px;
2012-04-14 06:14:05 +09:00
padding: 7px;
}
2012-05-02 01:43:48 +09:00
a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
2012-04-14 06:14:05 +09:00
.thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
opacity: .9;
}
2012-05-02 01:43:48 +09:00
a:focus > .thumbnail > .thumbnailSelectionRing,
.thumbnail:hover > .thumbnailSelectionRing {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.15);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 0.9);
}
2012-04-14 06:14:05 +09:00
.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
2019-12-25 22:15:39 +09:00
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
opacity: 1;
}
.thumbnail.selected > .thumbnailSelectionRing {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.3);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255,1);
}
#outlineView,
#attachmentsView {
position: absolute;
width: calc(100% - 8px);
top: 0;
2012-04-13 07:13:58 +09:00
bottom: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
2018-04-04 07:18:57 +09:00
user-select: none;
}
#outlineView {
padding: 4px 4px 0;
}
#attachmentsView {
padding: 3px 4px 0;
}
html[dir='ltr'] .outlineWithDeepNesting > .outlineItem,
html[dir='ltr'] .outlineItem > .outlineItems {
margin-left: 20px;
}
html[dir='rtl'] .outlineWithDeepNesting > .outlineItem,
html[dir='rtl'] .outlineItem > .outlineItems {
margin-right: 20px;
}
.outlineItem > a,
.attachmentsItem > button {
text-decoration: none;
2012-06-08 05:51:29 +09:00
display: inline-block;
min-width: 95%;
min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode)
of the container. */
height: auto;
margin-bottom: 1px;
border-radius: 2px;
2019-12-25 22:15:39 +09:00
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
line-height: 15px;
2018-04-04 07:18:57 +09:00
user-select: none;
white-space: normal;
}
.attachmentsItem > button {
border: 0 none;
background: none;
cursor: pointer;
width: 100%;
}
html[dir='ltr'] .outlineItem > a {
padding: 2px 0 5px 4px;
}
html[dir='ltr'] .attachmentsItem > button {
padding: 2px 0 3px 7px;
text-align: left;
}
html[dir='rtl'] .outlineItem > a {
padding: 2px 4px 5px 0;
}
html[dir='rtl'] .attachmentsItem > button {
padding: 2px 7px 3px 0;
text-align: right;
}
.outlineItemToggler {
position: relative;
height: 0;
width: 0;
2019-12-25 22:15:39 +09:00
color: rgba(255, 255, 255, 0.5);
}
.outlineItemToggler::before {
content: url(images/treeitem-expanded.png);
display: inline-block;
position: absolute;
}
2015-09-06 22:34:02 +09:00
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed.png);
}
2015-09-06 22:34:02 +09:00
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl.png);
}
.outlineItemToggler.outlineItemsHidden ~ .outlineItems {
display: none;
}
html[dir='ltr'] .outlineItemToggler {
float: left;
}
html[dir='rtl'] .outlineItemToggler {
float: right;
}
html[dir='ltr'] .outlineItemToggler::before {
right: 4px;
}
html[dir='rtl'] .outlineItemToggler::before {
left: 4px;
}
.outlineItemToggler:hover,
.outlineItemToggler:hover + a,
.outlineItemToggler:hover ~ .outlineItems,
.outlineItem > a:hover,
.attachmentsItem > button:hover {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.02);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.2);
border-radius: 2px;
2019-12-25 22:15:39 +09:00
color: rgba(255, 255, 255, 0.9);
}
2012-06-08 05:51:29 +09:00
.outlineItem.selected {
2019-12-25 22:15:39 +09:00
background-color: rgba(255, 255, 255, 0.08);
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
2012-06-08 05:51:29 +09:00
background-clip: padding-box;
2019-12-25 22:15:39 +09:00
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 1);
2012-06-08 05:51:29 +09:00
}
.noResults {
font-size: 12px;
2019-12-25 22:15:39 +09:00
color: rgba(255, 255, 255, 0.8);
2012-06-08 05:51:29 +09:00
font-style: italic;
cursor: default;
2012-06-08 05:51:29 +09:00
}
2012-04-13 09:57:52 +09:00
/* TODO: file FF bug to support ::-moz-selection:window-inactive
so we can override the opaque grey background when the window is inactive;
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
::selection {
background: rgba(0, 0, 255, 0.3);
}
#errorWrapper {
background: none repeat scroll 0 0 rgba(255, 85, 85, 1);
color: rgba(255, 255, 255, 1);
left: 0;
2012-04-26 09:20:13 +09:00
position: absolute;
right: 0;
z-index: 1000;
padding: 3px;
2011-11-30 02:36:50 +09:00
font-size: 0.8em;
}
.loadingInProgress #errorWrapper {
top: 37px;
}
#errorMessageLeft {
float: left;
}
#errorMessageRight {
float: right;
}
#errorMoreInfo {
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
padding: 3px;
margin: 3px;
2012-01-05 07:43:17 +09:00
width: 98%;
}
.overlayButton {
width: auto;
margin: 3px 4px 2px 4px !important;
padding: 2px 6px 3px 6px;
}
2013-09-25 00:46:54 +09:00
#overlayContainer {
display: table;
position: absolute;
width: 100%;
height: 100%;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.2);
z-index: 40000;
2013-09-25 00:46:54 +09:00
}
#overlayContainer > * {
overflow: auto;
-webkit-overflow-scrolling: touch;
}
2013-09-25 00:46:54 +09:00
#overlayContainer > .container {
2013-09-25 00:46:54 +09:00
display: table-cell;
vertical-align: middle;
text-align: center;
}
#overlayContainer > .container > .dialog {
2013-09-25 00:46:54 +09:00
display: inline-block;
padding: 15px;
border-spacing: 4px;
2019-12-25 21:28:04 +09:00
color: rgba(217, 217, 217, 1);
font-size: 12px;
2013-09-25 00:46:54 +09:00
line-height: 14px;
background-color: rgba(71, 71, 71, 1); /* fallback */
2013-09-25 00:46:54 +09:00
background-image: url(images/texture.png),
2019-12-25 22:15:39 +09:00
linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95));
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2013-09-25 00:46:54 +09:00
}
.dialog > .row {
2013-09-25 00:46:54 +09:00
display: table-row;
}
.dialog > .row > * {
2013-09-25 00:46:54 +09:00
display: table-cell;
}
.dialog .toolbarField {
2013-09-25 00:46:54 +09:00
margin: 5px 0;
}
.dialog .separator {
display: block;
2014-01-22 08:07:07 +09:00
margin: 4px 0 4px 0;
height: 1px;
width: 100%;
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
2014-01-22 08:07:07 +09:00
}
.dialog .buttonRow {
text-align: center;
vertical-align: middle;
2014-01-22 08:07:07 +09:00
}
.dialog :link {
color: rgba(255, 255, 255, 1);
}
#passwordOverlay > .dialog {
text-align: center;
}
#passwordOverlay .toolbarField {
width: 200px;
2014-01-22 08:07:07 +09:00
}
#documentPropertiesOverlay > .dialog {
text-align: left;
}
#documentPropertiesOverlay .row > * {
2014-01-22 08:07:07 +09:00
min-width: 100px;
}
html[dir='ltr'] #documentPropertiesOverlay .row > * {
text-align: left;
}
html[dir='rtl'] #documentPropertiesOverlay .row > * {
2014-01-22 08:07:07 +09:00
text-align: right;
}
#documentPropertiesOverlay .row > span {
width: 125px;
word-wrap: break-word;
}
#documentPropertiesOverlay .row > p {
max-width: 225px;
word-wrap: break-word;
}
#documentPropertiesOverlay .buttonRow {
2014-01-22 08:07:07 +09:00
margin-top: 10px;
}
.clearBoth {
clear: both;
}
2012-04-18 03:10:52 +09:00
.fileInput {
background: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
margin-top: 5px;
visibility: hidden;
position: fixed;
right: 0;
top: 0;
}
2012-02-16 07:12:58 +09:00
#PDFBug {
background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
border: 1px solid rgba(102, 102, 102, 1);
position: fixed;
2012-04-27 04:35:52 +09:00
top: 32px;
right: 0;
bottom: 0;
font-size: 10px;
padding: 0;
2012-04-27 04:35:52 +09:00
width: 300px;
}
2012-02-16 07:12:58 +09:00
#PDFBug .controls {
background: rgba(238, 238, 238, 1);
border-bottom: 1px solid rgba(102, 102, 102, 1);
padding: 3px;
}
2012-02-16 07:12:58 +09:00
#PDFBug .panels {
2012-04-27 04:35:52 +09:00
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
right: 0;
2012-04-27 04:35:52 +09:00
top: 27px;
}
2012-02-16 07:12:58 +09:00
#PDFBug button.active {
font-weight: bold;
}
.debuggerShowText {
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
color: rgba(0, 0, 255, 1);
}
.debuggerHideText:hover {
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2011-09-21 13:49:09 +09:00
}
#PDFBug .stats {
2012-04-27 04:35:52 +09:00
font-family: courier;
font-size: 10px;
white-space: pre;
}
#PDFBug .stats .title {
2012-04-27 04:35:52 +09:00
font-weight: bold;
}
#PDFBug table {
font-size: 10px;
2011-09-21 13:49:09 +09:00
}
2012-05-16 04:47:33 +09:00
2015-11-20 02:03:52 +09:00
#viewer.textLayer-visible .textLayer {
opacity: 1.0;
}
#viewer.textLayer-visible .canvasWrapper {
2019-12-25 22:19:09 +09:00
background-color: rgba(128, 255, 128, 1);
2015-11-20 02:03:52 +09:00
}
#viewer.textLayer-visible .canvasWrapper canvas {
mix-blend-mode: screen;
}
#viewer.textLayer-visible .textLayer > span {
2015-11-20 02:03:52 +09:00
background-color: rgba(255, 255, 0, 0.1);
color: rgba(0, 0, 0, 1);
2015-11-20 02:03:52 +09:00
border: solid 1px rgba(255, 0, 0, 0.5);
box-sizing: border-box;
}
#viewer.textLayer-hover .textLayer > span:hover {
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
2012-08-20 10:02:12 +09:00
}
#viewer.textLayer-shadow .textLayer > span {
background-color: rgba(255, 255, 255, 0.6);
color: rgba(0, 0, 0, 1);
2012-08-20 10:02:12 +09:00
}
.grab-to-pan-grab {
cursor: url("images/grab.cur"), move !important;
cursor: grab !important;
}
.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
cursor: inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
cursor: url("images/grabbing.cur"), move !important;
cursor: grabbing !important;
position: fixed;
background: rgba(0, 0, 0, 0);
display: block;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 50000; /* should be higher than anything else in PDF.js! */
}
@page {
margin: 0;
}
2012-05-16 04:47:33 +09:00
#printContainer {
display: none;
}
@media screen and (min-resolution: 1.1dppx) {
2014-02-27 06:22:38 +09:00
/* Rules for Retina screens */
.toolbarButton::before {
transform: scale(0.5);
2014-02-27 06:22:38 +09:00
top: -5px;
}
.secondaryToolbarButton::before {
transform: scale(0.5);
top: -4px;
}
html[dir='ltr'] .toolbarButton::before,
html[dir='rtl'] .toolbarButton::before {
left: -1px;
}
html[dir='ltr'] .secondaryToolbarButton::before {
left: -2px;
}
html[dir='rtl'] .secondaryToolbarButton::before {
left: 186px;
}
.toolbarField.pageNumber.visiblePageIsLoading,
#findInput[data-status="pending"] {
background-image: url(images/loading-small@2x.png);
background-size: 16px 17px;
}
2014-02-27 06:22:38 +09:00
.dropdownToolbarButton {
background: url(images/toolbarButton-menuArrows@2x.png) no-repeat;
background-size: 7px 16px;
}
2014-02-27 06:22:38 +09:00
html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle@2x.png);
}
html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle@2x.png);
}
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous@2x.png);
}
html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next@2x.png);
}
html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp@2x.png);
}
html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown@2x.png);
}
html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl@2x.png);
}
.toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn@2x.png);
}
.toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut@2x.png);
}
.toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode@2x.png);
}
.toolbarButton.print::before,
.secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print@2x.png);
}
.toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before {
content: url(images/toolbarButton-openFile@2x.png);
}
.toolbarButton.download::before,
.secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download@2x.png);
}
.toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark@2x.png);
}
#viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail@2x.png);
}
html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline@2x.png);
}
html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl@2x.png);
}
#viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments@2x.png);
}
2014-02-27 06:22:38 +09:00
#viewFind.toolbarButton::before {
content: url(images/toolbarButton-search@2x.png);
}
.secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage@2x.png);
}
.secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage@2x.png);
}
.secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw@2x.png);
}
.secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw@2x.png);
}
.secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool@2x.png);
}
2014-02-27 06:22:38 +09:00
.secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool@2x.png);
}
.secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical@2x.png);
}
.secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal@2x.png);
}
.secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped@2x.png);
}
.secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone@2x.png);
}
.secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd@2x.png);
}
.secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven@2x.png);
}
2014-02-27 06:22:38 +09:00
.secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties@2x.png);
}
.outlineItemToggler::before {
transform: scale(0.5);
top: -1px;
content: url(images/treeitem-expanded@2x.png);
}
2015-09-06 22:34:02 +09:00
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed@2x.png);
}
2015-09-06 22:34:02 +09:00
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl@2x.png);
}
html[dir='ltr'] .outlineItemToggler::before {
right: 0;
}
html[dir='rtl'] .outlineItemToggler::before {
left: 0;
}
2014-02-27 06:22:38 +09:00
}
@media print {
2013-05-01 06:39:57 +09:00
/* General rules for printing. */
body {
background: rgba(0, 0, 0, 0) none;
2013-05-01 06:39:57 +09:00
}
/* Rules for browsers that don't support mozPrintCallback. */
2013-09-05 06:48:31 +09:00
#sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
display: none;
}
#viewerContainer {
overflow: visible;
}
#mainContainer, #viewerContainer, .page, .page canvas {
position: static;
padding: 0;
margin: 0;
}
.page {
float: left;
display: none;
border: none;
box-shadow: none;
2014-10-01 08:01:30 +09:00
background-clip: content-box;
background-color: rgba(255, 255, 255, 1);
}
.page[data-loaded] {
display: block;
}
.fileInput {
display: none;
}
/* Rules for browsers that support PDF.js printing */
body[data-pdfjsprinting] #outerContainer {
display: none;
}
body[data-pdfjsprinting] #printContainer {
display: block;
}
#printContainer {
height: 100%;
}
/* wrapper around (scaled) print canvas elements */
#printContainer > div {
position: relative;
top: 0;
left: 0;
width: 1px;
height: 1px;
overflow: visible;
page-break-after: always;
page-break-inside: avoid;
}
#printContainer canvas,
#printContainer img {
2014-10-01 08:01:30 +09:00
display: block;
}
}
2013-09-05 06:48:31 +09:00
.visibleLargeView,
.visibleMediumView,
.visibleSmallView {
display: none;
}
@media all and (max-width: 900px) {
#toolbarViewerMiddle {
display: table;
margin: auto;
left: auto;
position: inherit;
transform: none;
}
2012-05-22 00:59:43 +09:00
}
2012-05-16 04:47:33 +09:00
@media all and (max-width: 840px) {
2012-05-16 04:47:33 +09:00
#sidebarContent {
2019-12-25 22:15:39 +09:00
background-color: rgba(0, 0, 0, 0.7);
2012-05-16 04:47:33 +09:00
}
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {
left: 0px !important;
2012-05-16 04:47:33 +09:00
}
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {
right: 0px !important;
2012-05-16 04:47:33 +09:00
}
2013-09-05 06:48:31 +09:00
#outerContainer .hiddenLargeView,
#outerContainer .hiddenMediumView {
display: inherit;
}
#outerContainer .visibleLargeView,
#outerContainer .visibleMediumView {
display: none;
}
}
@media all and (max-width: 770px) {
2013-09-05 06:48:31 +09:00
#outerContainer .hiddenLargeView {
display: none;
}
#outerContainer .visibleLargeView {
display: inherit;
}
}
@media all and (max-width: 700px) {
2013-09-05 06:48:31 +09:00
#outerContainer .hiddenMediumView {
display: none;
}
#outerContainer .visibleMediumView {
display: inherit;
2012-05-16 04:47:33 +09:00
}
}
@media all and (max-width: 640px) {
.hiddenSmallView, .hiddenSmallView * {
display: none;
}
2013-09-05 06:48:31 +09:00
.visibleSmallView {
display: inherit;
}
.toolbarButtonSpacer {
width: 0;
}
html[dir='ltr'] .findbar {
left: 38px;
}
html[dir='rtl'] .findbar {
right: 38px;
}
}
2012-05-24 07:10:53 +09:00
@media all and (max-width: 535px) {
#scaleSelectContainer {
2012-05-24 07:10:53 +09:00
display: none;
}
}