Difference between revisions of "Design tricks and hacks"
Jump to navigation
Jump to search
old>Admin (Created page with "== many pages / long page name == The following code will shorten page selectors, unless they are hovered or active .tablePageSelector td a { max-width: 80px; o...") |
old>Admin |
||
Line 13: | Line 13: | ||
} | } | ||
.tablePageSelectorElementLeft, .tablePageSelectorElementRight { width: 2px; } | .tablePageSelectorElementLeft, .tablePageSelectorElementRight { width: 2px; } | ||
== rounded corners missing in simple menu mode == | |||
When a user is running in the context of a simple user certain buttons will be hidden, and on displayed in the expanded menu ("burger"). Previous buttons might have their corners correctly, which can be mitigated by removing the items (they are normally just hidden with CSS). | |||
$('.menuSimple .menuPlus').remove(); | |||
Note: Removing the elements will also remove them from the burger menu. |
Revision as of 18:36, 13 June 2016
many pages / long page name
The following code will shorten page selectors, unless they are hovered or active
.tablePageSelector td a { max-width: 80px; overflow: hidden; text-overflow: ellipsis; font-size: 80%; } .tablePageSelector .tablePageSelectorElementActive a, .tablePageSelector td a:hover { max-width: none; } .tablePageSelectorElementLeft, .tablePageSelectorElementRight { width: 2px; }
When a user is running in the context of a simple user certain buttons will be hidden, and on displayed in the expanded menu ("burger"). Previous buttons might have their corners correctly, which can be mitigated by removing the items (they are normally just hidden with CSS).
$('.menuSimple .menuPlus').remove();
Note: Removing the elements will also remove them from the burger menu.