Browse files

Fix some tipbar formatting issues. Move the tipbar to a template.

  • Loading branch information...
1 parent c93c240 commit 72ff96f5e5045f8df73932430c13d32a95d65da3 @jeresig jeresig committed Mar 23, 2012
Showing with 7 additions and 9 deletions.
  1. +5 −8 css/style.css
  2. +1 −1 js/output.js
  3. +1 −0 js/utils.js
View
13 css/style.css
@@ -51,11 +51,7 @@ body {
#editor-box, #tests-box, #output-box, #solution-box {
overflow: hidden;
border-bottom: none;
- /*
- position: absolute;
- top: 0px;
- left: 0px;
- */
+ position: relative;
}
#play-page .extra-editor {
@@ -727,11 +723,12 @@ div.container-fluid > div.content {
border: 1px solid #D4CCB0;
}
-#output.side .toolbar {
+#play-page #output.side .toolbar {
margin: 0;
top: 360px;
- position: absolute;
- width: 100%;
+ position: relative;
+ width: auto;
+ z-index: 52;
}
#output-text-test {
View
2 js/output.js
@@ -189,7 +189,7 @@ var Output = {
session.setAnnotations( Output.errors );
$("#output").showTip( "Error", Output.errors, function() {
- $( ".tipbar .text" ).append( " (<a href=''>View Error</a>)" );
+ $( ".tipbar.error .text" ).append( " (<a href=''>View Error</a>)" );
});
} else {
View
1 js/utils.js
@@ -107,6 +107,7 @@ jQuery.fn.showTip = function( type, texts, callback ) {
if ( !tipData ) {
tipData = { pos: 0 };
this.data( "tipData", tipData );
+ this.append( $( "#tipbar-tmpl" ).html() );
}
type = type || tipData.cur;

0 comments on commit 72ff96f

Please sign in to comment.