Skip to content

Commit de31d5b

Browse files
author
Todd Parker
committed
Added mockup of the link to view demo in a new window and the view source spindown that need to be added above and below the description under the iframe. Demo css updated with styles needed and made Trebuchet MS the font on all rules.
1 parent 5bfbbf7 commit de31d5b

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

demos/demos.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ table {
1010
-------------------------------- */
1111

1212
body {
13-
font-family: "Arial", "Helvetica", "Verdana", "sans-serif";
13+
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
1414
}
1515

1616
/* Layout
@@ -31,7 +31,7 @@ body {
3131
.layout-grid td.normal {
3232
border-left: 1px solid #ccc;
3333
padding: 20px 24px;
34-
font-family: "Lucida Grande", "Arial", "Helvetica", "Verdana", "sans-serif";
34+
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
3535
}
3636

3737
.layout-grid td.demos {
@@ -83,7 +83,7 @@ body {
8383
margin: 0;
8484
padding: 0;
8585
letter-spacing: 0.75pt;
86-
font: bold 1.2em 'Arial', 'Helvetica', sans-serif;
86+
font: bold 1.2em "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
8787
color: #e87b10;
8888
}
8989

@@ -98,7 +98,7 @@ body {
9898
.demos-nav li a {
9999
border-bottom: 1px solid #F4F4F4;
100100
display:block;
101-
padding: 3px 3px 3px 12px;
101+
padding: 3px 3px 3px 3px;
102102
font-size: 95%;
103103
text-decoration: none;
104104
color: #000;
@@ -134,10 +134,10 @@ eventually we should convert the font sizes to ems -- using px for now to minimi
134134

135135
#demo-config-menu ul { list-style: none; padding: 0; margin: 0; }
136136

137-
#demo-config-menu li { font-size:11px; padding:0 0 0 10px; margin:3px 0; zoom: 1; }
137+
#demo-config-menu li { font-size:12px; padding:0 0 0 10px; margin:3px 0; zoom: 1; }
138138

139139
#demo-config-menu li a:link,
140-
#demo-config-menu li a:visited { display:block; padding:2px 8px 3px; border-bottom:1px dotted #b3b3b3; }
140+
#demo-config-menu li a:visited { display:block; padding:3px 8px 2px; border-bottom:1px dotted #b3b3b3; }
141141
#demo-config-menu li a:hover,
142142
#demo-config-menu li a:active { background-color:#f6f6f6; }
143143

@@ -191,3 +191,6 @@ div.demo-description {
191191
.left-nav .demos-nav {
192192
padding-right: 10px;
193193
}
194+
195+
#demo-link { font-size:11px; margin:6px 0 20px 0; }
196+
#demo-link a span.ui-icon { float:left; margin-right:3px; }

demos/index.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
function updateDemoNotes() {
161161
var notes = $('#demo-frame .demo-description');
162162
if ($('#demo-notes').length == 0) {
163-
$('<div id="demo-notes"></div>').insertAfter('#demo-config');
163+
$('<div id="demo-notes"></div>sdfdffd').insertAfter('#demo-config');
164164
}
165165
$('#demo-notes').hide().empty().html(notes.html());
166166
$('#demo-notes').fadeIn();
@@ -209,6 +209,21 @@ <h3>Instructions</h3>
209209
<p>
210210
These demos showcase some common uses of each jQuery UI plugin. Simply copy and paste code from the demos to get started. Have fun playing with them.
211211
</p>
212+
213+
214+
<iframe></iframe>
215+
216+
<div id="demo-link">
217+
<a href="foo" class="demoWindowLink"><span class="ui-icon ui-icon-newwin"></span>Open demo in a new window</a>
218+
</div>
219+
220+
<p>The description for the demo goes here, below the link to open the demo in a new window. The description for the demo goes here, below the link to open the demo in a new window. The description for the demo goes here, below the link to open the demo in a new window.</p>
221+
222+
<div id="demo-source">
223+
<a href="#" class="source-closed">View source</a><!-- change the class to "source-open" when code is visible -->
224+
</div>
225+
226+
212227
<?php } ?>
213228
</div>
214229

0 commit comments

Comments
 (0)