files_pdfviewer icon indicating copy to clipboard operation
files_pdfviewer copied to clipboard

Fix styling and move towards standard TemplateResponse

Open skjnldsv opened this issue 5 years ago • 8 comments

  • [ ] Requires new RENDER_AS_CLEAN template on server that provide bare minimum styling (variables only) and core js

skjnldsv avatar Aug 19 '20 11:08 skjnldsv

For the record: How it looks like now, and what we should fix:

  • [ ] Viewer should span whole width and also go down to the bottom
  • [ ] Prevent styling of core to leak here, as you see from the input fields and selects. Or we increase the height of the action bar and adjust that.
  • [ ] Possibly we still need access to variables, but maybe not?
  • [ ] Background could be fully transparent as we already have the modal background
  • [ ] The actions bar should not have any gradient nor this background-image texture – maybe it could also be transparent

image

jancborchardt avatar Aug 25 '20 14:08 jancborchardt

Concerning the style of pdf.js, there was a redesign just merged here mozilla/pdf.js#11077

Maybe this change could get merged into the pdfviewer first and then see what is still broken design wise?

szaimen avatar Aug 25 '20 14:08 szaimen

Concerning the style of pdf.js, there was a redesign just merged here mozilla/pdf.js#11077

Once it's released, sure!

skjnldsv avatar Aug 25 '20 16:08 skjnldsv

Once it's released, sure!

v2.6.347 of pdf.js was just released 🎉

szaimen avatar Sep 03 '20 21:09 szaimen

v2.6.347 of pdf.js was just released

as alpha

skjnldsv avatar Sep 04 '20 08:09 skjnldsv

For reference, this is the small style modifications I experimented with – let’s see if they still work when we update pdf.js:

// Transparent background
body {
	background-color: transparent;
	background-image: none;
}

// Semi-transparent background for toolbars
#toolbarContainer,
.findbar,
.secondaryToolbar,
#toolbarSidebar {
	background-color: rgba(0, 0, 0, 0.85);
	background-image: none;
}

jancborchardt avatar Sep 23 '20 11:09 jancborchardt

For reference, this is the small style modifications I experimented with – let’s see if they still work when we update pdf.js:

// Transparent background
body {
	background-color: transparent;
	background-image: none;
}

// Semi-transparent background for toolbars
#toolbarContainer,
.findbar,
.secondaryToolbar,
#toolbarSidebar {
	background-color: rgba(0, 0, 0, 0.85);
	background-image: none;
}

I am eager to see if this still works now that #290 is merged :)

szaimen avatar Feb 16 '21 10:02 szaimen

Yep, @jancborchardt you can double check with latest master of files_pdfviewer. there is additional design changes :)

skjnldsv avatar Feb 16 '21 11:02 skjnldsv