2014-10-01 00:48:29 +09:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
2014-10-01 00:48:29 +09:00
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
* {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2011-05-26 23:02:52 +09:00
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
html {
|
|
|
|
height: 100%;
|
2016-02-11 06:10:03 +09:00
|
|
|
width: 100%;
|
2013-12-15 07:01:49 +09:00
|
|
|
/* Font size is needed to make the activity bar the correct size. */
|
2013-10-10 07:04:58 +09:00
|
|
|
font-size: 10px;
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2012-04-12 08:12:51 +09:00
|
|
|
height: 100%;
|
2016-02-11 06:10:03 +09:00
|
|
|
width: 100%;
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: #404040;
|
|
|
|
background-image: url(images/texture.png);
|
2012-06-13 18:15:31 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
body,
|
|
|
|
input,
|
2012-06-13 18:27:22 +09:00
|
|
|
button,
|
2012-06-13 18:15:31 +09:00
|
|
|
select {
|
2012-06-14 02:47:46 +09:00
|
|
|
font: message-box;
|
2014-01-27 19:57:33 +09:00
|
|
|
outline: none;
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
|
|
|
|
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] {
|
2012-01-25 08:13:50 +09:00
|
|
|
display: none !important;
|
2011-10-19 04:40:59 +09:00
|
|
|
}
|
|
|
|
|
2015-02-04 22:10:45 +09:00
|
|
|
#viewerContainer.pdfPresentationMode:-ms-fullscreen {
|
2013-09-11 04:40:14 +09:00
|
|
|
top: 0px !important;
|
2013-09-11 05:17:40 +09:00
|
|
|
overflow: hidden !important;
|
2013-09-11 04:40:14 +09:00
|
|
|
}
|
|
|
|
|
2015-02-04 22:10:45 +09:00
|
|
|
#viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop {
|
2014-01-14 05:30:47 +09:00
|
|
|
background-color: #000;
|
2013-09-11 04:40:14 +09:00
|
|
|
}
|
|
|
|
|
2015-02-04 22:10:45 +09:00
|
|
|
#viewerContainer.pdfPresentationMode:fullscreen {
|
2012-07-31 00:12:49 +09:00
|
|
|
top: 0px;
|
2012-10-11 12:41:28 +09:00
|
|
|
border-top: 2px solid transparent;
|
2014-01-14 05:30:47 +09:00
|
|
|
background-color: #000;
|
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;
|
2013-09-11 04:40:14 +09:00
|
|
|
}
|
|
|
|
|
2015-02-04 22:10:45 +09:00
|
|
|
.pdfPresentationMode:fullscreen a:not(.internalLink) {
|
2013-03-26 01:50:49 +09:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-11-18 23:54:08 +09:00
|
|
|
.pdfPresentationMode:fullscreen .textLayer > span {
|
2015-02-04 22:10:45 +09:00
|
|
|
cursor: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pdfPresentationMode.pdfPresentationModeControls > *,
|
2018-11-18 23:54:08 +09:00
|
|
|
.pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
|
2012-10-11 09:32:48 +09:00
|
|
|
cursor: default;
|
2012-07-31 00:12:49 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#outerContainer {
|
2011-07-29 02:48:05 +09:00
|
|
|
width: 100%;
|
2012-04-12 08:12:51 +09:00
|
|
|
height: 100%;
|
2013-10-10 07:04:58 +09:00
|
|
|
position: relative;
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#sidebarContainer {
|
2012-04-26 03:34:28 +09:00
|
|
|
position: absolute;
|
2017-09-30 23:41:46 +09:00
|
|
|
top: 32px;
|
2012-04-26 03:34:28 +09:00
|
|
|
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;
|
2017-09-30 23:41:46 +09:00
|
|
|
z-index: 100;
|
|
|
|
border-top: 1px solid #333;
|
|
|
|
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-duration: 200ms;
|
|
|
|
transition-timing-function: ease;
|
2012-04-26 03:34:28 +09:00
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] #sidebarContainer {
|
2012-06-11 18:03:15 +09:00
|
|
|
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 {
|
2012-06-11 18:03:15 +09:00
|
|
|
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));
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
|
|
|
|
2017-09-30 23:41:46 +09:00
|
|
|
.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
|
|
|
}
|
|
|
|
|
2017-09-30 23:41:46 +09:00
|
|
|
#outerContainer.sidebarMoving #sidebarContainer,
|
|
|
|
#outerContainer.sidebarOpen #sidebarContainer {
|
2012-05-02 01:43:48 +09:00
|
|
|
visibility: visible;
|
2012-05-02 07:19:02 +09:00
|
|
|
}
|
2017-09-30 23:41:46 +09:00
|
|
|
html[dir='ltr'] #outerContainer.sidebarOpen #sidebarContainer {
|
2012-04-26 05:46:17 +09:00
|
|
|
left: 0px;
|
2012-04-26 03:34:28 +09:00
|
|
|
}
|
2017-09-30 23:41:46 +09:00
|
|
|
html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer {
|
2012-05-02 07:08:30 +09:00
|
|
|
right: 0px;
|
2011-10-15 11:05:57 +09:00
|
|
|
}
|
|
|
|
|
2012-04-26 03:34:28 +09:00
|
|
|
#mainContainer {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2013-02-26 09:53:54 +09:00
|
|
|
min-width: 320px;
|
2012-05-02 07:08:30 +09:00
|
|
|
}
|
2012-04-26 03:34:28 +09:00
|
|
|
|
|
|
|
#sidebarContent {
|
2012-04-26 04:14:09 +09:00
|
|
|
top: 32px;
|
2012-04-26 03:34:28 +09:00
|
|
|
bottom: 0;
|
|
|
|
overflow: auto;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2012-04-26 03:34:28 +09:00
|
|
|
position: absolute;
|
2017-09-30 23:41:46 +09:00
|
|
|
width: 100%;
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.1);
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] #sidebarContent {
|
|
|
|
left: 0;
|
2014-01-22 06:56:19 +09:00
|
|
|
box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25);
|
2012-05-02 07:08:30 +09:00
|
|
|
}
|
|
|
|
html[dir='rtl'] #sidebarContent {
|
|
|
|
right: 0;
|
2014-01-22 06:56:19 +09:00
|
|
|
box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25);
|
2011-08-29 05:10:14 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#viewerContainer {
|
2012-04-26 03:34:28 +09:00
|
|
|
overflow: auto;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2012-04-26 03:34:28 +09:00
|
|
|
position: absolute;
|
|
|
|
top: 32px;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2013-07-06 22:37:03 +09:00
|
|
|
outline: none;
|
2018-06-14 23:09:22 +09:00
|
|
|
}
|
|
|
|
#viewerContainer:not(.pdfPresentationMode) {
|
2017-09-30 23:41:46 +09:00
|
|
|
transition-duration: 200ms;
|
|
|
|
transition-timing-function: ease;
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
2014-01-22 06:56:19 +09:00
|
|
|
html[dir='ltr'] #viewerContainer {
|
|
|
|
box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05);
|
|
|
|
}
|
|
|
|
html[dir='rtl'] #viewerContainer {
|
|
|
|
box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05);
|
|
|
|
}
|
2011-05-26 23:02:52 +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;
|
|
|
|
}
|
|
|
|
|
2018-06-14 23:09:22 +09:00
|
|
|
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
|
2017-09-30 23:41:46 +09:00
|
|
|
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);
|
2017-09-30 23:41:46 +09:00
|
|
|
}
|
2018-06-14 23:09:22 +09:00
|
|
|
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
|
2017-09-30 23:41:46 +09:00
|
|
|
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);
|
2017-09-30 23:41:46 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbar {
|
2013-02-07 08:19:29 +09:00
|
|
|
position: relative;
|
2012-04-26 03:34:28 +09:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2012-04-12 08:12:51 +09:00
|
|
|
z-index: 9999;
|
|
|
|
cursor: default;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#toolbarContainer {
|
|
|
|
width: 100%;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#toolbarSidebar {
|
2017-09-30 23:41:46 +09:00
|
|
|
width: 100%;
|
2012-10-30 06:35:07 +09:00
|
|
|
height: 32px;
|
2013-04-07 20:57:14 +09:00
|
|
|
background-color: #424242; /* fallback */
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: url(images/texture.png),
|
|
|
|
linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95));
|
2014-01-22 06:56:19 +09:00
|
|
|
}
|
|
|
|
html[dir='ltr'] #toolbarSidebar {
|
2012-10-30 06:35:07 +09:00
|
|
|
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
|
2012-04-12 08:12:51 +09:00
|
|
|
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
|
|
|
0 1px 0 hsla(0,0%,0%,.15),
|
2012-10-30 06:35:07 +09:00
|
|
|
0 0 1px hsla(0,0%,0%,.1);
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
2014-01-22 06:56:19 +09:00
|
|
|
html[dir='rtl'] #toolbarSidebar {
|
|
|
|
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
|
|
|
|
inset 0 1px 0 hsla(0,0%,100%,.05),
|
|
|
|
0 1px 0 hsla(0,0%,0%,.15),
|
|
|
|
0 0 1px hsla(0,0%,0%,.1);
|
|
|
|
}
|
2012-04-12 08:12:51 +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 {
|
2012-04-26 03:34:28 +09:00
|
|
|
position: relative;
|
2012-04-12 08:12:51 +09:00
|
|
|
height: 32px;
|
2013-04-07 20:57:14 +09:00
|
|
|
background-color: #474747; /* fallback */
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: url(images/texture.png),
|
|
|
|
linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
|
2014-01-22 06:56:19 +09:00
|
|
|
}
|
|
|
|
html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
|
2017-09-30 23:41:46 +09:00
|
|
|
box-shadow: inset 0 1px 1px hsla(0,0%,0%,.15),
|
2012-04-12 08:12:51 +09:00
|
|
|
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
|
|
|
0 1px 0 hsla(0,0%,0%,.15),
|
|
|
|
0 1px 1px hsla(0,0%,0%,.1);
|
2011-05-26 23:02:52 +09:00
|
|
|
}
|
2014-01-22 06:56:19 +09:00
|
|
|
html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
|
2017-09-30 23:41:46 +09:00
|
|
|
box-shadow: inset 0 1px 1px hsla(0,0%,0%,.15),
|
2014-01-22 06:56:19 +09:00
|
|
|
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
|
|
|
0 1px 0 hsla(0,0%,0%,.15),
|
|
|
|
0 1px 1px hsla(0,0%,0%,.1);
|
|
|
|
}
|
2012-09-12 01:30:44 +09:00
|
|
|
|
2013-02-07 08:19:29 +09:00
|
|
|
#toolbarViewer {
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loadingBar {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2014-08-12 13:09:38 +09:00
|
|
|
height: 4px;
|
2013-02-07 08:19:29 +09:00
|
|
|
background-color: #333;
|
|
|
|
border-bottom: 1px solid #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loadingBar .progress {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 0%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: #ddd;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: width 200ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes progressIndeterminate {
|
2015-11-01 22:19:59 +09:00
|
|
|
0% { left: -142px; }
|
|
|
|
100% { left: 0; }
|
2013-02-07 08:19:29 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#loadingBar .progress.indeterminate {
|
|
|
|
background-color: #999;
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
|
2015-11-01 22:19:59 +09:00
|
|
|
#loadingBar .progress.indeterminate .glimmer {
|
2013-02-07 08:19:29 +09:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
2015-11-01 22:19:59 +09:00
|
|
|
width: calc(100% + 150px);
|
2013-02-07 08:19:29 +09:00
|
|
|
|
2015-11-01 22:19:59 +09:00
|
|
|
background: repeating-linear-gradient(135deg,
|
|
|
|
#bbb 0, #999 5px,
|
|
|
|
#999 45px, #ddd 55px,
|
|
|
|
#ddd 95px, #bbb 100px);
|
2013-02-07 08:19:29 +09:00
|
|
|
|
2015-11-01 22:19:59 +09:00
|
|
|
animation: progressIndeterminate 950ms linear infinite;
|
2013-02-07 08:19:29 +09:00
|
|
|
}
|
|
|
|
|
2013-09-05 06:48:31 +09:00
|
|
|
.findbar, .secondaryToolbar {
|
2012-09-29 04:30:07 +09:00
|
|
|
top: 32px;
|
2012-09-12 01:30:44 +09:00
|
|
|
position: absolute;
|
2012-09-29 04:30:07 +09:00
|
|
|
z-index: 10000;
|
2017-03-09 07:54:28 +09:00
|
|
|
height: auto;
|
2012-09-12 01:30:44 +09:00
|
|
|
min-width: 16px;
|
2012-10-06 09:15:06 +09:00
|
|
|
padding: 0px 6px 0px 6px;
|
|
|
|
margin: 4px 2px 4px 2px;
|
2012-09-12 01:30:44 +09:00
|
|
|
color: hsl(0,0%,85%);
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
text-align: left;
|
2012-09-29 03:18:45 +09:00
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2017-03-09 07:54:28 +09:00
|
|
|
.findbar {
|
|
|
|
min-width: 300px;
|
|
|
|
}
|
|
|
|
.findbar > div {
|
|
|
|
height: 32px;
|
|
|
|
}
|
2017-03-09 07:54:57 +09:00
|
|
|
.findbar.wrapContainers > div {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.findbar.wrapContainers > div#findbarMessageContainer {
|
|
|
|
height: auto;
|
|
|
|
}
|
2012-10-06 09:15:06 +09:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2017-03-09 07:53:59 +09:00
|
|
|
#findInput {
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
#findInput::-webkit-input-placeholder {
|
2017-12-12 19:04:51 +09:00
|
|
|
color: hsl(0, 0%, 75%);
|
2017-03-09 07:53:59 +09:00
|
|
|
}
|
|
|
|
#findInput::placeholder {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2012-10-11 07:46:04 +09:00
|
|
|
#findInput[data-status="pending"] {
|
2012-10-11 05:58:14 +09:00
|
|
|
background-image: url(images/loading-small.png);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: right;
|
|
|
|
}
|
2014-08-26 05:58:44 +09:00
|
|
|
html[dir='rtl'] #findInput[data-status="pending"] {
|
|
|
|
background-position: left;
|
|
|
|
}
|
2012-10-11 05:58:14 +09:00
|
|
|
|
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;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2013-09-27 18:44:45 +09:00
|
|
|
margin-bottom: -4px;
|
2013-09-05 06:48:31 +09:00
|
|
|
}
|
|
|
|
|
2018-07-08 17:56:01 +09:00
|
|
|
#secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
|
|
|
|
#secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2013-09-05 06:48:31 +09:00
|
|
|
.doorHanger,
|
|
|
|
.doorHangerRight {
|
2012-09-29 04:30:07 +09:00
|
|
|
border: 1px solid hsla(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 {
|
2012-09-29 04:30:07 +09:00
|
|
|
bottom: 100%;
|
|
|
|
border: solid transparent;
|
|
|
|
content: " ";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2013-09-05 06:48:31 +09:00
|
|
|
.doorHanger:after,
|
|
|
|
.doorHangerRight:after {
|
2012-09-29 04:30:07 +09:00
|
|
|
border-bottom-color: hsla(0,0%,32%,.99);
|
|
|
|
border-width: 8px;
|
|
|
|
}
|
2013-09-05 06:48:31 +09:00
|
|
|
.doorHanger:before,
|
|
|
|
.doorHangerRight:before {
|
2012-09-29 04:30:07 +09:00
|
|
|
border-bottom-color: hsla(0,0%,0%,.5);
|
|
|
|
border-width: 9px;
|
2012-10-06 09:15:06 +09:00
|
|
|
}
|
|
|
|
|
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;
|
2012-10-06 09:15:06 +09:00
|
|
|
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;
|
2012-09-29 04:30:07 +09:00
|
|
|
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;
|
2012-10-06 09:15:06 +09:00
|
|
|
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;
|
2012-10-06 09:15:06 +09:00
|
|
|
margin-right: -9px;
|
|
|
|
}
|
|
|
|
|
2014-07-16 23:39:34 +09:00
|
|
|
#findResultsCount {
|
|
|
|
background-color: hsl(0, 0%, 85%);
|
|
|
|
color: hsl(0, 0%, 32%);
|
|
|
|
text-align: center;
|
|
|
|
padding: 3px 4px;
|
|
|
|
}
|
|
|
|
|
2012-09-29 03:18:45 +09:00
|
|
|
#findMsg {
|
|
|
|
font-style: italic;
|
|
|
|
color: #A6B7D0;
|
2012-09-12 01:30:44 +09:00
|
|
|
}
|
2017-03-09 07:54:28 +09:00
|
|
|
#findMsg:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-09-12 01:30:44 +09:00
|
|
|
|
2014-11-02 02:08:13 +09:00
|
|
|
#findInput.notFound {
|
|
|
|
background-color: rgb(255, 102, 102);
|
2012-09-12 01:30:44 +09:00
|
|
|
}
|
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
#toolbarViewerMiddle {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] #toolbarViewerLeft,
|
|
|
|
html[dir='rtl'] #toolbarViewerRight {
|
2016-11-04 00:56:57 +09:00
|
|
|
float: left;
|
2012-04-26 03:34:28 +09:00
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] #toolbarViewerRight,
|
|
|
|
html[dir='rtl'] #toolbarViewerLeft {
|
2016-11-04 00:56:57 +09:00
|
|
|
float: right;
|
2012-04-26 03:34:28 +09:00
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] #toolbarViewerLeft > *,
|
|
|
|
html[dir='ltr'] #toolbarViewerMiddle > *,
|
2012-10-06 09:15:06 +09:00
|
|
|
html[dir='ltr'] #toolbarViewerRight > *,
|
2017-03-09 07:54:28 +09:00
|
|
|
html[dir='ltr'] .findbar * {
|
2013-04-04 00:31:58 +09:00
|
|
|
position: relative;
|
2012-04-26 03:34:28 +09:00
|
|
|
float: left;
|
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='rtl'] #toolbarViewerLeft > *,
|
|
|
|
html[dir='rtl'] #toolbarViewerMiddle > *,
|
2012-10-06 09:15:06 +09:00
|
|
|
html[dir='rtl'] #toolbarViewerRight > *,
|
2017-03-09 07:54:28 +09:00
|
|
|
html[dir='rtl'] .findbar * {
|
2013-04-04 00:31:58 +09:00
|
|
|
position: relative;
|
2012-05-02 07:08:30 +09:00
|
|
|
float: right;
|
2012-02-07 17:23:23 +09:00
|
|
|
}
|
|
|
|
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] .splitToolbarButton {
|
2012-04-26 03:34:28 +09:00
|
|
|
margin: 3px 2px 4px 0;
|
|
|
|
display: inline-block;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
border-radius: 0;
|
2012-04-26 03:34:28 +09:00
|
|
|
float: left;
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
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,
|
2014-05-12 22:50:13 +09:00
|
|
|
.secondaryToolbarButton,
|
|
|
|
.overlayButton {
|
2012-04-26 03:34:28 +09:00
|
|
|
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;
|
2011-07-29 02:48:05 +09:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2013-09-05 06:48:31 +09:00
|
|
|
.toolbarButton[disabled],
|
2014-05-12 22:50:13 +09:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.12);
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid hsla(0,0%,0%,.35);
|
|
|
|
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.15) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.05);
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
transition-duration: 150ms;
|
|
|
|
transition-timing-function: ease;
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
|
|
|
.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,
|
2015-08-04 17:59:07 +09:00
|
|
|
.overlayButton:focus,
|
2012-06-08 05:51:29 +09:00
|
|
|
.toolbarButton.textButton:hover,
|
|
|
|
.toolbarButton.textButton:focus {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.2);
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.15) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.05);
|
|
|
|
z-index: 199;
|
|
|
|
}
|
2014-03-19 05:32:47 +09:00
|
|
|
.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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
margin-right: -1px;
|
|
|
|
border-top-left-radius: 2px;
|
|
|
|
border-bottom-left-radius: 2px;
|
|
|
|
border-right-color: transparent;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
2012-05-02 07:08:30 +09:00
|
|
|
html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
|
|
|
|
html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
|
2012-04-12 08:12:51 +09:00
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
margin-left: -1px;
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
border-bottom-right-radius: 2px;
|
|
|
|
border-left-color: transparent;
|
|
|
|
}
|
|
|
|
.splitToolbarButtonSeparator {
|
2012-04-26 03:34:28 +09:00
|
|
|
padding: 8px 0;
|
2012-04-12 08:12:51 +09:00
|
|
|
width: 1px;
|
2013-09-05 06:48:31 +09:00
|
|
|
background-color: hsla(0,0%,0%,.5);
|
2012-04-12 08:12:51 +09:00
|
|
|
z-index: 99;
|
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
2012-04-26 03:34:28 +09:00
|
|
|
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-04-12 08:12:51 +09:00
|
|
|
}
|
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
|
|
|
}
|
2012-04-12 08:12:51 +09:00
|
|
|
.splitToolbarButton:hover > .splitToolbarButtonSeparator,
|
|
|
|
.splitToolbarButton.toggled > .splitToolbarButtonSeparator {
|
2012-04-27 06:38:41 +09:00
|
|
|
padding: 12px 0;
|
2012-12-15 06:24:28 +09:00
|
|
|
margin: 1px 0;
|
2012-04-12 08:12:51 +09:00
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.03);
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-property: padding;
|
|
|
|
transition-duration: 10ms;
|
|
|
|
transition-timing-function: ease;
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton,
|
2013-09-05 06:48:31 +09:00
|
|
|
.dropdownToolbarButton,
|
2014-05-12 22:50:13 +09:00
|
|
|
.secondaryToolbarButton,
|
|
|
|
.overlayButton {
|
2012-04-12 08:12:51 +09:00
|
|
|
min-width: 16px;
|
2012-04-27 06:38:41 +09:00
|
|
|
padding: 2px 6px 0;
|
2012-04-12 08:12:51 +09:00
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: 2px;
|
2013-09-05 06:48:31 +09:00
|
|
|
color: hsla(0,0%,100%,.8);
|
2012-04-12 08:12:51 +09:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
2018-04-04 07:18:57 +09:00
|
|
|
user-select: none;
|
2012-06-11 18:03:15 +09:00
|
|
|
/* Opera does not support user-select, use <... unselectable="on"> instead */
|
2012-04-12 08:12:51 +09:00
|
|
|
cursor: default;
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
transition-duration: 150ms;
|
|
|
|
transition-timing-function: ease;
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.12);
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid hsla(0,0%,0%,.35);
|
|
|
|
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.15) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.2);
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45);
|
|
|
|
box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.05);
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
transition-duration: 10ms;
|
|
|
|
transition-timing-function: linear;
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton.toggled,
|
2013-09-05 06:48:31 +09:00
|
|
|
.splitToolbarButton.toggled > .toolbarButton.toggled,
|
|
|
|
.secondaryToolbarButton.toggled {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.3);
|
2012-06-11 18:03:15 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5);
|
|
|
|
box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.05);
|
2012-06-11 18:03:15 +09:00
|
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
transition-duration: 10ms;
|
|
|
|
transition-timing-function: linear;
|
2012-04-12 08:12:51 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton.toggled:hover:active,
|
2013-09-05 06:48:31 +09:00
|
|
|
.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
|
|
|
|
.secondaryToolbarButton.toggled:hover:active {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,0%,.4);
|
|
|
|
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55);
|
|
|
|
box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.3) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdownToolbarButton {
|
2013-02-27 02:46:50 +09:00
|
|
|
width: 120px;
|
2012-04-26 07:55:11 +09:00
|
|
|
max-width: 120px;
|
2015-06-04 04:03:10 +09:00
|
|
|
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 {
|
2012-04-26 07:55:11 +09:00
|
|
|
min-width: 140px;
|
2012-04-14 03:13:53 +09:00
|
|
|
font-size: 12px;
|
|
|
|
color: hsl(0,0%,95%);
|
2013-02-27 05:06:53 +09:00
|
|
|
margin: 0;
|
2015-06-04 04:03:10 +09:00
|
|
|
padding: 3px 2px 2px;
|
2013-02-27 05:06:53 +09:00
|
|
|
border: none;
|
2012-07-31 17:48:52 +09:00
|
|
|
background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
|
2012-02-07 17:23:23 +09:00
|
|
|
}
|
|
|
|
|
2012-05-17 10:19:38 +09:00
|
|
|
.dropdownToolbarButton > select > option {
|
|
|
|
background: hsl(0,0%,24%);
|
|
|
|
}
|
|
|
|
|
2012-04-26 07:55:11 +09:00
|
|
|
#customScaleOption {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pageWidthOption {
|
|
|
|
border-bottom: 1px rgba(255, 255, 255, .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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
margin-right: 4px;
|
2011-08-31 21:22:48 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarButtonSpacer {
|
|
|
|
width: 30px;
|
2011-08-31 21:22:48 +09:00
|
|
|
display: inline-block;
|
2012-04-26 03:34:28 +09:00
|
|
|
height: 1px;
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
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 {
|
2013-04-04 00:31:58 +09:00
|
|
|
/* 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;
|
2013-04-04 00:31:58 +09:00
|
|
|
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
|
|
|
|
2012-10-06 09:15:06 +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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-pageUp.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
2012-05-02 09:39:24 +09:00
|
|
|
html[dir='rtl'] .toolbarButton.pageUp::before {
|
|
|
|
content: url(images/toolbarButton-pageUp-rtl.png);
|
|
|
|
}
|
2012-09-13 03:05:34 +09:00
|
|
|
|
2012-05-02 09:39:24 +09:00
|
|
|
html[dir='ltr'] .toolbarButton.pageDown::before {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-pageDown.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
2012-05-02 09:39:24 +09:00
|
|
|
html[dir='rtl'] .toolbarButton.pageDown::before {
|
|
|
|
content: url(images/toolbarButton-pageDown-rtl.png);
|
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarButton.zoomOut::before {
|
|
|
|
content: url(images/toolbarButton-zoomOut.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
2012-09-13 03:05:34 +09:00
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarButton.zoomIn::before {
|
|
|
|
content: url(images/toolbarButton-zoomIn.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2013-09-05 06:48:31 +09:00
|
|
|
.toolbarButton.presentationMode::before,
|
|
|
|
.secondaryToolbarButton.presentationMode::before {
|
2013-03-02 05:54:02 +09:00
|
|
|
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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-print.png);
|
2013-09-05 06:48:31 +09:00
|
|
|
}
|
2011-08-22 11:05:10 +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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-download.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2013-09-27 18:44:45 +09:00
|
|
|
.toolbarButton.bookmark,
|
|
|
|
.secondaryToolbarButton.bookmark {
|
2012-04-27 06:38:41 +09:00
|
|
|
box-sizing: border-box;
|
2014-01-27 19:57:33 +09:00
|
|
|
outline: none;
|
2012-05-01 06:58:12 +09:00
|
|
|
padding-top: 4px;
|
2013-09-27 18:44:45 +09:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
.secondaryToolbarButton.bookmark {
|
|
|
|
padding-top: 5px;
|
2012-04-17 04:41:55 +09:00
|
|
|
}
|
|
|
|
|
2013-09-27 18:44:45 +09:00
|
|
|
.bookmark[href='#'] {
|
2013-03-19 07:53:45 +09:00
|
|
|
opacity: .5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2013-09-27 18:44:45 +09:00
|
|
|
.toolbarButton.bookmark::before,
|
|
|
|
.secondaryToolbarButton.bookmark::before {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-bookmark.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
2012-09-13 03:05:34 +09:00
|
|
|
|
2012-04-13 08:29:15 +09:00
|
|
|
#viewThumbnail.toolbarButton::before {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-viewThumbnail.png);
|
|
|
|
}
|
2012-09-13 03:05:34 +09:00
|
|
|
|
2013-09-15 02:33:00 +09:00
|
|
|
html[dir="ltr"] #viewOutline.toolbarButton::before {
|
2012-04-12 08:12:51 +09:00
|
|
|
content: url(images/toolbarButton-viewOutline.png);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
2013-09-15 02:33:00 +09:00
|
|
|
html[dir="rtl"] #viewOutline.toolbarButton::before {
|
|
|
|
content: url(images/toolbarButton-viewOutline-rtl.png);
|
|
|
|
}
|
2011-08-22 11:05:10 +09:00
|
|
|
|
2014-03-19 05:32:47 +09:00
|
|
|
#viewAttachments.toolbarButton::before {
|
|
|
|
content: url(images/toolbarButton-viewAttachments.png);
|
|
|
|
}
|
|
|
|
|
2012-09-26 05:17:27 +09:00
|
|
|
#viewFind.toolbarButton::before {
|
2012-05-22 01:23:12 +09:00
|
|
|
content: url(images/toolbarButton-search.png);
|
2012-05-09 06:22:48 +09:00
|
|
|
}
|
|
|
|
|
2017-01-15 20:37:06 +09:00
|
|
|
.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: #70DB55;
|
|
|
|
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;
|
|
|
|
}
|
2013-09-27 18:44:45 +09:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2016-09-07 20:30:26 +09:00
|
|
|
.secondaryToolbarButton.selectTool::before {
|
|
|
|
content: url(images/secondaryToolbarButton-selectTool.png);
|
|
|
|
}
|
|
|
|
|
2013-10-03 05:09:43 +09:00
|
|
|
.secondaryToolbarButton.handTool::before {
|
|
|
|
content: url(images/secondaryToolbarButton-handTool.png);
|
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.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);
|
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.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;
|
|
|
|
background-color: hsla(0,0%,0%,.5);
|
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
|
|
|
}
|
|
|
|
html[dir='ltr'] .verticalToolbarSeparator {
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
html[dir='rtl'] .verticalToolbarSeparator {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.horizontalToolbarSeparator {
|
2014-08-19 04:56:15 +09:00
|
|
|
display: block;
|
2013-09-05 06:48:31 +09:00
|
|
|
margin: 0 0 4px 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
background-color: hsla(0,0%,0%,.5);
|
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
|
|
|
}
|
2012-05-09 06:22:48 +09:00
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarField {
|
|
|
|
padding: 3px 6px;
|
|
|
|
margin: 4px 0 4px 0;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: 2px;
|
|
|
|
background-color: hsla(0,0%,100%,.09);
|
2013-04-07 20:57:14 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
border: 1px solid hsla(0,0%,0%,.35);
|
|
|
|
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset,
|
|
|
|
0 1px 0 hsla(0,0%,100%,.05);
|
|
|
|
color: hsl(0,0%,95%);
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
outline-style: none;
|
2013-06-29 00:11:06 +09:00
|
|
|
transition-property: background-color, border-color, box-shadow;
|
|
|
|
transition-duration: 150ms;
|
|
|
|
transition-timing-function: ease;
|
2011-08-29 05:10:14 +09:00
|
|
|
}
|
|
|
|
|
2012-10-06 09:15:06 +09:00
|
|
|
.toolbarField[type=checkbox] {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 8px 0px;
|
|
|
|
}
|
|
|
|
|
2012-04-26 00:32:37 +09:00
|
|
|
.toolbarField.pageNumber {
|
2013-12-11 00:15:22 +09:00
|
|
|
-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
|
|
|
}
|
|
|
|
|
2014-07-18 20:53:04 +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;
|
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarField:hover {
|
|
|
|
background-color: hsla(0,0%,100%,.11);
|
|
|
|
border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarField:focus {
|
|
|
|
background-color: hsla(0,0%,100%,.15);
|
|
|
|
border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9);
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.toolbarLabel {
|
|
|
|
min-width: 16px;
|
|
|
|
padding: 3px 6px 3px 2px;
|
|
|
|
margin: 4px 2px 4px 0;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
border-radius: 2px;
|
|
|
|
color: hsl(0,0%,85%);
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 14px;
|
|
|
|
text-align: left;
|
2018-04-04 07:18:57 +09:00
|
|
|
user-select: none;
|
2012-04-12 08:12:51 +09:00
|
|
|
cursor: default;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
#thumbnailView {
|
2012-09-06 00:31:23 +09:00
|
|
|
position: absolute;
|
2017-09-30 23:41:46 +09:00
|
|
|
width: calc(100% - 60px);
|
2012-09-06 00:31:23 +09:00
|
|
|
top: 0;
|
2012-04-13 07:13:58 +09:00
|
|
|
bottom: 0;
|
2017-09-30 23:41:46 +09:00
|
|
|
padding: 10px 30px 0;
|
2011-08-22 11:05:10 +09:00
|
|
|
overflow: auto;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2011-10-29 01:16:17 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.thumbnail {
|
2017-09-30 23:41:46 +09:00
|
|
|
margin: 0 10px 5px 10px;
|
2013-10-10 03:40:21 +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
|
|
|
html[dir='ltr'] .thumbnail {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
html[dir='rtl'] .thumbnail {
|
|
|
|
float: right;
|
|
|
|
}
|
2013-10-10 03:40:21 +09:00
|
|
|
|
|
|
|
#thumbnailView > a:last-of-type > .thumbnail {
|
|
|
|
margin-bottom: 10px;
|
2012-04-14 06:14:05 +09:00
|
|
|
}
|
|
|
|
|
2014-12-30 23:05:39 +09:00
|
|
|
#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
|
|
|
|
margin-bottom: 9px;
|
|
|
|
}
|
|
|
|
|
2012-04-26 03:34:28 +09:00
|
|
|
.thumbnail:not([data-loaded]) {
|
|
|
|
border: 1px dashed rgba(255, 255, 255, 0.5);
|
2017-09-30 23:41:46 +09:00
|
|
|
margin: -1px 9px 4px 9px;
|
2012-04-14 06:14:05 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.thumbnailImage {
|
|
|
|
border: 1px solid transparent;
|
|
|
|
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;
|
2015-01-20 05:39:38 +09:00
|
|
|
background-color: white;
|
|
|
|
background-clip: content-box;
|
2011-12-22 07:22:07 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.thumbnailSelectionRing {
|
|
|
|
border-radius: 2px;
|
2012-04-14 06:14:05 +09:00
|
|
|
padding: 7px;
|
2011-12-22 07:22:07 +09:00
|
|
|
}
|
2012-09-13 03:05:34 +09:00
|
|
|
|
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 {
|
2012-04-12 08:12:51 +09:00
|
|
|
opacity: .9;
|
2011-12-22 07:22:07 +09:00
|
|
|
}
|
|
|
|
|
2012-05-02 01:43:48 +09:00
|
|
|
a:focus > .thumbnail > .thumbnailSelectionRing,
|
2012-04-12 08:12:51 +09:00
|
|
|
.thumbnail:hover > .thumbnailSelectionRing {
|
|
|
|
background-color: hsla(0,0%,100%,.15);
|
2013-04-07 20:57:14 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.2) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2);
|
|
|
|
color: hsla(0,0%,100%,.9);
|
2011-12-22 07:22:07 +09:00
|
|
|
}
|
|
|
|
|
2012-04-14 06:14:05 +09:00
|
|
|
.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
|
2012-04-12 08:12:51 +09:00
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,0%,.5);
|
|
|
|
opacity: 1;
|
2011-07-29 02:48:05 +09:00
|
|
|
}
|
|
|
|
|
2012-04-12 08:12:51 +09:00
|
|
|
.thumbnail.selected > .thumbnailSelectionRing {
|
|
|
|
background-color: hsla(0,0%,100%,.3);
|
2013-04-07 20:57:14 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.1) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2);
|
|
|
|
color: hsla(0,0%,100%,1);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2014-03-19 05:32:47 +09:00
|
|
|
#outlineView,
|
|
|
|
#attachmentsView {
|
2012-09-06 00:31:23 +09:00
|
|
|
position: absolute;
|
2017-09-30 23:41:46 +09:00
|
|
|
width: calc(100% - 8px);
|
2012-09-06 00:31:23 +09:00
|
|
|
top: 0;
|
2012-04-13 07:13:58 +09:00
|
|
|
bottom: 0;
|
2012-04-12 08:12:51 +09:00
|
|
|
overflow: auto;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2018-04-04 07:18:57 +09:00
|
|
|
user-select: none;
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2014-04-26 05:42:19 +09:00
|
|
|
#outlineView {
|
|
|
|
padding: 4px 4px 0;
|
|
|
|
}
|
|
|
|
#attachmentsView {
|
|
|
|
padding: 3px 4px 0;
|
|
|
|
}
|
|
|
|
|
2015-07-22 02:52:49 +09:00
|
|
|
html[dir='ltr'] .outlineWithDeepNesting > .outlineItem,
|
2012-12-28 21:26:30 +09:00
|
|
|
html[dir='ltr'] .outlineItem > .outlineItems {
|
2011-08-22 11:05:10 +09:00
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
2015-07-22 02:52:49 +09:00
|
|
|
html[dir='rtl'] .outlineWithDeepNesting > .outlineItem,
|
2012-12-28 21:26:30 +09:00
|
|
|
html[dir='rtl'] .outlineItem > .outlineItems {
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
|
2014-03-19 05:32:47 +09:00
|
|
|
.outlineItem > a,
|
2014-04-26 05:42:19 +09:00
|
|
|
.attachmentsItem > button {
|
2011-08-22 11:05:10 +09:00
|
|
|
text-decoration: none;
|
2012-06-08 05:51:29 +09:00
|
|
|
display: inline-block;
|
|
|
|
min-width: 95%;
|
2015-09-03 22:22:48 +09:00
|
|
|
min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode)
|
|
|
|
of the container. */
|
2012-12-28 02:58:09 +09:00
|
|
|
height: auto;
|
2012-04-12 08:12:51 +09:00
|
|
|
margin-bottom: 1px;
|
|
|
|
border-radius: 2px;
|
|
|
|
color: hsla(0,0%,100%,.8);
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 15px;
|
2018-04-04 07:18:57 +09:00
|
|
|
user-select: none;
|
2012-12-28 02:58:09 +09:00
|
|
|
white-space: normal;
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2014-04-26 05:42:19 +09:00
|
|
|
.attachmentsItem > button {
|
|
|
|
border: 0 none;
|
|
|
|
background: none;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
html[dir='ltr'] .outlineItem > a {
|
2015-07-22 02:52:49 +09:00
|
|
|
padding: 2px 0 5px 4px;
|
2012-12-28 21:26:30 +09:00
|
|
|
}
|
2014-04-26 05:42:19 +09:00
|
|
|
html[dir='ltr'] .attachmentsItem > button {
|
|
|
|
padding: 2px 0 3px 7px;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2012-12-28 21:26:30 +09:00
|
|
|
|
2014-04-26 05:42:19 +09:00
|
|
|
html[dir='rtl'] .outlineItem > a {
|
2015-07-22 02:52:49 +09:00
|
|
|
padding: 2px 4px 5px 0;
|
2012-12-28 21:26:30 +09:00
|
|
|
}
|
2014-04-26 05:42:19 +09:00
|
|
|
html[dir='rtl'] .attachmentsItem > button {
|
|
|
|
padding: 2px 7px 3px 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
2012-12-28 21:26:30 +09:00
|
|
|
|
2015-07-22 02:52:49 +09:00
|
|
|
.outlineItemToggler {
|
|
|
|
position: relative;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
color: hsla(0,0%,100%,.5);
|
|
|
|
}
|
|
|
|
.outlineItemToggler::before {
|
2015-08-28 06:09:00 +09:00
|
|
|
content: url(images/treeitem-expanded.png);
|
2015-07-22 02:52:49 +09:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
}
|
2015-09-06 22:34:02 +09:00
|
|
|
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
|
2015-08-28 06:09:00 +09:00
|
|
|
content: url(images/treeitem-collapsed.png);
|
2015-07-22 02:52:49 +09:00
|
|
|
}
|
2015-09-06 22:34:02 +09:00
|
|
|
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
|
|
|
|
content: url(images/treeitem-collapsed-rtl.png);
|
|
|
|
}
|
2015-07-22 02:52:49 +09:00
|
|
|
.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,
|
2014-03-19 05:32:47 +09:00
|
|
|
.outlineItem > a:hover,
|
2014-04-26 05:42:19 +09:00
|
|
|
.attachmentsItem > button:hover {
|
2012-04-12 08:12:51 +09:00
|
|
|
background-color: hsla(0,0%,100%,.02);
|
2013-04-07 20:57:14 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-04-12 08:12:51 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.2) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2);
|
2015-09-03 22:22:48 +09:00
|
|
|
border-radius: 2px;
|
2012-04-12 08:12:51 +09:00
|
|
|
color: hsla(0,0%,100%,.9);
|
2011-08-22 11:05:10 +09:00
|
|
|
}
|
|
|
|
|
2012-06-08 05:51:29 +09:00
|
|
|
.outlineItem.selected {
|
|
|
|
background-color: hsla(0,0%,100%,.08);
|
2013-04-07 20:57:14 +09:00
|
|
|
background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));
|
2012-06-08 05:51:29 +09:00
|
|
|
background-clip: padding-box;
|
|
|
|
box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset,
|
|
|
|
0 0 1px hsla(0,0%,100%,.1) inset,
|
|
|
|
0 0 1px hsla(0,0%,0%,.2);
|
|
|
|
color: hsla(0,0%,100%,1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.noResults {
|
|
|
|
font-size: 12px;
|
|
|
|
color: hsla(0,0%,100%,.8);
|
|
|
|
font-style: italic;
|
2013-03-01 03:02:11 +09:00
|
|
|
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 */
|
2014-09-09 16:09:23 +09:00
|
|
|
::selection { background: rgba(0,0,255,0.3); }
|
|
|
|
|
2011-11-29 09:55:09 +09:00
|
|
|
#errorWrapper {
|
|
|
|
background: none repeat scroll 0 0 #FF5555;
|
|
|
|
color: white;
|
|
|
|
left: 0;
|
2012-04-26 09:20:13 +09:00
|
|
|
position: absolute;
|
2011-11-29 09:55:09 +09:00
|
|
|
right: 0;
|
|
|
|
z-index: 1000;
|
|
|
|
padding: 3px;
|
2011-11-30 02:36:50 +09:00
|
|
|
font-size: 0.8em;
|
2011-11-29 09:55:09 +09:00
|
|
|
}
|
2013-07-29 19:43:42 +09:00
|
|
|
.loadingInProgress #errorWrapper {
|
2014-08-12 13:09:38 +09:00
|
|
|
top: 37px;
|
2013-07-29 19:43:42 +09:00
|
|
|
}
|
2011-11-29 09:55:09 +09:00
|
|
|
|
|
|
|
#errorMessageLeft {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorMessageRight {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorMoreInfo {
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
color: black;
|
|
|
|
padding: 3px;
|
|
|
|
margin: 3px;
|
2012-01-05 07:43:17 +09:00
|
|
|
width: 98%;
|
2011-11-29 09:55:09 +09:00
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.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%;
|
|
|
|
background-color: hsla(0,0%,0%,.2);
|
2014-05-12 22:50:13 +09:00
|
|
|
z-index: 40000;
|
2013-09-25 00:46:54 +09:00
|
|
|
}
|
2014-03-31 23:27:36 +09:00
|
|
|
#overlayContainer > * {
|
|
|
|
overflow: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
2013-09-25 00:46:54 +09:00
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
#overlayContainer > .container {
|
2013-09-25 00:46:54 +09:00
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
#overlayContainer > .container > .dialog {
|
2013-09-25 00:46:54 +09:00
|
|
|
display: inline-block;
|
|
|
|
padding: 15px;
|
|
|
|
border-spacing: 4px;
|
|
|
|
color: hsl(0,0%,85%);
|
2014-05-12 22:50:13 +09:00
|
|
|
font-size: 12px;
|
2013-09-25 00:46:54 +09:00
|
|
|
line-height: 14px;
|
|
|
|
background-color: #474747; /* fallback */
|
|
|
|
background-image: url(images/texture.png),
|
|
|
|
linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
|
|
|
|
box-shadow: inset 1px 0 0 hsla(0,0%,100%,.08),
|
|
|
|
inset 0 1px 1px hsla(0,0%,0%,.15),
|
|
|
|
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
|
|
|
0 1px 0 hsla(0,0%,0%,.15),
|
|
|
|
0 1px 1px hsla(0,0%,0%,.1);
|
2014-05-12 22:50:13 +09:00
|
|
|
border: 1px solid hsla(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
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.dialog > .row {
|
2013-09-25 00:46:54 +09:00
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.dialog > .row > * {
|
2013-09-25 00:46:54 +09:00
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.dialog .toolbarField {
|
2013-09-25 00:46:54 +09:00
|
|
|
margin: 5px 0;
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.dialog .separator {
|
2014-08-19 04:56:15 +09:00
|
|
|
display: block;
|
2014-01-22 08:07:07 +09:00
|
|
|
margin: 4px 0 4px 0;
|
|
|
|
height: 1px;
|
|
|
|
width: 100%;
|
|
|
|
background-color: hsla(0,0%,0%,.5);
|
|
|
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
.dialog .buttonRow {
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
2014-01-22 08:07:07 +09:00
|
|
|
}
|
|
|
|
|
2015-07-19 00:11:33 +09:00
|
|
|
.dialog :link {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
#passwordOverlay > .dialog {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
#passwordOverlay .toolbarField {
|
|
|
|
width: 200px;
|
2014-01-22 08:07:07 +09:00
|
|
|
}
|
|
|
|
|
2014-05-12 22:50:13 +09:00
|
|
|
#documentPropertiesOverlay > .dialog {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
#documentPropertiesOverlay .row > * {
|
2014-01-22 08:07:07 +09:00
|
|
|
min-width: 100px;
|
2014-05-12 22:50:13 +09:00
|
|
|
}
|
|
|
|
html[dir='ltr'] #documentPropertiesOverlay .row > * {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
html[dir='rtl'] #documentPropertiesOverlay .row > * {
|
2014-01-22 08:07:07 +09:00
|
|
|
text-align: right;
|
|
|
|
}
|
2014-05-12 22:50:13 +09:00
|
|
|
#documentPropertiesOverlay .row > span {
|
2014-01-23 08:30:48 +09:00
|
|
|
width: 125px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2014-05-12 22:50:13 +09:00
|
|
|
#documentPropertiesOverlay .row > p {
|
2014-01-23 08:30:48 +09:00
|
|
|
max-width: 225px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2014-05-12 22:50:13 +09:00
|
|
|
#documentPropertiesOverlay .buttonRow {
|
2014-01-22 08:07:07 +09:00
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
2011-11-29 09:55:09 +09:00
|
|
|
.clearBoth {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
2012-04-18 03:10:52 +09:00
|
|
|
.fileInput {
|
|
|
|
background: white;
|
|
|
|
color: black;
|
2012-05-01 06:23:26 +09:00
|
|
|
margin-top: 5px;
|
2014-01-14 06:04:36 +09:00
|
|
|
visibility: hidden;
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2012-03-22 07:36:10 +09:00
|
|
|
}
|
|
|
|
|
2012-02-16 07:12:58 +09:00
|
|
|
#PDFBug {
|
2012-04-27 04:35:52 +09:00
|
|
|
background: none repeat scroll 0 0 white;
|
|
|
|
border: 1px solid #666666;
|
2012-02-14 10:35:58 +09:00
|
|
|
position: fixed;
|
2012-04-27 04:35:52 +09:00
|
|
|
top: 32px;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
font-size: 10px;
|
2012-02-14 10:35:58 +09:00
|
|
|
padding: 0;
|
2012-04-27 04:35:52 +09:00
|
|
|
width: 300px;
|
2012-02-14 10:35:58 +09:00
|
|
|
}
|
2012-02-16 07:12:58 +09:00
|
|
|
#PDFBug .controls {
|
2012-04-27 04:35:52 +09:00
|
|
|
background:#EEEEEE;
|
|
|
|
border-bottom: 1px solid #666666;
|
|
|
|
padding: 3px;
|
2012-02-14 10:35:58 +09:00
|
|
|
}
|
2012-02-16 07:12:58 +09:00
|
|
|
#PDFBug .panels {
|
2012-04-27 04:35:52 +09:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2012-02-14 10:35:58 +09:00
|
|
|
overflow: auto;
|
2014-03-31 23:27:36 +09:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2012-02-14 10:35:58 +09:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2012-04-27 04:35:52 +09:00
|
|
|
top: 27px;
|
2012-02-14 10:35:58 +09:00
|
|
|
}
|
2012-02-16 07:12:58 +09:00
|
|
|
#PDFBug button.active {
|
2012-02-14 10:35:58 +09:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.debuggerShowText {
|
2012-04-27 04:35:52 +09:00
|
|
|
background: none repeat scroll 0 0 yellow;
|
2012-02-14 10:35:58 +09:00
|
|
|
color: blue;
|
|
|
|
}
|
|
|
|
.debuggerHideText:hover {
|
2012-04-27 04:35:52 +09:00
|
|
|
background: none repeat scroll 0 0 yellow;
|
2011-09-21 13:49:09 +09:00
|
|
|
}
|
2012-02-22 02:52:09 +09:00
|
|
|
#PDFBug .stats {
|
2012-04-27 04:35:52 +09:00
|
|
|
font-family: courier;
|
2012-02-22 02:52:09 +09:00
|
|
|
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 {
|
|
|
|
background-color: rgb(128,255,128);
|
|
|
|
}
|
|
|
|
|
|
|
|
#viewer.textLayer-visible .canvasWrapper canvas {
|
|
|
|
mix-blend-mode: screen;
|
|
|
|
}
|
|
|
|
|
2018-11-18 23:54:08 +09:00
|
|
|
#viewer.textLayer-visible .textLayer > span {
|
2015-11-20 02:03:52 +09:00
|
|
|
background-color: rgba(255, 255, 0, 0.1);
|
|
|
|
color: black;
|
|
|
|
border: solid 1px rgba(255, 0, 0, 0.5);
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
2018-11-18 23:54:08 +09:00
|
|
|
#viewer.textLayer-hover .textLayer > span:hover {
|
2012-08-20 10:02:12 +09:00
|
|
|
background-color: white;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
2018-11-18 23:54:08 +09:00
|
|
|
#viewer.textLayer-shadow .textLayer > span {
|
2012-08-20 10:02:12 +09:00
|
|
|
background-color: rgba(255,255,255, .6);
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
2014-01-29 01:05:30 +09:00
|
|
|
.grab-to-pan-grab {
|
2013-10-03 05:09:43 +09:00
|
|
|
cursor: url("images/grab.cur"), move !important;
|
2013-12-17 03:01:59 +09:00
|
|
|
cursor: grab !important;
|
2013-10-03 05:09:43 +09:00
|
|
|
}
|
2014-01-29 01:05:30 +09:00
|
|
|
.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 {
|
2013-10-03 05:09:43 +09:00
|
|
|
cursor: url("images/grabbing.cur"), move !important;
|
2013-12-17 03:01:59 +09:00
|
|
|
cursor: grabbing !important;
|
2014-01-29 01:05:30 +09:00
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
background: transparent;
|
|
|
|
display: block;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2014-01-30 23:06:04 +09:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2014-01-29 01:05:30 +09:00
|
|
|
overflow: hidden;
|
|
|
|
z-index: 50000; /* should be higher than anything else in PDF.js! */
|
2013-10-03 05:09:43 +09:00
|
|
|
}
|
|
|
|
|
2012-06-29 01:50:25 +09:00
|
|
|
@page {
|
|
|
|
margin: 0;
|
2012-09-13 03:05:34 +09:00
|
|
|
}
|
2012-05-16 04:47:33 +09:00
|
|
|
|
2012-06-29 01:50:25 +09:00
|
|
|
#printContainer {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-05-25 21:38:50 +09:00
|
|
|
|
2014-02-27 06:22:38 +09:00
|
|
|
@media screen and (min-resolution: 2dppx) {
|
|
|
|
/* Rules for Retina screens */
|
|
|
|
.toolbarButton::before {
|
2014-03-18 01:25:50 +09:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2014-08-26 05:27:33 +09:00
|
|
|
.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-08-20 05:47:39 +09:00
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2014-03-19 05:32:47 +09:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2016-09-07 20:30:26 +09:00
|
|
|
.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);
|
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.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);
|
|
|
|
}
|
|
|
|
|
2018-05-15 12:10:32 +09:00
|
|
|
.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);
|
|
|
|
}
|
2015-08-28 00:06:40 +09:00
|
|
|
|
|
|
|
.outlineItemToggler::before {
|
|
|
|
transform: scale(0.5);
|
|
|
|
top: -1px;
|
2015-08-28 06:09:00 +09:00
|
|
|
content: url(images/treeitem-expanded@2x.png);
|
2015-08-28 00:06:40 +09:00
|
|
|
}
|
2015-09-06 22:34:02 +09:00
|
|
|
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
|
2015-08-28 06:09:00 +09:00
|
|
|
content: url(images/treeitem-collapsed@2x.png);
|
2015-08-28 00:06:40 +09:00
|
|
|
}
|
2015-09-06 22:34:02 +09:00
|
|
|
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
|
|
|
|
content: url(images/treeitem-collapsed-rtl@2x.png);
|
|
|
|
}
|
2015-08-28 00:06:40 +09:00
|
|
|
html[dir='ltr'] .outlineItemToggler::before {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
html[dir='rtl'] .outlineItemToggler::before {
|
|
|
|
left: 0;
|
|
|
|
}
|
2014-02-27 06:22:38 +09:00
|
|
|
}
|
|
|
|
|
2012-06-29 01:50:25 +09:00
|
|
|
@media print {
|
2013-05-01 06:39:57 +09:00
|
|
|
/* General rules for printing. */
|
|
|
|
body {
|
|
|
|
background: transparent none;
|
|
|
|
}
|
|
|
|
|
2012-07-13 02:31:20 +09:00
|
|
|
/* Rules for browsers that don't support mozPrintCallback. */
|
2013-09-05 06:48:31 +09:00
|
|
|
#sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
|
2012-05-25 21:38:50 +09:00
|
|
|
display: none;
|
|
|
|
}
|
2013-07-15 23:23:43 +09:00
|
|
|
#viewerContainer {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2012-07-13 02:31:20 +09:00
|
|
|
|
|
|
|
#mainContainer, #viewerContainer, .page, .page canvas {
|
|
|
|
position: static;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page {
|
|
|
|
float: left;
|
|
|
|
display: none;
|
2013-07-15 23:23:43 +09:00
|
|
|
border: none;
|
2012-07-13 02:31:20 +09:00
|
|
|
box-shadow: none;
|
2014-10-01 08:01:30 +09:00
|
|
|
background-clip: content-box;
|
|
|
|
background-color: white;
|
2012-07-13 02:31:20 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
.page[data-loaded] {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2013-09-21 08:01:34 +09:00
|
|
|
.fileInput {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-10-07 06:46:30 +09:00
|
|
|
/* Rules for browsers that support PDF.js printing */
|
|
|
|
body[data-pdfjsprinting] #outerContainer {
|
2012-07-13 02:31:20 +09:00
|
|
|
display: none;
|
|
|
|
}
|
2016-10-07 06:46:30 +09:00
|
|
|
body[data-pdfjsprinting] #printContainer {
|
2012-05-25 21:38:50 +09:00
|
|
|
display: block;
|
|
|
|
}
|
2016-02-11 06:10:03 +09:00
|
|
|
#printContainer {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2015-03-19 07:15:43 +09:00
|
|
|
/* wrapper around (scaled) print canvas elements */
|
|
|
|
#printContainer > div {
|
2012-06-29 01:50:25 +09:00
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2016-10-06 21:51:45 +09:00
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
overflow: visible;
|
|
|
|
page-break-after: always;
|
|
|
|
page-break-inside: avoid;
|
2015-03-19 07:15:43 +09:00
|
|
|
}
|
2016-10-08 21:36:55 +09:00
|
|
|
#printContainer canvas,
|
|
|
|
#printContainer img {
|
2014-10-01 08:01:30 +09:00
|
|
|
display: block;
|
2012-06-29 01:50:25 +09:00
|
|
|
}
|
2012-05-25 21:38:50 +09:00
|
|
|
}
|
|
|
|
|
2013-09-05 06:48:31 +09:00
|
|
|
.visibleLargeView,
|
|
|
|
.visibleMediumView,
|
|
|
|
.visibleSmallView {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@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
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@media all and (max-width: 840px) {
|
2012-05-16 04:47:33 +09:00
|
|
|
#sidebarContent {
|
|
|
|
background-color: hsla(0,0%,0%,.7);
|
|
|
|
}
|
|
|
|
|
2017-09-30 23:41:46 +09:00
|
|
|
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {
|
2018-06-16 03:07:51 +09:00
|
|
|
left: 0px !important;
|
2012-05-16 04:47:33 +09:00
|
|
|
}
|
2017-09-30 23:41:46 +09:00
|
|
|
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {
|
2018-06-16 03:07:51 +09:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@media all and (max-width: 770px) {
|
2013-09-05 06:48:31 +09:00
|
|
|
#outerContainer .hiddenLargeView {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#outerContainer .visibleLargeView {
|
|
|
|
display: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@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
|
|
|
}
|
|
|
|
}
|
2012-05-22 03:08:42 +09:00
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@media all and (max-width: 640px) {
|
2017-03-09 07:54:28 +09:00
|
|
|
.hiddenSmallView, .hiddenSmallView * {
|
2012-05-22 03:08:42 +09:00
|
|
|
display: none;
|
|
|
|
}
|
2013-09-05 06:48:31 +09:00
|
|
|
.visibleSmallView {
|
|
|
|
display: inherit;
|
|
|
|
}
|
2013-02-26 09:53:54 +09:00
|
|
|
.toolbarButtonSpacer {
|
|
|
|
width: 0;
|
|
|
|
}
|
2017-03-09 07:54:28 +09:00
|
|
|
html[dir='ltr'] .findbar {
|
|
|
|
left: 38px;
|
|
|
|
}
|
|
|
|
html[dir='rtl'] .findbar {
|
|
|
|
right: 38px;
|
|
|
|
}
|
2012-05-22 03:08:42 +09:00
|
|
|
}
|
2012-05-24 07:10:53 +09:00
|
|
|
|
2016-11-04 00:56:57 +09:00
|
|
|
@media all and (max-width: 535px) {
|
2016-01-28 21:02:17 +09:00
|
|
|
#scaleSelectContainer {
|
2012-05-24 07:10:53 +09:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|