From 56b6e43a0867b3062dbf0f5d0c01d5ce83ad1b3f Mon Sep 17 00:00:00 2001 From: Marek de Heus Date: Tue, 23 Aug 2022 14:22:30 +0200 Subject: [PATCH] Remove sass dependency --- app/assets/stylesheets/pdfjs_viewer/full.css | 8 ++++ app/assets/stylesheets/pdfjs_viewer/full.scss | 5 --- .../stylesheets/pdfjs_viewer/minimal.css | 42 +++++++++++++++++++ .../stylesheets/pdfjs_viewer/minimal.scss | 32 -------------- .../stylesheets/pdfjs_viewer/reduced.css | 26 ++++++++++++ .../stylesheets/pdfjs_viewer/reduced.scss | 10 ----- pdfjs_viewer-rails.gemspec | 1 - 7 files changed, 76 insertions(+), 48 deletions(-) create mode 100644 app/assets/stylesheets/pdfjs_viewer/full.css delete mode 100644 app/assets/stylesheets/pdfjs_viewer/full.scss create mode 100644 app/assets/stylesheets/pdfjs_viewer/minimal.css delete mode 100644 app/assets/stylesheets/pdfjs_viewer/minimal.scss create mode 100644 app/assets/stylesheets/pdfjs_viewer/reduced.css delete mode 100644 app/assets/stylesheets/pdfjs_viewer/reduced.scss diff --git a/app/assets/stylesheets/pdfjs_viewer/full.css b/app/assets/stylesheets/pdfjs_viewer/full.css new file mode 100644 index 00000000..fcb5a593 --- /dev/null +++ b/app/assets/stylesheets/pdfjs_viewer/full.css @@ -0,0 +1,8 @@ +#pdfjs_viewer-full .openFile { + display: none; +} +#pdfjs_viewer-full .bookmark { + display: none; +} + + diff --git a/app/assets/stylesheets/pdfjs_viewer/full.scss b/app/assets/stylesheets/pdfjs_viewer/full.scss deleted file mode 100644 index 65bd95ee..00000000 --- a/app/assets/stylesheets/pdfjs_viewer/full.scss +++ /dev/null @@ -1,5 +0,0 @@ -#pdfjs_viewer-full { - .openFile { display: none; } - - .bookmark { display: none; } -} diff --git a/app/assets/stylesheets/pdfjs_viewer/minimal.css b/app/assets/stylesheets/pdfjs_viewer/minimal.css new file mode 100644 index 00000000..7a5a9f5d --- /dev/null +++ b/app/assets/stylesheets/pdfjs_viewer/minimal.css @@ -0,0 +1,42 @@ +#pdfjs_viewer-minimal div.toolbar { + display: none; +} +#pdfjs_viewer-minimal #scaleSelectContainer { + display: none; +} +#pdfjs_viewer-minimal #secondaryToolbarToggle { + display: none; +} +#pdfjs_viewer-minimal #toolbarViewerLeft { + display: none; +} +#pdfjs_viewer-minimal #toolbarViewerRight { + display: none; +} +#pdfjs_viewer-minimal #viewFind { + display: none; +} +#pdfjs_viewer-minimal #viewAttachments { + display: none; +} +#pdfjs_viewer-minimal .openFile { + display: none; +} +#pdfjs_viewer-minimal .download { + display: none; +} +#pdfjs_viewer-minimal .bookmark { + display: none; +} +#pdfjs_viewer-minimal .secondaryToolbar { + display: none; +} +#pdfjs_viewer-minimal #viewerContainer, #pdfjs_viewer-minimal #mainContainer { + background-color: white; + top: 0px; +} +#pdfjs_viewer-minimal #toolbarContainer { + border-top-left-radius: 5px; + border-top-right-radius: 5px; +} + diff --git a/app/assets/stylesheets/pdfjs_viewer/minimal.scss b/app/assets/stylesheets/pdfjs_viewer/minimal.scss deleted file mode 100644 index 585cde5c..00000000 --- a/app/assets/stylesheets/pdfjs_viewer/minimal.scss +++ /dev/null @@ -1,32 +0,0 @@ -#pdfjs_viewer-minimal { - div.toolbar { display: none; } - - #scaleSelectContainer { display: none; } - #secondaryToolbarToggle { display: none; } - - #toolbarViewerLeft { display: none; } - #toolbarViewerRight { display: none; } - - #viewFind { display: none; } - - #viewAttachments { display: none; } - - .openFile { display: none; } - - .download { display: none; } - - .bookmark { display: none; } - - .secondaryToolbar { display: none; } - - - #viewerContainer, #mainContainer { - background-color: white; - top: 0px; - } - - #toolbarContainer { - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } -} \ No newline at end of file diff --git a/app/assets/stylesheets/pdfjs_viewer/reduced.css b/app/assets/stylesheets/pdfjs_viewer/reduced.css new file mode 100644 index 00000000..f54daf4a --- /dev/null +++ b/app/assets/stylesheets/pdfjs_viewer/reduced.css @@ -0,0 +1,26 @@ +#pdfjs_viewer-reduced .openFile { + display: none; +} +#pdfjs_viewer-reduced .bookmark { + display: none; +} +#pdfjs_viewer-reduced #viewThumbnail { + display: none; +} +#pdfjs_viewer-reduced #viewOutline { + display: none; +} +#pdfjs_viewer-reduced #viewAttachments { + display: none; +} +#pdfjs_viewer-reduced #download { + display: none; +} +#pdfjs_viewer-reduced #secondaryToolbarToggle { + display: none; +} +#pdfjs_viewer-reduced #toolbarViewerRight div.verticalToolbarSeparator { + display: none; +} + + diff --git a/app/assets/stylesheets/pdfjs_viewer/reduced.scss b/app/assets/stylesheets/pdfjs_viewer/reduced.scss deleted file mode 100644 index 99920c36..00000000 --- a/app/assets/stylesheets/pdfjs_viewer/reduced.scss +++ /dev/null @@ -1,10 +0,0 @@ -#pdfjs_viewer-reduced { - .openFile { display: none; } - .bookmark { display: none; } - #viewThumbnail { display: none; } - #viewOutline { display: none; } - #viewAttachments { display: none; } - #download { display: none; } - #secondaryToolbarToggle { display: none; } - #toolbarViewerRight div.verticalToolbarSeparator { display: none; } -} diff --git a/pdfjs_viewer-rails.gemspec b/pdfjs_viewer-rails.gemspec index 8b78969b..c68c5102 100644 --- a/pdfjs_viewer-rails.gemspec +++ b/pdfjs_viewer-rails.gemspec @@ -18,7 +18,6 @@ Gem::Specification.new do |s| s.test_files = Dir["test/**/*"] s.add_dependency "rails", "> 4.2.0" - s.add_dependency "sassc-rails", ">= 2.1" s.add_dependency "json", "> 1.8.4" s.add_development_dependency "sqlite3"