Browse Source

Fixes #637 issue with positioning example

pull/795/head
jlukic 11 years ago
parent
commit
119a4ced6d
2 changed files with 5 additions and 5 deletions
  1. 8
      server/files/javascript/semantic.js
  2. 2
      server/files/stylesheets/semantic.css

8
server/files/javascript/semantic.js

@ -308,7 +308,7 @@ semantic.ready = function() {
; ;
} }
if( $example.find('.ace_editor').size() === 0) {
if( $annotation.find('.ace_editor').size() === 0) {
$code = $('<div/>') $code = $('<div/>')
.data('type', 'html') .data('type', 'html')
.addClass('code') .addClass('code')
@ -460,14 +460,14 @@ semantic.ready = function() {
// add label // add label
if(title) { if(title) {
$('<div>') $('<div>')
.addClass('ui attached top label')
.addClass('ui ignored attached top label')
.html('<span class="title">' + title + '</span>' + '<em>' + (displayType[contentType] || contentType) + '</em>') .html('<span class="title">' + title + '</span>' + '<em>' + (displayType[contentType] || contentType) + '</em>')
.prependTo( $(this).parent() ) .prependTo( $(this).parent() )
; ;
} }
if(label) { if(label) {
$('<div>') $('<div>')
.addClass('ui pointing below label')
.addClass('ui ignored pointing below label')
.html(displayType[contentType] || contentType) .html(displayType[contentType] || contentType)
.insertBefore ( $(this).parent() ) .insertBefore ( $(this).parent() )
; ;
@ -475,7 +475,7 @@ semantic.ready = function() {
// add run code button // add run code button
if(demo) { if(demo) {
$('<a>') $('<a>')
.addClass('ui pointing below black label')
.addClass('ui ignored pointing below black label')
.html('Run Code') .html('Run Code')
.on('click', function() { .on('click', function() {
eval(code); eval(code);

2
server/files/stylesheets/semantic.css

@ -608,7 +608,7 @@ body.guide .main.container > * {
margin: 0em; margin: 0em;
padding: 0.5em !important; padding: 0.5em !important;
} }
#example .position.example .segment {
#example .position.example > .segment {
width: 250px; width: 250px;
height: 250px; height: 250px;
} }

Loading…
Cancel
Save