Fix logout button styling on mobile

main
Peter Jaszkowiak 8 years ago
parent aa7d8ee90d
commit 510f91ac27

@ -421,7 +421,8 @@ label.dropdown-toggle {
} }
} }
.dropdown-menu > li > form > button { .dropdown-menu > li > form {
> button, > .btn-link {
text-align: left; text-align: left;
width: 100%; width: 100%;
background: none; background: none;
@ -441,6 +442,7 @@ label.dropdown-toggle {
background-color: @dropdown-link-hover-bg; background-color: @dropdown-link-hover-bg;
} }
} }
}
html[data-dir="rtl"] { html[data-dir="rtl"] {
.dropdown-menu > li > form > button { .dropdown-menu > li > form > button {

@ -63,14 +63,14 @@
background-color: #1D1F20; background-color: #1D1F20;
background-image: linear-gradient(145deg, #1D1F20, #404348); background-image: linear-gradient(145deg, #1D1F20, #404348);
a { a, button {
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
}
a:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
}
.chat-list { .chat-list {
max-height: 100%; max-height: 100%;
@ -190,16 +190,18 @@
margin: 10px 0; margin: 10px 0;
list-style: none; list-style: none;
a { a, button {
display: block; display: block;
padding: 10px 20px; padding: 10px 20px;
} text-align: left;
width: 100%;
a:hover { &:hover {
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
text-decoration: none; text-decoration: none;
} }
} }
}
.slideout-panel { .slideout-panel {
position: relative; position: relative;

@ -127,7 +127,9 @@
<form method="post" action="{relative_path}/logout"> <form method="post" action="{relative_path}/logout">
<input type="hidden" name="_csrf" value="{config.csrf_token}"> <input type="hidden" name="_csrf" value="{config.csrf_token}">
<input type="hidden" name="noscript" value="true"> <input type="hidden" name="noscript" value="true">
<button type="submit"><i class="fa fa-fw fa-sign-out"></i><span> [[global:logout]]</span></button> <button type="submit" class="btn btn-link">
<i class="fa fa-fw fa-sign-out"></i><span> [[global:logout]]</span>
</button>
</form> </form>
</li> </li>
</ul> </ul>

Loading…
Cancel
Save