Skip to content

Instantly share code, notes, and snippets.

@tilomitra
Created May 13, 2013 16:04
Show Gist options
  • Save tilomitra/5569427 to your computer and use it in GitHub Desktop.
Save tilomitra/5569427 to your computer and use it in GitHub Desktop.
Searching 1087 files for "YUI"
/Applications/MAMP/htdocs/yuilib-css/app.js:
33 min: config.isProduction ? '-min' : '',
34
35: yui : config.yui,
36 typekit: config.typekit
37 });
/Applications/MAMP/htdocs/yuilib-css/npm-debug.log:
3 2 info using npm@1.1.69
4 3 info using node@v0.8.16
5: 4 verbose read json /Applications/MAMP/htdocs/yuilib-css/node_modules/PORT=5001/package.json
6: 5 error Error: ENOENT, open '/Applications/MAMP/htdocs/yuilib-css/node_modules/PORT=5001/package.json'
7 6 error If you need help, you may report this log at:
8 6 error <http://github.com/isaacs/npm/issues>
.
11 7 error System Darwin 11.4.2
12 8 error command "node" "/usr/local/bin/npm" "start" "PORT=5001"
13: 9 error cwd /Applications/MAMP/htdocs/yuilib-css
14 10 error node -v v0.8.16
15 11 error npm -v 1.1.69
16: 12 error path /Applications/MAMP/htdocs/yuilib-css/node_modules/PORT=5001/package.json
17 13 error code ENOENT
18 14 error errno 34
/Applications/MAMP/htdocs/yuilib-css/npm-shrinkwrap.json:
1 {
2: "name": "yuilib-css",
3 "version": "0.0.1",
4 "dependencies": {
/Applications/MAMP/htdocs/yuilib-css/package.json:
1 {
2: "name" : "yuilib-css",
3 "description": "Kimono website.",
4: "homepage" : "http://css.yuilibrary.com/",
5 "version" : "0.0.1",
6 "private" : true,
.
22 "yahoo": {
23 "bugzilla": {
24: "product": "yui utilities",
25 "component": "Kimono"
26 },
27 "custodian": {
28 "email": "tilo@yahoo-inc.com",
29: "url": "http://yo/yuicss"
30 }
31 },
/Applications/MAMP/htdocs/yuilib-css/README.md:
2 ===============
3
4: The website which showcases YUI's CSS offering.
5
6 Running Locally
/Applications/MAMP/htdocs/yuilib-css/config/index.js:
17
18 typekit: 'ajf8ggy',
19: yui : require('./yui')
20 });
21
/Applications/MAMP/htdocs/yuilib-css/lib/helpers.js:
30
31 exports.cdnCSS = function (options) {
32: var host = 'http://yui.yahooapis.com/',
33 urls = this.cdnCSS,
34 output = '';
/Applications/MAMP/htdocs/yuilib-css/node_modules/combohandler/config.sample.js:
6 // You can then make combo-handled requests to these paths, like:
7 //
8: // http://example.com/yui3?build/yui/yui-min.js&build/loader/loader-min.js
9 //
10 roots: {
11: '/yui3': '/local/path/to/yui3'
12 },
13
/Applications/MAMP/htdocs/yuilib-css/node_modules/combohandler/package.json:
10 "cdn",
11 "css",
12: "yui"
13 ],
14 "homepage": "https://github.com/rgrove/combohandler",
..
40 "test": "./node_modules/.bin/mocha"
41 },
42: "readme": "Combo Handler\n=============\n\nThis is a simple combo handler for Node.js, usable either as [Connect][]\nmiddleware or as an [Express][] server. It works just like the combo handler\nservice on the Yahoo! CDN, which you'll be familiar with if you've used YUI.\n\nThe combo handler is compatible with the [YUI][] Loader, so you can use it to\nhost YUI, or you can use it with any other JavaScript or CSS if you're willing\nto construct the combo URLs yourself.\n\nThe combo handler itself doesn't perform any caching or compression, but stick\n[Nginx][] or something in front of it and you should be ready to rock in\nproduction.\n\n[Connect]: https://github.com/senchalabs/connect\n[Express]: https://github.com/visionmedia/express\n[Nginx]: http://nginx.org/\n[YUI]: http://yuilibrary.com/\n\n\nInstallation\n------------\n\nInstall using npm:\n\n npm install combohandler\n\nOr just clone the [GitHub repo](https://github.com/rgrove/combohandler):\n\n git clone git://github.com/rgrove/combohandler.git\n\n\nUsage\n-----\n\nThe `combohandler` module provides a configurable Connect middleware that can be\nused to add combo handling capability to any Connect-based request handler (like\nExpress).\n\nThe `combohandler/lib/server` module creates a standalone Express server instance,\nor augments an existing server, to perform combo handling for a set of\nconfigurable routes.\n\n\n### As Express middleware\n\nThe combo handler middleware can be used as application-wide middleware for all\nroutes:\n\n```js\nvar combo = require('combohandler');\napp.use(combo.combine({rootPath: '/local/path/to/files'}));\n```\n\nOr as route middleware for a specific route:\n\n```js\napp.get('/foo', combo.combine({rootPath: '/local/path/to/foo'}), function (req, res) {\n res.send(res.body);\n});\n```\n\nIn either case, the middleware will perform combo handling for files under the\nspecified local `rootPath` when requested using a URL with one or more file paths\nin the query string:\n\n http://example.com/<route>?<path>[&path][...]\n\nFor example:\n\n http://example.com/foo?file1.js\n http://example.com/foo?file1.js&file2.js\n http://example.com/foo?file1.js&file2.js&subdir/file3.js\n\nAttempts to traverse above the `rootPath` or to request a file that doesn't\nexist will result in a `BadRequest` error being bubbled up.\n\nHere's a basic Express app that uses the combo handler as route middleware for\nmultiple routes with different root paths:\n\n```js\nvar combo = require('combohandler'),\n express = require('express'),\n\n app = express();\n\napp.configure(function () {\n app.use(express.errorHandler());\n});\n\n// Return a 400 response if the combo handler generates a BadRequest error.\napp.use(function (err, req, res, next) {\n if (err instanceof combo.BadRequest) {\n res.charset = 'utf-8';\n res.type('text/plain');\n res.send(400, 'Bad request.');\n } else {\n next();\n }\n});\n\n// Given a root path that points to a YUI 3 root folder, this route will\n// handle URLs like:\n//\n// http://example.com/yui3?build/yui/yui-min.js&build/loader/loader-min.js\n//\napp.get('/yui3', combo.combine({rootPath: '/local/path/to/yui3'}), function (req, res) {\n res.send(res.body);\n});\n\napp.listen(3000);\n```\n\n### Creating a server\n\nIf you just want to get a server up and running quickly by specifying a mapping\nof routes to local root paths, use the `combohandler/lib/server` module. It\ncreates a barebones Express server that will perform combo handling on the\nroutes you specify:\n\n```js\nvar comboServer = require('combohandler/lib/server'),\n app;\n\napp = comboServer({\n roots: {\n '/yui3': '/local/path/to/yui3'\n }\n});\n\napp.listen(3000);\n```\n\n### Augmenting an existing server\n\nIf you already have an existing Express server instance and just want to add\nsome combo handled routes to it easily, you can augment your existing server\nwith combo handled routes:\n\n```js\nvar comboServer = require('combohandler/lib/server');\n\ncomboServer({\n roots: {\n '/yui3': '/local/path/to/yui3'\n }\n}, myApp); // Assuming `myApp` is a pre-existing Express server instance.\n```\n\n### Running the included standalone server\n\nIf you clone or download the GitHub repo, you can rename `config.sample.js` to\n`config.js`, edit it to your liking, and then simply run `app.js` to start a\nstandalone server in development mode on port 8000.\n\n git clone git://github.com/rgrove/combohandler.git\n cd combohandler\n mv config.sample.js config.js\n ./app.js\n\nTo run the standalone server in production mode, set the `NODE_ENV` variable to\n`production` before running it:\n\n NODE_ENV=production ./app.js\n\n\nUsing as a YUI 3 combo handler\n------------------------------\n\nWith a tiny bit of configuration, you can tell YUI to use your custom combo\nhandler instead of the Yahoo! combo handler. Here's an example:\n\n```html\n<script src=\"http://example.com/combo/yui3?build/yui/yui-min.js\"></script>\n<script>\nYUI({\n comboBase: 'http://example.com/combo/yui3?',\n combine : true,\n root : 'build/'\n}).use('node', function (Y) {\n // YUI will now automatically load modules from the custom combo handler.\n});\n</script>\n```\n\n\nLicense\n-------\n\nCopyright (c) 2012 Yahoo! Inc. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
43 "readmeFilename": "README.md",
44 "_id": "combohandler@0.2.0",
/Applications/MAMP/htdocs/yuilib-css/node_modules/combohandler/README.md:
4 This is a simple combo handler for Node.js, usable either as [Connect][]
5 middleware or as an [Express][] server. It works just like the combo handler
6: service on the Yahoo! CDN, which you'll be familiar with if you've used YUI.
7
8: The combo handler is compatible with the [YUI][] Loader, so you can use it to
9: host YUI, or you can use it with any other JavaScript or CSS if you're willing
10 to construct the combo URLs yourself.
11
..
17 [Express]: https://github.com/visionmedia/express
18 [Nginx]: http://nginx.org/
19: [YUI]: http://yuilibrary.com/
20
21
..
101 });
102
103: // Given a root path that points to a YUI 3 root folder, this route will
104 // handle URLs like:
105 //
106: // http://example.com/yui3?build/yui/yui-min.js&build/loader/loader-min.js
107 //
108: app.get('/yui3', combo.combine({rootPath: '/local/path/to/yui3'}), function (req, res) {
109 res.send(res.body);
110 });
...
126 app = comboServer({
127 roots: {
128: '/yui3': '/local/path/to/yui3'
129 }
130 });
...
144 comboServer({
145 roots: {
146: '/yui3': '/local/path/to/yui3'
147 }
148 }, myApp); // Assuming `myApp` is a pre-existing Express server instance.
...
166
167
168: Using as a YUI 3 combo handler
169 ------------------------------
170
171: With a tiny bit of configuration, you can tell YUI to use your custom combo
172 handler instead of the Yahoo! combo handler. Here's an example:
173
174 ```html
175: <script src="http://example.com/combo/yui3?build/yui/yui-min.js"></script>
176 <script>
177: YUI({
178: comboBase: 'http://example.com/combo/yui3?',
179 combine : true,
180 root : 'build/'
181 }).use('node', function (Y) {
182: // YUI will now automatically load modules from the custom combo handler.
183 });
184 </script>
/Applications/MAMP/htdocs/yuilib-css/node_modules/handlebars/node_modules/uglify-js/package.json:
16 "url": "git@github.com:mishoo/UglifyJS.git"
17 },
18: "readme": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\"\nlang=\"en\" xml:lang=\"en\">\n<head>\n<title>UglifyJS &ndash; a JavaScript parser/compressor/beautifier</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\"/>\n<meta name=\"generator\" content=\"Org-mode\"/>\n<meta name=\"generated\" content=\"2011-12-09 14:59:08 EET\"/>\n<meta name=\"author\" content=\"Mihai Bazon\"/>\n<meta name=\"description\" content=\"a JavaScript parser/compressor/beautifier in JavaScript\"/>\n<meta name=\"keywords\" content=\"javascript, js, parser, compiler, compressor, mangle, minify, minifier\"/>\n<style type=\"text/css\">\n <!--/*--><![CDATA[/*><!--*/\n html { font-family: Times, serif; font-size: 12pt; }\n .title { text-align: center; }\n .todo { color: red; }\n .done { color: green; }\n .tag { background-color: #add8e6; font-weight:normal }\n .target { }\n .timestamp { color: #bebebe; }\n .timestamp-kwd { color: #5f9ea0; }\n .right {margin-left:auto; margin-right:0px; text-align:right;}\n .left {margin-left:0px; margin-right:auto; text-align:left;}\n .center {margin-left:auto; margin-right:auto; text-align:center;}\n p.verse { margin-left: 3% }\n pre {\n\tborder: 1pt solid #AEBDCC;\n\tbackground-color: #F3F5F7;\n\tpadding: 5pt;\n\tfont-family: courier, monospace;\n font-size: 90%;\n overflow:auto;\n }\n table { border-collapse: collapse; }\n td, th { vertical-align: top; }\n th.right { text-align:center; }\n th.left { text-align:center; }\n th.center { text-align:center; }\n td.right { text-align:right; }\n td.left { text-align:left; }\n td.center { text-align:center; }\n dt { font-weight: bold; }\n div.figure { padding: 0.5em; }\n div.figure p { text-align: center; }\n div.inlinetask {\n padding:10px;\n border:2px solid gray;\n margin:10px;\n background: #ffffcc;\n }\n textarea { overflow-x: auto; }\n .linenr { font-size:smaller }\n .code-highlighted {background-color:#ffff00;}\n .org-info-js_info-navigation { border-style:none; }\n #org-info-js_console-label { font-size:10px; font-weight:bold;\n white-space:nowrap; }\n .org-info-js_search-highlight {background-color:#ffff00; color:#000000;\n font-weight:bold; }\n /*]]>*/-->\n</style>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"docstyle.css\" />\n<script type=\"text/javascript\">\n<!--/*--><![CDATA[/*><!--*/\n function CodeHighlightOn(elem, id)\n {\n var target = document.getElementById(id);\n if(null != target) {\n elem.cacheClassElem = elem.className;\n elem.cacheClassTarget = target.className;\n target.className = \"code-highlighted\";\n elem.className = \"code-highlighted\";\n }\n }\n function CodeHighlightOff(elem, id)\n {\n var target = document.getElementById(id);\n if(elem.cacheClassElem)\n elem.className = elem.cacheClassElem;\n if(elem.cacheClassTarget)\n target.className = elem.cacheClassTarget;\n }\n/*]]>*///-->\n</script>\n\n</head>\n<body>\n\n<div id=\"preamble\">\n\n</div>\n\n<div id=\"content\">\n<h1 class=\"title\">UglifyJS &ndash; a JavaScript parser/compressor/beautifier</h1>\n\n\n<div id=\"table-of-contents\">\n<h2>Table of Contents</h2>\n<div id=\"text-table-of-contents\">\n<ul>\n<li><a href=\"#sec-1\">1 UglifyJS &mdash; a JavaScript parser/compressor/beautifier </a>\n<ul>\n<li><a href=\"#sec-1-1\">1.1 Unsafe transformations </a>\n<ul>\n<li><a href=\"#sec-1-1-1\">1.1.1 Calls involving the global Array constructor </a></li>\n<li><a href=\"#sec-1-1-2\">1.1.2 <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </a></li>\n</ul>\n</li>\n<li><a href=\"#sec-1-2\">1.2 Install (NPM) </a></li>\n<li><a href=\"#sec-1-3\">1.3 Install latest code from GitHub </a></li>\n<li><a href=\"#sec-1-4\">1.4 Usage </a>\n<ul>\n<li><a href=\"#sec-1-4-1\">1.4.1 API </a></li>\n<li><a href=\"#sec-1-4-2\">1.4.2 Beautifier shortcoming &ndash; no more comments </a></li>\n<li><a href=\"#sec-1-4-3\">1.4.3 Use as a code pre-processor </a></li>\n</ul>\n</li>\n<li><a href=\"#sec-1-5\">1.5 Compression &ndash; how good is it? </a></li>\n<li><a href=\"#sec-1-6\">1.6 Bugs? </a></li>\n<li><a href=\"#sec-1-7\">1.7 Links </a></li>\n<li><a href=\"#sec-1-8\">1.8 License </a></li>\n</ul>\n</li>\n</ul>\n</div>\n</div>\n\n<div id=\"outline-container-1\" class=\"outline-2\">\n<h2 id=\"sec-1\"><span class=\"section-number-2\">1</span> UglifyJS &mdash; a JavaScript parser/compressor/beautifier </h2>\n<div class=\"outline-text-2\" id=\"text-1\">\n\n\n<p>\nThis package implements a general-purpose JavaScript\nparser/compressor/beautifier toolkit. It is developed on <a href=\"http://nodejs.org/\">NodeJS</a>, but it\nshould work on any JavaScript platform supporting the CommonJS module system\n(and if your platform of choice doesn't support CommonJS, you can easily\nimplement it, or discard the <code>exports.*</code> lines from UglifyJS sources).\n</p>\n<p>\nThe tokenizer/parser generates an abstract syntax tree from JS code. You\ncan then traverse the AST to learn more about the code, or do various\nmanipulations on it. This part is implemented in <a href=\"../lib/parse-js.js\">parse-js.js</a> and it's a\nport to JavaScript of the excellent <a href=\"http://marijn.haverbeke.nl/parse-js/\">parse-js</a> Common Lisp library from <a href=\"http://marijn.haverbeke.nl/\">Marijn Haverbeke</a>.\n</p>\n<p>\n( See <a href=\"http://github.com/mishoo/cl-uglify-js\">cl-uglify-js</a> if you're looking for the Common Lisp version of\nUglifyJS. )\n</p>\n<p>\nThe second part of this package, implemented in <a href=\"../lib/process.js\">process.js</a>, inspects and\nmanipulates the AST generated by the parser to provide the following:\n</p>\n<ul>\n<li>ability to re-generate JavaScript code from the AST. Optionally\n indented&mdash;you can use this if you want to “beautify” a program that has\n been compressed, so that you can inspect the source. But you can also run\n our code generator to print out an AST without any whitespace, so you\n achieve compression as well.\n\n</li>\n<li>shorten variable names (usually to single characters). Our mangler will\n analyze the code and generate proper variable names, depending on scope\n and usage, and is smart enough to deal with globals defined elsewhere, or\n with <code>eval()</code> calls or <code>with{}</code> statements. In short, if <code>eval()</code> or\n <code>with{}</code> are used in some scope, then all variables in that scope and any\n variables in the parent scopes will remain unmangled, and any references\n to such variables remain unmangled as well.\n\n</li>\n<li>various small optimizations that may lead to faster code but certainly\n lead to smaller code. Where possible, we do the following:\n\n<ul>\n<li>foo[\"bar\"] ==&gt; foo.bar\n\n</li>\n<li>remove block brackets <code>{}</code>\n\n</li>\n<li>join consecutive var declarations:\n var a = 10; var b = 20; ==&gt; var a=10,b=20;\n\n</li>\n<li>resolve simple constant expressions: 1 +2 * 3 ==&gt; 7. We only do the\n replacement if the result occupies less bytes; for example 1/3 would\n translate to 0.333333333333, so in this case we don't replace it.\n\n</li>\n<li>consecutive statements in blocks are merged into a sequence; in many\n cases, this leaves blocks with a single statement, so then we can remove\n the block brackets.\n\n</li>\n<li>various optimizations for IF statements:\n\n<ul>\n<li>if (foo) bar(); else baz(); ==&gt; foo?bar():baz();\n</li>\n<li>if (!foo) bar(); else baz(); ==&gt; foo?baz():bar();\n</li>\n<li>if (foo) bar(); ==&gt; foo&amp;&amp;bar();\n</li>\n<li>if (!foo) bar(); ==&gt; foo||bar();\n</li>\n<li>if (foo) return bar(); else return baz(); ==&gt; return foo?bar():baz();\n</li>\n<li>if (foo) return bar(); else something(); ==&gt; {if(foo)return bar();something()}\n\n</li>\n</ul>\n\n</li>\n<li>remove some unreachable code and warn about it (code that follows a\n <code>return</code>, <code>throw</code>, <code>break</code> or <code>continue</code> statement, except\n function/variable declarations).\n\n</li>\n<li>act a limited version of a pre-processor (c.f. the pre-processor of\n C/C++) to allow you to safely replace selected global symbols with\n specified values. When combined with the optimisations above this can\n make UglifyJS operate slightly more like a compilation process, in\n that when certain symbols are replaced by constant values, entire code\n blocks may be optimised away as unreachable.\n</li>\n</ul>\n\n</li>\n</ul>\n\n\n\n</div>\n\n<div id=\"outline-container-1-1\" class=\"outline-3\">\n<h3 id=\"sec-1-1\"><span class=\"section-number-3\">1.1</span> <span class=\"target\">Unsafe transformations</span> </h3>\n<div class=\"outline-text-3\" id=\"text-1-1\">\n\n\n<p>\nThe following transformations can in theory break code, although they're\nprobably safe in most practical cases. To enable them you need to pass the\n<code>--unsafe</code> flag.\n</p>\n\n</div>\n\n<div id=\"outline-container-1-1-1\" class=\"outline-4\">\n<h4 id=\"sec-1-1-1\"><span class=\"section-number-4\">1.1.1</span> Calls involving the global Array constructor </h4>\n<div class=\"outline-text-4\" id=\"text-1-1-1\">\n\n\n<p>\nThe following transformations occur:\n</p>\n\n\n\n<pre class=\"src src-js\"><span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3, 4) =&gt; [1,2,3,4]\nArray(a, b, c) =&gt; [a,b,c]\n<span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(5) =&gt; Array(5)\n<span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(a) =&gt; Array(a)\n</pre>\n\n\n<p>\nThese are all safe if the Array name isn't redefined. JavaScript does allow\none to globally redefine Array (and pretty much everything, in fact) but I\npersonally don't see why would anyone do that.\n</p>\n<p>\nUglifyJS does handle the case where Array is redefined locally, or even\nglobally but with a <code>function</code> or <code>var</code> declaration. Therefore, in the\nfollowing cases UglifyJS <b>doesn't touch</b> calls or instantiations of Array:\n</p>\n\n\n\n<pre class=\"src src-js\"><span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">case 1. globally declared variable</span>\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">Array</span>;\n <span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3);\n Array(a, b);\n\n <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">or (can be declared later)</span>\n <span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3);\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">Array</span>;\n\n <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">or (can be a function)</span>\n <span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3);\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">Array</span>() { ... }\n\n<span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">case 2. declared in a function</span>\n (<span class=\"org-keyword\">function</span>(){\n a = <span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3);\n b = Array(5, 6);\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">Array</span>;\n })();\n\n <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">or</span>\n (<span class=\"org-keyword\">function</span>(<span class=\"org-variable-name\">Array</span>){\n <span class=\"org-keyword\">return</span> Array(5, 6, 7);\n })();\n\n <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">or</span>\n (<span class=\"org-keyword\">function</span>(){\n <span class=\"org-keyword\">return</span> <span class=\"org-keyword\">new</span> <span class=\"org-type\">Array</span>(1, 2, 3, 4);\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">Array</span>() { ... }\n })();\n\n <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">etc.</span>\n</pre>\n\n\n</div>\n\n</div>\n\n<div id=\"outline-container-1-1-2\" class=\"outline-4\">\n<h4 id=\"sec-1-1-2\"><span class=\"section-number-4\">1.1.2</span> <code>obj.toString()</code> ==&gt; <code>obj+“”</code> </h4>\n<div class=\"outline-text-4\" id=\"text-1-1-2\">\n\n\n</div>\n</div>\n\n</div>\n\n<div id=\"outline-container-1-2\" class=\"outline-3\">\n<h3 id=\"sec-1-2\"><span class=\"section-number-3\">1.2</span> Install (NPM) </h3>\n<div class=\"outline-text-3\" id=\"text-1-2\">\n\n\n<p>\nUglifyJS is now available through NPM &mdash; <code>npm install uglify-js</code> should do\nthe job.\n</p>\n</div>\n\n</div>\n\n<div id=\"outline-container-1-3\" class=\"outline-3\">\n<h3 id=\"sec-1-3\"><span class=\"section-number-3\">1.3</span> Install latest code from GitHub </h3>\n<div class=\"outline-text-3\" id=\"text-1-3\">\n\n\n\n\n\n<pre class=\"src src-sh\"><span class=\"org-comment-delimiter\">## </span><span class=\"org-comment\">clone the repository</span>\nmkdir -p /where/you/wanna/put/it\n<span class=\"org-builtin\">cd</span> /where/you/wanna/put/it\ngit clone git://github.com/mishoo/UglifyJS.git\n\n<span class=\"org-comment-delimiter\">## </span><span class=\"org-comment\">make the module available to Node</span>\nmkdir -p ~/.node_libraries/\n<span class=\"org-builtin\">cd</span> ~/.node_libraries/\nln -s /where/you/wanna/put/it/UglifyJS/uglify-js.js\n\n<span class=\"org-comment-delimiter\">## </span><span class=\"org-comment\">and if you want the CLI script too:</span>\nmkdir -p ~/bin\n<span class=\"org-builtin\">cd</span> ~/bin\nln -s /where/you/wanna/put/it/UglifyJS/bin/uglifyjs\n <span class=\"org-comment-delimiter\"># </span><span class=\"org-comment\">(then add ~/bin to your $PATH if it's not there already)</span>\n</pre>\n\n\n</div>\n\n</div>\n\n<div id=\"outline-container-1-4\" class=\"outline-3\">\n<h3 id=\"sec-1-4\"><span class=\"section-number-3\">1.4</span> Usage </h3>\n<div class=\"outline-text-3\" id=\"text-1-4\">\n\n\n<p>\nThere is a command-line tool that exposes the functionality of this library\nfor your shell-scripting needs:\n</p>\n\n\n\n<pre class=\"src src-sh\">uglifyjs [ options... ] [ filename ]\n</pre>\n\n\n<p>\n<code>filename</code> should be the last argument and should name the file from which\nto read the JavaScript code. If you don't specify it, it will read code\nfrom STDIN.\n</p>\n<p>\nSupported options:\n</p>\n<ul>\n<li><code>-b</code> or <code>--beautify</code> &mdash; output indented code; when passed, additional\n options control the beautifier:\n\n<ul>\n<li><code>-i N</code> or <code>--indent N</code> &mdash; indentation level (number of spaces)\n\n</li>\n<li><code>-q</code> or <code>--quote-keys</code> &mdash; quote keys in literal objects (by default,\n only keys that cannot be identifier names will be quotes).\n\n</li>\n</ul>\n\n</li>\n<li><code>--ascii</code> &mdash; pass this argument to encode non-ASCII characters as\n <code>\\uXXXX</code> sequences. By default UglifyJS won't bother to do it and will\n output Unicode characters instead. (the output is always encoded in UTF8,\n but if you pass this option you'll only get ASCII).\n\n</li>\n<li><code>-nm</code> or <code>--no-mangle</code> &mdash; don't mangle names.\n\n</li>\n<li><code>-nmf</code> or <code>--no-mangle-functions</code> &ndash; in case you want to mangle variable\n names, but not touch function names.\n\n</li>\n<li><code>-ns</code> or <code>--no-squeeze</code> &mdash; don't call <code>ast_squeeze()</code> (which does various\n optimizations that result in smaller, less readable code).\n\n</li>\n<li><code>-mt</code> or <code>--mangle-toplevel</code> &mdash; mangle names in the toplevel scope too\n (by default we don't do this).\n\n</li>\n<li><code>--no-seqs</code> &mdash; when <code>ast_squeeze()</code> is called (thus, unless you pass\n <code>--no-squeeze</code>) it will reduce consecutive statements in blocks into a\n sequence. For example, \"a = 10; b = 20; foo();\" will be written as\n \"a=10,b=20,foo();\". In various occasions, this allows us to discard the\n block brackets (since the block becomes a single statement). This is ON\n by default because it seems safe and saves a few hundred bytes on some\n libs that I tested it on, but pass <code>--no-seqs</code> to disable it.\n\n</li>\n<li><code>--no-dead-code</code> &mdash; by default, UglifyJS will remove code that is\n obviously unreachable (code that follows a <code>return</code>, <code>throw</code>, <code>break</code> or\n <code>continue</code> statement and is not a function/variable declaration). Pass\n this option to disable this optimization.\n\n</li>\n<li><code>-nc</code> or <code>--no-copyright</code> &mdash; by default, <code>uglifyjs</code> will keep the initial\n comment tokens in the generated code (assumed to be copyright information\n etc.). If you pass this it will discard it.\n\n</li>\n<li><code>-o filename</code> or <code>--output filename</code> &mdash; put the result in <code>filename</code>. If\n this isn't given, the result goes to standard output (or see next one).\n\n</li>\n<li><code>--overwrite</code> &mdash; if the code is read from a file (not from STDIN) and you\n pass <code>--overwrite</code> then the output will be written in the same file.\n\n</li>\n<li><code>--ast</code> &mdash; pass this if you want to get the Abstract Syntax Tree instead\n of JavaScript as output. Useful for debugging or learning more about the\n internals.\n\n</li>\n<li><code>-v</code> or <code>--verbose</code> &mdash; output some notes on STDERR (for now just how long\n each operation takes).\n\n</li>\n<li><code>-d SYMBOL[=VALUE]</code> or <code>--define SYMBOL[=VALUE]</code> &mdash; will replace\n all instances of the specified symbol where used as an identifier\n (except where symbol has properly declared by a var declaration or\n use as function parameter or similar) with the specified value. This\n argument may be specified multiple times to define multiple\n symbols - if no value is specified the symbol will be replaced with\n the value <code>true</code>, or you can specify a numeric value (such as\n <code>1024</code>), a quoted string value (such as =\"object\"= or\n ='https://github.com'<code>), or the name of another symbol or keyword (such as =null</code> or <code>document</code>).\n This allows you, for example, to assign meaningful names to key\n constant values but discard the symbolic names in the uglified\n version for brevity/efficiency, or when used wth care, allows\n UglifyJS to operate as a form of <b>conditional compilation</b>\n whereby defining appropriate values may, by dint of the constant\n folding and dead code removal features above, remove entire\n superfluous code blocks (e.g. completely remove instrumentation or\n trace code for production use).\n Where string values are being defined, the handling of quotes are\n likely to be subject to the specifics of your command shell\n environment, so you may need to experiment with quoting styles\n depending on your platform, or you may find the option\n <code>--define-from-module</code> more suitable for use.\n\n</li>\n<li><code>-define-from-module SOMEMODULE</code> &mdash; will load the named module (as\n per the NodeJS <code>require()</code> function) and iterate all the exported\n properties of the module defining them as symbol names to be defined\n (as if by the <code>--define</code> option) per the name of each property\n (i.e. without the module name prefix) and given the value of the\n property. This is a much easier way to handle and document groups of\n symbols to be defined rather than a large number of <code>--define</code>\n options.\n\n</li>\n<li><code>--unsafe</code> &mdash; enable other additional optimizations that are known to be\n unsafe in some contrived situations, but could still be generally useful.\n For now only these:\n\n<ul>\n<li>foo.toString() ==&gt; foo+\"\"\n</li>\n<li>new Array(x,&hellip;) ==&gt; [x,&hellip;]\n</li>\n<li>new Array(x) ==&gt; Array(x)\n\n</li>\n</ul>\n\n</li>\n<li><code>--max-line-len</code> (default 32K characters) &mdash; add a newline after around\n 32K characters. I've seen both FF and Chrome croak when all the code was\n on a single line of around 670K. Pass &ndash;max-line-len 0 to disable this\n safety feature.\n\n</li>\n<li><code>--reserved-names</code> &mdash; some libraries rely on certain names to be used, as\n pointed out in issue #92 and #81, so this option allow you to exclude such\n names from the mangler. For example, to keep names <code>require</code> and <code>$super</code>\n intact you'd specify &ndash;reserved-names \"require,$super\".\n\n</li>\n<li><code>--inline-script</code> &ndash; when you want to include the output literally in an\n HTML <code>&lt;script&gt;</code> tag you can use this option to prevent <code>&lt;/script</code> from\n showing up in the output.\n\n</li>\n<li><code>--lift-vars</code> &ndash; when you pass this, UglifyJS will apply the following\n transformations (see the notes in API, <code>ast_lift_variables</code>):\n\n<ul>\n<li>put all <code>var</code> declarations at the start of the scope\n</li>\n<li>make sure a variable is declared only once\n</li>\n<li>discard unused function arguments\n</li>\n<li>discard unused inner (named) functions\n</li>\n<li>finally, try to merge assignments into that one <code>var</code> declaration, if\n possible.\n</li>\n</ul>\n\n</li>\n</ul>\n\n\n\n</div>\n\n<div id=\"outline-container-1-4-1\" class=\"outline-4\">\n<h4 id=\"sec-1-4-1\"><span class=\"section-number-4\">1.4.1</span> API </h4>\n<div class=\"outline-text-4\" id=\"text-1-4-1\">\n\n\n<p>\nTo use the library from JavaScript, you'd do the following (example for\nNodeJS):\n</p>\n\n\n\n<pre class=\"src src-js\"><span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">jsp</span> = require(<span class=\"org-string\">\"uglify-js\"</span>).parser;\n<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">pro</span> = require(<span class=\"org-string\">\"uglify-js\"</span>).uglify;\n\n<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">orig_code</span> = <span class=\"org-string\">\"... JS code here\"</span>;\n<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">ast</span> = jsp.parse(orig_code); <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">parse code and get the initial AST</span>\nast = pro.ast_mangle(ast); <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">get a new AST with mangled names</span>\nast = pro.ast_squeeze(ast); <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">get an AST with compression optimizations</span>\n<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">final_code</span> = pro.gen_code(ast); <span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">compressed code here</span>\n</pre>\n\n\n<p>\nThe above performs the full compression that is possible right now. As you\ncan see, there are a sequence of steps which you can apply. For example if\nyou want compressed output but for some reason you don't want to mangle\nvariable names, you would simply skip the line that calls\n<code>pro.ast_mangle(ast)</code>.\n</p>\n<p>\nSome of these functions take optional arguments. Here's a description:\n</p>\n<ul>\n<li><code>jsp.parse(code, strict_semicolons)</code> &ndash; parses JS code and returns an AST.\n <code>strict_semicolons</code> is optional and defaults to <code>false</code>. If you pass\n <code>true</code> then the parser will throw an error when it expects a semicolon and\n it doesn't find it. For most JS code you don't want that, but it's useful\n if you want to strictly sanitize your code.\n\n</li>\n<li><code>pro.ast_lift_variables(ast)</code> &ndash; merge and move <code>var</code> declarations to the\n scop of the scope; discard unused function arguments or variables; discard\n unused (named) inner functions. It also tries to merge assignments\n following the <code>var</code> declaration into it.\n\n<p>\n If your code is very hand-optimized concerning <code>var</code> declarations, this\n lifting variable declarations might actually increase size. For me it\n helps out. On jQuery it adds 865 bytes (243 after gzip). YMMV. Also\n note that (since it's not enabled by default) this operation isn't yet\n heavily tested (please report if you find issues!).\n</p>\n<p>\n Note that although it might increase the image size (on jQuery it gains\n 865 bytes, 243 after gzip) it's technically more correct: in certain\n situations, dead code removal might drop variable declarations, which\n would not happen if the variables are lifted in advance.\n</p>\n<p>\n Here's an example of what it does:\n</p></li>\n</ul>\n\n\n\n\n\n<pre class=\"src src-js\"><span class=\"org-keyword\">function</span> <span class=\"org-function-name\">f</span>(<span class=\"org-variable-name\">a</span>, <span class=\"org-variable-name\">b</span>, <span class=\"org-variable-name\">c</span>, <span class=\"org-variable-name\">d</span>, <span class=\"org-variable-name\">e</span>) {\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">q</span>;\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">w</span>;\n w = 10;\n q = 20;\n <span class=\"org-keyword\">for</span> (<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">i</span> = 1; i &lt; 10; ++i) {\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">boo</span> = foo(a);\n }\n <span class=\"org-keyword\">for</span> (<span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">i</span> = 0; i &lt; 1; ++i) {\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">boo</span> = bar(c);\n }\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">foo</span>(){ ... }\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">bar</span>(){ ... }\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">baz</span>(){ ... }\n}\n\n<span class=\"org-comment-delimiter\">// </span><span class=\"org-comment\">transforms into ==&gt;</span>\n\n<span class=\"org-keyword\">function</span> <span class=\"org-function-name\">f</span>(<span class=\"org-variable-name\">a</span>, <span class=\"org-variable-name\">b</span>, <span class=\"org-variable-name\">c</span>) {\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">i</span>, <span class=\"org-variable-name\">boo</span>, <span class=\"org-variable-name\">w</span> = 10, <span class=\"org-variable-name\">q</span> = 20;\n <span class=\"org-keyword\">for</span> (i = 1; i &lt; 10; ++i) {\n boo = foo(a);\n }\n <span class=\"org-keyword\">for</span> (i = 0; i &lt; 1; ++i) {\n boo = bar(c);\n }\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">foo</span>() { ... }\n <span class=\"org-keyword\">function</span> <span class=\"org-function-name\">bar</span>() { ... }\n}\n</pre>\n\n\n<ul>\n<li><code>pro.ast_mangle(ast, options)</code> &ndash; generates a new AST containing mangled\n (compressed) variable and function names. It supports the following\n options:\n\n<ul>\n<li><code>toplevel</code> &ndash; mangle toplevel names (by default we don't touch them).\n</li>\n<li><code>except</code> &ndash; an array of names to exclude from compression.\n</li>\n<li><code>defines</code> &ndash; an object with properties named after symbols to\n replace (see the <code>--define</code> option for the script) and the values\n representing the AST replacement value.\n\n</li>\n</ul>\n\n</li>\n<li><code>pro.ast_squeeze(ast, options)</code> &ndash; employs further optimizations designed\n to reduce the size of the code that <code>gen_code</code> would generate from the\n AST. Returns a new AST. <code>options</code> can be a hash; the supported options\n are:\n\n<ul>\n<li><code>make_seqs</code> (default true) which will cause consecutive statements in a\n block to be merged using the \"sequence\" (comma) operator\n\n</li>\n<li><code>dead_code</code> (default true) which will remove unreachable code.\n\n</li>\n</ul>\n\n</li>\n<li><code>pro.gen_code(ast, options)</code> &ndash; generates JS code from the AST. By\n default it's minified, but using the <code>options</code> argument you can get nicely\n formatted output. <code>options</code> is, well, optional :-) and if you pass it it\n must be an object and supports the following properties (below you can see\n the default values):\n\n<ul>\n<li><code>beautify: false</code> &ndash; pass <code>true</code> if you want indented output\n</li>\n<li><code>indent_start: 0</code> (only applies when <code>beautify</code> is <code>true</code>) &ndash; initial\n indentation in spaces\n</li>\n<li><code>indent_level: 4</code> (only applies when <code>beautify</code> is <code>true</code>) --\n indentation level, in spaces (pass an even number)\n</li>\n<li><code>quote_keys: false</code> &ndash; if you pass <code>true</code> it will quote all keys in\n literal objects\n</li>\n<li><code>space_colon: false</code> (only applies when <code>beautify</code> is <code>true</code>) &ndash; wether\n to put a space before the colon in object literals\n</li>\n<li><code>ascii_only: false</code> &ndash; pass <code>true</code> if you want to encode non-ASCII\n characters as <code>\\uXXXX</code>.\n</li>\n<li><code>inline_script: false</code> &ndash; pass <code>true</code> to escape occurrences of\n <code>&lt;/script</code> in strings\n</li>\n</ul>\n\n</li>\n</ul>\n\n\n</div>\n\n</div>\n\n<div id=\"outline-container-1-4-2\" class=\"outline-4\">\n<h4 id=\"sec-1-4-2\"><span class=\"section-number-4\">1.4.2</span> Beautifier shortcoming &ndash; no more comments </h4>\n<div class=\"outline-text-4\" id=\"text-1-4-2\">\n\n\n<p>\nThe beautifier can be used as a general purpose indentation tool. It's\nuseful when you want to make a minified file readable. One limitation,\nthough, is that it discards all comments, so you don't really want to use it\nto reformat your code, unless you don't have, or don't care about, comments.\n</p>\n<p>\nIn fact it's not the beautifier who discards comments &mdash; they are dumped at\nthe parsing stage, when we build the initial AST. Comments don't really\nmake sense in the AST, and while we could add nodes for them, it would be\ninconvenient because we'd have to add special rules to ignore them at all\nthe processing stages.\n</p>\n</div>\n\n</div>\n\n<div id=\"outline-container-1-4-3\" class=\"outline-4\">\n<h4 id=\"sec-1-4-3\"><span class=\"section-number-4\">1.4.3</span> Use as a code pre-processor </h4>\n<div class=\"outline-text-4\" id=\"text-1-4-3\">\n\n\n<p>\nThe <code>--define</code> option can be used, particularly when combined with the\nconstant folding logic, as a form of pre-processor to enable or remove\nparticular constructions, such as might be used for instrumenting\ndevelopment code, or to produce variations aimed at a specific\nplatform.\n</p>\n<p>\nThe code below illustrates the way this can be done, and how the\nsymbol replacement is performed.\n</p>\n\n\n\n<pre class=\"src src-js\">CLAUSE1: <span class=\"org-keyword\">if</span> (<span class=\"org-keyword\">typeof</span> DEVMODE === <span class=\"org-string\">'undefined'</span>) {\n DEVMODE = <span class=\"org-constant\">true</span>;\n}\n\n<span class=\"org-function-name\">CLAUSE2</span>: <span class=\"org-keyword\">function</span> init() {\n <span class=\"org-keyword\">if</span> (DEVMODE) {\n console.log(<span class=\"org-string\">\"init() called\"</span>);\n }\n ....\n DEVMODE &amp;amp;&amp;amp; console.log(<span class=\"org-string\">\"init() complete\"</span>);\n}\n\n<span class=\"org-function-name\">CLAUSE3</span>: <span class=\"org-keyword\">function</span> reportDeviceStatus(<span class=\"org-variable-name\">device</span>) {\n <span class=\"org-keyword\">var</span> <span class=\"org-variable-name\">DEVMODE</span> = device.mode, <span class=\"org-variable-name\">DEVNAME</span> = device.name;\n <span class=\"org-keyword\">if</span> (DEVMODE === <span class=\"org-string\">'open'</span>) {\n ....\n }\n}\n</pre>\n\n\n<p>\nWhen the above code is normally executed, the undeclared global\nvariable <code>DEVMODE</code> will be assigned the value <b>true</b> (see <code>CLAUSE1</code>)\nand so the <code>init()</code> function (<code>CLAUSE2</code>) will write messages to the\nconsole log when executed, but in <code>CLAUSE3</code> a locally declared\nvariable will mask access to the <code>DEVMODE</code> global symbol.\n</p>\n<p>\nIf the above code is processed by UglifyJS with an argument of\n<code>--define DEVMODE=false</code> then UglifyJS will replace <code>DEVMODE</code> with the\nboolean constant value <b>false</b> within <code>CLAUSE1</code> and <code>CLAUSE2</code>, but it\nwill leave <code>CLAUSE3</code> as it stands because there <code>DEVMODE</code> resolves to\na validly declared variable.\n</p>\n<p>\nAnd more so, the constant-folding features of UglifyJS will recognise\nthat the <code>if</code> condition of <code>CLAUSE1</code> is thus always false, and so will\nremove the test and body of <code>CLAUSE1</code> altogether (including the\notherwise slightly problematical statement <code>false = true;</code> which it\nwill have formed by replacing <code>DEVMODE</code> in the body). Similarly,\nwithin <code>CLAUSE2</code> both calls to <code>console.log()</code> will be removed\naltogether.\n</p>\n<p>\nIn this way you can mimic, to a limited degree, the functionality of\nthe C/C++ pre-processor to enable or completely remove blocks\ndepending on how certain symbols are defined - perhaps using UglifyJS\nto generate different versions of source aimed at different\nenvironments\n</p>\n<p>\nIt is recommmended (but not made mandatory) that symbols designed for\nthis purpose are given names consisting of <code>UPPER_CASE_LETTERS</code> to\ndistinguish them from other (normal) symbols and avoid the sort of\nclash that <code>CLAUSE3</code> above illustrates.\n</p>\n</div>\n</div>\n\n</div>\n\n<div id=\"outline-container-1-5\" class=\"outline-3\">\n<h3 id=\"sec-1-5\"><span class=\"section-number-3\">1.5</span> Compression &ndash; how good is it? </h3>\n<div class=\"outline-text-3\" id=\"text-1-5\">\n\n\n<p>\nHere are updated statistics. (I also updated my Google Closure and YUI\ninstallations).\n</p>\n<p>\nWe're still a lot better than YUI in terms of compression, though slightly\nslower. We're still a lot faster than Closure, and compression after gzip\nis comparable.\n</p>\n<table border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">\n<caption></caption>\n<colgroup><col class=\"left\" /><col class=\"left\" /><col class=\"right\" /><col class=\"left\" /><col class=\"right\" /><col class=\"left\" /><col class=\"right\" />\n</colgroup>\n<thead>\n<tr><th scope=\"col\" class=\"left\">File</th><th scope=\"col\" class=\"left\">UglifyJS</th><th scope=\"col\" class=\"right\">UglifyJS+gzip</th><th scope=\"col\" class=\"left\">Closure</th><th scope=\"col\" class=\"right\">Closure+gzip</th><th scope=\"col\" class=\"left\">YUI</th><th scope=\"col\" class=\"right\">YUI+gzip</th></tr>\n</thead>\n<tbody>\n<tr><td class=\"left\">jquery-1.6.2.js</td><td class=\"left\">91001 (0:01.59)</td><td class=\"right\">31896</td><td class=\"left\">90678 (0:07.40)</td><td class=\"right\">31979</td><td class=\"left\">101527 (0:01.82)</td><td class=\"right\">34646</td></tr>\n<tr><td class=\"left\">paper.js</td><td class=\"left\">142023 (0:01.65)</td><td class=\"right\">43334</td><td class=\"left\">134301 (0:07.42)</td><td class=\"right\">42495</td><td class=\"left\">173383 (0:01.58)</td><td class=\"right\">48785</td></tr>\n<tr><td class=\"left\">prototype.js</td><td class=\"left\">88544 (0:01.09)</td><td class=\"right\">26680</td><td class=\"left\">86955 (0:06.97)</td><td class=\"right\">26326</td><td class=\"left\">92130 (0:00.79)</td><td class=\"right\">28624</td></tr>\n<tr><td class=\"left\">thelib-full.js (DynarchLIB)</td><td class=\"left\">251939 (0:02.55)</td><td class=\"right\">72535</td><td class=\"left\">249911 (0:09.05)</td><td class=\"right\">72696</td><td class=\"left\">258869 (0:01.94)</td><td class=\"right\">76584</td></tr>\n</tbody>\n</table>\n\n\n</div>\n\n</div>\n\n<div id=\"outline-container-1-6\" class=\"outline-3\">\n<h3 id=\"sec-1-6\"><span class=\"section-number-3\">1.6</span> Bugs? </h3>\n<div class=\"outline-text-3\" id=\"text-1-6\">\n\n\n<p>\nUnfortunately, for the time being there is no automated test suite. But I\nran the compressor manually on non-trivial code, and then I tested that the\ngenerated code works as expected. A few hundred times.\n</p>\n<p>\nDynarchLIB was started in times when there was no good JS minifier.\nTherefore I was quite religious about trying to write short code manually,\nand as such DL contains a lot of syntactic hacks<sup><a class=\"footref\" name=\"fnr.1\" href=\"#fn.1\">1</a></sup> such as “foo == bar ? a\n= 10 : b = 20”, though the more readable version would clearly be to use\n“if/else”.\n</p>\n<p>\nSince the parser/compressor runs fine on DL and jQuery, I'm quite confident\nthat it's solid enough for production use. If you can identify any bugs,\nI'd love to hear about them (<a href=\"http://groups.google.com/group/uglifyjs\">use the Google Group</a> or email me directly).\n</p>\n</div>\n\n</div>\n\n<div id=\"outline-container-1-7\" class=\"outline-3\">\n<h3 id=\"sec-1-7\"><span class=\"section-number-3\">1.7</span> Links </h3>\n<div class=\"outline-text-3\" id=\"text-1-7\">\n\n\n<ul>\n<li>Twitter: <a href=\"http://twitter.com/UglifyJS\">@UglifyJS</a>\n</li>\n<li>Project at GitHub: <a href=\"http://github.com/mishoo/UglifyJS\">http://github.com/mishoo/UglifyJS</a>\n</li>\n<li>Google Group: <a href=\"http://groups.google.com/group/uglifyjs\">http://groups.google.com/group/uglifyjs</a>\n</li>\n<li>Common Lisp JS parser: <a href=\"http://marijn.haverbeke.nl/parse-js/\">http://marijn.haverbeke.nl/parse-js/</a>\n</li>\n<li>JS-to-Lisp compiler: <a href=\"http://github.com/marijnh/js\">http://github.com/marijnh/js</a>\n</li>\n<li>Common Lisp JS uglifier: <a href=\"http://github.com/mishoo/cl-uglify-js\">http://github.com/mishoo/cl-uglify-js</a>\n</li>\n</ul>\n\n\n</div>\n\n</div>\n\n<div id=\"outline-container-1-8\" class=\"outline-3\">\n<h3 id=\"sec-1-8\"><span class=\"section-number-3\">1.8</span> License </h3>\n<div class=\"outline-text-3\" id=\"text-1-8\">\n\n\n<p>\nUglifyJS is released under the BSD license:\n</p>\n\n\n\n<pre class=\"example\">Copyright 2010 (c) Mihai Bazon &lt;mihai.bazon@gmail.com&gt;\nBased on parse-js (http://marijn.haverbeke.nl/parse-js/).\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n * Redistributions of source code must retain the above\n copyright notice, this list of conditions and the following\n disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials\n provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR\nTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF\nTHE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.\n</pre>\n\n\n<div id=\"footnotes\">\n<h2 class=\"footnotes\">Footnotes: </h2>\n<div id=\"text-footnotes\">\n<p class=\"footnote\"><sup><a class=\"footnum\" name=\"fn.1\" href=\"#fnr.1\">1</a></sup> I even reported a few bugs and suggested some fixes in the original\n <a href=\"http://marijn.haverbeke.nl/parse-js/\">parse-js</a> library, and Marijn pushed fixes literally in minutes.\n</p></div>\n</div>\n</div>\n\n</div>\n</div>\n</div>\n\n<div id=\"postamble\">\n<p class=\"date\">Date: 2011-12-09 14:59:08 EET</p>\n<p class=\"author\">Author: Mihai Bazon</p>\n<p class=\"creator\">Org version 7.7 with Emacs version 23</p>\n<a href=\"http://validator.w3.org/check?uri=referer\">Validate XHTML 1.0</a>\n\n</div>\n</body>\n</html>\n",
19 "readmeFilename": "README.html",
20 "_id": "uglify-js@1.2.6",
/Applications/MAMP/htdocs/yuilib-css/node_modules/handlebars/node_modules/uglify-js/README.html:
837
838 <p>
839: Here are updated statistics. (I also updated my Google Closure and YUI
840 installations).
841 </p>
842 <p>
843: We're still a lot better than YUI in terms of compression, though slightly
844 slower. We're still a lot faster than Closure, and compression after gzip
845 is comparable.
...
850 </colgroup>
851 <thead>
852: <tr><th scope="col" class="left">File</th><th scope="col" class="left">UglifyJS</th><th scope="col" class="right">UglifyJS+gzip</th><th scope="col" class="left">Closure</th><th scope="col" class="right">Closure+gzip</th><th scope="col" class="left">YUI</th><th scope="col" class="right">YUI+gzip</th></tr>
853 </thead>
854 <tbody>
/Applications/MAMP/htdocs/yuilib-css/node_modules/handlebars/node_modules/uglify-js/README.org:
501 ** Compression -- how good is it?
502
503: Here are updated statistics. (I also updated my Google Closure and YUI
504 installations).
505
506: We're still a lot better than YUI in terms of compression, though slightly
507 slower. We're still a lot faster than Closure, and compression after gzip
508 is comparable.
509
510: | File | UglifyJS | UglifyJS+gzip | Closure | Closure+gzip | YUI | YUI+gzip |
511 |-----------------------------+------------------+---------------+------------------+--------------+------------------+----------|
512 | jquery-1.6.2.js | 91001 (0:01.59) | 31896 | 90678 (0:07.40) | 31979 | 101527 (0:01.82) | 34646 |
/Applications/MAMP/htdocs/yuilib-css/public/css/layouts.css:
7 margin-top: 0; /* so that the .layout-item-head lines up with the image */
8 }
9: .layout-item .yui3-button {
10 font-size: 70%;
11 }
/Applications/MAMP/htdocs/yuilib-css/public/css/main.css:
6
7 /* Add transition to containers so they can push in and out */
8: #layout, #menu, #menu .yui3-menu-link {
9 -webkit-transition: all 0.2s ease-out;
10 -moz-transition: all 0.2s ease-out;
..
49
50
51: /* Apply the .box class on the immediate parent of any grid element (yui3-u-*) to apply some padding. */
52 .l-box {
53 padding: 1.3em;
..
66 }
67
68: a.yui3-button {
69 color: inherit;
70 }
..
195 }
196
197: #menu .yui3-menu-open {
198 background: transparent;
199 border: 0;
200 }
201
202: #menu .yui3-menu ul {
203 border: none;
204 background: transparent;
205 }
206
207: #menu .yui3-menu ul,
208: #menu .yui3-menu .menu-item-yui {
209 border-top: 1px solid #333;
210 }
211
212: #menu .yui3-menu li a:hover {
213 background: #333;
214 }
215
216: #menu .yui3-menu-link {
217 display: none; /* show this only on small screens */
218 top: 0;
...
223 }
224
225: #menu .yui3-menu-link:hover {
226 background: #000;
227 }
228
229: #menu .yui3-menu-heading {
230 font-size:110%;
231 color: #fff;
232 }
233
234: #menu .yui3-menu-selected {
235 background: rgb(23, 218, 255);
236 }
237
238: #menu .yui3-menu-selected a {
239 color: rgb(4, 119, 141);
240 }
241
242: #menu li.yui3-menu-selected a:hover {
243 background: none;
244 }
...
286 }
287
288: #menu .yui3-menu-link {
289 position: fixed;
290 left: 0;
...
292 }
293
294: #menu.active .yui3-menu-link {
295 left: 150px;
296 }
/Applications/MAMP/htdocs/yuilib-css/public/css/menus.css:
1: .content .yui3-menu {
2 width: 40%;
3 margin-top: 2em;
4 }
5: .content .yui3-menu.yui3-menu-horizontal {
6 width: 100%;
7 }
/Applications/MAMP/htdocs/yuilib-css/public/css/layouts/email.css:
59
60 /* Vertical Navigation Styles */
61: #nav .yui3-menu {
62 background: transparent;
63 border: none;
64 text-align: left;
65 }
66: #nav .yui3-menu a:hover {
67 background: rgb(55, 60, 90);
68 }
69: #nav .yui3-menu a {
70 color: #fff;
71 margin-left: 0.5em;
72 }
73: #nav .yui3-menu-heading {
74 border-bottom: none;
75 font-size:110%;
/Applications/MAMP/htdocs/yuilib-css/public/css/layouts/gallery.css:
11 }
12
13: .header .yui3-menu {
14 border-bottom-color: black;
15 border-radius: 0;
..
78 }
79
80: .form-box .yui3-button {
81 background-color: #61B842;
82 color: white;
/Applications/MAMP/htdocs/yuilib-css/public/css/layouts/marketing.css:
12 }
13
14: .header .yui3-menu {
15 padding: 0.5em;
16 }
17
18: .header .yui3-menu li a:hover {
19 background: none;
20 border: none;
/Applications/MAMP/htdocs/yuilib-css/views/layouts/main.handlebars:
13 <body>
14
15: <div class="yui3-g-r " id="layout">
16 {{> menu}}
17
18: <div class="yui3-u" id="main">
19
20 {{{body}}}
/Applications/MAMP/htdocs/yuilib-css/views/pages/base.handlebars:
3 {{setActiveNav "base"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.version}}/build/cssnormalize/cssnormalize-min.css">
17 {{/code}}
18
..
27
28 <p>
29: Normalize.css comes with <a href="https://github.com/necolas/normalize.css/wiki">great documentation</a> and a <a href="http://nicolasgallagher.com/about-normalize-css/">thorough guide</a> explaining how it differs from a traditional reset. You can also check out YUI's <a href="http://yuilibrary.com/yui/docs/cssnormalize/">CSSNormalize</a> module, which includes the generic Normalize along with a <a href="http://yuilibrary.com/yui/docs/cssnormalize/#context">contextual version</a>. The contextual version of Normalize only applies normalized styles to elements that are a children of an element with the class name {{code "yui3-normalized"}}.
30 </p>
31
/Applications/MAMP/htdocs/yuilib-css/views/pages/extras.handlebars:
12 <div class="content">
13
14: <div class="extras yui3-g-r">
15 {{#each results}}
16: <div class="extras-item yui3-u-1">
17: <div class="yui3-g">
18: <div class="yui3-u-1">
19: <div class="yui3-g l-box">
20: <div class="yui3-u-1-2">
21 <h3 class="extras-name">
22 {{owner.login}}/<a href="{{html_url}}" rel="_blank">{{name}}</a>
..
26 </p>
27 </div>
28: <div class="yui3-u-1-2">
29 <p class="extras-links">
30 <a href="{{html_url}}" rel="_blank">View Repo &rarr;</a>
/Applications/MAMP/htdocs/yuilib-css/views/pages/forms.handlebars:
3 {{setActiveNav "forms"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-cssform"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down CSSForm from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-cssform/gallerycss-cssform-min.css">
17 {{/code}}
18
..
20 <h2 class="content-subhead">Default Form</h2>
21 <p>
22: A default inline form can be created by adding the {{code "yui3-form"}} to any {{code "<form>"}} element. This creates an inline form.
23 </p>
24
..
32
33
34: <h2 class="content-subhead">Multi-Column Form (with YUI Grids)</h2>
35 <p>
36: Multi-column forms such as the one below can be created by pulling down YUI Grids. In this example, we're using YUI Grids with a stacked form.
37 </p>
38
..
48 <h2 class="content-subhead">Stacked Form</h2>
49 <p>
50: A stacked form has its input elements below the labels. Apply this style by adding the {{code "yui3-form-stacked"}} class-name on a {{code "<form>"}} element in addition to {{code "yui3-form"}}.
51 </p>
52
..
62 <h2 class="content-subhead">Aligned Form</h2>
63 <p>
64: Aligned forms are great for standard forms that look well-aligned. The labels are right-aligned against the form input controls, but re-align to be standard left-aligned forms on smaller screens. Apply the {{code "yui3-form-aligned"}} class to your {{code "<form>"}} element.
65 </p>
66
..
90 <h2 class="content-subhead">Input Sizing</h2>
91 <p>
92: Input elements have fluid width sizes in a syntax that is similar to YUI Grids. You can apply a {{code "yui3-input-*"}} class to these elements.
93 </p>
94
..
102
103 <p>
104: Another way of sizing inputs is to wrap them in grid containers. This lets you customize your input sizing even more. In the example below, the {{code "<input>"}} elements have a {{code "yui3-input-1"}} class, but are wrapped in a {{code "<div>"}} with a specific grid class.
105 </p>
106
...
144 <h2 class="content-subhead">Rounded Inputs</h2>
145 <p>
146: Add the {{code "yui3-input-rounded"}} classname to any form control.
147 </p>
148
...
158 <h2 class="content-subhead">Checkboxes and Radios</h2>
159 <p>
160: YUI Forms normalizes and aligns checkboxes and radio inputs for you too. Just add the {{code "yui3-checkbox"}} or {{code "yui3-radio"}} classname to these controls.
161 </p>
162
/Applications/MAMP/htdocs/yuilib-css/views/pages/grids.handlebars:
3 {{setActiveNav "grids"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down Responsive Grids from the YUI CDN. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.version}}/build/cssgrids-responsive/cssgrids-responsive-min.css">
17 {{/code}}
18
19 <aside>
20 <p>
21: Optionally, you can head over to the <a href="http://yui.github.com/gridbuilder/">GridBuilder</a> to make your very own custom grid. Save the outputted CSS in a file and you're good to go!
22 </p>
23 </aside>
24
25
26: <h2 class="content-subhead">How do YUI Grids work?</h2>
27 <p>
28: YUI Grids are very easy to work with. Consider <code>yui3-g</code> to be a row or "grid", and {{code "yui3-u-*-*"}} to be columns, or "units". Each {{code "yui3-g"}} can contain many units. Units have various class names that represent their widths. For example, {{code "yui3-u-1-2"}} has a width of 50%, whereas {{code "yui3-u-1-5"}} would have a width of 20%.
29 </p>
30
31 <p>
32: The only constraints for YUI3 Grids are that all "units" are children of a "grid". All you need to do is define a grid, one or more units inside it, and specify widths for them. Then stack and nest as required. Here's an example of a grid with three columns:
33 </p>
34
..
39 <aside>
40 <p>
41: For a more detailed guide, check out the <a href="http://yuilibrary.com/yui/docs/cssgrids/">CSS Grids documentation</a> on YUILibrary.
42 </p>
43 </aside>
..
46 <h2 class="content-subhead">How do responsive grids work?</h2>
47 <p>
48: YUI3 Responsive Grids builds on top of the existing YUI3 Grids implementation. It adds a single new class name called {{code "yui3-g-r"}} (the "r" stands for responsive, you see). You can use this instead of using {{code "yui3-g"}} as you normally do. All elements with a class name of {{code "yui3-u-*-*"}} will automatically become responsive if they are direct descendents of a {{code "yui3-g-r"}}.
49 </p>
50
..
52 <h2 class="content-subhead">The HTML</h2>
53 <p>
54: The first gist shows how regular YUI3 grids are written. These grids are unresponsive. They'll always be one-thirds irrespective of the width of the screen. The second gist replaces the {{code "yui3-g"}} with {{code "yui3-g-r"}}, thereby making the one-third columns collapse to full width on lower screen widths.
55 </p>
56
..
75 <h2 class="content-subhead">Grids on Mobile</h2>
76 <p>
77: Putting the {{code "yui3-g"}} classname on the wrapper instead of {{code "yui3-g-r"}} will ensure that grid units will not collapse on small screens. This is a good way to make grids on smaller screens like phones.
78 </p>
79
/Applications/MAMP/htdocs/yuilib-css/views/pages/home.handlebars:
6
7 <div class="hero">
8: <h1 class="yui3-u-1">{{title}}</h1>
9: <h2 class="yui3-u-3-4 l-centered">{{subTitle}}</h2>
10 </div>
11
12: <div class="yui3-g-r marketing-ribbon">
13: <div class="yui3-u-1">
14: <div class="size-chart l-vbox yui3-g">
15: <div class="size-chart-item size-chart-base yui3-u" style="width: 25%;">
16 <a class="size-chart-label" href="{{pages.base}}">
17 Base <span class="size-chart-size">(1.2KB)</span>
18 </a>
19 </div>
20: <div class="size-chart-item size-chart-grids yui3-u" style="width: 14.5%;">
21 <a class="size-chart-label" href="{{pages.grids}}">
22 Grids <span class="size-chart-size">(0.7KB)</span>
23 </a>
24 </div>
25: <div class="size-chart-item size-chart-forms yui3-u"style="width: 27%;">
26 <a class="size-chart-label" href="{{pages.forms}}">
27 Forms <span class="size-chart-size">(1.3KB)</span>
28 </a>
29 </div>
30: <div class="size-chart-item size-chart-tables yui3-u" style="width: 12.5%;">
31 <a class="size-chart-label" href="{{pages.tables}}">
32 Tables <span class="size-chart-size">(0.6KB)</span>
33 </a>
34 </div>
35: <div class="size-chart-item size-chart-menus yui3-u" style="width: 21%;">
36 <a class="size-chart-label" href="{{pages.menus}}">
37 Menus <span class="size-chart-size">(1KB)</span>
..
49 </div>
50
51: <div class="yui3-g-r marketing-ribbon">
52: <div class="yui3-u-1-3">
53 <div class="l-box">
54 <h3>Your CSS foundation.</h3>
..
59 </div>
60
61: <div class="yui3-u-1-3">
62 <div class="l-box">
63 <h3>Made with mobile in mind.</h3>
64 <p>
65: Kimono is responsive out of the box, so elements look great on all screen sizes. Customize your styles with the <a href="http://yui.github.io/skinbuilder" alt="SkinBuilder">SkinBuilder</a> to make your style your own.
66 </p>
67 </div>
68 </div>
69
70: <div class="yui3-u-1-3">
71 <div class="l-box">
72 <h3>Stays out of your way.</h3>
..
79
80
81: <div class="yui3-g-r marketing-ribbon">
82: <div class="yui3-u-1-2">
83 <div class="l-box">
84 <a href="{{pages.layouts}}">
..
88 </div>
89
90: <div class="yui3-u-1-2">
91 <div class="l-hbox">
92 <h3>Create responsive layouts.</h3>
..
96
97 <p>
98: <a href="{{pages.layouts}}" class="yui3-button">View Layouts</a>
99 </p>
100 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts.handlebars:
19 </aside>
20
21: <div class="yui3-g-r layout-item">
22: <div class="yui3-u-1-2">
23 <a href="{{pages.layoutsMarketing}}">
24 <img src="/img/layouts/marketing@2x.jpg" class="bordered" width="400" height="214"
..
27 </div>
28
29: <div class="yui3-u-1-2">
30 <div class="l-hbox">
31 <h3 class="layout-item-head">Landing Page</h3>
..
35 </p>
36
37: <p><a href="{{pages.layoutsMarketing}}" class="yui3-button">View Layout</a></p>
38 </div>
39 </div>
40 </div>
41
42: <div class="yui3-g-r layout-item">
43: <div class="yui3-u-1-2">
44 <a href="{{pages.layoutsGallery}}">
45 <img src="/img/layouts/gallery@2x.jpg" class="bordered" width="400" height="214"
..
48 </div>
49
50: <div class="yui3-u-1-2">
51 <div class="l-hbox">
52 <h3 class="layout-item-head">Photo Gallery</h3>
..
56 </p>
57
58: <p><a href="{{pages.layoutsGallery}}" class="yui3-button">View Layout</a></p>
59 </div>
60 </div>
..
63
64
65: <div class="yui3-g-r layout-item">
66: <div class="yui3-u-1-2">
67 <a href="{{pages.layoutsEmail}}">
68 <img src="/img/layouts/email@2x.jpg" class="bordered" width="400" height="214"
..
71 </div>
72
73: <div class="yui3-u-1-2">
74 <div class="l-hbox">
75 <h3 class="layout-item-head">Email</h3>
..
79 </p>
80
81: <p><a href="{{pages.layoutsEmail}}" class="yui3-button">View Layout</a></p>
82 </div>
83 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/menus.handlebars:
8
9 <!-- adding to the top so that the dropdown example code can run -->
10: <script src="http://yui.yahooapis.com/{{yui.version}}/build/yui/yui{{min}}.js"></script>
11
12 <div class="content">
13 <h2 class="content-subhead">Include the CSS on your page</h2>
14 <p>
15: Menus are contained within the CSSList module. You can pull down CSSList from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
16 </p>
17
18 {{#code}}
19: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-csslist/gallerycss-csslist-min.css">
20 {{/code}}
21
..
23 <h2 class="content-subhead">Horizontal Menu</h2>
24 <p>
25: Create horizontal menus by adding the {{code "yui3-menu-horizontal"}} class name. You can mark the active list element by adding the {{code "yui3-menu-selected"}} class to the list element.
26 </p>
27
..
35 <h2 class="content-subhead">Menu with Headings</h2>
36 <p>
37: You can add headings to your menu by adding an {{code "<a>"}} element with the {{code "yui3-menu-heading"}} class name. This element should be inserted outside the {{code "<ul>"}} element.
38 </p>
39
..
47 <h2 class="content-subhead">Vertical Menu</h2>
48 <p>
49: Menus are vertical by default. Just add the {{code "yui3-menu"}} class to style the menu, and the {{code "yui3-menu-open"}} class to ensure that it is visible.
50 </p>
51
..
71 <h2 class="content-subhead">Menus with Disabled Items</h2>
72 <p>
73: You can add disabled links to your menu by adding an {{code "<a>"}} element with the {{code "yui3-menu-disabled"}} class name. Disabled items do not inherit hover styles, and appear faded.
74 </p>
75
..
83 <h2 class="content-subhead">Paginators</h2>
84 <p>
85: You can implement a paginator control by adding the {{code "yui3-paginator"}} classname to a {{code "<ul>"}} element. Paginator controls generally look like buttons, but omit the {{code "yui3-button"}} class name if you want simple paginators.
86 </p>
87
/Applications/MAMP/htdocs/yuilib-css/views/pages/tables.handlebars:
3 {{setActiveNav "tables"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down CSSTable from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-csstable/gallerycss-csstable-min.css">
17 {{/code}}
18
..
20 <h2 class="content-subhead">Default Table</h2>
21 <p>
22: Add the {{code "yui3-table"}} classname to a table to style an HTML table similar to how a YUI3 Datatable would be styled. This class adds appropriate padding and borders to table elements, and increases the emphasis on the header.
23 </p>
24
..
32 <h2 class="content-subhead">Bordered Table</h2>
33 <p>
34: To add horizontal and vertical borders to all cells, add the {{code "yui3-table-bordered"}} classname to the {{code "<table>"}} element.
35 </p>
36
..
44 <h2 class="content-subhead">Table with Horizontal Borders</h2>
45 <p>
46: If you prefer to just have horizontal lines, add the {{code "yui3-table-horizontal"}} classname to the {{code "<table>"}} element.
47 </p>
48
..
56 <h2 class="content-subhead">Striped Table</h2>
57 <p>
58: Large tables are easier to parse visually if rows are easily distinguishable. Adding the {{code "yui3-table-odd"}} class name to every other {{code "<tr>"}} element changes the background of the row and creates a zebra-styled effect.
59 </p>
60
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/email.handlebars:
1 {{addLocalCSS "/css/layouts/email.css"}}
2
3: <div class="yui3-g-r" id="layout">
4: <div class="yui3-u" id="nav">
5 <a href="#nav" class="nav-menu-button">Menu</a>
6
7 <div class="nav-inner">
8: <a class="yui3-button primary-button" href="#">Compose</a>
9
10: <div class="yui3-menu yui3-menu-open">
11 <ul>
12 <li><a href="#">Inbox <span class="email-count">(2)</span></a></li>
..
15 <li><a href="#">Drafts</a></li>
16 <li><a href="#">Trash</a></li>
17: <li class="yui3-menu-heading">Labels</li>
18 <li><a href="#"><span class="email-label-personal"></span>Personal</a></li>
19 <li><a href="#"><span class="email-label-work"></span>Work</a></li>
..
24 </div>
25
26: <div class="yui3-u" id="list">
27 <div class="content">
28: <div class="email-item email-item-selected yui3-g">
29: <div class="yui3-u">
30 <img class="email-avatar" alt="Tilo Mitra's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=tilomitra&size=bigger" height="65" width="65">
31 </div>
32
33: <div class="yui3-u-3-4">
34 <h5 class="email-name">Tilo Mitra</h5>
35 <h4 class="email-subject">Hello from Toronto</h4>
..
40 </div>
41
42: <div class="email-item email-item-unread yui3-g">
43: <div class="yui3-u">
44 <img class="email-avatar" alt="Eric Ferraiuolo's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=ericf&size=bigger" height="65" width="65">
45 </div>
46
47: <div class="yui3-u-3-4">
48 <h5 class="email-name">Eric Ferraiuolo</h5>
49 <h4 class="email-subject">Re: Pull Requests</h4>
..
54 </div>
55
56: <div class="email-item email-item-unread yui3-g">
57: <div class="yui3-u">
58: <img class="email-avatar" alt="YUILibrary's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yuilibrary&size=bigger" height="65" width="65"/>
59 </div>
60
61: <div class="yui3-u-3-4">
62: <h5 class="email-name">YUILibrary</h5>
63 <h4 class="email-subject">You have 5 bugs assigned to you</h4>
64 <p class="email-desc">
..
68 </div>
69
70: <div class="email-item yui3-g">
71: <div class="yui3-u">
72 <img class="email-avatar" alt="Reid Burke's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=reid&size=bigger" height="65" width="65"/>
73 </div>
74
75: <div class="yui3-u-3-4">
76 <h5 class="email-name">Reid Burke</h5>
77 <h4 class="email-subject">Re: Design Language</h4>
..
82 </div>
83
84: <div class="email-item yui3-g">
85: <div class="yui3-u">
86 <img class="email-avatar" alt="Andrew Wooldridge's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=triptych&size=bigger" height="65" width="65"/>
87 </div>
88
89: <div class="yui3-u-3-4">
90 <h5 class="email-name">Andrew Wooldridge</h5>
91: <h4 class="email-subject">YUI Blog Updates?</h4>
92 <p class="email-desc">
93 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
..
96 </div>
97
98: <div class="email-item yui3-g">
99: <div class="yui3-u">
100 <img class="email-avatar" alt="Yahoo! Finance's Avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yahoofinance&size=bigger" height="65" width="65"/>
101 </div>
102
103: <div class="yui3-u-3-4">
104 <h5 class="email-name">Yahoo! Finance</h5>
105 <h4 class="email-subject">How to protect your finances from winter storms</h4>
...
110 </div>
111
112: <div class="email-item yui3-g">
113: <div class="yui3-u">
114 <img class="email-avatar" alt="Yahoo! News' avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yahoonews&size=bigger" height="65" width="65"/>
115 </div>
116
117: <div class="yui3-u-3-4">
118 <h5 class="email-name">Yahoo! News</h5>
119 <h4 class="email-subject">Summary for April 3rd, 2012</h4>
...
126 </div>
127
128: <div class="yui3-u" id="main">
129 <div class="content">
130: <div class="email-content yui3-g">
131: <div class="email-content-header yui3-g">
132: <div class="yui3-u-1-2">
133 <h1 class="email-content-title">Hello from Toronto</h1>
134 <p class="email-content-subtitle">
...
137 </div>
138
139: <div class="yui3-u-1-2 email-content-controls">
140: <a class="yui3-button secondary-button">Reply</a>
141: <a class="yui3-button secondary-button">Forward</a>
142: <a class="yui3-button secondary-button">Move to</a>
143 </div>
144 </div>
145
146: <div class="email-content-body yui3-u-1">
147 <p>
148 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
...
167 </div>
168
169: <script src="http://yui.yahooapis.com/{{yui.version}}/build/yui/yui{{min}}.js"></script>
170 <script>
171: YUI().use('node-base', function (Y) {
172
173 var menuButton = Y.one('.nav-menu-button'),
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/gallery.handlebars:
1 {{addLocalCSS "/css/layouts/gallery.css"}}
2
3: <div class="wrapper yui3-g-r">
4: <div class="header yui3-u-1">
5: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
6: <a class="yui3-menu-heading" href="">Photo Gallery</a>
7
8 <ul>
9: <li class="yui3-menu-selected"><a href="#">Home</a></li>
10 <li><a href="#">Blog</a></li>
11 <li><a href="#">About</a></li>
..
14 </div>
15
16: <div class="content yui3-u-1">
17: <div class="yui3-g-r">
18: <div class="yui3-u-1-3 photo-box">
19 <a href="http://www.flickr.com/photos/95572727@N00/4070581709/">
20 <img src="http://farm3.staticflickr.com/2447/4070581709_1204f25e3b.jpg"
..
30 </div>
31
32: <div class="yui3-u-2-3 text-box">
33 <div class="l-box">
34 <h1 class="text-box-head">Photos from around the world</h1>
..
37 </div>
38
39: <div class="yui3-u-1-3 photo-box">
40 <a href="http://www.flickr.com/photos/ecstaticist/4015614533/">
41 <img src="http://farm3.staticflickr.com/2785/4015614533_3e04ac2c7d.jpg"
..
51 </div>
52
53: <div class="yui3-u-1-3 photo-box">
54 <a href="http://www.flickr.com/photos/blmiers2/6159637428/">
55 <img src="http://farm7.staticflickr.com/6151/6159637428_6bffb5bce1.jpg"
..
65 </div>
66
67: <div class="yui3-u-1-3 photo-box">
68 <a href="http://www.flickr.com/photos/blmiers2/6167391543/">
69 <img src="http://farm7.staticflickr.com/6171/6167391543_395a7cabfd.jpg"
..
79 </div>
80
81: <div class="yui3-u-2-3 photo-box">
82 <a href="http://www.flickr.com/photos/jjjohn/2120309884/">
83 <img src="http://farm3.staticflickr.com/2109/2120309884_de48fdb9fe.jpg"
..
93 </div>
94
95: <div class="yui3-u-1-3 photo-box">
96 <a href="http://www.flickr.com/photos/betta_design/2086852016/">
97 <img src="http://farm3.staticflickr.com/2388/2086852016_5a58dd1881.jpg"
..
107 </div>
108
109: <div class="yui3-u-1 form-box">
110 <div class="l-box">
111 <h2>Submit a Photo</h2>
112
113: <form class="yui3-form-inline">
114 <input type="text-box" placeholder="Photo URL" required>
115 <input type="text-box" placeholder="Email">
116: <button type="submit" class="yui3-button">Submit</button>
117 </form>
118 </div>
119 </div>
120
121: <div class="yui3-u-1">
122 <div class="l-box">
123 <h2>Creating a Photo Gallery Layout</h2>
124
125 <p>
126: This page shows how to make a photo gallery using <a href="{{pages.grids}}">YUI Grids</a>. Using Kimono, we can create interesting layouts such as this photo gallery. This layout is fully responsive. We've added a bit of custom media queries on top of the responsive grid provided by YUI.
127 </p>
128
129 <p>
130: We've also taken advantage of <a href="{{pages.forms}}">Forms</a> and <a href="{{pages.lists}}">Navigation lists</a>. This example uses a form with the <code>yui3-form-inline</code> classname. We use <a href="{{pages.forms}}#button">CSSButton</a> for the button styling.
131 </p>
132 </div>
...
135 </div>
136
137: <div class="footer yui3-u-1">
138: View the source of this layout to learn more. Made with love by the YUI Team.
139 </div>
140 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/marketing.handlebars:
1 {{addLocalCSS "/css/layouts/marketing.css"}}
2
3: <div class="wrapper yui3-g-r">
4: <div class="header yui3-u-1">
5: <div class="yui3-menu yui3-menu-open yui3-menu-fixed yui3-menu-horizontal">
6: <a class="yui3-menu-heading" href="">Your Site</a>
7
8 <ul>
9: <li class="yui3-menu-selected"><a href="#">Home</a></li>
10 <li><a href="#">Tour</a></li>
11 <li><a href="#">API</a></li>
..
16 </div>
17
18: <div class="splash yui3-u-1">
19: <div class="yui3-g-r">
20: <div class="yui3-u-1-3">
21 <div class="l-box splash-image">
22 <img src="http://placehold.it/500x350"
..
25 </div>
26
27: <div class="yui3-u-2-3">
28 <div class="l-box splash-text">
29 <h1 class="splash-head">
..
36
37 <p>
38: <a href="#" class="yui3-button primary-button">Get Started</a>
39 </p>
40 </div>
..
43 </div>
44
45: <div class="content yui3-u-1">
46: <div class="yui3-g-r content-ribbon">
47: <div class="yui3-u-2-3">
48 <div class="l-box">
49 <h4 class="content-subhead">Some small text</h4>
..
56 </div>
57
58: <div class="yui3-u-1-3">
59 <div class="l-box">
60 <img src="http://placehold.it/400x250"
..
64 </div>
65
66: <div class="yui3-g-r content-ribbon">
67: <div class="yui3-u-1-3">
68 <div class="l-box">
69 <img src="http://placehold.it/400x250"
..
72 </div>
73
74: <div class="yui3-u-2-3">
75 <div class="l-box">
76 <h4 class="content-subhead">Some more small text</h4>
..
84 </div>
85
86: <div class="yui3-g-r">
87: <div class="yui3-u-1-4">
88 <div class="l-box">
89 <h3>Subheading</h3>
..
94 </div>
95
96: <div class="yui3-u-1-4">
97 <div class="l-box">
98 <h3>Subheading</h3>
..
103 </div>
104
105: <div class="yui3-u-1-4">
106 <div class="l-box">
107 <h3>Subheading</h3>
...
112 </div>
113
114: <div class="yui3-u-1-4">
115 <div class="l-box">
116 <h3>Subheading</h3>
...
122 </div>
123
124: <div class="yui3-g-r">
125: <div class="yui3-u-1">
126 <div class="l-box ribbon">
127 <h2>Get started now.</h2>
128: <a href="#" class="yui3-button primary-button">Sign up</a>
129 </div>
130 </div>
...
132 </div>
133
134: <div class="footer yui3-u-1">
135: View the source of this layout to learn more. Made with love by the YUI Team.
136 </div>
137 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/signup.handlebars:
1: {{addCdnCSS yui.version "cssbutton"}}
2: {{addCdnCSS yui.gallery "gallerycss-cssform"}}
3 {{addLocalCSS "/css/layouts/signup.css"}}
4
5: <div class="wrapper yui3-g-r">
6: <div class="header yui3-u-1">
7: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
8: <a class="yui3-menu-heading" href="">Photo Gallery</a>
9
10 <ul>
11: <li class="yui3-menu-selected"><a href="#">Home</a></li>
12 <li><a href="#">Blog</a></li>
13 <li><a href="#">About</a></li>
..
16 </div>
17
18: <div class="content yui3-u-1">
19: <div class="yui3-g-r">
20: <div class="yui3-u-1">
21 <h1>Sign up to Kimono.</h1>
22 <h2>By creating an account, you agree to our <a href="#">Terms of Use</a> and <a href="#">Privacy Policy</a>.
23 </div>
24
25: <div class="yui3-u-1-2">
26 <div class="box social">
27 <h1>Sign up to Kimono.</h1>
..
30 </div>
31
32: <div class="yui3-u-1-2">
33
34 <div class="box registration">
35: <form class="yui3-form yui3-form-stacked">
36 <legend>Register for an account</legend>
37
..
42 <input id="password" type="password" placeholder="Password">
43
44: <label class="yui3-checkbox">
45 <input type="checkbox"> Agree to the <a href="">Terms and Conditions</a>
46 </label>
47
48: <button type="submit" class="yui3-button notice">Sign in</button>
49 </form>
50 </div>
..
54 </div>
55
56: <div class="footer yui3-u-1">
57: View the source of this layout to learn more. Made with love by the YUI Team.
58 </div>
59 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/header.handlebars:
1: <div class="header yui3-u-1">
2: <h1 class="yui3-u-1">{{title}}</h1>
3
4 {{#if subTitle}}
5: <h2 class="yui3-u">{{subTitle}}</h2>
6 {{/if}}
7 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/legal.handlebars:
1: <div class="legal yui3-g-r">
2: <div class="yui3-u-2-5">
3 <div class="l-box">
4 <p class="legal-license">
5: All code on this site is licensed under the <a href="http://yuilibrary.com/license/">BSD License</a> unless stated otherwise.
6 </p>
7 </div>
8 </div>
9
10: <div class="yui3-u-1-5">
11 <div class="l-box legal-logo">
12: <a href="http://yuilibrary.com/">
13 <img src="/img/logo-footer.png" height="30" width="65"
14: alt="YUI logo">
15 </a>
16 </div>
17 </div>
18
19: <div class="yui3-u-2-5">
20 <div class="l-box">
21: <ul class="legal-links yui3-g">
22: <li class='yui3-u-1-2'>
23 <a href="{{pages.about}}">About This Site</a>
24 </li>
25: <li class='yui3-u-1-2'>
26: <a href="http://yuilibrary.com/security/">Security Contact Info</a>
27 </li>
28 </ul>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menu.handlebars:
1: <div class="yui3-u" id="menu">
2: <div class="yui3-menu yui3-menu-open">
3: <a class="yui3-menu-heading" href="{{pages.home}}">Kimono</a>
4
5: <a href="#menu" id="menuLink" class="yui3-menu-link">
6 <img src="/img/navicon-png2x.png" width="20"
7 alt="Menu toggle">
.
10 <ul>
11 {{#each nav}}
12: <li class="{{#if isActive}}yui3-menu-selected{{/if}}">
13 <a href="{{url}}">{{label}}</a>
14 </li>
15 {{/each}}
16
17: <li class="menu-item-yui">
18: <a href="https://git.corp.yahoo.com/pages/yui/skinbuilder/">Skin Builder</a>
19 </li>
20
21 <li>
22: <a href="http://yuilibrary.com/">YUI Library</a>
23 </li>
24 </ul>
/Applications/MAMP/htdocs/yuilib-css/views/partials/styles.handlebars:
1 {{! Common styles used across multiple layouts }}
2
3: {{addCdnCSS yui.version "cssnormalize" prepend=true}}
4: {{addCdnCSS yui.version "cssgrids-responsive"}}
5: {{addCdnCSS yui.version "cssbutton"}}
6
7: {{addCdnCSS yui.gallery "gallerycss-csslist"}}
8
9 {{#cdnCSS}}
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/abbr.handlebars:
1 <p>
2: <abbr title="Yahoo User Interface">YUI</abbr> is a free, open source JavaScript and CSS library for building richly interactive web applications.
3 </p>
4
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/headings.handlebars:
1: <table class="yui3-table yui3-table-bordered">
2: <thead class="yui3-thead-simple"></thead>
3 <tbody>
4 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/inline.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-2">
3 <div class="l-box">
4 <p>
.
17 </div>
18
19: <div class="yui3-u-1-2">
20 <div class="l-box">
21 <p>
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/lists.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-3">
3 <h4>Unordered List</h4>
4
.
23 </div>
24
25: <div class="yui3-u-1-3">
26 <h3>Ordered List</h3>
27
..
46 </div>
47
48: <div class="yui3-u-1-3">
49 <h3>Description Lists</h3>
50
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/aligned.handlebars:
1: <form class="yui3-form yui3-form-aligned">
2 <fieldset>
3: <div class="yui3-control-group">
4 <label for="{{id 'name'}}">Username</label>
5 <input id="{{id 'name'}}" type="text" placeholder="Username">
6 </div>
7
8: <div class="yui3-control-group">
9 <label for="{{id 'password'}}">Password</label>
10 <input id="{{id 'password'}}" type="password" placeholder="Password">
11 </div>
12
13: <div class="yui3-control-group">
14 <label for="{{id 'email'}}">Email Address</label>
15 <input id="{{id 'email'}}" type="text" placeholder="Email Address">
16 </div>
17
18: <div class="yui3-control-group">
19 <label for="{{id 'foo'}}">Supercalifragilistic Label</label>
20 <input id="{{id 'foo'}}" type="text" placeholder="Enter something here...">
21 </div>
22
23: <div class="yui3-controls">
24: <label class="yui3-checkbox">
25 <input type="checkbox"> Check me out
26 </label>
27
28: <button type="submit" class="yui3-button">Submit</button>
29 </div>
30 </fieldset>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/appended-buttons.handlebars:
1: <div class="yui3-input-prepend">
2: <button type="submit" class="yui3-button yui3-input-small">Search</button>
3: <input class="yui3-input-medium" type="text" placeholder="Length of road">
4 </div>
5
6: <div class="yui3-input-append">
7: <input class="yui3-input-medium" type="text" placeholder="Length of road">
8: <button type="submit" class="yui3-button yui3-input-small notice">Sign in</button>
9 </div>
10
11: <div class="yui3-input-append">
12: <input class="yui3-input-medium" type="text" placeholder="Length of road">
13: <button type="submit" class="yui3-button yui3-input-small">Search</button>
14: <button type="submit" class="yui3-button yui3-input-small">Reset</button>
15 </div>
16
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/appended-inputs.handlebars:
1: <div class="yui3-input-prepend">
2: <span class="yui3-addon">@</span>
3: <input class="yui3-input-medium" type="text" placeholder="Username">
4 </div>
5
6: <div class="yui3-input-append">
7: <input class="yui3-input-medium" type="text" placeholder="Length of road">
8: <span class="yui3-addon">miles to go</span>
9 </div>
10
11: <div class="yui3-input-prepend yui3-input-append">
12: <span class="yui3-addon">There are</span>
13: <input class="yui3-input-medium" type="text" placeholder="Length of road">
14: <span class="yui3-addon">miles to go</span>
15 </div>
16
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/checkbox-radio.handlebars:
1: <form class="yui3-form">
2: <label class="yui3-checkbox">
3 <input type="checkbox" value="">
4 Here's option one.
5 </label>
6
7: <label class="yui3-radio">
8 <input type="radio" name="optionsRadios" value="option1" checked>
9 Here's a radio button. You can choose this one..
10 </label>
11
12: <label class="yui3-radio">
13 <input type="radio" name="optionsRadios" value="option2">
14 ..Or this one!
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/default.handlebars:
1: <form class="yui3-form">
2 <legend>A compact inline form</legend>
3
.
9 </label>
10
11: <button type="submit" class="yui3-button notice">Sign in</button>
12 </form>
13
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/disabled.handlebars:
1: <form class="yui3-form">
2 <input type="text" placeholder="Disabled input here..." disabled>
3 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/grouped.handlebars:
1: <form class="yui3-form">
2: <fieldset class="yui3-group">
3: <input type="text" class="yui3-input-1-2" placeholder="Username">
4: <input type="text" class="yui3-input-1-2" placeholder="Password">
5: <input type="text" class="yui3-input-1-2" placeholder="Email">
6 </fieldset>
7
8: <fieldset class="yui3-group">
9: <input type="text" class="yui3-input-1-2" placeholder="Another Group">
10: <input type="text" class="yui3-input-1-2" placeholder="More Stuff">
11 </fieldset>
12
13: <button type="submit" class="yui3-button yui3-input-1-2 notice">Sign in</button>
14 </form>
15
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/input-grid.handlebars:
1: <form class="yui3-form yui3-g">
2: <div class="yui3-u-1-4">
3: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-4">
4 </div>
5: <div class="yui3-u-3-4">
6: <input class="yui3-input-1" type="text" placeholder=".yui3-u-3-4">
7 </div>
8
9: <div class="yui3-u-1-2">
10: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
11 </div>
12: <div class="yui3-u-1-2">
13: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
14 </div>
15
16: <div class="yui3-u-1-8">
17: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-8">
18 </div>
19: <div class="yui3-u-1-8">
20: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-8">
21 </div>
22: <div class="yui3-u-1-4">
23: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-4">
24 </div>
25: <div class="yui3-u-1-2">
26: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
27 </div>
28
29: <div class="yui3-u-1-5">
30: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-5">
31 </div>
32: <div class="yui3-u-2-5">
33: <input class="yui3-input-1" type="text" placeholder=".yui3-u-2-5">
34 </div>
35: <div class="yui3-u-2-5">
36: <input class="yui3-input-1" type="text" placeholder=".yui3-u-2-5">
37 </div>
38
39: <div class="yui3-u-1">
40: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1">
41 </div>
42 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/input-size.handlebars:
1: <form class="yui3-form">
2: <input class="yui3-input-1" type="text" placeholder=".yui3-input-1"><br>
3: <input class="yui3-input-2-3" type="text" placeholder=".yui3-input-2-3"><br>
4: <input class="yui3-input-1-2" type="text" placeholder=".yui3-input-1-2"><br>
5: <input class="yui3-input-1-3" type="text" placeholder=".yui3-input-1-3"><br>
6: <input class="yui3-input-1-4" type="text" placeholder=".yui3-input-1-4"><br>
7 </form>
8
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/invalid.handlebars:
1: <form class="yui3-form">
2 <input type="email" placeholder="Requires an email" required>
3 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/multi.handlebars:
1: <form class="yui3-form yui3-form-stacked">
2 <fieldset>
3 <legend>Legend</legend>
4
5: <div class="yui3-g-r">
6: <div class="yui3-u-1-3">
7 <label for="{{id 'first-name'}}">First Name</label>
8 <input id="{{id 'first-name'}}" type="text">
9 </div>
10
11: <div class="yui3-u-1-3">
12 <label for="{{id 'last-name'}}">Last Name</label>
13 <input id="{{id 'last-name'}}" type="text">
14 </div>
15
16: <div class="yui3-u-1-3">
17 <label for="{{id 'email'}}">E-Mail</label>
18 <input id="{{id 'email'}}" type="email" required>
19 </div>
20
21: <div class="yui3-u-1-3">
22 <label for="{{id 'city'}}">City</label>
23 <input id="{{id 'city'}}" type="text">
24 </div>
25
26: <div class="yui3-u-1-3">
27 <label for="{{id 'state'}}">State</label>
28: <select id="{{id 'state'}}" class="yui3-input-medium">
29 <option>AL</option>
30 <option>CA</option>
..
34 </div>
35
36: <label class="yui3-checkbox">
37 <input type="checkbox"> I've read the terms and conditions
38 </label>
39
40: <button type="submit" class="yui3-button notice">Submit</button>
41 </fieldset>
42 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/rounded.handlebars:
1: <form class="yui3-form">
2: <input type="text" class="yui3-input-rounded">
3: <button type="submit" class="yui3-button">Search</button>
4 </form>
5
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/stacked.handlebars:
1: <form class="yui3-form yui3-form-stacked">
2 <legend>A Stacked Form</legend>
3
.
15 </select>
16
17: <label class="yui3-checkbox">
18 <input type="checkbox"> Remember me
19 </label>
20
21: <button type="submit" class="yui3-button notice">Sign in</button>
22 </form>
23
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/four-col.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-2">
3 <div class="l-box">
4 <h3>Fast</h3>
5 <p>
6: YUI's lightweight core and modular architecture make it scalable, fast, and robust. Built by frontend engineers at Yahoo!, YUI powers the most popular websites in the world.
7 </p>
8 </div>
9 </div>
10
11: <div class="yui3-u-1-2">
12 <div class="l-box">
13 <h3>Complete</h3>
14 <p>
15: YUI's intuitive and well-documented API takes you from basic DOM handling to building performant and maintainable applications on desktop browsers, mobile devices, and servers.
16 </p>
17 </div>
18 </div>
19
20: <div class="yui3-u-1-2">
21 <div class="l-box">
22 <h3>Industrial Strength</h3>
..
27 </div>
28
29: <div class="yui3-u-1-2">
30 <div class="l-box">
31 <h3>Free and Open</h3>
32 <p>
33: YUI is free for all uses and is developed in the open on GitHub. Core team members can always be found in the forums and the #yui IRC channel on Freenode. Pull requests welcome!
34 </p>
35 </div>
36 </div>
37
38: <div class="yui3-u-1 l-centered">
39: <img src="http://vanity-press.com/wp-content/uploads/2011/09/New-York.jpg" class="yui3-u"
40 alt="Image of New York City used for a responsive image example.">
41 </div>
42
43: <div class="yui3-u-2-5">
44 <div class="l-box">
45 <h3>Two-Fifth Column</h3>
..
50 </div>
51
52: <div class="yui3-u-3-5">
53 <div class="l-box">
54 <h3>Three-Fifth Column</h3>
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/intro.handlebars:
1: <div class="yui3-g">
2: <div class="yui3-u-1-3">
3 <!--
4 By default, grid units don"t have any margin/padding.
.
8 </div>
9
10: <div class="yui3-u-1-3">
11 <p>Thirds</p>
12 </div>
13
14: <div class="yui3-u-1-3">
15 <p>Thirds</p>
16 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/mobile-col.handlebars:
1: <div class="yui3-g">
2: <div class="yui3-u-1-3">
3 <div class="l-box">
4 <h3>Thirds</h3>
.
7 </div>
8
9: <div class="yui3-u-1-3">
10 <div class="l-box">
11 <h3>Thirds</h3>
..
14 </div>
15
16: <div class="yui3-u-1-3">
17 <div class="l-box">
18 <h3>Thirds</h3>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/disabled.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2: <a href="#" class="yui3-menu-heading">Site Title</a>
3
4 <ul>
5: <li class="yui3-menu-selected"><a href="#">Home</a></li>
6 <li><a href="#">Flickr</a></li>
7: <li class="yui3-menu-disabled"><a href="#">Disabled Item</a></li>
8 </ul>
9 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/dropdown.handlebars:
1 <div id="horizontal-menu">
2 <ul id="std-menu-items">
3: <li class="yui3-menu-selected"><a href="#">Flickr</a></li>
4 <li><a href="#">Messenger</a></li>
5 <li><a href="#">Sports</a></li>
.
8 <a href="#">Other</a>
9 <ul>
10: <li class="yui3-menu-heading">More from Yahoo!</li>
11: <li class="yui3-menu-separator"></li>
12 <li><a href="#">Autos</a></li>
13 <li><a href="#">Flickr</a></li>
..
28
29 <script>
30: YUI({
31 gallery : 'gallery-2013.02.07-15-27',
32 fetchCSS: false
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/heading.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2: <a href="#" class="yui3-menu-heading">Site Title</a>
3
4 <ul>
5: <li class="yui3-menu-selected"><a href="#">Home</a></li>
6 <li><a href="#">Flickr</a></li>
7 <li><a href="#">Messenger</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/horizontal.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2 <ul>
3 <li><a href="#">Home</a></li>
4: <li class="yui3-menu-selected"><a href="#">Flickr</a></li>
5 <li><a href="#">Messenger</a></li>
6 <li><a href="#">Sports</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/paginator.handlebars:
1: <ul class="yui3-paginator">
2: <li><a class="yui3-button prev" href="#">&#171;</a></li>
3: <li><a class="yui3-button" href="#">1</a></li>
4: <li><a class="yui3-button yui3-button-active" href="#">2</a></li>
5: <li><a class="yui3-button" href="#">3</a></li>
6: <li><a class="yui3-button" href="#">4</a></li>
7: <li><a class="yui3-button" href="#">5</a></li>
8: <li><a class="yui3-button next">&#187;</a></li>
9 </ul>
10
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/vertical.handlebars:
1: <div class="yui3-menu yui3-menu-open">
2: <a class="yui3-menu-heading">Yahoo! Sites</a>
3
4 <ul>
.
7 <li><a href="#">Sports</a></li>
8 <li><a href="#">Finance</a></li>
9: <li class="yui3-menu-heading">More Sites!</li>
10 <li><a href="#">Games</a></li>
11 <li><a href="#">News</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/bordered.handlebars:
1: <table class="yui3-table yui3-table-bordered">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/default.handlebars:
1: <table class="yui3-table">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/horizontal.handlebars:
1: <table class="yui3-table yui3-table-horizontal">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/striped.handlebars:
1: <table class="yui3-table">
2 <thead>
3 <tr>
.
10
11 <tbody>
12: <tr class="yui3-table-odd">
13 <td>1</td>
14 <td>Honda</td>
..
24 </tr>
25
26: <tr class="yui3-table-odd">
27 <td>3</td>
28 <td>Hyundai</td>
..
38 </tr>
39
40: <tr class="yui3-table-odd">
41 <td>5</td>
42 <td>Nissan</td>
..
52 </tr>
53
54: <tr class="yui3-table-odd">
55 <td>7</td>
56 <td>Honda</td>
569 matches across 66 files
Searching 54 files for "YUI"
/Applications/MAMP/htdocs/yuilib-css/views/layouts/main.handlebars:
13 <body>
14
15: <div class="yui3-g-r " id="layout">
16 {{> menu}}
17
18: <div class="yui3-u" id="main">
19
20 {{{body}}}
/Applications/MAMP/htdocs/yuilib-css/views/pages/base.handlebars:
3 {{setActiveNav "base"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.version}}/build/cssnormalize/cssnormalize-min.css">
17 {{/code}}
18
..
27
28 <p>
29: Normalize.css comes with <a href="https://github.com/necolas/normalize.css/wiki">great documentation</a> and a <a href="http://nicolasgallagher.com/about-normalize-css/">thorough guide</a> explaining how it differs from a traditional reset. You can also check out YUI's <a href="http://yuilibrary.com/yui/docs/cssnormalize/">CSSNormalize</a> module, which includes the generic Normalize along with a <a href="http://yuilibrary.com/yui/docs/cssnormalize/#context">contextual version</a>. The contextual version of Normalize only applies normalized styles to elements that are a children of an element with the class name {{code "yui3-normalized"}}.
30 </p>
31
/Applications/MAMP/htdocs/yuilib-css/views/pages/extras.handlebars:
12 <div class="content">
13
14: <div class="extras yui3-g-r">
15 {{#each results}}
16: <div class="extras-item yui3-u-1">
17: <div class="yui3-g">
18: <div class="yui3-u-1">
19: <div class="yui3-g l-box">
20: <div class="yui3-u-1-2">
21 <h3 class="extras-name">
22 {{owner.login}}/<a href="{{html_url}}" rel="_blank">{{name}}</a>
..
26 </p>
27 </div>
28: <div class="yui3-u-1-2">
29 <p class="extras-links">
30 <a href="{{html_url}}" rel="_blank">View Repo &rarr;</a>
/Applications/MAMP/htdocs/yuilib-css/views/pages/forms.handlebars:
3 {{setActiveNav "forms"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-cssform"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down CSSForm from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-cssform/gallerycss-cssform-min.css">
17 {{/code}}
18
..
20 <h2 class="content-subhead">Default Form</h2>
21 <p>
22: A default inline form can be created by adding the {{code "yui3-form"}} to any {{code "<form>"}} element. This creates an inline form.
23 </p>
24
..
32
33
34: <h2 class="content-subhead">Multi-Column Form (with YUI Grids)</h2>
35 <p>
36: Multi-column forms such as the one below can be created by pulling down YUI Grids. In this example, we're using YUI Grids with a stacked form.
37 </p>
38
..
48 <h2 class="content-subhead">Stacked Form</h2>
49 <p>
50: A stacked form has its input elements below the labels. Apply this style by adding the {{code "yui3-form-stacked"}} class-name on a {{code "<form>"}} element in addition to {{code "yui3-form"}}.
51 </p>
52
..
62 <h2 class="content-subhead">Aligned Form</h2>
63 <p>
64: Aligned forms are great for standard forms that look well-aligned. The labels are right-aligned against the form input controls, but re-align to be standard left-aligned forms on smaller screens. Apply the {{code "yui3-form-aligned"}} class to your {{code "<form>"}} element.
65 </p>
66
..
90 <h2 class="content-subhead">Input Sizing</h2>
91 <p>
92: Input elements have fluid width sizes in a syntax that is similar to YUI Grids. You can apply a {{code "yui3-input-*"}} class to these elements.
93 </p>
94
..
102
103 <p>
104: Another way of sizing inputs is to wrap them in grid containers. This lets you customize your input sizing even more. In the example below, the {{code "<input>"}} elements have a {{code "yui3-input-1"}} class, but are wrapped in a {{code "<div>"}} with a specific grid class.
105 </p>
106
...
144 <h2 class="content-subhead">Rounded Inputs</h2>
145 <p>
146: Add the {{code "yui3-input-rounded"}} classname to any form control.
147 </p>
148
...
158 <h2 class="content-subhead">Checkboxes and Radios</h2>
159 <p>
160: YUI Forms normalizes and aligns checkboxes and radio inputs for you too. Just add the {{code "yui3-checkbox"}} or {{code "yui3-radio"}} classname to these controls.
161 </p>
162
/Applications/MAMP/htdocs/yuilib-css/views/pages/grids.handlebars:
3 {{setActiveNav "grids"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down Responsive Grids from the YUI CDN. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.version}}/build/cssgrids-responsive/cssgrids-responsive-min.css">
17 {{/code}}
18
19 <aside>
20 <p>
21: Optionally, you can head over to the <a href="http://yui.github.com/gridbuilder/">GridBuilder</a> to make your very own custom grid. Save the outputted CSS in a file and you're good to go!
22 </p>
23 </aside>
24
25
26: <h2 class="content-subhead">How do YUI Grids work?</h2>
27 <p>
28: YUI Grids are very easy to work with. Consider <code>yui3-g</code> to be a row or "grid", and {{code "yui3-u-*-*"}} to be columns, or "units". Each {{code "yui3-g"}} can contain many units. Units have various class names that represent their widths. For example, {{code "yui3-u-1-2"}} has a width of 50%, whereas {{code "yui3-u-1-5"}} would have a width of 20%.
29 </p>
30
31 <p>
32: The only constraints for YUI3 Grids are that all "units" are children of a "grid". All you need to do is define a grid, one or more units inside it, and specify widths for them. Then stack and nest as required. Here's an example of a grid with three columns:
33 </p>
34
..
39 <aside>
40 <p>
41: For a more detailed guide, check out the <a href="http://yuilibrary.com/yui/docs/cssgrids/">CSS Grids documentation</a> on YUILibrary.
42 </p>
43 </aside>
..
46 <h2 class="content-subhead">How do responsive grids work?</h2>
47 <p>
48: YUI3 Responsive Grids builds on top of the existing YUI3 Grids implementation. It adds a single new class name called {{code "yui3-g-r"}} (the "r" stands for responsive, you see). You can use this instead of using {{code "yui3-g"}} as you normally do. All elements with a class name of {{code "yui3-u-*-*"}} will automatically become responsive if they are direct descendents of a {{code "yui3-g-r"}}.
49 </p>
50
..
52 <h2 class="content-subhead">The HTML</h2>
53 <p>
54: The first gist shows how regular YUI3 grids are written. These grids are unresponsive. They'll always be one-thirds irrespective of the width of the screen. The second gist replaces the {{code "yui3-g"}} with {{code "yui3-g-r"}}, thereby making the one-third columns collapse to full width on lower screen widths.
55 </p>
56
..
75 <h2 class="content-subhead">Grids on Mobile</h2>
76 <p>
77: Putting the {{code "yui3-g"}} classname on the wrapper instead of {{code "yui3-g-r"}} will ensure that grid units will not collapse on small screens. This is a good way to make grids on smaller screens like phones.
78 </p>
79
/Applications/MAMP/htdocs/yuilib-css/views/pages/home.handlebars:
6
7 <div class="hero">
8: <h1 class="yui3-u-1">{{title}}</h1>
9: <h2 class="yui3-u-3-4 l-centered">{{subTitle}}</h2>
10 </div>
11
12: <div class="yui3-g-r marketing-ribbon">
13: <div class="yui3-u-1">
14: <div class="size-chart l-vbox yui3-g">
15: <div class="size-chart-item size-chart-base yui3-u" style="width: 25%;">
16 <a class="size-chart-label" href="{{pages.base}}">
17 Base <span class="size-chart-size">(1.2KB)</span>
18 </a>
19 </div>
20: <div class="size-chart-item size-chart-grids yui3-u" style="width: 14.5%;">
21 <a class="size-chart-label" href="{{pages.grids}}">
22 Grids <span class="size-chart-size">(0.7KB)</span>
23 </a>
24 </div>
25: <div class="size-chart-item size-chart-forms yui3-u"style="width: 27%;">
26 <a class="size-chart-label" href="{{pages.forms}}">
27 Forms <span class="size-chart-size">(1.3KB)</span>
28 </a>
29 </div>
30: <div class="size-chart-item size-chart-tables yui3-u" style="width: 12.5%;">
31 <a class="size-chart-label" href="{{pages.tables}}">
32 Tables <span class="size-chart-size">(0.6KB)</span>
33 </a>
34 </div>
35: <div class="size-chart-item size-chart-menus yui3-u" style="width: 21%;">
36 <a class="size-chart-label" href="{{pages.menus}}">
37 Menus <span class="size-chart-size">(1KB)</span>
..
49 </div>
50
51: <div class="yui3-g-r marketing-ribbon">
52: <div class="yui3-u-1-3">
53 <div class="l-box">
54 <h3>Your CSS foundation.</h3>
..
59 </div>
60
61: <div class="yui3-u-1-3">
62 <div class="l-box">
63 <h3>Made with mobile in mind.</h3>
64 <p>
65: Kimono is responsive out of the box, so elements look great on all screen sizes. Customize your styles with the <a href="http://yui.github.io/skinbuilder" alt="SkinBuilder">SkinBuilder</a> to make your style your own.
66 </p>
67 </div>
68 </div>
69
70: <div class="yui3-u-1-3">
71 <div class="l-box">
72 <h3>Stays out of your way.</h3>
..
79
80
81: <div class="yui3-g-r marketing-ribbon">
82: <div class="yui3-u-1-2">
83 <div class="l-box">
84 <a href="{{pages.layouts}}">
..
88 </div>
89
90: <div class="yui3-u-1-2">
91 <div class="l-hbox">
92 <h3>Create responsive layouts.</h3>
..
96
97 <p>
98: <a href="{{pages.layouts}}" class="yui3-button">View Layouts</a>
99 </p>
100 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts.handlebars:
19 </aside>
20
21: <div class="yui3-g-r layout-item">
22: <div class="yui3-u-1-2">
23 <a href="{{pages.layoutsMarketing}}">
24 <img src="/img/layouts/marketing@2x.jpg" class="bordered" width="400" height="214"
..
27 </div>
28
29: <div class="yui3-u-1-2">
30 <div class="l-hbox">
31 <h3 class="layout-item-head">Landing Page</h3>
..
35 </p>
36
37: <p><a href="{{pages.layoutsMarketing}}" class="yui3-button">View Layout</a></p>
38 </div>
39 </div>
40 </div>
41
42: <div class="yui3-g-r layout-item">
43: <div class="yui3-u-1-2">
44 <a href="{{pages.layoutsGallery}}">
45 <img src="/img/layouts/gallery@2x.jpg" class="bordered" width="400" height="214"
..
48 </div>
49
50: <div class="yui3-u-1-2">
51 <div class="l-hbox">
52 <h3 class="layout-item-head">Photo Gallery</h3>
..
56 </p>
57
58: <p><a href="{{pages.layoutsGallery}}" class="yui3-button">View Layout</a></p>
59 </div>
60 </div>
..
63
64
65: <div class="yui3-g-r layout-item">
66: <div class="yui3-u-1-2">
67 <a href="{{pages.layoutsEmail}}">
68 <img src="/img/layouts/email@2x.jpg" class="bordered" width="400" height="214"
..
71 </div>
72
73: <div class="yui3-u-1-2">
74 <div class="l-hbox">
75 <h3 class="layout-item-head">Email</h3>
..
79 </p>
80
81: <p><a href="{{pages.layoutsEmail}}" class="yui3-button">View Layout</a></p>
82 </div>
83 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/email.handlebars:
1 {{addLocalCSS "/css/layouts/email.css"}}
2
3: <div class="yui3-g-r" id="layout">
4: <div class="yui3-u" id="nav">
5 <a href="#nav" class="nav-menu-button">Menu</a>
6
7 <div class="nav-inner">
8: <a class="yui3-button primary-button" href="#">Compose</a>
9
10: <div class="yui3-menu yui3-menu-open">
11 <ul>
12 <li><a href="#">Inbox <span class="email-count">(2)</span></a></li>
..
15 <li><a href="#">Drafts</a></li>
16 <li><a href="#">Trash</a></li>
17: <li class="yui3-menu-heading">Labels</li>
18 <li><a href="#"><span class="email-label-personal"></span>Personal</a></li>
19 <li><a href="#"><span class="email-label-work"></span>Work</a></li>
..
24 </div>
25
26: <div class="yui3-u" id="list">
27 <div class="content">
28: <div class="email-item email-item-selected yui3-g">
29: <div class="yui3-u">
30 <img class="email-avatar" alt="Tilo Mitra's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=tilomitra&size=bigger" height="65" width="65">
31 </div>
32
33: <div class="yui3-u-3-4">
34 <h5 class="email-name">Tilo Mitra</h5>
35 <h4 class="email-subject">Hello from Toronto</h4>
..
40 </div>
41
42: <div class="email-item email-item-unread yui3-g">
43: <div class="yui3-u">
44 <img class="email-avatar" alt="Eric Ferraiuolo's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=ericf&size=bigger" height="65" width="65">
45 </div>
46
47: <div class="yui3-u-3-4">
48 <h5 class="email-name">Eric Ferraiuolo</h5>
49 <h4 class="email-subject">Re: Pull Requests</h4>
..
54 </div>
55
56: <div class="email-item email-item-unread yui3-g">
57: <div class="yui3-u">
58: <img class="email-avatar" alt="YUILibrary's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yuilibrary&size=bigger" height="65" width="65"/>
59 </div>
60
61: <div class="yui3-u-3-4">
62: <h5 class="email-name">YUILibrary</h5>
63 <h4 class="email-subject">You have 5 bugs assigned to you</h4>
64 <p class="email-desc">
..
68 </div>
69
70: <div class="email-item yui3-g">
71: <div class="yui3-u">
72 <img class="email-avatar" alt="Reid Burke's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=reid&size=bigger" height="65" width="65"/>
73 </div>
74
75: <div class="yui3-u-3-4">
76 <h5 class="email-name">Reid Burke</h5>
77 <h4 class="email-subject">Re: Design Language</h4>
..
82 </div>
83
84: <div class="email-item yui3-g">
85: <div class="yui3-u">
86 <img class="email-avatar" alt="Andrew Wooldridge's avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=triptych&size=bigger" height="65" width="65"/>
87 </div>
88
89: <div class="yui3-u-3-4">
90 <h5 class="email-name">Andrew Wooldridge</h5>
91: <h4 class="email-subject">YUI Blog Updates?</h4>
92 <p class="email-desc">
93 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
..
96 </div>
97
98: <div class="email-item yui3-g">
99: <div class="yui3-u">
100 <img class="email-avatar" alt="Yahoo! Finance's Avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yahoofinance&size=bigger" height="65" width="65"/>
101 </div>
102
103: <div class="yui3-u-3-4">
104 <h5 class="email-name">Yahoo! Finance</h5>
105 <h4 class="email-subject">How to protect your finances from winter storms</h4>
...
110 </div>
111
112: <div class="email-item yui3-g">
113: <div class="yui3-u">
114 <img class="email-avatar" alt="Yahoo! News' avatar" src="http://api.twitter.com/1/users/profile_image?screen_name=yahoonews&size=bigger" height="65" width="65"/>
115 </div>
116
117: <div class="yui3-u-3-4">
118 <h5 class="email-name">Yahoo! News</h5>
119 <h4 class="email-subject">Summary for April 3rd, 2012</h4>
...
126 </div>
127
128: <div class="yui3-u" id="main">
129 <div class="content">
130: <div class="email-content yui3-g">
131: <div class="email-content-header yui3-g">
132: <div class="yui3-u-1-2">
133 <h1 class="email-content-title">Hello from Toronto</h1>
134 <p class="email-content-subtitle">
...
137 </div>
138
139: <div class="yui3-u-1-2 email-content-controls">
140: <a class="yui3-button secondary-button">Reply</a>
141: <a class="yui3-button secondary-button">Forward</a>
142: <a class="yui3-button secondary-button">Move to</a>
143 </div>
144 </div>
145
146: <div class="email-content-body yui3-u-1">
147 <p>
148 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
...
167 </div>
168
169: <script src="http://yui.yahooapis.com/{{yui.version}}/build/yui/yui{{min}}.js"></script>
170 <script>
171: YUI().use('node-base', function (Y) {
172
173 var menuButton = Y.one('.nav-menu-button'),
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/gallery.handlebars:
1 {{addLocalCSS "/css/layouts/gallery.css"}}
2
3: <div class="wrapper yui3-g-r">
4: <div class="header yui3-u-1">
5: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
6: <a class="yui3-menu-heading" href="">Photo Gallery</a>
7
8 <ul>
9: <li class="yui3-menu-selected"><a href="#">Home</a></li>
10 <li><a href="#">Blog</a></li>
11 <li><a href="#">About</a></li>
..
14 </div>
15
16: <div class="content yui3-u-1">
17: <div class="yui3-g-r">
18: <div class="yui3-u-1-3 photo-box">
19 <a href="http://www.flickr.com/photos/95572727@N00/4070581709/">
20 <img src="http://farm3.staticflickr.com/2447/4070581709_1204f25e3b.jpg"
..
30 </div>
31
32: <div class="yui3-u-2-3 text-box">
33 <div class="l-box">
34 <h1 class="text-box-head">Photos from around the world</h1>
..
37 </div>
38
39: <div class="yui3-u-1-3 photo-box">
40 <a href="http://www.flickr.com/photos/ecstaticist/4015614533/">
41 <img src="http://farm3.staticflickr.com/2785/4015614533_3e04ac2c7d.jpg"
..
51 </div>
52
53: <div class="yui3-u-1-3 photo-box">
54 <a href="http://www.flickr.com/photos/blmiers2/6159637428/">
55 <img src="http://farm7.staticflickr.com/6151/6159637428_6bffb5bce1.jpg"
..
65 </div>
66
67: <div class="yui3-u-1-3 photo-box">
68 <a href="http://www.flickr.com/photos/blmiers2/6167391543/">
69 <img src="http://farm7.staticflickr.com/6171/6167391543_395a7cabfd.jpg"
..
79 </div>
80
81: <div class="yui3-u-2-3 photo-box">
82 <a href="http://www.flickr.com/photos/jjjohn/2120309884/">
83 <img src="http://farm3.staticflickr.com/2109/2120309884_de48fdb9fe.jpg"
..
93 </div>
94
95: <div class="yui3-u-1-3 photo-box">
96 <a href="http://www.flickr.com/photos/betta_design/2086852016/">
97 <img src="http://farm3.staticflickr.com/2388/2086852016_5a58dd1881.jpg"
..
107 </div>
108
109: <div class="yui3-u-1 form-box">
110 <div class="l-box">
111 <h2>Submit a Photo</h2>
112
113: <form class="yui3-form-inline">
114 <input type="text-box" placeholder="Photo URL" required>
115 <input type="text-box" placeholder="Email">
116: <button type="submit" class="yui3-button">Submit</button>
117 </form>
118 </div>
119 </div>
120
121: <div class="yui3-u-1">
122 <div class="l-box">
123 <h2>Creating a Photo Gallery Layout</h2>
124
125 <p>
126: This page shows how to make a photo gallery using <a href="{{pages.grids}}">YUI Grids</a>. Using Kimono, we can create interesting layouts such as this photo gallery. This layout is fully responsive. We've added a bit of custom media queries on top of the responsive grid provided by YUI.
127 </p>
128
129 <p>
130: We've also taken advantage of <a href="{{pages.forms}}">Forms</a> and <a href="{{pages.lists}}">Navigation lists</a>. This example uses a form with the <code>yui3-form-inline</code> classname. We use <a href="{{pages.forms}}#button">CSSButton</a> for the button styling.
131 </p>
132 </div>
...
135 </div>
136
137: <div class="footer yui3-u-1">
138: View the source of this layout to learn more. Made with love by the YUI Team.
139 </div>
140 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/marketing.handlebars:
1 {{addLocalCSS "/css/layouts/marketing.css"}}
2
3: <div class="wrapper yui3-g-r">
4: <div class="header yui3-u-1">
5: <div class="yui3-menu yui3-menu-open yui3-menu-fixed yui3-menu-horizontal">
6: <a class="yui3-menu-heading" href="">Your Site</a>
7
8 <ul>
9: <li class="yui3-menu-selected"><a href="#">Home</a></li>
10 <li><a href="#">Tour</a></li>
11 <li><a href="#">API</a></li>
..
16 </div>
17
18: <div class="splash yui3-u-1">
19: <div class="yui3-g-r">
20: <div class="yui3-u-1-3">
21 <div class="l-box splash-image">
22 <img src="http://placehold.it/500x350"
..
25 </div>
26
27: <div class="yui3-u-2-3">
28 <div class="l-box splash-text">
29 <h1 class="splash-head">
..
36
37 <p>
38: <a href="#" class="yui3-button primary-button">Get Started</a>
39 </p>
40 </div>
..
43 </div>
44
45: <div class="content yui3-u-1">
46: <div class="yui3-g-r content-ribbon">
47: <div class="yui3-u-2-3">
48 <div class="l-box">
49 <h4 class="content-subhead">Some small text</h4>
..
56 </div>
57
58: <div class="yui3-u-1-3">
59 <div class="l-box">
60 <img src="http://placehold.it/400x250"
..
64 </div>
65
66: <div class="yui3-g-r content-ribbon">
67: <div class="yui3-u-1-3">
68 <div class="l-box">
69 <img src="http://placehold.it/400x250"
..
72 </div>
73
74: <div class="yui3-u-2-3">
75 <div class="l-box">
76 <h4 class="content-subhead">Some more small text</h4>
..
84 </div>
85
86: <div class="yui3-g-r">
87: <div class="yui3-u-1-4">
88 <div class="l-box">
89 <h3>Subheading</h3>
..
94 </div>
95
96: <div class="yui3-u-1-4">
97 <div class="l-box">
98 <h3>Subheading</h3>
..
103 </div>
104
105: <div class="yui3-u-1-4">
106 <div class="l-box">
107 <h3>Subheading</h3>
...
112 </div>
113
114: <div class="yui3-u-1-4">
115 <div class="l-box">
116 <h3>Subheading</h3>
...
122 </div>
123
124: <div class="yui3-g-r">
125: <div class="yui3-u-1">
126 <div class="l-box ribbon">
127 <h2>Get started now.</h2>
128: <a href="#" class="yui3-button primary-button">Sign up</a>
129 </div>
130 </div>
...
132 </div>
133
134: <div class="footer yui3-u-1">
135: View the source of this layout to learn more. Made with love by the YUI Team.
136 </div>
137 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/layouts/signup.handlebars:
1: {{addCdnCSS yui.version "cssbutton"}}
2: {{addCdnCSS yui.gallery "gallerycss-cssform"}}
3 {{addLocalCSS "/css/layouts/signup.css"}}
4
5: <div class="wrapper yui3-g-r">
6: <div class="header yui3-u-1">
7: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
8: <a class="yui3-menu-heading" href="">Photo Gallery</a>
9
10 <ul>
11: <li class="yui3-menu-selected"><a href="#">Home</a></li>
12 <li><a href="#">Blog</a></li>
13 <li><a href="#">About</a></li>
..
16 </div>
17
18: <div class="content yui3-u-1">
19: <div class="yui3-g-r">
20: <div class="yui3-u-1">
21 <h1>Sign up to Kimono.</h1>
22 <h2>By creating an account, you agree to our <a href="#">Terms of Use</a> and <a href="#">Privacy Policy</a>.
23 </div>
24
25: <div class="yui3-u-1-2">
26 <div class="box social">
27 <h1>Sign up to Kimono.</h1>
..
30 </div>
31
32: <div class="yui3-u-1-2">
33
34 <div class="box registration">
35: <form class="yui3-form yui3-form-stacked">
36 <legend>Register for an account</legend>
37
..
42 <input id="password" type="password" placeholder="Password">
43
44: <label class="yui3-checkbox">
45 <input type="checkbox"> Agree to the <a href="">Terms and Conditions</a>
46 </label>
47
48: <button type="submit" class="yui3-button notice">Sign in</button>
49 </form>
50 </div>
..
54 </div>
55
56: <div class="footer yui3-u-1">
57: View the source of this layout to learn more. Made with love by the YUI Team.
58 </div>
59 </div>
/Applications/MAMP/htdocs/yuilib-css/views/pages/menus.handlebars:
8
9 <!-- adding to the top so that the dropdown example code can run -->
10: <script src="http://yui.yahooapis.com/{{yui.version}}/build/yui/yui{{min}}.js"></script>
11
12 <div class="content">
13 <h2 class="content-subhead">Include the CSS on your page</h2>
14 <p>
15: Menus are contained within the CSSList module. You can pull down CSSList from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
16 </p>
17
18 {{#code}}
19: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-csslist/gallerycss-csslist-min.css">
20 {{/code}}
21
..
23 <h2 class="content-subhead">Horizontal Menu</h2>
24 <p>
25: Create horizontal menus by adding the {{code "yui3-menu-horizontal"}} class name. You can mark the active list element by adding the {{code "yui3-menu-selected"}} class to the list element.
26 </p>
27
..
35 <h2 class="content-subhead">Menu with Headings</h2>
36 <p>
37: You can add headings to your menu by adding an {{code "<a>"}} element with the {{code "yui3-menu-heading"}} class name. This element should be inserted outside the {{code "<ul>"}} element.
38 </p>
39
..
47 <h2 class="content-subhead">Vertical Menu</h2>
48 <p>
49: Menus are vertical by default. Just add the {{code "yui3-menu"}} class to style the menu, and the {{code "yui3-menu-open"}} class to ensure that it is visible.
50 </p>
51
..
71 <h2 class="content-subhead">Menus with Disabled Items</h2>
72 <p>
73: You can add disabled links to your menu by adding an {{code "<a>"}} element with the {{code "yui3-menu-disabled"}} class name. Disabled items do not inherit hover styles, and appear faded.
74 </p>
75
..
83 <h2 class="content-subhead">Paginators</h2>
84 <p>
85: You can implement a paginator control by adding the {{code "yui3-paginator"}} classname to a {{code "<ul>"}} element. Paginator controls generally look like buttons, but omit the {{code "yui3-button"}} class name if you want simple paginators.
86 </p>
87
/Applications/MAMP/htdocs/yuilib-css/views/pages/tables.handlebars:
3 {{setActiveNav "tables"}}
4
5: {{addCdnCSS yui.gallery "gallerycss-csstable"}}
6
7 {{> header}}
.
10 <h2 class="content-subhead">Include the CSS on your page</h2>
11 <p>
12: You can pull down CSSTable from the YUI Gallery. Just include this {{code "<link>"}} element in your {{code "<head>"}}.
13 </p>
14
15 {{#code}}
16: <link rel="stylesheet" href="http://yui.yahooapis.com/{{yui.gallery}}/build/gallerycss-csstable/gallerycss-csstable-min.css">
17 {{/code}}
18
..
20 <h2 class="content-subhead">Default Table</h2>
21 <p>
22: Add the {{code "yui3-table"}} classname to a table to style an HTML table similar to how a YUI3 Datatable would be styled. This class adds appropriate padding and borders to table elements, and increases the emphasis on the header.
23 </p>
24
..
32 <h2 class="content-subhead">Bordered Table</h2>
33 <p>
34: To add horizontal and vertical borders to all cells, add the {{code "yui3-table-bordered"}} classname to the {{code "<table>"}} element.
35 </p>
36
..
44 <h2 class="content-subhead">Table with Horizontal Borders</h2>
45 <p>
46: If you prefer to just have horizontal lines, add the {{code "yui3-table-horizontal"}} classname to the {{code "<table>"}} element.
47 </p>
48
..
56 <h2 class="content-subhead">Striped Table</h2>
57 <p>
58: Large tables are easier to parse visually if rows are easily distinguishable. Adding the {{code "yui3-table-odd"}} class name to every other {{code "<tr>"}} element changes the background of the row and creates a zebra-styled effect.
59 </p>
60
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/abbr.handlebars:
1 <p>
2: <abbr title="Yahoo User Interface">YUI</abbr> is a free, open source JavaScript and CSS library for building richly interactive web applications.
3 </p>
4
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/headings.handlebars:
1: <table class="yui3-table yui3-table-bordered">
2: <thead class="yui3-thead-simple"></thead>
3 <tbody>
4 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/inline.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-2">
3 <div class="l-box">
4 <p>
.
17 </div>
18
19: <div class="yui3-u-1-2">
20 <div class="l-box">
21 <p>
/Applications/MAMP/htdocs/yuilib-css/views/partials/base/lists.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-3">
3 <h4>Unordered List</h4>
4
.
23 </div>
24
25: <div class="yui3-u-1-3">
26 <h3>Ordered List</h3>
27
..
46 </div>
47
48: <div class="yui3-u-1-3">
49 <h3>Description Lists</h3>
50
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/aligned.handlebars:
1: <form class="yui3-form yui3-form-aligned">
2 <fieldset>
3: <div class="yui3-control-group">
4 <label for="{{id 'name'}}">Username</label>
5 <input id="{{id 'name'}}" type="text" placeholder="Username">
6 </div>
7
8: <div class="yui3-control-group">
9 <label for="{{id 'password'}}">Password</label>
10 <input id="{{id 'password'}}" type="password" placeholder="Password">
11 </div>
12
13: <div class="yui3-control-group">
14 <label for="{{id 'email'}}">Email Address</label>
15 <input id="{{id 'email'}}" type="text" placeholder="Email Address">
16 </div>
17
18: <div class="yui3-control-group">
19 <label for="{{id 'foo'}}">Supercalifragilistic Label</label>
20 <input id="{{id 'foo'}}" type="text" placeholder="Enter something here...">
21 </div>
22
23: <div class="yui3-controls">
24: <label class="yui3-checkbox">
25 <input type="checkbox"> Check me out
26 </label>
27
28: <button type="submit" class="yui3-button">Submit</button>
29 </div>
30 </fieldset>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/appended-buttons.handlebars:
1: <div class="yui3-input-prepend">
2: <button type="submit" class="yui3-button yui3-input-small">Search</button>
3: <input class="yui3-input-medium" type="text" placeholder="Length of road">
4 </div>
5
6: <div class="yui3-input-append">
7: <input class="yui3-input-medium" type="text" placeholder="Length of road">
8: <button type="submit" class="yui3-button yui3-input-small notice">Sign in</button>
9 </div>
10
11: <div class="yui3-input-append">
12: <input class="yui3-input-medium" type="text" placeholder="Length of road">
13: <button type="submit" class="yui3-button yui3-input-small">Search</button>
14: <button type="submit" class="yui3-button yui3-input-small">Reset</button>
15 </div>
16
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/appended-inputs.handlebars:
1: <div class="yui3-input-prepend">
2: <span class="yui3-addon">@</span>
3: <input class="yui3-input-medium" type="text" placeholder="Username">
4 </div>
5
6: <div class="yui3-input-append">
7: <input class="yui3-input-medium" type="text" placeholder="Length of road">
8: <span class="yui3-addon">miles to go</span>
9 </div>
10
11: <div class="yui3-input-prepend yui3-input-append">
12: <span class="yui3-addon">There are</span>
13: <input class="yui3-input-medium" type="text" placeholder="Length of road">
14: <span class="yui3-addon">miles to go</span>
15 </div>
16
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/checkbox-radio.handlebars:
1: <form class="yui3-form">
2: <label class="yui3-checkbox">
3 <input type="checkbox" value="">
4 Here's option one.
5 </label>
6
7: <label class="yui3-radio">
8 <input type="radio" name="optionsRadios" value="option1" checked>
9 Here's a radio button. You can choose this one..
10 </label>
11
12: <label class="yui3-radio">
13 <input type="radio" name="optionsRadios" value="option2">
14 ..Or this one!
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/default.handlebars:
1: <form class="yui3-form">
2 <legend>A compact inline form</legend>
3
.
9 </label>
10
11: <button type="submit" class="yui3-button notice">Sign in</button>
12 </form>
13
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/disabled.handlebars:
1: <form class="yui3-form">
2 <input type="text" placeholder="Disabled input here..." disabled>
3 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/grouped.handlebars:
1: <form class="yui3-form">
2: <fieldset class="yui3-group">
3: <input type="text" class="yui3-input-1-2" placeholder="Username">
4: <input type="text" class="yui3-input-1-2" placeholder="Password">
5: <input type="text" class="yui3-input-1-2" placeholder="Email">
6 </fieldset>
7
8: <fieldset class="yui3-group">
9: <input type="text" class="yui3-input-1-2" placeholder="Another Group">
10: <input type="text" class="yui3-input-1-2" placeholder="More Stuff">
11 </fieldset>
12
13: <button type="submit" class="yui3-button yui3-input-1-2 notice">Sign in</button>
14 </form>
15
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/input-grid.handlebars:
1: <form class="yui3-form yui3-g">
2: <div class="yui3-u-1-4">
3: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-4">
4 </div>
5: <div class="yui3-u-3-4">
6: <input class="yui3-input-1" type="text" placeholder=".yui3-u-3-4">
7 </div>
8
9: <div class="yui3-u-1-2">
10: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
11 </div>
12: <div class="yui3-u-1-2">
13: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
14 </div>
15
16: <div class="yui3-u-1-8">
17: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-8">
18 </div>
19: <div class="yui3-u-1-8">
20: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-8">
21 </div>
22: <div class="yui3-u-1-4">
23: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-4">
24 </div>
25: <div class="yui3-u-1-2">
26: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-2">
27 </div>
28
29: <div class="yui3-u-1-5">
30: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1-5">
31 </div>
32: <div class="yui3-u-2-5">
33: <input class="yui3-input-1" type="text" placeholder=".yui3-u-2-5">
34 </div>
35: <div class="yui3-u-2-5">
36: <input class="yui3-input-1" type="text" placeholder=".yui3-u-2-5">
37 </div>
38
39: <div class="yui3-u-1">
40: <input class="yui3-input-1" type="text" placeholder=".yui3-u-1">
41 </div>
42 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/input-size.handlebars:
1: <form class="yui3-form">
2: <input class="yui3-input-1" type="text" placeholder=".yui3-input-1"><br>
3: <input class="yui3-input-2-3" type="text" placeholder=".yui3-input-2-3"><br>
4: <input class="yui3-input-1-2" type="text" placeholder=".yui3-input-1-2"><br>
5: <input class="yui3-input-1-3" type="text" placeholder=".yui3-input-1-3"><br>
6: <input class="yui3-input-1-4" type="text" placeholder=".yui3-input-1-4"><br>
7 </form>
8
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/invalid.handlebars:
1: <form class="yui3-form">
2 <input type="email" placeholder="Requires an email" required>
3 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/multi.handlebars:
1: <form class="yui3-form yui3-form-stacked">
2 <fieldset>
3 <legend>Legend</legend>
4
5: <div class="yui3-g-r">
6: <div class="yui3-u-1-3">
7 <label for="{{id 'first-name'}}">First Name</label>
8 <input id="{{id 'first-name'}}" type="text">
9 </div>
10
11: <div class="yui3-u-1-3">
12 <label for="{{id 'last-name'}}">Last Name</label>
13 <input id="{{id 'last-name'}}" type="text">
14 </div>
15
16: <div class="yui3-u-1-3">
17 <label for="{{id 'email'}}">E-Mail</label>
18 <input id="{{id 'email'}}" type="email" required>
19 </div>
20
21: <div class="yui3-u-1-3">
22 <label for="{{id 'city'}}">City</label>
23 <input id="{{id 'city'}}" type="text">
24 </div>
25
26: <div class="yui3-u-1-3">
27 <label for="{{id 'state'}}">State</label>
28: <select id="{{id 'state'}}" class="yui3-input-medium">
29 <option>AL</option>
30 <option>CA</option>
..
34 </div>
35
36: <label class="yui3-checkbox">
37 <input type="checkbox"> I've read the terms and conditions
38 </label>
39
40: <button type="submit" class="yui3-button notice">Submit</button>
41 </fieldset>
42 </form>
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/rounded.handlebars:
1: <form class="yui3-form">
2: <input type="text" class="yui3-input-rounded">
3: <button type="submit" class="yui3-button">Search</button>
4 </form>
5
/Applications/MAMP/htdocs/yuilib-css/views/partials/forms/stacked.handlebars:
1: <form class="yui3-form yui3-form-stacked">
2 <legend>A Stacked Form</legend>
3
.
15 </select>
16
17: <label class="yui3-checkbox">
18 <input type="checkbox"> Remember me
19 </label>
20
21: <button type="submit" class="yui3-button notice">Sign in</button>
22 </form>
23
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/four-col.handlebars:
1: <div class="yui3-g-r">
2: <div class="yui3-u-1-2">
3 <div class="l-box">
4 <h3>Fast</h3>
5 <p>
6: YUI's lightweight core and modular architecture make it scalable, fast, and robust. Built by frontend engineers at Yahoo!, YUI powers the most popular websites in the world.
7 </p>
8 </div>
9 </div>
10
11: <div class="yui3-u-1-2">
12 <div class="l-box">
13 <h3>Complete</h3>
14 <p>
15: YUI's intuitive and well-documented API takes you from basic DOM handling to building performant and maintainable applications on desktop browsers, mobile devices, and servers.
16 </p>
17 </div>
18 </div>
19
20: <div class="yui3-u-1-2">
21 <div class="l-box">
22 <h3>Industrial Strength</h3>
..
27 </div>
28
29: <div class="yui3-u-1-2">
30 <div class="l-box">
31 <h3>Free and Open</h3>
32 <p>
33: YUI is free for all uses and is developed in the open on GitHub. Core team members can always be found in the forums and the #yui IRC channel on Freenode. Pull requests welcome!
34 </p>
35 </div>
36 </div>
37
38: <div class="yui3-u-1 l-centered">
39: <img src="http://vanity-press.com/wp-content/uploads/2011/09/New-York.jpg" class="yui3-u"
40 alt="Image of New York City used for a responsive image example.">
41 </div>
42
43: <div class="yui3-u-2-5">
44 <div class="l-box">
45 <h3>Two-Fifth Column</h3>
..
50 </div>
51
52: <div class="yui3-u-3-5">
53 <div class="l-box">
54 <h3>Three-Fifth Column</h3>
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/intro.handlebars:
1: <div class="yui3-g">
2: <div class="yui3-u-1-3">
3 <!--
4 By default, grid units don"t have any margin/padding.
.
8 </div>
9
10: <div class="yui3-u-1-3">
11 <p>Thirds</p>
12 </div>
13
14: <div class="yui3-u-1-3">
15 <p>Thirds</p>
16 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/grids/mobile-col.handlebars:
1: <div class="yui3-g">
2: <div class="yui3-u-1-3">
3 <div class="l-box">
4 <h3>Thirds</h3>
.
7 </div>
8
9: <div class="yui3-u-1-3">
10 <div class="l-box">
11 <h3>Thirds</h3>
..
14 </div>
15
16: <div class="yui3-u-1-3">
17 <div class="l-box">
18 <h3>Thirds</h3>
/Applications/MAMP/htdocs/yuilib-css/views/partials/header.handlebars:
1: <div class="header yui3-u-1">
2: <h1 class="yui3-u-1">{{title}}</h1>
3
4 {{#if subTitle}}
5: <h2 class="yui3-u">{{subTitle}}</h2>
6 {{/if}}
7 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/legal.handlebars:
1: <div class="legal yui3-g-r">
2: <div class="yui3-u-2-5">
3 <div class="l-box">
4 <p class="legal-license">
5: All code on this site is licensed under the <a href="http://yuilibrary.com/license/">BSD License</a> unless stated otherwise.
6 </p>
7 </div>
8 </div>
9
10: <div class="yui3-u-1-5">
11 <div class="l-box legal-logo">
12: <a href="http://yuilibrary.com/">
13 <img src="/img/logo-footer.png" height="30" width="65"
14: alt="YUI logo">
15 </a>
16 </div>
17 </div>
18
19: <div class="yui3-u-2-5">
20 <div class="l-box">
21: <ul class="legal-links yui3-g">
22: <li class='yui3-u-1-2'>
23 <a href="{{pages.about}}">About This Site</a>
24 </li>
25: <li class='yui3-u-1-2'>
26: <a href="http://yuilibrary.com/security/">Security Contact Info</a>
27 </li>
28 </ul>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menu.handlebars:
1: <div class="yui3-u" id="menu">
2: <div class="yui3-menu yui3-menu-open">
3: <a class="yui3-menu-heading" href="{{pages.home}}">Kimono</a>
4
5: <a href="#menu" id="menuLink" class="yui3-menu-link">
6 <img src="/img/navicon-png2x.png" width="20"
7 alt="Menu toggle">
.
10 <ul>
11 {{#each nav}}
12: <li class="{{#if isActive}}yui3-menu-selected{{/if}}">
13 <a href="{{url}}">{{label}}</a>
14 </li>
15 {{/each}}
16
17: <li class="menu-item-yui">
18: <a href="https://git.corp.yahoo.com/pages/yui/skinbuilder/">Skin Builder</a>
19 </li>
20
21 <li>
22: <a href="http://yuilibrary.com/">YUI Library</a>
23 </li>
24 </ul>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/disabled.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2: <a href="#" class="yui3-menu-heading">Site Title</a>
3
4 <ul>
5: <li class="yui3-menu-selected"><a href="#">Home</a></li>
6 <li><a href="#">Flickr</a></li>
7: <li class="yui3-menu-disabled"><a href="#">Disabled Item</a></li>
8 </ul>
9 </div>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/dropdown.handlebars:
1 <div id="horizontal-menu">
2 <ul id="std-menu-items">
3: <li class="yui3-menu-selected"><a href="#">Flickr</a></li>
4 <li><a href="#">Messenger</a></li>
5 <li><a href="#">Sports</a></li>
.
8 <a href="#">Other</a>
9 <ul>
10: <li class="yui3-menu-heading">More from Yahoo!</li>
11: <li class="yui3-menu-separator"></li>
12 <li><a href="#">Autos</a></li>
13 <li><a href="#">Flickr</a></li>
..
28
29 <script>
30: YUI({
31 gallery : 'gallery-2013.02.07-15-27',
32 fetchCSS: false
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/heading.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2: <a href="#" class="yui3-menu-heading">Site Title</a>
3
4 <ul>
5: <li class="yui3-menu-selected"><a href="#">Home</a></li>
6 <li><a href="#">Flickr</a></li>
7 <li><a href="#">Messenger</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/horizontal.handlebars:
1: <div class="yui3-menu yui3-menu-open yui3-menu-horizontal">
2 <ul>
3 <li><a href="#">Home</a></li>
4: <li class="yui3-menu-selected"><a href="#">Flickr</a></li>
5 <li><a href="#">Messenger</a></li>
6 <li><a href="#">Sports</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/paginator.handlebars:
1: <ul class="yui3-paginator">
2: <li><a class="yui3-button prev" href="#">&#171;</a></li>
3: <li><a class="yui3-button" href="#">1</a></li>
4: <li><a class="yui3-button yui3-button-active" href="#">2</a></li>
5: <li><a class="yui3-button" href="#">3</a></li>
6: <li><a class="yui3-button" href="#">4</a></li>
7: <li><a class="yui3-button" href="#">5</a></li>
8: <li><a class="yui3-button next">&#187;</a></li>
9 </ul>
10
/Applications/MAMP/htdocs/yuilib-css/views/partials/menus/vertical.handlebars:
1: <div class="yui3-menu yui3-menu-open">
2: <a class="yui3-menu-heading">Yahoo! Sites</a>
3
4 <ul>
.
7 <li><a href="#">Sports</a></li>
8 <li><a href="#">Finance</a></li>
9: <li class="yui3-menu-heading">More Sites!</li>
10 <li><a href="#">Games</a></li>
11 <li><a href="#">News</a></li>
/Applications/MAMP/htdocs/yuilib-css/views/partials/styles.handlebars:
1 {{! Common styles used across multiple layouts }}
2
3: {{addCdnCSS yui.version "cssnormalize" prepend=true}}
4: {{addCdnCSS yui.version "cssgrids-responsive"}}
5: {{addCdnCSS yui.version "cssbutton"}}
6
7: {{addCdnCSS yui.gallery "gallerycss-csslist"}}
8
9 {{#cdnCSS}}
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/bordered.handlebars:
1: <table class="yui3-table yui3-table-bordered">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/default.handlebars:
1: <table class="yui3-table">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/horizontal.handlebars:
1: <table class="yui3-table yui3-table-horizontal">
2 <thead>
3 <tr>
/Applications/MAMP/htdocs/yuilib-css/views/partials/tables/striped.handlebars:
1: <table class="yui3-table">
2 <thead>
3 <tr>
.
10
11 <tbody>
12: <tr class="yui3-table-odd">
13 <td>1</td>
14 <td>Honda</td>
..
24 </tr>
25
26: <tr class="yui3-table-odd">
27 <td>3</td>
28 <td>Hyundai</td>
..
38 </tr>
39
40: <tr class="yui3-table-odd">
41 <td>5</td>
42 <td>Nissan</td>
..
52 </tr>
53
54: <tr class="yui3-table-odd">
55 <td>7</td>
56 <td>Honda</td>
461 matches across 47 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment