Skip to content

Commit 13659d4

Browse files
committed
Update demo page
1 parent 744264f commit 13659d4

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ <h2>A jQuery plugin for tabs</h2>
5353
<!-- <h3>About</h3> -->
5454
<section id="body" role="main">
5555
<article>
56-
<h2>...is yet another jQuery plugin for tabs and more...</h2>
57-
<h2>...is compatible with IE7+, Chrome, Firefox, Safari and jQuery 1.8.1, 1.9.1, 1.10.1, 2.0.2.</h2>
58-
<h2>...supports <a class="anchorLink" href="#custom_event">custom events</a>, <a class="anchorLink" href="#rotation">rotation</a> and <a class="anchorLink" href="#animation">animation</a></h2>
56+
<h2>
57+
Tabslet is yet another jQuery plugin for tabs, is compatible with IE7+, Chrome, Firefox, Safari and jQuery 1.8.1, 1.9.1, 1.10.1, 2.0.2. and
58+
supports <a class="anchorLink" href="#custom_event">custom events</a>, <a class="anchorLink" href="#rotation">rotation</a> and <a class="anchorLink" href="#animation">animation</a></h2>
5959
</article>
6060
</section>
6161
<h3>Demonstration</h3>
@@ -234,4 +234,4 @@ <h2>The attribute "data-toggle"</h2>
234234
<!-- JS ends -->
235235

236236
</body>
237-
</html>
237+
</html>

javascripts/vendor/jquery.anchor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jQuery.fn.anchorAnimate = function(settings) {
3030
var elementClick = $(caller).attr("href")
3131

3232
var destination = $(elementClick).offset().top;
33-
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination - 225}, settings.speed, function() {
33+
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination - 128}, settings.speed, function() {
3434
window.location.hash = elementClick
3535
});
3636
return false;

stylesheets/styles.css

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,16 @@ HEADER {
6464
HEADER H1 {
6565
color: inherit;
6666
font-size: 48px;
67-
line-height: 48px;
67+
letter-spacing: 4px;
68+
line-height: 78px;
6869
padding-top: 120px;
6970
text-transform: uppercase;
7071
}
7172

7273
HEADER H2 {
7374
color: inherit;
7475
font-size: 18px;
75-
letter-spacing: 2px;
76+
letter-spacing: 5px;
7677
text-transform: uppercase;
7778
}
7879

@@ -99,14 +100,15 @@ HEADER H2 {
99100
}
100101

101102
SECTION#body {
102-
background: #F17C71;
103+
background: #a0cac0;
103104
}
104105

105106
SECTION#body H2 {
106107
color: white;
107108
font-size: 18px;
108-
font-weight: 100;
109-
line-height: 25px;
109+
font-weight: 300;
110+
letter-spacing: 1px;
111+
line-height: 34px;
110112
}
111113

112114
SECTION {
@@ -122,7 +124,7 @@ SECTION {
122124

123125
ARTICLE {
124126
margin: 0 auto;
125-
padding: 20px 0;
127+
padding: 30px 0 20px;
126128
max-width: 940px;
127129
}
128130

@@ -185,17 +187,17 @@ FOOTER {
185187
}
186188

187189
.tabs LI:hover {
188-
background: #F17C71;
189-
border-bottom: 4px solid #E95855;
190+
background: #a0cac0;
191+
border-bottom: 4px solid #68a697;
190192
}
191193

192194
.tabs LI:hover A {
193195
color: white;
194196
}
195197

196198
.active {
197-
background: #F17C71 !important;
198-
border-bottom: 4px solid #E95855 !important;
199+
background: #a0cac0 !important;
200+
border-bottom: 4px solid #68a697 !important;
199201
}
200202

201203
.active A {
@@ -209,8 +211,9 @@ FOOTER {
209211
display: block;
210212
float: left;
211213
font-size: 14px;
214+
letter-spacing: 2px;
212215
margin-top: 20px;
213-
margin-right: 22px;
216+
margin-right: 26px;
214217
padding: 15px 20px;
215218
text-align: center;
216219
text-transform: uppercase;
@@ -232,12 +235,21 @@ FOOTER {
232235
display: block;
233236
float: left;
234237
font-size: 14px;
235-
font-weight: 500;
238+
font-weight: 300;
239+
letter-spacing: 1px;
236240
line-height: 48px;
237241
margin-top: 20px;
238242
text-decoration: none;
239243
}
240244

241245
.link:hover {
242246
text-decoration: underline;
247+
}
248+
249+
.anchorLink {
250+
border-bottom: 1px dashed white;
251+
}
252+
253+
.anchorLink:hover {
254+
text-decoration: none;
243255
}

0 commit comments

Comments
 (0)