From 232404aef3b6e23264679f11f635b7a7fe7dd899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Popovics=20Andr=C3=A1s?= Date: Wed, 7 Mar 2018 12:55:41 +0100 Subject: [PATCH] Fix dark theme for viewing pdf files also. (#3042) --- lib/core/viewer/components/pdfViewer.component.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/viewer/components/pdfViewer.component.scss b/lib/core/viewer/components/pdfViewer.component.scss index 66c80ff469..be8e4a9948 100644 --- a/lib/core/viewer/components/pdfViewer.component.scss +++ b/lib/core/viewer/components/pdfViewer.component.scss @@ -1,4 +1,5 @@ @mixin adf-pdf-viewer-theme($theme) { + $background: map-get($theme, background); $foreground: map-get($theme, foreground); .adf-viewer-content-container { @@ -67,7 +68,7 @@ .adf-toolbar .mat-toolbar { max-height: 48px; - background-color: mat-color($primary, default-contrast, 1); + background-color: mat-color($background, card); border-width: 0; border-radius: 2px; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12); @@ -80,6 +81,8 @@ & > input { border: 1px solid mat-color($foreground, text, 0.07); + background-color: mat-color($background, card); + color: inherit; font-size: 14px; padding: 0; height: 24px;