Browse Source

Fixes definitions appearing improperly on some pages

pull/55/head
jlukic 11 years ago
parent
commit
9ce03bc30d
3 changed files with 8 additions and 5 deletions
  1. 2
      node/src/documents/elements/header.html
  2. 11
      node/src/files/javascript/semantic.js
  3. BIN
      node/src/files/release/semantic.zip

2
node/src/documents/elements/header.html

@ -56,7 +56,7 @@ type : 'UI Element'
<p>A header can be formatted to emphasize an icon</p>
<div class="ui icon header">
<i class="icon sketchy question circle"></i>Questions
<div class="sub header">Have any questions? Contact Us
<div class="sub header">Have any questions? Contact Us</div>
</div>
</div>

11
node/src/files/javascript/semantic.js

@ -184,21 +184,24 @@ semantic.ready = function() {
var
$button = $(this),
$body = $('body'),
$example = $('.example'),
$headers = $('.example .ui.header:first-of-type').add('.example p:first-of-type')
$example = $('.example')
;
$body.toggleClass('overview');
$button.toggleClass('active');
if($body.hasClass('overview')) {
$developer.addClass('disabled').popup('destroy');
$designer.addClass('disabled').popup('destroy');
$example.children().not($headers).hide();
$example.each(function() {
$(this).children().not('.ui.header:eq(0), .example p:eq(0), .annotation').hide();
});
$example.filter('.another').hide();
}
else {
$developer.removeClass('disabled').popup();
$designer.removeClass('disabled').popup();
$example.children().not($headers).show();
$example.each(function() {
$(this).children().not('.ui.header:eq(0), .example p:eq(0), .annotation').show();
});
$example.filter('.another').show();
}
},

BIN
node/src/files/release/semantic.zip

Loading…
Cancel
Save