Adds a new scrollable-menu CSS class. It's (provisionally?) limited to
larger screens, w/ the assumption that smaller screens handle scrolling
for you.
New class is applied to org unit selects only so far.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/src/templates/staff/css/style.css.tt2
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
}
}
+@media all and (min-width: 800px) {
+ /* scrollable menus for full-size screens */
+ .scrollable-menu {
+ height: auto;
+ max-height: 200px;
+ overflow-x: hidden;
+ }
+}
+
[%#
vim: ft=css
%]
+ '<span style="padding-right: 5px;">{{getSelectedName()}}</span>'
+ '<span class="caret"></span>'
+ '</button>'
- + '<ul class="dropdown-menu">'
+ + '<ul class="dropdown-menu scrollable-menu">'
+ '<li ng-repeat="org in orgList" ng-hide="hiddenTest(org.id)">'
+ '<a href ng-click="orgChanged(org)" a-disabled="disableTest(org.id)" '
+ 'style="padding-left: {{org.depth * 10 + 5}}px">'