From e9bb4f54810e1cf09a96bce67b156bec793f6ec6 Mon Sep 17 00:00:00 2001 From: Ca-Phun Ung Date: Tue, 30 Dec 2008 09:53:45 +0000 Subject: [PATCH] updated accordion and datepicker markup. changed demos/index.html so it looks for .demos-nav rather than #container within individual widget demo indexes. --- demos/accordion/index.html | 2 +- demos/datepicker/index.html | 18 ++++++++++-------- demos/demos.css | 17 +++++++++++------ demos/index.html | 2 +- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/demos/accordion/index.html b/demos/accordion/index.html index 58f54d810..f43a4f34d 100644 --- a/demos/accordion/index.html +++ b/demos/accordion/index.html @@ -5,7 +5,7 @@ -
+

Accordion

  • Basic accordion (default)
  • diff --git a/demos/datepicker/index.html b/demos/datepicker/index.html index 0da4d4ba5..14e8a1891 100644 --- a/demos/datepicker/index.html +++ b/demos/datepicker/index.html @@ -6,14 +6,16 @@ -
    -
    Datepicker
    -
    Default datepicker
    -
    Month & year menus
    -
    Today & Done button bar
    -
    3 month view
    -
    Inline datepicker
    -
    + diff --git a/demos/demos.css b/demos/demos.css index a5f1ed61b..923c91b4f 100644 --- a/demos/demos.css +++ b/demos/demos.css @@ -64,7 +64,7 @@ body { /* Demos */ -.demos-nav, .demos-nav dt, .demos-nav dd { +.demos-nav, .demos-nav dt, .demos-nav dd, .demos-nav ul, .demos-nav li { margin: 0; padding: 0 } @@ -75,7 +75,8 @@ body { font-size: 1.3em; } -.demos-nav dt { +.demos-nav dt, +.demos-nav h4 { margin: 0; padding: 0; letter-spacing: 0.75pt; @@ -83,13 +84,15 @@ body { color: #e87b10; } -.demos-nav dt { +.demos-nav dt, +.demos-nav h4 { margin-top: 1.5em; margin-bottom: 0.7em; line-height: 1.2em; } -.demos-nav dd a { +.demos-nav dd a, +.demos-nav li a { border-bottom: 1px solid #F4F4F4; display:block; padding: 3px 3px 3px 12px; @@ -100,7 +103,9 @@ body { } .demos-nav dd a:hover, -.demos-nav dd a:focus { +.demos-nav dd a:focus, +.demos-nav li a:hover, +.demos-nav li a:focus { background: #EAEAEA; border-color: #BBBBBB; } @@ -120,7 +125,7 @@ eventually we should convert the font sizes to ems -- using px for now to minimi #demo-frame { float:left; width:520px; height:300px; border:1px solid #ddd; } -#demo-config-menu { float:right; width:150px; } +#demo-config-menu { float:right; width:200px; } #demo-config-menu h4 { font-size:13px; color:#666; font-weight:normal; border:0; padding-left:18px; } #demo-config-menu ul { list-style: none; padding: 0; margin: 0; } diff --git a/demos/index.html b/demos/index.html index e26cc48c3..8a0626910 100644 --- a/demos/index.html +++ b/demos/index.html @@ -30,7 +30,7 @@ .find('#demo-config') .append('
    ') .find('#demo-config-menu') - .load(this.href + ' #container', function(){ + .load(this.href + ' .demos-nav', function(){ $('#demo-config-menu a').each(function(){ this.setAttribute('href', section + '/' + this.getAttribute('href')); $(this).attr('target', 'demo-frame'); -- 2.39.5