[Web] Fix responsive btn block

master
andryyy 2021-08-10 08:48:36 +02:00
parent 9afea99189
commit e30a8efb0f
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 137 additions and 114 deletions

View File

@ -14,8 +14,12 @@
width: auto; width: auto;
float: left; float: left;
margin-right: 10px; margin-right: 10px;
margin-top: auto;
}
.panel-login .apps .btn:hover {
margin-top: 1px !important;
border-bottom-width: 3px;
} }
@media (max-width: 767px) { @media (max-width: 767px) {
.panel-login .apps .btn { .panel-login .apps .btn {
@ -24,6 +28,21 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
.panel-login .apps .btn {
border-bottom-width: 4px;
}
.media-clearfix::after {
clear: both;
box-sizing: border-box;
}
.media-clearfix::before {
display: table;
content: " ";
box-sizing: border-box;
}
.xs-show { .xs-show {
display: block !important; display: block !important;
} }

View File

@ -99,7 +99,9 @@ $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
foreach ($MAILCOW_APPS as $app) { foreach ($MAILCOW_APPS as $app) {
if (getenv('SKIP_SOGO') == "y" && preg_match('/^\/SOGo/i', $app['link'])) { continue; } if (getenv('SKIP_SOGO') == "y" && preg_match('/^\/SOGo/i', $app['link'])) { continue; }
?> ?>
<div class="media-clearfix">
<a href="<?=(isset($app['link'])) ? htmlspecialchars($app['link']) : '';?>" role="button" title="<?=(isset($app['description'])) ? htmlspecialchars($app['description']) : '';?>" class="btn btn-primary btn-lg btn-block"><?= htmlspecialchars($app['name']); ?></a> <a href="<?=(isset($app['link'])) ? htmlspecialchars($app['link']) : '';?>" role="button" title="<?=(isset($app['description'])) ? htmlspecialchars($app['description']) : '';?>" class="btn btn-primary btn-lg btn-block"><?= htmlspecialchars($app['name']); ?></a>
</div>
<?php <?php
} }
} }
@ -108,7 +110,9 @@ $_SESSION['index_query_string'] = $_SERVER['QUERY_STRING'];
foreach ($app_links as $row) { foreach ($app_links as $row) {
foreach ($row as $key => $val) { foreach ($row as $key => $val) {
?> ?>
<div class="media-clearfix">
<a href="<?= htmlspecialchars($val); ?>" role="button" class="btn btn-primary btn-lg btn-block"><?= htmlspecialchars($key); ?></a> <a href="<?= htmlspecialchars($val); ?>" role="button" class="btn btn-primary btn-lg btn-block"><?= htmlspecialchars($key); ?></a>
</div>
<?php <?php
} }
} }