Skip to content

Commit

Permalink
closes #8 - Rearranged the annotation panel (tags/bounds fields) so i…
Browse files Browse the repository at this point in the history
…t is smaller. Annotation panel is only active when a box is selected.

- used bootstrap for alignment of bounds fields
  • Loading branch information
Phil committed Dec 9, 2013
1 parent 5973ce4 commit c10f125
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 196 deletions.
63 changes: 60 additions & 3 deletions src/app/listen/_listen.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,80 @@
fieldset.tags-fs {

width: 55%;
float: left;
}
fieldset.bounds-fs {
width: 40%;
float: right;
}

fieldset.options-fs {
width: 45%;
float: left;
}
fieldset.bounds-fs label {
width: 220px;
}
fieldset.bounds-fs input {
width: 100px;
}

label.reference {
margin:10px 10px 0px 10px;
}


.position span {
margin-left: 10px;
margin-right: 10px;
}

#listenEditContainer {

> div {
clear: both;
width: 100%;
margin-top: 10px;
}


}

#listenEditContainer.disabled {

& * {
color: rgba(0,0,0,0.2);

}

}


#chunkTimeStamps {
width: 100%;
text-align: center;
position:relative;

& .position {
display: inline-block;
float: left;
}

& .left {
float: left;
position:absolute;
left: 0px;
top: 0px;
}

& .right {
float: right;
position:absolute;
right: 0px;
top: 0px;
}

& .btn-toolbar {
margin-left:38%;

}

}
Expand Down Expand Up @@ -103,4 +158,6 @@
&:before {
@extend .glyphicon-remove:before;
}
}
}


2 changes: 1 addition & 1 deletion src/app/listen/listen.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ angular.module('bawApp.listen', ['decipher.tags', 'ui.bootstrap.typeahead'])
};

$scope.singleEditDisabled = function () {
return !$scope.model.selectedAudioEvent;
return (typeof($scope.model.selectedAudioEvent.id) === 'undefined');
};


Expand Down
Loading

0 comments on commit c10f125

Please sign in to comment.