You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2021/05/18 09:46:00 UTC

[myfaces-tobago] 01/02: fix(theme): landscape printing

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit 6ea62ac2f5814f84c47148d245595806f1429913
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue May 18 10:32:49 2021 +0200

    fix(theme): landscape printing
    
    Set bootstrap print size to auto to enable landscape printing in webkit browsers.
    
    Issue: TOBAGO-2082
---
 tobago-theme/tobago-theme-charlotteville/src/main/scss/_custom.scss | 2 ++
 tobago-theme/tobago-theme-roxborough/src/main/scss/_custom.scss     | 2 ++
 tobago-theme/tobago-theme-scarborough/src/main/scss/_custom.scss    | 1 +
 tobago-theme/tobago-theme-speyside/src/main/scss/_custom.scss       | 1 +
 tobago-theme/tobago-theme-standard/src/main/scss/_custom.scss       | 1 +
 5 files changed, 7 insertions(+)

diff --git a/tobago-theme/tobago-theme-charlotteville/src/main/scss/_custom.scss b/tobago-theme/tobago-theme-charlotteville/src/main/scss/_custom.scss
index 2e1f15e..fb3607a 100644
--- a/tobago-theme/tobago-theme-charlotteville/src/main/scss/_custom.scss
+++ b/tobago-theme/tobago-theme-charlotteville/src/main/scss/_custom.scss
@@ -56,6 +56,8 @@ $theme-colors: map-merge((
         "dark": $dark
 ), $theme-colors);
 
+$print-page-size: auto; //enable landscape printing in webkit browsers
+
 $body-color: $mud;
 $body-bg: lighten($sand, 10%);
 
diff --git a/tobago-theme/tobago-theme-roxborough/src/main/scss/_custom.scss b/tobago-theme/tobago-theme-roxborough/src/main/scss/_custom.scss
index 912a8fc..79d6bf4 100644
--- a/tobago-theme/tobago-theme-roxborough/src/main/scss/_custom.scss
+++ b/tobago-theme/tobago-theme-roxborough/src/main/scss/_custom.scss
@@ -53,6 +53,8 @@ $theme-colors: map-merge((
         "dark": $dark
 ), $theme-colors);
 
+$print-page-size: auto; //enable landscape printing in webkit browsers
+
 $border-width: 2px;
 
 $body-color: $gray-600;
diff --git a/tobago-theme/tobago-theme-scarborough/src/main/scss/_custom.scss b/tobago-theme/tobago-theme-scarborough/src/main/scss/_custom.scss
index e6558e2..4cb03e9 100644
--- a/tobago-theme/tobago-theme-scarborough/src/main/scss/_custom.scss
+++ b/tobago-theme/tobago-theme-scarborough/src/main/scss/_custom.scss
@@ -20,4 +20,5 @@
 // Copy variables from `_variables.scss` to this file to override default values
 // without modifying source files.
 
+$print-page-size: auto; //enable landscape printing in webkit browsers
 $body-bg:    #bbccdd !default;
diff --git a/tobago-theme/tobago-theme-speyside/src/main/scss/_custom.scss b/tobago-theme/tobago-theme-speyside/src/main/scss/_custom.scss
index ef56b60..220ff79 100644
--- a/tobago-theme/tobago-theme-speyside/src/main/scss/_custom.scss
+++ b/tobago-theme/tobago-theme-speyside/src/main/scss/_custom.scss
@@ -74,6 +74,7 @@ $enable-hover-media-query:  false;
 // Spacing
 $spacer:  1rem;
 
+$print-page-size: auto; //enable landscape printing in webkit browsers
 
 // Body
 //
diff --git a/tobago-theme/tobago-theme-standard/src/main/scss/_custom.scss b/tobago-theme/tobago-theme-standard/src/main/scss/_custom.scss
index 35293df..91e5723 100644
--- a/tobago-theme/tobago-theme-standard/src/main/scss/_custom.scss
+++ b/tobago-theme/tobago-theme-standard/src/main/scss/_custom.scss
@@ -19,3 +19,4 @@
 //
 // Copy variables from `_variables.scss` to this file to override default values
 // without modifying source files.
+$print-page-size: auto; //enable landscape printing in webkit browsers