-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Menu] Make Fixed Menu Collapsable #157
Comments
I agree that all menus should reformat to vertical menus when at mobile widths. With fixed menus converting to collapsible, click-to-open menus. The issue with click-to-open menus though is they require javascript. Which means there would need to be a behavioral extension to menu to handle this. |
Trying out semantic for the first time and looking for this too. Spoiled by bootstrap :-). |
Any updates on this? |
Seeing the amount of activity on this, I'll prioritize this for this or next week. |
+1 |
+1. This will be super useful. |
+1 This is a must. |
Hey @jlukic, If you need any help implementing this, I would be happy to take a shot at it. Just let me know if you had any plans/ideas for how you wanted it to be implemented... |
+1 :) |
Seems like with 1.0, "right menu" does not work with mobile. Instead of collapsing (a-la bootstrap) it wraps around. Was this resolved and I'm missing something? if so, is there an example? Anyone figured a workaround to do this "manually"? |
Has this been done?? |
It has not been done yet. |
+1 |
+1 must have |
Is there a time frame when this might possibly be implemented? |
I would say after #1571 which is my main focus right now. |
+1 I'm using the sidebar component in the meantime, but this is definitely a staple now. |
+1 |
2 similar comments
+1 |
👍 |
+1 Would also love to help in the implementation if needed. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
It's seriously sad that such a basic thing has been forgotten, really enjoyed working with Semantic while it lasted but i refuse to spend more time on making 2 menus (A sidebar and a menu) to have a working Responsive Navigation. Double the effort for something that should ease the process. +1 (Will revisit S.UI if added in future RCs) |
+1 |
Here is a solution that behaves like Bootstrap and does not require a second set of menu items. It requires just a tiny bit of JS and CSS. $(function() {
// Set up to handle wrapping of tab menu (tab actuator) items
$(window).resize(function() {
checkIfWrapped();
});
checkIfWrapped(); // Make sure the function is fired upon document ready
}); // Detect whether a Semantic UI tabular menu is wrapped
function checkIfWrapped() {
var pos_top_1st = $('.tabular.menu .item').first().position().top;
$('.tabular.menu .item:not(first-child)').each(function() {
var pos_top = $(this).position().top;
if (pos_top > pos_top_1st) {
$(this).parent().addClass('wrapped');
return;
} else if (pos_top == pos_top_1st) {
$(this).parent().removeClass('wrapped');
}
}); The HTML structure. (Note that placing the .tabular.menu .item-s inside a div within the overall .tabular.menu allows the use of a separate .right.menu within the .tabular.menu if desired) : <div id="tabs-menu" class="ui top attached tabular menu">
<div id="qj-tabs">
<div class="tab item"></div>
<div class="tab item"></div>
<div class="tab item"></div>
</div>
<div class="right menu">
<a class="tab item"><i class="add icon"></i> Add Job</a>
<a class="tab item"><i class="copy icon"></i> Copy Item</a>
</div>
</div>
<div class="botttom attached tab segment"></div>
<div class="botttom attached tab segment"></div>
</div> The CSS: #qj-tabs {
display: flex !important; /* Will not work unless defined as display: flex */
flex-direction: row !important;
flex-wrap: wrap !important;
}
#tabs-menu .wrapped .item {
border-radius: 5px !important;
border: 1px lightgray solid !important; /* Just styling for the default theme here */
margin: 0 2px 2px 0 !important;
}
#tabs-menu .wrapped .active.item {
background-color: lightgray;
} Thanks to Mr. Boris the answer here that got me started on this solution. |
@jlukic Thank you |
Any working solution on this issue yet? |
@andrewoko-odion Doesn't seem like there's much being done about this, it has been opened since 2013 and yet no solution right out of the box. Only shared code to try and imitate the behavior which i still refuse to make use of if i don't need to when something so simple and required this days should be already be implemented on the framework itself. |
Absolutely agree with @dualpixel |
As much as I like Semantic, I gotta say that this is a deal breaker for me. As soon as this gets fixed, I'm all in. +1 |
+1 |
@CanadianEngineer, @pierre-H You might want to look at the solution I posted on March 28th just above here. It's really easy to implement. I do agree that this needs to be implemented into the main library though. |
Any working solution on this issue yet? |
+1 |
Wow! I really don't understand why the core team of semantic ui don't want to consider a responsive menu. This should have been a great framework to compete well enough with Bootstrap but the lack of support for responsive menu is just so painful. @jlukic should see that this feature is one which everyone wants and then make it a priority, please! |
@Pythonian totally agree! +1 |
Same for me, I really enjoy semantic ui but this function should be native since a long long time... |
Waiting, please implement + 100000000 |
+1 |
1 similar comment
+1 |
+1 |
+1 |
After 4 years getting "+1" mails from this thread I'll mute this now. Anyway, bye! |
SUI newbie here: |
+1 |
@finferflu @dawidsappich @ashleymcveigh @gino @guihatano Please use GitHub reactions instead of just posting +1 |
@nextgensparx I did use the reaction, but then I saw that a lot of people were doing it, so I assumed that was how it worked. Sorry about that. |
any working sample repo? It's easy to make grids device visibility responsive but it's hard when you display icon and try to show/hide menus. tsk |
+1 |
2 similar comments
+1 |
+1 |
Hi,
Having a collapsable fixed menu is something of a must have with the rise of phones. Something similar to Bootstrap's collapsable navbar or Foundation's top-bar would be great.
http://getbootstrap.com/components/#navbar
http://foundation.zurb.com/docs/components/top-bar.html#
The text was updated successfully, but these errors were encountered: