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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user