1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00

Show login modal if replying as guest; disable button if no permission

Also hide the first item in dropdown-split menus
This commit is contained in:
Toby Zerner
2015-05-04 11:08:45 +09:30
parent 7638571b82
commit ed191ca7e4
3 changed files with 38 additions and 11 deletions

View File

@@ -14,6 +14,15 @@
color: @fl-body-color;
background-color: @fl-body-control-bg;
}
&.disabled {
color: #aaa;
cursor: default;
&:hover, &:focus {
color: #aaa;
background: none;
}
}
& .icon {
float: left;
margin-left: -25px;
@@ -31,12 +40,22 @@
background-color: @fl-body-control-bg;
}
}
.dropdown-split.item-count-1 {
& .btn {
border-radius: @border-radius-base !important;
}
& .dropdown-toggle {
display: none;
@media @tablet, @desktop, @desktop-hd {
.dropdown-split {
&.item-count-1 {
& .btn {
border-radius: @border-radius-base !important;
}
& .dropdown-toggle {
display: none;
}
}
& .dropdown-menu li:first-child {
&, & + li.divider {
display: none;
}
}
}
}