diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-06-10 19:07:54 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-06-10 19:07:54 +0200 |
commit | 75408eb08a16a16adc096eff0e3966abebf5c2de (patch) | |
tree | 1fb2a7b1b3764175d05f4a1e38e0ce406d817786 /demos/menubar | |
parent | 85eeaf0b05960f1e1a470991f88657a590c27fce (diff) | |
download | jquery-ui-75408eb08a16a16adc096eff0e3966abebf5c2de.tar.gz jquery-ui-75408eb08a16a16adc096eff0e3966abebf5c2de.zip |
Menubar and Menu: Cleanup menu styles. Pull out menubar styles from demo into css file.
Diffstat (limited to 'demos/menubar')
-rw-r--r-- | demos/menubar/default.html | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/demos/menubar/default.html b/demos/menubar/default.html index 8f15be516..57a3209ce 100644 --- a/demos/menubar/default.html +++ b/demos/menubar/default.html @@ -3,7 +3,7 @@ <head> <title>jQuery UI Menubar - Default demo</title> <link rel="stylesheet" href="../demos.css" type="text/css" /> - <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" /> + <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css" /> <script src="../../jquery-1.5.1.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> @@ -21,7 +21,7 @@ $("<div/>").text("Selected: " + ui.item.text()).appendTo("#log"); } }); - + $(".menubar-icons").menubar({ menuIcon: true, buttons: true, @@ -34,39 +34,8 @@ }); }); </script> - <style type="text/css"> - #bar1, #bar2 { margin: 0 0 4em; } /* style for this page only */ - .ui-menu { width: 200px; position: absolute; outline: none; z-index: 9999; } - .ui-menu .ui-icon { float: right; } - .ui-menu li.ui-state-disabled { - font-weight: bold; - padding: .0em .4em; - margin: .4em 0 .2em; - line-height: 1.5; - } - - /* menubar styles */ - .ui-menubar .ui-button { float: left; font-weight: normal; border-top-width: 0 !important; border-bottom-width: 0 !important; margin: 0; outline: none; } - .ui-menubar .ui-menubar-link { border-right: 1px dashed transparent; border-left: 1px dashed transparent; } - - .ui-menubar { - list-style: none; - margin: 0; - padding-left: 0; - } - - .ui-menubar-item { - float: left; - } - /* - table { - border-collapse: collapse; - } - th, td { - padding: 0.5em; - border: 1px solid black; - } - */ + <style> + #bar1, #bar2 { margin: 0 0 4em; } </style> </head> <body> |