Updated the YUI Examples.
This commit is contained in:
parent
da4275bdec
commit
1cbce96bc3
19
examples/yui_default/index.html.haml
Normal file
19
examples/yui_default/index.html.haml
Normal file
@ -0,0 +1,19 @@
|
||||
!!! Transitional
|
||||
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
||||
%head
|
||||
%title YUI Typography Demo
|
||||
%link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
|
||||
%body
|
||||
#doc4.yui-t2
|
||||
.yui-b
|
||||
%h3 YUI Examples
|
||||
%ul
|
||||
%li
|
||||
%a{:href=>"templates.html"} Template Presets
|
||||
%li
|
||||
%a{:href=>"typography.html"} Typography
|
||||
#yui-main
|
||||
.yui-b
|
||||
%h1 YUI Examples
|
||||
%p
|
||||
Please select an example.
|
54
examples/yui_default/templates.html.haml
Normal file
54
examples/yui_default/templates.html.haml
Normal file
@ -0,0 +1,54 @@
|
||||
!!! Transitional
|
||||
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
||||
%head
|
||||
%title YUI Typography Demo
|
||||
%link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
|
||||
:javascript
|
||||
function changeTemplate() {
|
||||
var templateClass = document.getElementById("current-template").value;
|
||||
document.getElementById("doc4").className = templateClass;
|
||||
}
|
||||
%style{:type => "text/css"}
|
||||
:sass
|
||||
.yui-b
|
||||
border: 1px dotted #ccc
|
||||
%body
|
||||
#doc4.yui-t2
|
||||
#hd
|
||||
%h1 Yahoo Template Presets Example
|
||||
#bd
|
||||
.yui-b
|
||||
%h3 YUI Examples
|
||||
%ul
|
||||
%li
|
||||
%a{:href=>"templates.html"} Template Presets
|
||||
%li
|
||||
%a{:href=>"typography.html"} Typography
|
||||
#yui-main
|
||||
.yui-b
|
||||
%h2 Main Content
|
||||
%label{:for => "current-template"} Select Template Preset
|
||||
%select{:id=>"current-template", :onchange => "changeTemplate()"}
|
||||
%option{:value => "yui-t1"}= ".yui-t1"
|
||||
%option{:value => "yui-t2", :selected => "selected"}= ".yui-t2"
|
||||
%option{:value => "yui-t3"}= ".yui-t3"
|
||||
%option{:value => "yui-t4"}= ".yui-t4"
|
||||
%option{:value => "yui-t5"}= ".yui-t5"
|
||||
%option{:value => "yui-t6"}= ".yui-t6"
|
||||
%hr
|
||||
%p
|
||||
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
.yui-g
|
||||
.yui-u.first
|
||||
%h3 50/50 Left Side
|
||||
%p
|
||||
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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
.yui-u
|
||||
%h3 50/50 Right Side
|
||||
%p
|
||||
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.
|
||||
%p
|
||||
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
#ft
|
||||
Copyright © 2008. All Rights Reserved.
|
||||
|
@ -1,6 +1,14 @@
|
||||
%h1 Typography Demo
|
||||
%h2 Helping you read your web pages.
|
||||
!!! Transitional
|
||||
%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
|
||||
%head
|
||||
%title YUI Typography Demo
|
||||
%link{:rel=>"stylesheet", :href=>"stylesheets/screen.css", :type=>"text/css", :media=>"screen, projection"}
|
||||
%body
|
||||
#doc4.yui-t2
|
||||
#yui-main
|
||||
.yui-b
|
||||
%h1 Typography Demo
|
||||
%h2 This is a Sub Title.
|
||||
|
||||
%p
|
||||
Lorem ipsum dolor sit amet,
|
||||
@ -115,3 +123,10 @@
|
||||
%dd Definition 2: 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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
%dt Term 2
|
||||
%dd Another Definition
|
||||
.yui-b
|
||||
%h3 YUI Examples
|
||||
%ul
|
||||
%li
|
||||
%a{:href=>"templates.html"} Template Presets
|
||||
%li
|
||||
%a{:href=>"typography.html"} Typography
|
||||
|
Loading…
Reference in New Issue
Block a user