Skip to content

Commit

Permalink
More CSS styling fixes / improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Apr 9, 2024
1 parent ff3c361 commit bfc9d0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions pdfviewfx-demo/src/main/resources/pdf-view-atlanta.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@
-fx-pref-width: 300;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell {
-fx-padding: 10;
-fx-text-fill: -color-default-bg;
-fx-background-color: -color-thumbnail-bar;
-fx-cell-size: -1;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .page-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .page-label {
-fx-font-weight: bold;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell:selected .page-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell:selected .page-label {
-fx-text-fill: -color-fg-emphasis;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .matches-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .matches-label {
-fx-font-size: .9em;
-fx-text-fill: -color-fg-default;
-fx-opacity: .5
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell:focused,
.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell:selected {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell:focused,
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell:selected {
-fx-text-fill: -color-fg-emphasis;
-fx-background-color: -color-neutral-emphasis-plus;
}
Expand All @@ -47,18 +47,18 @@
-fx-text-fill: -color-fg-emphasis;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .image-view-wrapper {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .image-view-wrapper {
-fx-padding: 2px;
-fx-background-color: white;
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, .1), 6, 0.2, 0, 0);;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .summary-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .summary-label {
-fx-text-fill: -color-fg-default;
-fx-font-size: .9em;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell:selected .summary-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell:selected .summary-label {
-fx-text-fill: -color-fg-emphasis;
}

Expand Down
10 changes: 5 additions & 5 deletions pdfviewfx/src/main/resources/com/dlsc/pdfviewfx/pdf-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
-fx-pref-width: 300;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell {
-fx-padding: 10;
-fx-text-fill: -fx-text-background-color;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .page-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .page-label {
-fx-font-weight: bold;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .matches-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .matches-label {
-fx-font-size: .9em;
-fx-text-fill: -fx-text-background-color;
-fx-opacity: .5
Expand All @@ -27,13 +27,13 @@
.pdf-view > .border-pane > .tray > .search-result-list-view:focused .list-cell:selected .matches-label {
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .image-view-wrapper {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .image-view-wrapper {
-fx-padding: 2px;
-fx-background-color: white;
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, .1), 6, 0.2, 0, 0);;
}

.pdf-view > .border-pane > .tray > .search-result-list-view.list-cell .summary-label {
.pdf-view > .border-pane > .tray > .search-result-list-view .list-cell .summary-label {
-fx-font-size: .9em;
}

Expand Down

0 comments on commit bfc9d0d

Please sign in to comment.