diff --git a/src/app/annotationLibrary/_annotationItem.scss b/src/app/annotationLibrary/_annotationItem.scss deleted file mode 100644 index ac1eb6df..00000000 --- a/src/app/annotationLibrary/_annotationItem.scss +++ /dev/null @@ -1,48 +0,0 @@ -$loadGifPath: $IMAGE_ASSET_PATH + 'assets/img/load.gif'; - -.annoSingleItem { - padding: 10px 0 0 40px; - position: relative; - margin: 0 auto 0 auto; - - & .annoSingleSpectrogram { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - -moz-user-select: none; - -o-user-select: none; - display: inline-block; - position: relative; - line-height: 0; - padding: 0 !important; - margin: 0; - border: 1px dotted #8c8c8c; - - & img { - - } - - & .annoSingleGrid { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background: url(#{$loadGifPath}) center center no-repeat; - } - - & .annoSingleBounds { - position: absolute; - border: 1px solid red; - } - } - - & audio { - margin-top: 30px; - } -} - -.annoSingleItemInfo { - margin: 0 auto 0 auto; -} diff --git a/src/app/annotationLibrary/_annotationLibrary.scss b/src/app/annotationLibrary/_annotationLibrary.scss index 1ed68418..43b45ccb 100644 --- a/src/app/annotationLibrary/_annotationLibrary.scss +++ b/src/app/annotationLibrary/_annotationLibrary.scss @@ -1,53 +1,22 @@ $loadGifPath: $IMAGE_ASSET_PATH + 'assets/img/load.gif'; -.annoLibPaging { +/* Library list */ +.annotation-paging { margin: 0 !important; } -.annoLib { +.annotation-library { margin-top: 30px; - & .annoLibItem { + & .library-item { padding: 10px 10px 0 40px; margin: 5px; position: relative; max-height:500px; height:385px; + min-width: 180px; - & .annoLibSpectrogram { - user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - -moz-user-select: none; - -o-user-select: none; - display: inline-block; - position: relative; - line-height: 0; - padding: 0 !important; - margin: 0; - border: 1px dotted #8c8c8c; - - & img { - - } - - & .annoLibGrid { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 1; - background: url(#{$loadGifPath}) center center no-repeat; - } - - & .annoLibBounds { - position: absolute; - border: 1px solid red; - } - } - - & .annoLibInfo { + & .library-item-info { display: block; clear: both; margin-top: 20px; @@ -61,7 +30,7 @@ $loadGifPath: $IMAGE_ASSET_PATH + 'assets/img/load.gif'; /*@include vendor-prefix(transform, scale(0.8));*/ } - & .annoLibInfoItem { + & .info-entry { font-size: small; margin: 5px 10px; @@ -70,4 +39,52 @@ $loadGifPath: $IMAGE_ASSET_PATH + 'assets/img/load.gif'; } } +/* Library single item */ +.library-single { + padding: 10px 0 0 40px; + position: relative; + margin: 0 auto 0 auto; + + & audio { + margin-top: 30px; + } +} + +.library-single-info { + margin: 0 auto 0 auto; +} + +/* Shared spectrogram and grid */ +.library-spectrogram { + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -moz-user-select: none; + -o-user-select: none; + display: inline-block; + position: relative; + line-height: 0; + padding: 0 !important; + margin: 0; + border: 1px dotted #8c8c8c; + + & img { + + } + + & .library-spectrogram-grid { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 1; + background: url(#{$loadGifPath}) center center no-repeat; + } + + & .library-spectrogram-bounds { + position: absolute; + border: 1px solid red; + } +} \ No newline at end of file diff --git a/src/app/annotationLibrary/annotationItem.tpl.html b/src/app/annotationLibrary/annotationItem.tpl.html index 5fddff10..fcaf18f3 100644 --- a/src/app/annotationLibrary/annotationItem.tpl.html +++ b/src/app/annotationLibrary/annotationItem.tpl.html @@ -3,14 +3,14 @@

Annotation {{model.audioEventId}}

-
-
+
- -
+