commit
4befdd484b
@ -1,102 +1,54 @@
|
|||||||
.bottom-sheet {
|
.bottom-sheet {
|
||||||
display: block;
|
@media (max-width: @screen-sm-max) {
|
||||||
visibility: hidden;
|
.dropdown-menu {
|
||||||
|
display: block;
|
||||||
position: fixed;
|
visibility: hidden;
|
||||||
left: 0;
|
|
||||||
right: 0;
|
position: fixed;
|
||||||
bottom: 0;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
margin: 0;
|
bottom: 0;
|
||||||
padding: 0 5px;
|
|
||||||
max-height: 60%;
|
margin: 0;
|
||||||
|
padding: 0 5px;
|
||||||
background: #fff;
|
max-height: 60%;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.35);
|
|
||||||
overflow: auto;
|
background: #fff;
|
||||||
-webkit-overflow-scrolling: touch;
|
box-shadow: 0 2px 6px rgba(0,0,0,0.35);
|
||||||
transform: translate3d(0, 350px, 0);
|
overflow: auto;
|
||||||
transition: transform 0.3s, visibility 0s 0.3s;
|
-webkit-overflow-scrolling: touch;
|
||||||
z-index: 995;
|
transform: translate3d(0, 350px, 0);
|
||||||
padding: 5px 0 10px;
|
transition: transform 0.3s, visibility 0s 0.3s;
|
||||||
|
z-index: 995;
|
||||||
|
padding: 5px 0 10px;
|
||||||
li {
|
|
||||||
|
li {
|
||||||
a {
|
a {
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.divider {
|
&.divider {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background-color: @btn-primary-bg;
|
background-color: @btn-primary-bg;
|
||||||
color: @btn-primary-color;
|
color: @btn-primary-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.bottom-sheet-open {
|
|
||||||
transform: none;
|
|
||||||
visibility: visible;
|
|
||||||
transition-delay: 0s;
|
|
||||||
top: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: @screen-sm-max) {
|
|
||||||
.post-bar {
|
|
||||||
.thread-tools, [component="thread/sort"], [component="topic/watch"] {
|
|
||||||
.dropdown-menu {
|
|
||||||
.bottom-sheet;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.open {
|
|
||||||
.dropdown-menu {
|
|
||||||
.bottom-sheet-open;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-backdrop {
|
|
||||||
background-color: rgba(0, 0, 0, .3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.category {
|
&.open {
|
||||||
[component="topic/watch"], [component="thread/sort"], .thread-tools {
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
.bottom-sheet;
|
transform: none;
|
||||||
}
|
visibility: visible;
|
||||||
|
transition-delay: 0s;
|
||||||
&.open {
|
top: initial;
|
||||||
.dropdown-menu {
|
}
|
||||||
.bottom-sheet-open;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-backdrop {
|
|
||||||
background-color: rgba(0, 0, 0, .3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.unread {
|
|
||||||
.btn-group {
|
|
||||||
.dropdown-menu {
|
|
||||||
.bottom-sheet;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.open {
|
|
||||||
.dropdown-menu {
|
|
||||||
.bottom-sheet-open;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-backdrop {
|
.dropdown-backdrop {
|
||||||
background-color: rgba(0, 0, 0, .3);
|
background-color: rgba(0, 0, 0, .3);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<span component="post/tools" class="dropdown moderator-tools <!-- IF !posts.display_post_menu -->hidden<!-- ENDIF !posts.display_post_menu -->">
|
<span component="post/tools" class="dropdown moderator-tools bottom-sheet <!-- IF !posts.display_post_menu -->hidden<!-- ENDIF !posts.display_post_menu -->">
|
||||||
<a href="#" data-toggle="dropdown"><i class="fa fa-fw fa-ellipsis-v"></i></a>
|
<a href="#" data-toggle="dropdown"><i class="fa fa-fw fa-ellipsis-v"></i></a>
|
||||||
<ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
|
<ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue