]> git.mxchange.org Git - friendica.git/commitdiff
Improve display in minimal mode
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Apr 2019 02:01:43 +0000 (22:01 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 2 May 2019 13:52:48 +0000 (09:52 -0400)
view/php/minimal.php
view/theme/duepuntozero/style.css
view/theme/frio/css/style.css
view/theme/frio/php/default.php
view/theme/frio/php/minimal.php [new file with mode: 0644]

index dabd422dbb4538a81c7b6554483791023f8d8ce3..caa6c64d964416b97faa5edab4c79fd2f6f65a27 100644 (file)
@@ -5,8 +5,8 @@
   <script>var baseurl="<?php echo Friendica\Core\System::baseUrl() ?>";</script>
   <?php if(!empty($page['htmlhead'])) echo $page['htmlhead'] ?>
 </head>
-<body>
-       <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important;display:block!important;"><?php if(!empty($page['content'])) echo $page['content']; ?>
+<body class="minimal">
+       <section><?php if(!empty($page['content'])) echo $page['content']; ?>
                <div id="page-footer"></div>
        </section>
 </body>
index e327a1ec91a92c51da08dd17208006d9d7a41e03..7cda87c1e47660f5fc9232f84e3f28a543db298c 100644 (file)
@@ -3507,6 +3507,7 @@ div.jGrowl div.info {
                width: 100%;
                padding: 0.5em;
                height: auto;
+               box-sizing: border-box;
        }
        aside:before {
                content: ">>";
index a07ec1b46b9e31cfbe174560336fca6253d3d5f5..968e1dd7b67cb524c06eb6ecda8d2492f7a97079 100644 (file)
@@ -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;
        }
 
index 5eeb14c75f4512373a3abd31cf3b56f02306f7c6..b297fcb48174629de382d2609c542ec5835e8039 100644 (file)
@@ -79,7 +79,8 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
        // special minimal style for modal dialogs
        if ($minimal) {
 ?>
-               <section class="minimal" style="margin:0px!important; padding:0px!important; float:none!important; display:block!important;">
+        <!-- <?php echo __FILE__ ?> -->
+               <section class="minimal">
                        <?php if (!empty($page['content'])) echo $page['content']; ?>
                        <div id="page-footer"></div>
                </section>
diff --git a/view/theme/frio/php/minimal.php b/view/theme/frio/php/minimal.php
new file mode 100644 (file)
index 0000000..e848665
--- /dev/null
@@ -0,0 +1,30 @@
+<!DOCTYPE html >\r
+<html>\r
+<head>\r
+       <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>\r
+       <script>var baseurl="<?php echo Friendica\Core\System::baseUrl() ?>";</script>\r
+       <?php if(!empty($page['htmlhead'])) echo $page['htmlhead'] ?>\r
+</head>\r
+<body class="minimal">\r
+       <section><?php if(!empty($page['content'])) echo $page['content']; ?>\r
+               <div id="page-footer"></div>\r
+       </section>\r
+       <!-- Modal  -->\r
+       <div id="modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">\r
+               <div class="modal-dialog modal-full-screen">\r
+                       <div class="modal-content">\r
+                               <div id="modal-header" class="modal-header">\r
+                                       <button id="modal-cloase" type="button" class="close" data-dismiss="modal" aria-hidden="true">\r
+                                               &times;\r
+                                       </button>\r
+                                       <h4 id="modal-title" class="modal-title"></h4>\r
+                               </div>\r
+                               <div id="modal-body" class="modal-body">\r
+                                       <!-- /# content goes here -->\r
+                               </div>\r
+                       </div>\r
+               </div>\r
+       </div>\r
+</body>\r
+</html>\r
+\r