Skip to content

Commit

Permalink
Re-format all web/*.css files using Stylelint/Prettier
Browse files Browse the repository at this point in the history
This was done automatically, using `gulp lint --fix`.
  • Loading branch information
Snuffleupagus committed Aug 29, 2020
1 parent 4444c8e commit 6991727
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 160 deletions.
31 changes: 20 additions & 11 deletions examples/mobile-viewer/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ footer {
background-color: rgba(0, 0, 0, 0);
font-size: 1.2rem;
color: rgba(255, 255, 255, 1);
background-image: url(images/div_line_left.png), url(images/div_line_right.png);
background-image: url(images/div_line_left.png),
url(images/div_line_right.png);
background-repeat: no-repeat;
background-position: left, right;
background-size: 0.2rem, 0.2rem;
Expand All @@ -138,7 +139,7 @@ footer {
}

.toolbarButton[disabled] {
opacity: .3;
opacity: 0.3;
}

.hidden {
Expand Down Expand Up @@ -166,7 +167,7 @@ canvas {
.pdfViewer .page .loadingIcon {
width: 2.9rem;
height: 2.9rem;
background: url("images/spinner.png") no-repeat left top / 38rem ;
background: url("images/spinner.png") no-repeat left top / 38rem;
border: medium none;
animation: 1s steps(10, end) 0s normal none infinite moveDefault;
display: block;
Expand All @@ -187,7 +188,7 @@ canvas {

#loadingBar {
position: relative;
height: .6rem;
height: 0.6rem;
background-color: rgba(51, 51, 51, 1);
border-bottom: 1px solid rgba(51, 51, 51, 1);
margin-top: 5rem;
Expand All @@ -204,9 +205,15 @@ canvas {
}

@keyframes progressIndeterminate {
0% { left: 0; }
50% { left: 100%; }
100% { left: 100%; }
0% {
left: 0;
}
50% {
left: 100%;
}
100% {
left: 100%;
}
}

#loadingBar .progress.indeterminate {
Expand All @@ -220,10 +227,12 @@ canvas {
left: 0;
height: 100%;
width: 5rem;
background-image: linear-gradient(to right,
rgba(153, 153, 153, 1) 0%,
rgba(255, 255, 255, 1) 50%,
rgba(153, 153, 153, 1) 100%);
background-image: linear-gradient(
to right,
rgba(153, 153, 153, 1) 0%,
rgba(255, 255, 255, 1) 50%,
rgba(153, 153, 153, 1) 100%
);
background-size: 100% 100%;
background-repeat: no-repeat;
animation: progressIndeterminate 2s linear infinite;
Expand Down
15 changes: 12 additions & 3 deletions extensions/chromium/contentstyle.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
/**
* Detect creation of <embed> and <object> tags.
*/
@-webkit-keyframes pdfjs-detected-object-or-embed { from { /* empty */ } }
@keyframes pdfjs-detected-object-or-embed { from { /* empty */ } }
object, embed {
@-webkit-keyframes pdfjs-detected-object-or-embed {
from {
/* empty */
}
}
@keyframes pdfjs-detected-object-or-embed {
from {
/* empty */
}
}
object,
embed {
-webkit-animation-delay: 0s !important;
-webkit-animation-name: pdfjs-detected-object-or-embed !important;
-webkit-animation-play-state: running !important;
Expand Down
2 changes: 1 addition & 1 deletion web/annotation_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
background-color: rgba(0, 0, 0, 1);
content: '';
content: "";
display: block;
position: absolute;
}
Expand Down
9 changes: 6 additions & 3 deletions web/pdf_viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@
border: none;
}

.pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
.pdfViewer.scrollHorizontal,
.pdfViewer.scrollWrapped,
.spread {
margin-left: 3.5px;
margin-right: 3.5px;
text-align: center;
}

.pdfViewer.scrollHorizontal, .spread {
.pdfViewer.scrollHorizontal,
.spread {
white-space: nowrap;
}

Expand Down Expand Up @@ -102,7 +105,7 @@
top: 0;
right: 0;
bottom: 0;
background: url('images/loading-icon.gif') center no-repeat;
background: url("images/loading-icon.gif") center no-repeat;
}

.pdfPresentationMode .pdfViewer {
Expand Down
2 changes: 1 addition & 1 deletion web/text_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
bottom: 0;
overflow: hidden;
opacity: 0.2;
line-height: 1.0;
line-height: 1;
}

.textLayer > span {
Expand Down
Loading

0 comments on commit 6991727

Please sign in to comment.