Skip to content
Snippets Groups Projects
Commit ba8acfe2 authored by Jochen's avatar Jochen
Browse files

Optimize responsiveness, remove primary class


Signed-off-by: default avatarJochen <rothjochen@gmail.com>
parent a1c83c12
No related branches found
No related tags found
No related merge requests found
...@@ -97,20 +97,19 @@ body { ...@@ -97,20 +97,19 @@ body {
} }
.wrapper { .wrapper {
width: 300px; max-width: 100%;
margin-top: 10vh; margin-top: 10vh;
} }
/* Default FORM */ /* Default FORM */
form { form {
position: relative; position: relative;
width: 280px;
margin: auto; margin: auto;
padding: 0; padding: 0;
} }
form fieldset { form fieldset {
margin-bottom: 20px; width: 260px;
text-align: left; margin: auto auto 20px;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
...@@ -156,25 +155,34 @@ form #datadirField legend { ...@@ -156,25 +155,34 @@ form #datadirField legend {
#alternative-logins { #alternative-logins {
margin: 30px 15px 20px; margin: 30px 15px 20px;
display: block; display: block;
min-width: 260px;
max-width: 400px;
overflow: hidden;
} }
#alternative-logins a { #alternative-logins a {
margin: 10px 5px; margin: 10px 5px;
display: block; display: block;
font-size: 15px; font-size: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
#alternative-logins a::before { #alternative-logins a::before {
content: ""; content: "";
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: contain;
width: 18px; width: 0;
height: 18px; height: 18px;
display: inline-block; display: inline-block;
vertical-align: bottom; vertical-align: bottom;
margin-right: 5px;
} }
#alternative-logins .button {
color: #0082c9;
padding: 12px 20px;
}
@media only screen and (max-width: 1024px) { @media only screen and (max-width: 1024px) {
.wrapper { .wrapper {
...@@ -183,6 +191,9 @@ form #datadirField legend { ...@@ -183,6 +191,9 @@ form #datadirField legend {
#alternative-logins { #alternative-logins {
margin: 30px 15px 10px; margin: 30px 15px 10px;
} }
#alternative-logins .label-prefix {
display: none;
}
} }
...@@ -198,6 +209,10 @@ form #datadirField legend { ...@@ -198,6 +209,10 @@ form #datadirField legend {
applied to the button instead. */ applied to the button instead. */
} }
#submit-wrapper {
margin: 0 auto;
}
#submit-wrapper input.login:hover ~ .submit-icon.icon-confirm-white, #submit-wrapper input.login:hover ~ .submit-icon.icon-confirm-white,
#submit-wrapper input.login:focus ~ .submit-icon.icon-confirm-white, #submit-wrapper input.login:focus ~ .submit-icon.icon-confirm-white,
#submit-wrapper input.login:active ~ .submit-icon.icon-confirm-white { #submit-wrapper input.login:active ~ .submit-icon.icon-confirm-white {
......
...@@ -8,8 +8,8 @@ script('core', 'dist/login'); ...@@ -8,8 +8,8 @@ script('core', 'dist/login');
<?php if (!empty($_['alt_login'])) { ?> <?php if (!empty($_['alt_login'])) { ?>
<div id="alternative-logins"> <div id="alternative-logins">
<?php foreach($_['alt_login'] as $login): ?> <?php foreach($_['alt_login'] as $login): ?>
<a class="button primary <?php p(isset($login['style']) ? $login['style'] : ''); ?>" href="<?php print_unescaped($login['href']); ?>" > <a class="button <?php p(isset($login['style']) ? $login['style'] : ''); ?>" href="<?php print_unescaped($login['href']); ?>" >
<?php p($login['name']); ?> <?php echo $login['name']; ?>
</a> </a>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment