Skip to content

Commit 94287ab

Browse files
author
Rafael J. Staib
committed
Add nice design to the tabs design
1 parent 1c8cc48 commit 94287ab

File tree

2 files changed

+123
-18
lines changed

2 files changed

+123
-18
lines changed

stylesheets/jquery.steps.css

Lines changed: 121 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
.wizard
1+
/*
2+
Common
3+
*/
4+
5+
.wizard,
6+
.tabcontrol
27
{
38
display: block;
49
width: 600px;
@@ -8,38 +13,52 @@
813
border: 2px solid #efefef;
914
}
1015

11-
12-
13-
/* Common */
14-
.wizard a
16+
.wizard a,
17+
.tabcontrol a
1518
{
1619
outline: 0;
1720
}
1821

1922
.wizard ol,
20-
.wizard ul
23+
.wizard ul,
24+
.tabcontrol ol,
25+
.tabcontrol ul
2126
{
2227
list-style: none !important;
2328
padding: 0;
2429
margin: 0;
2530
}
2631

2732
.wizard ol > li,
28-
.wizard ul > li
33+
.wizard ul > li,
34+
.tabcontrol ol > li,
35+
.tabcontrol ul > li
2936
{
3037
display: block;
3138
padding: 0;
3239
}
3340

34-
35-
3641
/* Accessibility */
37-
.wizard > .steps .current-info
42+
.wizard > .steps .current-info,
43+
.tabcontrol > .steps .current-info
44+
{
45+
position: absolute;
46+
left: -999em;
47+
}
48+
49+
.wizard > .content > .title,
50+
.tabcontrol > .content > .title
3851
{
3952
position: absolute;
4053
left: -999em;
4154
}
4255

56+
57+
58+
/*
59+
Wizard
60+
*/
61+
4362
.wizard > .steps
4463
{
4564
position: relative;
@@ -103,12 +122,6 @@
103122
overflow: hidden;
104123
}
105124

106-
.wizard > .content > .title
107-
{
108-
position: absolute;
109-
left: -999em;
110-
}
111-
112125
.wizard > .content > .body
113126
{
114127
float: left;
@@ -194,4 +207,96 @@
194207

195208
.wizard > .loading .spinner
196209
{
210+
}
211+
212+
213+
214+
/*
215+
Tabcontrol
216+
*/
217+
218+
.tabcontrol > .steps
219+
{
220+
position: relative;
221+
display: block;
222+
width: 600px;
223+
}
224+
225+
.tabcontrol > .steps > ol
226+
{
227+
position: relative;
228+
margin: 6px 0 0 0;
229+
top: 1px;
230+
z-index: 1;
231+
}
232+
233+
.tabcontrol > .steps > ol > li
234+
{
235+
background: #edecec;
236+
border: 1px solid #bbb;
237+
float: left;
238+
margin: 5px -1px 0 0;
239+
}
240+
241+
.tabcontrol > .steps > ol > li:hover
242+
{
243+
background: #fff;
244+
}
245+
246+
.tabcontrol > .steps > ol > li.current
247+
{
248+
background: #fff;
249+
border-bottom: 0 none;
250+
padding-bottom: 1px;
251+
margin-top: 0;
252+
}
253+
254+
.tabcontrol > .steps > ol > li > a
255+
{
256+
display: inline-block;
257+
font: 1em/1em Arial, Verdana, sans-serif;
258+
border: 0 none;
259+
margin: 0;
260+
padding: 10px 30px;
261+
color: #5f5f5f;
262+
}
263+
264+
.tabcontrol > .steps > ol > li > a:hover
265+
{
266+
text-decoration: none;
267+
}
268+
269+
.tabcontrol > .steps > ol > li.current > a
270+
{
271+
padding: 15px 30px 10px 30px;
272+
}
273+
274+
.tabcontrol > .content
275+
{
276+
position: relative;
277+
display: inline-block;
278+
width: 600px;
279+
height: 300px;
280+
overflow: hidden;
281+
border-top: 1px solid #bbb;
282+
padding-top: 20px;
283+
}
284+
285+
.tabcontrol > .content > .body
286+
{
287+
float: left;
288+
position: absolute;
289+
width: 580px;
290+
height: 280px;
291+
padding: 10px;
292+
}
293+
294+
.tabcontrol > .content > .body ul
295+
{
296+
list-style: disc !important;
297+
}
298+
299+
.tabcontrol > .content > .body ul > li
300+
{
301+
display: list-item;
197302
}

tabs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ <h2>A powerful jQuery wizard plugin that supports accessibility and HTML5.</h2>
5555
enableFinishButton: false,
5656
enablePagination: false,
5757
enableAllSteps: true,
58-
titleTemplate: "#title#"
58+
titleTemplate: "#title#",
59+
cssClass: "tabcontrol"
5960
});
6061
});
6162
</script>
6263

6364
<h3>Tabs Example</h3>
64-
<p>Note: Design for the tabs example will be updated soon!</p>
6565
<div id="wizard">
6666
<h4>Keyboard</h4>
6767
<section>

0 commit comments

Comments
 (0)