Feed menu horizontal scroll for mobile
This commit is contained in:
parent
e4964e8e15
commit
a95a075755
|
@ -4,18 +4,23 @@
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 120px;
|
top: 120px;
|
||||||
|
|
||||||
ul > li {
|
@include media-breakpoint-up(md) {
|
||||||
white-space: nowrap;
|
ul > li {
|
||||||
overflow: hidden;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebarItemName {
|
.sidebarItemName {
|
||||||
position: relative;
|
align-items: baseline;
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
position: relative;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected {
|
.selected {
|
||||||
|
@ -83,9 +88,9 @@
|
||||||
height: 2.4rem;
|
height: 2.4rem;
|
||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.2rem;
|
||||||
margin-right: 0.8rem;
|
margin-right: 0.8rem;
|
||||||
|
min-width: 2.4rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 2.4rem;
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -127,7 +132,35 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feedFilters {
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
display: flex;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-right: 3rem !important;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 0 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebarItemName {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.subscriptions {
|
.subscriptions {
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
display: flex;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-right: 3rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ export const Sidebar = (props: FeedSidebarProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={styles.sidebar}>
|
<div class={styles.sidebar}>
|
||||||
<ul>
|
<ul class={styles.feedFilters}>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
href={getPagePath(router, 'feed')}
|
href={getPagePath(router, 'feed')}
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
margin-bottom: 0.8em;
|
margin-bottom: 0.8em;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul,
|
ul,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user