r1872 - trunk/tests/static/accordion

r1872 - trunk/tests/static/accordion


Author: scottjehl
Date: Thu Jan 29 12:04:27 2009
New Revision: 1872
Added:
trunk/tests/static/accordion/dl.html
trunk/tests/static/accordion/ul.html
Removed:
trunk/tests/static/accordion/accordion.html
trunk/tests/static/accordion/default _nowrappers.html
Modified:
trunk/tests/static/accordion/default.html
Log:
markup updates to support various container element types. accordion-groups
are no longer needed. Also content wraps are gone.
CSS for this is in the head - as it will break the rest of trunk until
these markup changes are implemented
Modified: trunk/tests/static/accordion/default.html
==============================================================================
--- trunk/tests/static/accordion/default.html    (original)
+++ trunk/tests/static/accordion/default.html    Thu Jan 29 12:04:27 2009
@@ -7,49 +7,42 @@
    <link rel="stylesheet" href="../../../themes/base/ui.theme.css"
type="text/css" title="ui-theme" />
    <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
    <script type="text/javascript" src="../static.js"></script>
+    <style type="text/css">
+     /* Accordion
+    ----------------------------------*/
+    .ui-accordion .ui-accordion-header { cursor: pointer; position: relative;
margin-top: 1px; zoom: 1; }
+    .ui-accordion li {display: inline;}
+    .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+    .ui-accordion .ui-accordion-header a { display: block; font-size: 1em;
padding: .5em .5em .5em 2.2em; }
+    .ui-accordion .ui-accordion-header .ui-icon { position: absolute;
left: .5em; top: 50%; margin-top: -8px; }
+    .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0;
margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px;
overflow: auto; display: none; }
+    .ui-accordion .ui-accordion-content-active { display: block; }
+    </style>
</head>
<body>
<div class="ui-accordion ui-widget ui-helper-reset">
-    <div class="ui-accordion-group ui-accordion-selected">
-        <h3 class="ui-accordion-header ui-helper-reset ui-state-active
ui-corner-top" tabindex="0">
+        <h3 class="ui-accordion-header ui-accordion-header-active
ui-helper-reset ui-state-active ui-corner-top" tabindex="0">
            <span class="ui-icon ui-icon-triangle-1-s"></span>
            <a href="#">Accordion Header 1</a>
        </h3>
-        <div>
-            <div class="ui-accordion-content-wrap ui-helper-reset ui-widget-content
ui-corner-bottom">
-                <div class="ui-accordion-content">
-                    Accordion Content 1
-                </div>
-            </div>
+        <div class="ui-accordion-content ui-accordion-content-active
ui-helper-reset ui-widget-content ui-corner-bottom">
+                Accordion Content 1
        </div>
-    </div>
-    <div class="ui-accordion-group">
        <h3 class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
            <span class="ui-icon ui-icon-triangle-1-e"></span>
            <a href="#">Accordion Header 2</a>
        </h3>
-        <div>
-            <div class="ui-accordion-content-wrap ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px; display: none;">
-                <div class="ui-accordion-content">
-                    Accordion Content 2
-                </div>
-            </div>
+        <div class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px; display: none;">
+                Accordion Content 2
        </div>
-    </div>
-    <div class="ui-accordion-group">
        <h3 class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
            <span class="ui-icon ui-icon-triangle-1-e"></span>
            <a href="#">Accordion Header 3</a>
        </h3>
-        <div>
-            <div class="ui-accordion-content-wrap ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px; display: none;">
-                <div class="ui-accordion-content">
-                    Accordion Content 2
-                </div>
-            </div>
+        <div class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px; display: none;">
+                Accordion Content 2
        </div>
-    </div>
</div>
</body>
Added: trunk/tests/static/accordion/dl.html
==============================================================================
--- (empty file)
+++ trunk/tests/static/accordion/dl.html    Thu Jan 29 12:04:27 2009
@@ -0,0 +1,49 @@
+<!doctype html>
+<html>
+<head>
+    <title>Accordion Static Test : DL</title>
+    <link rel="stylesheet" href="../static.css" type="text/css" />
+    <link rel="stylesheet" href="../../../themes/base/ui.base.css"
type="text/css" />
+    <link rel="stylesheet" href="../../../themes/base/ui.theme.css"
type="text/css" title="ui-theme" />
+    <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../static.js"></script>
+    <style type="text/css">
+     /* Accordion
+    ----------------------------------*/
+    .ui-accordion .ui-accordion-header { cursor: pointer; position: relative;
margin-top: 1px; zoom: 1; }
+    .ui-accordion li {display: inline;}
+    .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+    .ui-accordion .ui-accordion-header a { display: block; font-size: 1em;
padding: .5em .5em .5em 2.2em; }
+    .ui-accordion .ui-accordion-header .ui-icon { position: absolute;
left: .5em; top: 50%; margin-top: -8px; }
+    .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0;
margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px;
overflow: auto; display: none; }
+    .ui-accordion .ui-accordion-content-active { display: block; }
+    </style>
+</head>
+<body>
+
+<dl class="ui-accordion ui-widget ui-helper-reset">
+        <dt class="ui-accordion-header ui-accordion-header-active
ui-helper-reset ui-state-active ui-corner-top" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-s"></span>
+            <a href="#">Accordion Header 1</a>
+        </dt>
+        <dd class="ui-accordion-content ui-accordion-content-active
ui-helper-reset ui-widget-content ui-corner-bottom">
+                Accordion Content 1
+        </dd>
+        <dt class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-e"></span>
+            <a href="#">Accordion Header 2</a>
+        </dt>
+        <dd class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px;">
+                Accordion Content 2
+        </dd>
+        <dt class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-e"></span>
+            <a href="#">Accordion Header 3</a>
+        </dt>
+        <dd class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px;">
+                Accordion Content 2
+        </dd>
+</dl>
+
+</body>
+</html>
Added: trunk/tests/static/accordion/ul.html
==============================================================================
--- (empty file)
+++ trunk/tests/static/accordion/ul.html    Thu Jan 29 12:04:27 2009
@@ -0,0 +1,55 @@
+<!doctype html>
+<html>
+<head>
+    <title>Accordion Static Test : UL</title>
+    <link rel="stylesheet" href="../static.css" type="text/css" />
+    <link rel="stylesheet" href="../../../themes/base/ui.base.css"
type="text/css" />
+    <link rel="stylesheet" href="../../../themes/base/ui.theme.css"
type="text/css" title="ui-theme" />
+    <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+    <script type="text/javascript" src="../static.js"></script>
+    <style type="text/css">
+     /* Accordion
+    ----------------------------------*/
+    .ui-accordion .ui-accordion-header { cursor: pointer; position: relative;
margin-top: 1px; zoom: 1; }
+    .ui-accordion li {display: inline;}
+    .ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+    .ui-accordion .ui-accordion-header a { display: block; font-size: 1em;
padding: .5em .5em .5em 2.2em; }
+    .ui-accordion .ui-accordion-header .ui-icon { position: absolute;
left: .5em; top: 50%; margin-top: -8px; }
+    .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0;
margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px;
overflow: auto; display: none; }
+    .ui-accordion .ui-accordion-content-active { display: block; }
+    </style>
+</head>
+<body>
+
+<ul class="ui-accordion ui-widget ui-helper-reset">
+    <li>
+        <h2 class="ui-accordion-header ui-accordion-header-active
ui-helper-reset ui-state-active ui-corner-top" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-s"></span>
+            <a href="#">Accordion Header 1</a>
+        </h2>
+        <div class="ui-accordion-content ui-accordion-content-active
ui-helper-reset ui-widget-content ui-corner-bottom">
+                Accordion Content 1
+        </div>
+    </li>
+    <li>
+        <h2 class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-e"></span>
+            <a href="#">Accordion Header 2</a>
+        </h2>
+        <div class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px;">
+                Accordion Content 2
+        </div>
+    </li>
+    <li>
+        <h2 class="ui-accordion-header ui-helper-reset ui-state-default
ui-corner-all" tabindex="0">
+            <span class="ui-icon ui-icon-triangle-1-e"></span>
+            <a href="#">Accordion Header 3</a>
+        </h2>
+        <div class="ui-accordion-content ui-helper-reset ui-widget-content
ui-corner-bottom" style="height: 95px;">
+                Accordion Content 2
+        </div>
+    </li>    
+</ul>
+
+</body>
+</html>