migrate embedpdf styles
This commit is contained in:
parent
4b512c3b07
commit
1f614c2c24
3 changed files with 46 additions and 44 deletions
41
assets/styles/sections/pdf-viewer.scss
Normal file
41
assets/styles/sections/pdf-viewer.scss
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
.pdf-viewer {
|
||||||
|
canvas {
|
||||||
|
border: 1px solid black;
|
||||||
|
direction: ltr;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paginator {
|
||||||
|
display: none;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-wrapper {
|
||||||
|
display: none;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
display: inline-block;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
border: 3px solid #d2d0d0;;
|
||||||
|
border-radius: 50%;
|
||||||
|
border-top-color: #383838;
|
||||||
|
animation: spin 1s ease-in-out infinite;
|
||||||
|
-webkit-animation: spin 1s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
to { -webkit-transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
to { -webkit-transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,4 +24,8 @@ math:
|
||||||
services:
|
services:
|
||||||
katex:
|
katex:
|
||||||
styles:
|
styles:
|
||||||
- katex/dist/katex
|
- katex/dist/katex
|
||||||
|
|
||||||
|
embedpdf:
|
||||||
|
styles:
|
||||||
|
- ./sections/pdf-viewer
|
|
@ -23,46 +23,3 @@
|
||||||
<canvas class="pdf-canvas"></canvas>
|
<canvas class="pdf-canvas"></canvas>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Finally, make the canvas more beautiful -->
|
|
||||||
<style>
|
|
||||||
.pdf-viewer canvas {
|
|
||||||
border: 1px solid black;
|
|
||||||
direction: ltr;
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pdf-viewer .paginator {
|
|
||||||
display: none;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pdf-viewer .loading-wrapper {
|
|
||||||
display: none;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
height: 350px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pdf-viewer .loading {
|
|
||||||
display: inline-block;
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
border: 3px solid #d2d0d0;;
|
|
||||||
border-radius: 50%;
|
|
||||||
border-top-color: #383838;
|
|
||||||
animation: spin 1s ease-in-out infinite;
|
|
||||||
-webkit-animation: spin 1s ease-in-out infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spin {
|
|
||||||
to { -webkit-transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
@-webkit-keyframes spin {
|
|
||||||
to { -webkit-transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue