From bd7c7eb8d66a1e277cb7ffe79200178bccb74328 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Tue, 3 Oct 2023 15:12:23 +0100 Subject: [PATCH] Print Styles: Removed use of seperate style sheet Seemed a bit redundant and complicated, since we're only adding a few extra styles. Just merged into main styles instead. --- resources/sass/{print-styles.scss => _print.scss} | 3 --- resources/sass/styles.scss | 4 ++++ resources/views/layouts/base.blade.php | 3 +-- resources/views/layouts/plain.blade.php | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) rename resources/sass/{print-styles.scss => _print.scss} (90%) diff --git a/resources/sass/print-styles.scss b/resources/sass/_print.scss similarity index 90% rename from resources/sass/print-styles.scss rename to resources/sass/_print.scss index cfc0ecdad..f7d52a6dd 100644 --- a/resources/sass/print-styles.scss +++ b/resources/sass/_print.scss @@ -1,6 +1,3 @@ -@use "sass:math"; -@import "variables"; - html, body { font-size: 12px; background-color: #FFF; diff --git a/resources/sass/styles.scss b/resources/sass/styles.scss index c0ce7ba63..b4691bc4d 100644 --- a/resources/sass/styles.scss +++ b/resources/sass/styles.scss @@ -23,6 +23,10 @@ @import "pages"; @import "content"; +@media print { + @import "print"; +} + // Jquery Sortable Styles .dragged { position: absolute; diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php index 67b074905..4acabbcac 100644 --- a/resources/views/layouts/base.blade.php +++ b/resources/views/layouts/base.blade.php @@ -17,9 +17,8 @@ @stack('social-meta') - + - diff --git a/resources/views/layouts/plain.blade.php b/resources/views/layouts/plain.blade.php index a644ef789..37ebbe83d 100644 --- a/resources/views/layouts/plain.blade.php +++ b/resources/views/layouts/plain.blade.php @@ -9,9 +9,8 @@ - + - @include('layouts.parts.custom-styles')