Skip to content

Commit

Permalink
Remove sass dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mdh committed Sep 1, 2022
1 parent 6c8358f commit 5cf10d2
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 48 deletions.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/pdfjs_viewer/full.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pdfjs_viewer-full .openFile {
display: none;
}
#pdfjs_viewer-full .bookmark {
display: none;
}
5 changes: 0 additions & 5 deletions app/assets/stylesheets/pdfjs_viewer/full.scss

This file was deleted.

41 changes: 41 additions & 0 deletions app/assets/stylesheets/pdfjs_viewer/minimal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#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;
}
32 changes: 0 additions & 32 deletions app/assets/stylesheets/pdfjs_viewer/minimal.scss

This file was deleted.

24 changes: 24 additions & 0 deletions app/assets/stylesheets/pdfjs_viewer/reduced.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#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;
}
10 changes: 0 additions & 10 deletions app/assets/stylesheets/pdfjs_viewer/reduced.scss

This file was deleted.

1 change: 0 additions & 1 deletion pdfjs_viewer-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5cf10d2

Please sign in to comment.