From 611220cb53b42d00179ea78280b7daea116d96eb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 25 Apr 2019 22:01:43 -0400 Subject: [PATCH] Improve display in minimal mode --- view/php/minimal.php | 4 ++-- view/theme/duepuntozero/style.css | 1 + view/theme/frio/css/style.css | 17 ++++++++--------- view/theme/frio/php/default.php | 3 ++- view/theme/frio/php/minimal.php | 30 ++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 12 deletions(-) create mode 100644 view/theme/frio/php/minimal.php diff --git a/view/php/minimal.php b/view/php/minimal.php index dabd422db..caa6c64d9 100644 --- a/view/php/minimal.php +++ b/view/php/minimal.php @@ -5,8 +5,8 @@ - -
+ +
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index e327a1ec9..7cda87c1e 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -3507,6 +3507,7 @@ div.jGrowl div.info { width: 100%; padding: 0.5em; height: auto; + box-sizing: border-box; } aside:before { content: ">>"; diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index a07ec1b46..968e1dd7b 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -33,6 +33,10 @@ body { /*color: #555;*/ font-family: 'Open Sans',sans-serif; } +body.minimal { + padding: 15px; +} + body a { /*color: #555;*/ /*color: #6fdbe8;*/ @@ -131,14 +135,6 @@ blockquote { * standard page elements */ -section.minimal { - top: 0px; - left: 0px; - position: absolute; - width: 100%; - height: 100%; -} - #back-to-top { display: none; cursor: pointer; @@ -3553,8 +3549,11 @@ section .profile-match-wrapper { body { padding-top: 95px; } + body.minimal { + padding: 15px; + } - #friendica-logo-mask { + #friendica-logo-mask { display: none; } diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index 5eeb14c75..b297fcb48 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -79,7 +79,8 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; // special minimal style for modal dialogs if ($minimal) { ?> -
+ +
diff --git a/view/theme/frio/php/minimal.php b/view/theme/frio/php/minimal.php new file mode 100644 index 000000000..e8486653a --- /dev/null +++ b/view/theme/frio/php/minimal.php @@ -0,0 +1,30 @@ + + + + <?php if(!empty($page['title'])) echo $page['title'] ?> + + + + +
+ +
+ + + + +