Semantic UI - Make Menu Bigger - semantic-ui

If you go to the Semantic UI and look at the side bar menu, e.g. http://semantic-ui.com/elements/button.html , the link font is quite small. What is the 'technically correct semantic UI' way to make this font bigger?

Most Semantic UI elements will accept the following size modifiers (from smallest to largest):
mini
tiny
small
large
big
huge
massive
This also goes for menus - the side menu you're referring to has the following class: ui vertical inverted sticky menu so all you need to do is add big or huge to it, e.g. ui vertical inverted sticky big menu.

Related

How to get rid of useless scrollbars in a material dialog when a radio-group is used?

This Stackblitz example opens a simple dialog which contains a radio group in the mat-dialog-content div.
You can see that the dialog-content shows an ugly scrollbar:
This does not happen when other components are used: e.g. input, etc.
Using chrome dev-tools, I can see that the mat-radio-buttons have a height of 20px:
but the mat-radio-group only has a height of 17px:
Is this a bug in angular material components (the example uses version 12.0.4), or is there a simple workaround/css that we can use to get rid of the scrollbar?
I've tried explicitly setting the height on the mat-radio-group, but this has no effect.
Notes:
in production we do of course have many dialogs and some of them are large and need the scrollbars
we need an application wide solution/workaround
simply hiding the scrollbars is not okay: it must remain auto so that the dialog can react to size changes (e.g. user rotates device, some items are shown/hidden dynamically, etc.
For now we came up with a workaround that fixes the issue in all our 30+ dialogs.
The nice thing is that we can apply it in one place, in styles.scss:
.mat-dialog-content {
padding-bottom: 10px !important;
}
We just add a padding to the bottom of the dialog content area and then scrollbars: auto works as expected in all our dialogs (small and large). i.e. when you make the browser window larger/smaller, the scrollbar is automatically shown/hidden.
And it also works when there are multiple mat-radio-groups in one dialog.
The additional padding between the content and bottom dialog-actions is acceptable for our ui.
Stackblitz example with workaround
The reason this happens is due to the ripple effect on the radio button - which takes up additional space and causes the scrollbar to show. See https://github.com/angular/components/issues/20344
There are a number of ways to resolve this, such as using padding or margins on the components or on the dialog content itself like you did. The important thing is that there is enough space added to accommodate the ripple.

Reordering Foundation XY grid cells on small devices

I'm just getting started using the Zurb Foundation 6.4.3 XY Grid. I'm having some trouble conceptualizing how I would do the following:
On large screens, my site should look like this:
On small screens I'd like Panel B to come first, and have a fixed height of 300px:
I have a Codepen of all this here: https://codepen.io/rbrtmrtn/pen/vWYKQP
Right now there are two issues with how this appears on small screens:
I'm not sure how to make Panel B appear above Panel A when that grid-x gets collapsed.
Panel B is a web map which requires a fixed height or some kind of autosizing (like Flexbox grow) in order to work. When I resize the site and collapse the grid-x the map disappears, probably because Foundation is trying to fit the cell to its content and there is none (the map behaves more like a floated element).
Would appreciate any help sorting this out.
A coworker steered me in the right direction -- the answer was to use source ordering, which allows you to specify the order in which elements appear on different screen sizes.

Material UI V 1.0.0 Grid Layout

Trying to create a layout for a dashboard with a persistant drawer here is what I have so far
So far added the side bar and top bar but the content is not displaying in the free space between. (body)
Should I be using the Grid resource to do this and say have the app header as the parent of the body. Or should I just create a seperate body that has margins to space away from the sidebar and nav. There seems it should be a smarter way where the components don't overlap each other than just adding margins etc.

Position sidebar mdl-drawer under the navigation panel instead of on top of it

In Material Design Lite how do you specify the position of elements? I would like to show the sidebar under the navigation panel not on top of it like it is by default now: http://www.getmdl.io/components/#layout-section/layout
This isn't something support out of the box since it means the design will no longer adhere to Material Design. So if you wish to do this, you need to target the drawer in your own CSS and specify a top margin so it will sit below the navbar. Then deal with anything else that may break from the movement (I don't believe anything should though.)

How to layout out a component differently depending on the amount of space available?

I am trying to build a sort of button bar in Flex - something like the horizontally laid-out bookmark bar you'd see in most modern web browsers, where when you run out of horizontal space, you can click on the arrows button(>>) to get a drop-down to see the rest of the items which did not fit into the horizontal space. Problem is, how can I know how much horizontal space is available for me to tell how many buttons to render into the button bar? This need doesn't appear to be support by the general layout manager framework.
You can check the width of the parent container, and if that is less than the combined widths of your objects that you've attached with AddChild or AddElement, then you don't have enough space and need use your arrow functionality.

Resources