--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui_3.10.3/docs/button/cssbutton.html Tue Jul 16 14:29:46 2013 +0200
@@ -0,0 +1,310 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Example: Styling elements with cssbutton</title>
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic">
+ <link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css">
+ <link rel="stylesheet" href="../assets/css/main.css">
+ <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
+ <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
+ <script src="../../build/yui/yui-min.js"></script>
+
+</head>
+<body>
+<!--
+<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
+-->
+<div id="doc">
+ <div id="hd">
+ <h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1>
+ </div>
+
+ <a href="#toc" class="jump">Jump to Table of Contents</a>
+
+
+ <h1>Example: Styling elements with cssbutton</h1>
+ <div class="yui3-g">
+ <div class="yui3-u-3-4">
+ <div id="main">
+ <div class="content"><!-- Include the cssbutton stylesheet -->
+<link rel="stylesheet" href='../../build/cssbutton/cssbutton.css'>
+<style>.yui3-button {
+ margin:3px;
+}
+
+.warning{
+ background-color:#FAF55F;
+}
+
+.success{
+ background-color:#57A957;
+ color:white;
+}
+
+.error{
+ background-color:#C43C35;
+ color:white;
+}
+
+.notice{
+ background-color:#1B7AE0;
+ color:white;
+}
+
+.yui3-button-icon {
+ background-image: url("../assets/button/icon-sprite-dark-and-light-24.png");
+ background-repeat: no-repeat;
+ display: inline-block;
+ height: 20px;
+ vertical-align: middle;
+ width: 20px;
+}
+
+.yui3-button-icon-bold {
+ background-position: 1px 1px;
+}
+
+.yui3-button-icon-italic {
+ background-position: 1px -35px;
+}
+
+.yui3-button-icon-underline {
+ background-position: 1px -71px;
+}</style>
+
+<div class="intro">
+ <p>In this example, we'll look at a few ways to use the <code>'cssbutton'</code> module to enhance the look & feel of the default browser buttons.</p>
+</div>
+
+<div class="example">
+ <h4 id="button-tags">Button Tags</h4>
+<button class='yui3-button'><button></button>
+<input type='button' class='yui3-button' value='<input type="button">'>
+<input type='submit' class='yui3-button' value='<input type="submit">'>
+
+<h4 id="other-tags">Other Tags</h4>
+<div class='yui3-button'><div></div>
+<span class='yui3-button'><span></span>
+<a class='yui3-button'><a></a>
+
+<h4 id="colors">Colors</h4>
+<button class='yui3-button success'>.success <br> #57A957</button>
+<button class='yui3-button warning'>.warning <br> #FAF55F</button>
+<button class='yui3-button error'>.error <br> #C43C35</button>
+<button class='yui3-button notice'>.notice <br> #1B7AE0</button>
+
+<h4 id="icon-buttons">Icon Buttons</h4>
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-bold'></span>
+</button>
+
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-italic'></span>
+</button>
+
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-underline'></span>
+</button>
+
+<h4 id="image-button">Image Button</h4>
+<input type='image' id='imageButton' class='yui3-button' src="../assets/button/yui-logo.png"></input>
+
+</div>
+
+
+<p>YUI's Button component was designed with the idea in mind that sometimes you may only want button styles, without the need for any JavaScript functionality. Instead of <code>use('button', ...)</code>, you can just include the <code>cssbutton</code> module. This can be done dynamically with <code>use('cssbutton')</code>, or statically with a <code>link</code> tag.</p>
+<pre class="code prettyprint"><link rel="stylesheet" href="http://yui.yahooapis.com/3.10.3/build/cssbutton/cssbutton.css"></pre>
+
+
+
+
+
+<h4 id="source-html">Source: HTML</h4>
+<pre class="code prettyprint"><h4>Button Tags</h4>
+<button class='yui3-button'>&lt;button&gt;</button>
+<input type='button' class='yui3-button' value='&lt;input type="button"&gt;'>
+<input type='submit' class='yui3-button' value='&lt;input type="submit"&gt;'>
+
+<h4>Other Tags</h4>
+<div class='yui3-button'>&lt;div&gt;</div>
+<span class='yui3-button'>&lt;span&gt;</span>
+<a class='yui3-button'>&lt;a&gt;</a>
+
+<h4>Colors</h4>
+<button class='yui3-button success'>.success <br> #57A957</button>
+<button class='yui3-button warning'>.warning <br> #FAF55F</button>
+<button class='yui3-button error'>.error <br> #C43C35</button>
+<button class='yui3-button notice'>.notice <br> #1B7AE0</button>
+
+<h4>Icon Buttons</h4>
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-bold'></span>
+</button>
+
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-italic'></span>
+</button>
+
+<button class='yui3-button'>
+ <span class='yui3-button-icon yui3-button-icon-underline'></span>
+</button>
+
+<h4>Image Button</h4>
+<input type='image' id='imageButton' class='yui3-button' src="../assets/button/yui-logo.png"></input></pre>
+
+
+<h4 id="source-css">Source: CSS</h4>
+<pre class="code prettyprint">.yui3-button {
+ margin:3px;
+}
+
+.warning{
+ background-color:#FAF55F;
+}
+
+.success{
+ background-color:#57A957;
+ color:white;
+}
+
+.error{
+ background-color:#C43C35;
+ color:white;
+}
+
+.notice{
+ background-color:#1B7AE0;
+ color:white;
+}
+
+.yui3-button-icon {
+ background-image: url("../assets/button/icon-sprite-dark-and-light-24.png");
+ background-repeat: no-repeat;
+ display: inline-block;
+ height: 20px;
+ vertical-align: middle;
+ width: 20px;
+}
+
+.yui3-button-icon-bold {
+ background-position: 1px 1px;
+}
+
+.yui3-button-icon-italic {
+ background-position: 1px -35px;
+}
+
+.yui3-button-icon-underline {
+ background-position: 1px -71px;
+}</pre>
+
+</div>
+ </div>
+ </div>
+
+ <div class="yui3-u-1-4">
+ <div class="sidebar">
+
+ <div id="toc" class="sidebox">
+ <div class="hd">
+ <h2 class="no-toc">Table of Contents</h2>
+ </div>
+
+ <div class="bd">
+ <ul class="toc">
+<li>
+<a href="#button-tags">Button Tags</a>
+</li>
+<li>
+<a href="#other-tags">Other Tags</a>
+</li>
+<li>
+<a href="#colors">Colors</a>
+</li>
+<li>
+<a href="#icon-buttons">Icon Buttons</a>
+</li>
+<li>
+<a href="#image-button">Image Button</a>
+</li>
+<li>
+<a href="#source-html">Source: HTML</a>
+</li>
+<li>
+<a href="#source-css">Source: CSS</a>
+</li>
+</ul>
+ </div>
+ </div>
+
+
+
+ <div class="sidebox">
+ <div class="hd">
+ <h2 class="no-toc">Examples</h2>
+ </div>
+
+ <div class="bd">
+ <ul class="examples">
+
+
+ <li data-description="This example shows how you can easily style button and non-button DOM elements to appear as buttons">
+ <a href="cssbutton.html">Styling elements with cssbutton</a>
+ </li>
+
+
+
+ <li data-description="This example shows a simple, light solution to enhance <button> nodes">
+ <a href="button-plugin.html">Enhancing <button> nodes with button-plugin</a>
+ </li>
+
+
+
+ <li data-description="This example demonstrates how to create button widgets">
+ <a href="button-basic.html">Basic button widgets</a>
+ </li>
+
+
+
+ <li data-description="This example demonstrates how to create a widget containing a group of buttons">
+ <a href="button-group.html">Managing groups of buttons with button-group</a>
+ </li>
+
+
+ </ul>
+ </div>
+ </div>
+
+
+
+ </div>
+ </div>
+ </div>
+</div>
+
+<script src="../assets/vendor/prettify/prettify-min.js"></script>
+<script>prettyPrint();</script>
+
+<script>
+YUI.Env.Tests = {
+ examples: [],
+ project: '../assets',
+ assets: '../assets/button',
+ name: 'cssbutton',
+ title: 'Styling elements with cssbutton',
+ newWindow: '',
+ auto: false
+};
+YUI.Env.Tests.examples.push('cssbutton');
+YUI.Env.Tests.examples.push('button-plugin');
+YUI.Env.Tests.examples.push('button-basic');
+YUI.Env.Tests.examples.push('button-group');
+
+</script>
+<script src="../assets/yui/test-runner.js"></script>
+
+
+
+</body>
+</html>