--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui_3.10.3/docs/slider/slider-skin.html Tue Jul 16 14:29:46 2013 +0200
@@ -0,0 +1,424 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Example: Alternate Skins</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>
+
+
+ <h1>Example: Alternate Skins</h1>
+ <div class="yui3-g">
+ <div class="yui3-u-3-4">
+ <div id="main">
+ <div class="content"><style scoped>
+ #demo .light {
+ padding: 1em;
+ }
+ #demo .dark {
+ background: #000;
+ padding: 1em;
+ }
+ #demo {
+ overflow: hidden;
+ }
+ /* needed for the chromeless version */
+ #demo h4 {
+ font-weight: normal;
+ color: #FF8800;
+ }
+ #demo h5 {
+ margin-top: 1em;
+ text-transform: uppercase;
+ color: #666;
+ border-bottom: 1px solid #D9D9D9;
+ }
+</style>
+
+<div class="intro">
+ <p>This example demonstrates the alternate skins available for Slider, and how to apply them.</p>
+</div>
+
+<div class="example">
+ <div id="demo">
+ <div class="yui3-g">
+ <div class="yui3-u-1-2">
+ <div class="light">
+ <h4>Light skins</h4>
+ <div class="yui3-skin-sam">
+ <h5>Sam skin</h5>
+ <div id="sam"></div>
+ </div>
+
+ <div class="yui3-skin-capsule">
+ <h5>Capsule skin</h5>
+ <div id="capsule"></div>
+ </div>
+
+ <div class="yui3-skin-round">
+ <h5>Round skin</h5>
+ <div id="round"></div>
+ </div>
+
+ <div class="yui3-skin-audio-light">
+ <h5>Audio skin (light)</h5>
+ <div id="audio_light"></div>
+ </div>
+ </div>
+ </div>
+ <div class="yui3-u-1-2">
+ <div class="dark">
+ <h4>Dark skins</h4>
+ <div class="yui3-skin-sam-dark">
+ <h5>Sam skin (dark)</h5>
+ <div id="sam_dark"></div>
+ </div>
+
+ <div class="yui3-skin-capsule-dark">
+ <h5>Capsule skin (dark)</h5>
+ <div id="capsule_dark"></div>
+ </div>
+
+ <div class="yui3-skin-round-dark">
+ <h5>Round skin (dark)</h5>
+ <div id="round_dark"></div>
+ </div>
+
+ <div class="yui3-skin-audio">
+ <h5>Audio skin</h5>
+ <div id="audio"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+
+ <script>
+YUI({
+ skin: {
+ overrides: {
+ 'slider-base': [
+ 'sam', // The default skin
+ 'sam-dark', // Suited for dark backgrounds
+
+ 'capsule', // You only need to include one skin
+ 'capsule-dark', // in the overrides section unless you
+ // are using multiple skins on the same page
+ 'round',
+ 'round-dark',
+
+ 'audio-light',
+ 'audio'
+ ]
+ }
+ }
+}).use('slider', function ( Y ) {
+
+ new Y.Slider().render( '#sam' );
+ new Y.Slider().render( '#sam_dark' );
+
+ new Y.Slider().render( '#capsule' );
+ new Y.Slider().render( '#capsule_dark' );
+
+ new Y.Slider().render( '#round' );
+ new Y.Slider().render( '#round_dark' );
+
+ new Y.Slider().render( '#audio_light' );
+ new Y.Slider().render( '#audio' );
+
+} );
+</script>
+
+</div>
+
+<h3>Specify the skin in the YUI config</h3>
+<p>
+ To access alternate skins for a component, specify an override in the YUI
+ configuration. The "slider" module is actually a virtual rollup of other
+ modules, so you need to override the skin for "slider-base".
+</p>
+
+<p>Then just <code>use("slider")</code> as you normally would.</p>
+
+<pre class="code prettyprint">YUI({
+ skin: {
+ overrides: {
+ "slider-base": [ "capsule" ]
+ }
+ }
+}).use( "slider", function (Y) {
+ ...
+});</pre>
+
+
+<h3>Use the appropriate skin class in the markup</h3>
+<p>
+ The default skin is the Sam skin. Style YUI components with this skin by
+ including the class <code>yui3-skin-sam</code> in the class list of an element that
+ contains the component. Typically, setting <code><body class="yui3-skin-sam"></code>
+ is good enough.
+</p>
+
+<p>
+ When overriding the default skin, use a different class on the containing
+ element.
+</p>
+
+<pre class="code prettyprint"><div class="yui3-skin-round-dark">
+ <h5>Round skin (dark)</h5>
+ <div id="round_dark"><!-- Slider rendered here --></div>
+</div></pre>
+
+
+<h3 id="full_code_listing">Full Code Listing</h3>
+<p>This is the full code listing for this example.</p>
+
+<h4>Markup</h4>
+<pre class="code prettyprint"><div id="demo">
+ <div class="yui3-g">
+ <div class="yui3-u-1-2">
+ <div class="light">
+ <h4>Light skins</h4>
+ <div class="yui3-skin-sam">
+ <h5>Sam skin</h5>
+ <div id="sam"></div>
+ </div>
+
+ <div class="yui3-skin-capsule">
+ <h5>Capsule skin</h5>
+ <div id="capsule"></div>
+ </div>
+
+ <div class="yui3-skin-round">
+ <h5>Round skin</h5>
+ <div id="round"></div>
+ </div>
+
+ <div class="yui3-skin-audio-light">
+ <h5>Audio skin (light)</h5>
+ <div id="audio_light"></div>
+ </div>
+ </div>
+ </div>
+ <div class="yui3-u-1-2">
+ <div class="dark">
+ <h4>Dark skins</h4>
+ <div class="yui3-skin-sam-dark">
+ <h5>Sam skin (dark)</h5>
+ <div id="sam_dark"></div>
+ </div>
+
+ <div class="yui3-skin-capsule-dark">
+ <h5>Capsule skin (dark)</h5>
+ <div id="capsule_dark"></div>
+ </div>
+
+ <div class="yui3-skin-round-dark">
+ <h5>Round skin (dark)</h5>
+ <div id="round_dark"></div>
+ </div>
+
+ <div class="yui3-skin-audio">
+ <h5>Audio skin</h5>
+ <div id="audio"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div></pre>
+
+
+<h4>JavaScript</h4>
+<pre class="code prettyprint"><script>
+YUI({
+ skin: {
+ overrides: {
+ 'slider-base': [
+ 'sam', // The default skin
+ 'sam-dark', // Suited for dark backgrounds
+
+ 'capsule', // You only need to include one skin
+ 'capsule-dark', // in the overrides section unless you
+ // are using multiple skins on the same page
+ 'round',
+ 'round-dark',
+
+ 'audio-light',
+ 'audio'
+ ]
+ }
+ }
+}).use('slider', function ( Y ) {
+
+ new Y.Slider().render( '#sam' );
+ new Y.Slider().render( '#sam_dark' );
+
+ new Y.Slider().render( '#capsule' );
+ new Y.Slider().render( '#capsule_dark' );
+
+ new Y.Slider().render( '#round' );
+ new Y.Slider().render( '#round_dark' );
+
+ new Y.Slider().render( '#audio_light' );
+ new Y.Slider().render( '#audio' );
+
+} );
+</script></pre>
+
+
+</div>
+ </div>
+ </div>
+
+ <div class="yui3-u-1-4">
+ <div class="sidebar">
+
+
+
+ <div class="sidebox">
+ <div class="hd">
+ <h2 class="no-toc">Examples</h2>
+ </div>
+
+ <div class="bd">
+ <ul class="examples">
+
+
+ <li data-description="The basics of setting up a horizontal and vertical Slider">
+ <a href="slider-basic.html">Basic Sliders</a>
+ </li>
+
+
+
+ <li data-description="Creating a vertical Slider from existing markup">
+ <a href="slider-from-markup.html">Creating a Slider from Existing Markup</a>
+ </li>
+
+
+
+ <li data-description="Specifying an alternate skin for a Slider instance">
+ <a href="slider-skin.html">Alternate Skins</a>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ </ul>
+ </div>
+ </div>
+
+
+
+ <div class="sidebox">
+ <div class="hd">
+ <h2 class="no-toc">Examples That Use This Component</h2>
+ </div>
+
+ <div class="bd">
+ <ul class="examples">
+
+
+
+
+
+
+
+
+ <li data-description="Use three sliders to control RGB values and update Hex and HSL strings.">
+ <a href="../color/rgb-slider.html">RGB Slider</a>
+ </li>
+
+
+
+ <li data-description="Use the HSL color picker to select a new color. Then chose the color type you like best.">
+ <a href="../color/hsl-picker.html">HSL Color Picker</a>
+ </li>
+
+
+
+ <li data-description="Use the HSL color picker to create harmony colors.">
+ <a href="../color/hsl-harmony.html">HSL Harmony</a>
+ </li>
+
+
+
+ <li data-description="Shows how to use Overlay's constrainment support, to limit the XY value which can be set for an Overlay.">
+ <a href="../overlay/overlay-constrain.html">Constrain Support</a>
+ </li>
+
+
+
+ <li data-description="Use StyleSheet to adjust the CSS rules applying a page theme from user input">
+ <a href="../stylesheet/stylesheet-theme.html">Adjusting a Page Theme on the Fly</a>
+ </li>
+
+
+
+ <li data-description="Example Photo Browser application.">
+ <a href="../dd/photo-browser.html">Photo Browser</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/slider',
+ name: 'slider-skin',
+ title: 'Alternate Skins',
+ newWindow: '',
+ auto: false
+};
+YUI.Env.Tests.examples.push('slider-basic');
+YUI.Env.Tests.examples.push('slider-from-markup');
+YUI.Env.Tests.examples.push('slider-skin');
+YUI.Env.Tests.examples.push('rgb-slider');
+YUI.Env.Tests.examples.push('hsl-picker');
+YUI.Env.Tests.examples.push('hsl-harmony');
+YUI.Env.Tests.examples.push('overlay-constrain');
+YUI.Env.Tests.examples.push('stylesheet-theme');
+YUI.Env.Tests.examples.push('photo-browser');
+
+</script>
+<script src="../assets/yui/test-runner.js"></script>
+
+
+
+</body>
+</html>