Merge pull request #4777 from Snuffleupagus/overlay-refactor
Refactor the CSS rules for the overlayContainer
This commit is contained in:
commit
36c6bc245c
133
web/viewer.css
133
web/viewer.css
@ -543,7 +543,8 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbarButton,
|
.toolbarButton,
|
||||||
.secondaryToolbarButton {
|
.secondaryToolbarButton,
|
||||||
|
.overlayButton {
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
background-color: rgba(0, 0, 0, 0);
|
background-color: rgba(0, 0, 0, 0);
|
||||||
width: 32px;
|
width: 32px;
|
||||||
@ -558,7 +559,8 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.toolbarButton[disabled],
|
.toolbarButton[disabled],
|
||||||
.secondaryToolbarButton[disabled] {
|
.secondaryToolbarButton[disabled],
|
||||||
|
.overlayButton[disabled] {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -653,8 +655,8 @@ html[dir='rtl'] .splitToolbarButtonSeparator {
|
|||||||
|
|
||||||
.toolbarButton,
|
.toolbarButton,
|
||||||
.dropdownToolbarButton,
|
.dropdownToolbarButton,
|
||||||
.overlayButton,
|
.secondaryToolbarButton,
|
||||||
.secondaryToolbarButton {
|
.overlayButton {
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
padding: 2px 6px 0;
|
padding: 2px 6px 0;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
@ -777,12 +779,6 @@ html[dir='rtl'] .dropdownToolbarButton {
|
|||||||
background: hsl(0,0%,24%);
|
background: hsl(0,0%,24%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlayButton {
|
|
||||||
margin: 3px 2px 4px 5px !important;
|
|
||||||
line-height: 16px;
|
|
||||||
padding: 2px 6px 3px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#customScaleOption {
|
#customScaleOption {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -1426,81 +1422,38 @@ canvas {
|
|||||||
width: 98%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overlayButton {
|
||||||
|
width: auto;
|
||||||
|
margin: 3px 4px 2px 4px !important;
|
||||||
|
padding: 2px 6px 3px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
#overlayContainer {
|
#overlayContainer {
|
||||||
display: table;
|
display: table;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: hsla(0,0%,0%,.2);
|
background-color: hsla(0,0%,0%,.2);
|
||||||
z-index: 10000;
|
z-index: 40000;
|
||||||
}
|
}
|
||||||
#overlayContainer > * {
|
#overlayContainer > * {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
#promptContainer {
|
#overlayContainer > .container {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#promptContainer > * {
|
#overlayContainer > .container > .dialog {
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt {
|
|
||||||
display: table;
|
|
||||||
padding: 15px;
|
|
||||||
border-spacing: 4px;
|
|
||||||
color: hsl(0,0%,85%);
|
|
||||||
line-height: 14px;
|
|
||||||
text-align: center;
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt > .row {
|
|
||||||
display: table-row;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt > .row > * {
|
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt .toolbarField {
|
|
||||||
margin: 5px 0;
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.prompt .toolbarField:hover,
|
|
||||||
.prompt .toolbarField:focus {
|
|
||||||
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
|
|
||||||
}
|
|
||||||
|
|
||||||
#documentPropertiesContainer {
|
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#documentPropertiesContainer > * {
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
border-spacing: 4px;
|
border-spacing: 4px;
|
||||||
max-width: 350px;
|
|
||||||
max-height: 350px;
|
|
||||||
color: hsl(0,0%,85%);
|
color: hsl(0,0%,85%);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
text-align: left;
|
|
||||||
cursor: default;
|
|
||||||
background-color: #474747; /* fallback */
|
background-color: #474747; /* fallback */
|
||||||
background-image: url(images/texture.png),
|
background-image: url(images/texture.png),
|
||||||
linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
|
linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95));
|
||||||
@ -1509,9 +1462,28 @@ canvas {
|
|||||||
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
inset 0 -1px 0 hsla(0,0%,100%,.05),
|
||||||
0 1px 0 hsla(0,0%,0%,.15),
|
0 1px 0 hsla(0,0%,0%,.15),
|
||||||
0 1px 1px hsla(0,0%,0%,.1);
|
0 1px 1px hsla(0,0%,0%,.1);
|
||||||
|
border: 1px solid hsla(0,0%,0%,.5);
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#documentPropertiesContainer .separator {
|
.dialog > .row {
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog > .row > * {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog .toolbarField {
|
||||||
|
margin: 5px 0;
|
||||||
|
}
|
||||||
|
.dialog .toolbarField:hover,
|
||||||
|
.dialog .toolbarField:focus {
|
||||||
|
border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog .separator {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 4px 0 4px 0;
|
margin: 4px 0 4px 0;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
@ -1520,35 +1492,40 @@ canvas {
|
|||||||
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
box-shadow: 0 0 0 1px hsla(0,0%,100%,.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
#documentPropertiesContainer .row {
|
.dialog .buttonRow {
|
||||||
display: table-row;
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[dir='ltr'] #documentPropertiesContainer .row > * {
|
#passwordOverlay > .dialog {
|
||||||
display: table-cell;
|
text-align: center;
|
||||||
min-width: 100px;
|
}
|
||||||
|
#passwordOverlay .toolbarField {
|
||||||
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html[dir='rtl'] #documentPropertiesContainer .row > * {
|
#documentPropertiesOverlay > .dialog {
|
||||||
display: table-cell;
|
text-align: left;
|
||||||
|
}
|
||||||
|
#documentPropertiesOverlay .row > * {
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
|
}
|
||||||
|
html[dir='ltr'] #documentPropertiesOverlay .row > * {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
html[dir='rtl'] #documentPropertiesOverlay .row > * {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
#documentPropertiesOverlay .row > span {
|
||||||
#documentPropertiesContainer .row span {
|
|
||||||
width: 125px;
|
width: 125px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
#documentPropertiesOverlay .row > p {
|
||||||
#documentPropertiesContainer .row p {
|
|
||||||
max-width: 225px;
|
max-width: 225px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
#documentPropertiesOverlay .buttonRow {
|
||||||
#documentPropertiesContainer .buttonRow {
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearBoth {
|
.clearBoth {
|
||||||
|
@ -321,8 +321,8 @@ http://sourceforge.net/adobe/cmap/wiki/License/
|
|||||||
</div> <!-- mainContainer -->
|
</div> <!-- mainContainer -->
|
||||||
|
|
||||||
<div id="overlayContainer" class="hidden">
|
<div id="overlayContainer" class="hidden">
|
||||||
<div id="promptContainer" class="hidden">
|
<div id="passwordOverlay" class="container hidden">
|
||||||
<div id="passwordContainer" class="prompt doorHanger">
|
<div class="dialog">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p>
|
<p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p>
|
||||||
</div>
|
</div>
|
||||||
@ -335,8 +335,8 @@ http://sourceforge.net/adobe/cmap/wiki/License/
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="documentPropertiesContainer" class="hidden">
|
<div id="documentPropertiesOverlay" class="container hidden">
|
||||||
<div class="doorHanger">
|
<div class="dialog">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p>
|
<span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p>
|
||||||
</div>
|
</div>
|
||||||
@ -376,7 +376,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/
|
|||||||
<span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p>
|
<span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttonRow">
|
<div class="buttonRow">
|
||||||
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user