mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Only make controls slidable on phones. Fixed flarum/core#178
This commit is contained in:
@@ -1,49 +1,51 @@
|
|||||||
.Slidable-underneath {
|
.Slidable-underneath {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.Slidable {
|
@media @phone {
|
||||||
position: relative;
|
.Slidable {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.DiscussionListItem-controls {
|
.DiscussionListItem-controls {
|
||||||
display: block;
|
display: block;
|
||||||
position: static;
|
position: static;
|
||||||
}
|
|
||||||
.Slidable-underneath {
|
|
||||||
display: none;
|
|
||||||
background: @secondary-color !important;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
z-index: 0;
|
|
||||||
color: #fff !important;
|
|
||||||
border: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
.box-shadow(none);
|
|
||||||
padding: 20px 0;
|
|
||||||
text-align: right;
|
|
||||||
|
|
||||||
.icon {
|
|
||||||
width: 50px;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
}
|
||||||
}
|
.Slidable-underneath {
|
||||||
.Slideable-underneath--left {
|
display: none;
|
||||||
text-align: left;
|
background: @secondary-color !important;
|
||||||
}
|
position: absolute;
|
||||||
.Slidable-content {
|
right: 0;
|
||||||
.transition(~"box-shadow 0.2s, border-radius 0.2s");
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
z-index: 0;
|
||||||
|
color: #fff !important;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
.box-shadow(none);
|
||||||
|
padding: 20px 0;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
.sliding& {
|
.icon {
|
||||||
position: relative;
|
width: 50px;
|
||||||
background: #fff;
|
text-align: center;
|
||||||
z-index: 2;
|
font-size: 20px;
|
||||||
border-radius: 2px;
|
}
|
||||||
.box-shadow(0 2px 6px @shadow-color);
|
}
|
||||||
|
.Slideable-underneath--left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.Slidable-content {
|
||||||
|
.transition(~"box-shadow 0.2s, border-radius 0.2s");
|
||||||
|
|
||||||
|
.sliding& {
|
||||||
|
position: relative;
|
||||||
|
background: #fff;
|
||||||
|
z-index: 2;
|
||||||
|
border-radius: 2px;
|
||||||
|
.box-shadow(0 2px 6px @shadow-color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user