Checking YUI into Moodle for future AJAX work

This commit is contained in:
moodler 2006-07-13 08:35:43 +00:00
parent 7bf59275a7
commit 118917bf17
101 changed files with 59042 additions and 0 deletions

82
lib/yui/menu/README Executable file
View file

@ -0,0 +1,82 @@
Menu Release Notes
*** version 0.10.0 ***
* Initial release
* Known issues:
* Some Firefox extensions disable the ability for JavaScript to prevent
the display of the browser's default context menu. These extensions
can cause the YUI ContextMenu to stop working. If you encounter this
problem, you can reset the context menu preference in Firefox back to
the default by making sure the "Disable or replace context menus"
preference is checked:
Mac Firefox 1.0:
-------------------
Preferences > Web Features >
Advanced... > Disable or replace context menus
Mac Firefox 1.5
-------------------
Preferences > Context >
Advanced... > Disable or replace context menus
Windows Firefox 1.0
-------------------
Tools > Options > Web Features >
Advanced... > Disable or replace context menus
Windows Firefox 1.5
-------------------
Tools > Options > Context >
Advanced... > Disable or replace context menus
*** version 0.11.0 ***
Added the following features:
-----------------------------
* Overloaded the "addItem" and "insertItem" methods of MenuModule to accept a
string or a MenuModuleItem instance
* Added the ability to define a MenuItem instance as being "checked"
Fixed the following bugs:
-------------------------
* Changing the path for the submenu indicator image of one MenuModuleItem
subclass will no longer affect other subclasses
* MenuItem instances built from existing markup without anchor tags will no
longer trigger a JavaScript error when clicked
* Modified the implementation of the "imageRoot" property for the
MenuModuleItem class so that it is set to a secure/non-secure path when the
object is instantiated
* Menu instances now resize in response to changes to the browser's font size
* Modified the propagation of the MenuModule class's "submenualignment"
configuration property so that it only applies to instances of the same type
* Adjusted the specificity of the style rule that controls the position of a
MenuItem instance's submenu indicator image to prevent it from wrapping in IE
* Specified a width and height for submenu indicator images in the Menu
stylesheet to ensure that Menu instances are always rendered at the correct
width
* Clicking a MenuItem instance will no longer trigger two HTTP GET requests
* Users can now control or shift-click on MenuItem links
Changes
-------
* In the Menu stylesheet (menu.css), switched from using "first" class to
"first-of-type" class
* Changed case of MenuModuleItem class's "subMenuIndicator" property
to "submenuIndicator"

288
lib/yui/menu/assets/menu.css Executable file
View file

@ -0,0 +1,288 @@
/*
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
Version 0.11.0
*/
/* Menu styles */
div.yuimenu {
z-index:1;
visibility:hidden;
background-color:#f6f7ee;
border:solid 1px #c4c4be;
padding:1px;
}
/* MenuBar Styles */
div.yuimenubar {
background-color:#f6f7ee;
}
/*
Application of "zoom:1" triggers "haslayout" in IE so that the module's
body clears its floated elements
*/
div.yuimenubar div.bd {
zoom:1;
}
/*
Clear the module body for other browsers
*/
div.yuimenubar div.bd:after {
content:'.';
display:block;
clear:both;
visibility:hidden;
height:0;
}
/* Matches the group title (H6) inside a Menu or MenuBar instance */
div.yuimenu h6,
div.yuimenubar h6 {
font-size:100%;
font-weight:normal;
margin:0;
border:solid 1px #c4c4be;
color:#b9b9b9;
}
div.yuimenubar h6 {
float:left;
display:inline; /* Prevent margin doubling in IE */
padding:4px 12px;
border-width:0 1px 0 0;
}
div.yuimenu h6 {
float:none;
display:block;
border-width:1px 0 0 0;
padding:5px 10px 0 10px;
}
/* Matches the UL inside a Menu or MenuBar instance */
div.yuimenubar ul {
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
}
div.yuimenu ul {
list-style-type:none;
border:solid 1px #c4c4be;
border-width:1px 0 0 0;
margin:0;
padding:10px 0;
}
div.yuimenu ul.first-of-type,
div.yuimenu ul.hastitle,
div.yuimenu h6.first-of-type {
border-width:0;
}
/* MenuItem and MenuBarItem styles */
div.yuimenu li,
div.yuimenubar li {
font-size:85%;
cursor:pointer;
cursor:hand;
white-space:nowrap;
text-align:left;
}
div.yuimenu li.yuimenuitem {
padding:2px 24px;
}
div.yuimenu li li,
div.yuimenubar li li {
font-size:100%;
}
/* Matches the help text for a menu item */
div.yuimenu li em {
font-style:normal;
margin:0 0 0 40px;
}
div.yuimenu li a em {
margin:0;
}
div.yuimenu li a,
div.yuimenubar li a {
/*
"zoom:1" triggers "haslayout" in IE to ensure that the mouseover and
mouseout events bubble to the parent LI in IE.
*/
zoom:1;
color:#000;
text-decoration:none;
}
div.yuimenu li.hassubmenu,
div.yuimenu li.hashelptext {
text-align:right;
}
div.yuimenu li.hassubmenu a.hassubmenu,
div.yuimenu li.hashelptext a.hashelptext {
float:left;
display:inline; /* Prevent margin doubling in IE */
text-align:left;
}
/* Matches focused and selected menu items */
div.yuimenu li.selected,
div.yuimenubar li.selected {
background-color:#8c8ad0;
}
div.yuimenu li.selected a.selected,
div.yuimenubar li.selected a.selected {
text-decoration:underline;
}
div.yuimenu li.selected a.selected,
div.yuimenu li.selected em.selected,
div.yuimenubar li.selected a.selected {
color:#fff;
}
/* Matches disabled menu items */
div.yuimenu li.disabled,
div.yuimenubar li.disabled {
cursor:default;
}
div.yuimenu li.disabled a.disabled,
div.yuimenu li.disabled em.disabled,
div.yuimenubar li.disabled a.disabled {
color:#b9b9b9;
cursor:default;
}
div.yuimenubar li.yuimenubaritem {
float:left;
display:inline; /* Prevent margin doubling in IE */
border-width:0 0 0 1px;
border-style:solid;
border-color:#c4c4be;
padding:4px 24px;
margin:0;
}
div.yuimenubar li.yuimenubaritem.first-of-type {
border-width:0;
}
/* Matches the submenu indicator for menu items */
div.yuimenubar li.yuimenubaritem img {
height:8px;
width:8px;
margin:0 0 0 10px;
vertical-align:middle;
}
div.yuimenu li.yuimenuitem img {
height:8px;
width:8px;
margin:0 -16px 0 10px;
border:0;
}
div.yuimenu li.checked {
position:relative;
}
div.yuimenu li.checked img.checked {
height:8px;
width:8px;
margin:0;
border:0;
position:absolute;
left:6px;
_left:-16px; /* Underscore hack b/c this is for IE 5.5 and IE 6 only */
top:.5em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

5414
lib/yui/menu/menu-debug.js vendored Executable file

File diff suppressed because it is too large Load diff

9
lib/yui/menu/menu-min.js vendored Executable file

File diff suppressed because one or more lines are too long

5152
lib/yui/menu/menu.js vendored Executable file

File diff suppressed because it is too large Load diff