# HG changeset patch # User durandn # Date 1443090305 -7200 # Node ID b3fe63cdb3fd952203f24437261773994e2e4ea3 # Parent f7cc6a0670fd7f19e1419d72ae2bcf54823de0e6 Incorportate changes to remie: edition screen headers and button for tag addition for CurrentSegmentInfobox + corresponding style, and fix try for Jquery-ui/lab.js bug diff -r f7cc6a0670fd -r b3fe63cdb3fd server/src/remie/static/remie/css/style.css --- a/server/src/remie/static/remie/css/style.css Tue Sep 22 17:07:01 2015 +0200 +++ b/server/src/remie/static/remie/css/style.css Thu Sep 24 12:25:05 2015 +0200 @@ -132,15 +132,6 @@ visibility: hidden; } -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-SubmitButton { - background-color: #a2cf18 !important; -} - -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CancelButton { - background-color: #cd000b !important; - left: 95px; -} - .Ldt-CurrentSegmentInfobox-Tags-Ul{ padding:0; } @@ -163,6 +154,46 @@ display: inline-block; } +/* -------- Override buttons style -------- */ + +.Ldt-LatestAnnotation-box .Ldt-LatestAnnotation-CopyEditButton, +.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowAnnotationsListButton, +.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowCreateAnnotationButton, +.Ldt-CreateAnnotation-Screen.Ldt-CreateAnnotation-Main input, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CancelButton, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-SubmitButton, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-EditButton, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CreateTagInput-Add { + background: inherit; + border: none; + background-color: #848484; + font-family: Open-Sans-Light; + font-size: 14px; + border-radius: 0 0 3px 0; +} + +.Ldt-LatestAnnotation-box .Ldt-LatestAnnotation-CopyEditButton:hover, +.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowAnnotationsListButton:hover, +.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowCreateAnnotationButton:hover, +.Ldt-CreateAnnotation-Screen.Ldt-CreateAnnotation-Main input:hover, +.Ldt-AnnotationsController-Button.selected, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-EditButton:hover, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CancelButton:hover, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-SubmitButton:hover, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CreateTagInput-Add:hover { + background-color: #b7b7b7; +} + +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-SubmitButton, +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CreateTagInput-Add { + background-color: #a2cf18; +} + +.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CancelButton { + background-color: #cd000b; + left: 95px; +} + /* -------- Override LatestAnnotation style -------- */ #LatestAnnotation_container .Ldt-LatestAnnotation-Box { @@ -187,30 +218,6 @@ .Ldt-LatestAnnotation-Element.Ldt-LatestAnnotation-Content{ font-size: 16px; } - -.Ldt-LatestAnnotation-box .Ldt-LatestAnnotation-CopyEditButton, -.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowAnnotationsListButton, -.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowCreateAnnotationButton, -.Ldt-CreateAnnotation-Screen.Ldt-CreateAnnotation-Main input, -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-CancelButton, -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-SubmitButton, -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-EditButton { - background: inherit; - border: none; - background-color: #848484; - font-family: Open-Sans-Light; - font-size: 14px; - border-radius: 0 0 3px 0; -} - -.Ldt-LatestAnnotation-box .Ldt-LatestAnnotation-CopyEditButton:hover, -.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowAnnotationsListButton:hover, -.Ldt-AnnotationsController-Button.Ldt-AnnotationsController-ShowCreateAnnotationButton:hover, -.Ldt-CreateAnnotation-Screen.Ldt-CreateAnnotation-Main input:hover, -.Ldt-AnnotationsController-Button.selected, -.Ldt-CurrentSegmentInfobox .Ldt-CurrentSegmentInfobox-EditButton:hover { - background-color: #b7b7b7; -} .Ldt-LatestAnnotation-box .Ldt-LatestAnnotation-CopyEditButton{ height: 22px; diff -r f7cc6a0670fd -r b3fe63cdb3fd server/src/remie/static/remie/css/teacher.css --- a/server/src/remie/static/remie/css/teacher.css Tue Sep 22 17:07:01 2015 +0200 +++ b/server/src/remie/static/remie/css/teacher.css Thu Sep 24 12:25:05 2015 +0200 @@ -4,8 +4,8 @@ } .Ldt-CurrentSegmentInfobox-Tags-Li .Ldt-CurrentSegmentInfobox-Tags-Li-Input{ - border: none; - background: none; + border: 2px solid #848484; + background-color: #ffffff; font-size: 17px; font-weight: lighter; } diff -r f7cc6a0670fd -r b3fe63cdb3fd server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.css --- a/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.css Tue Sep 22 17:07:01 2015 +0200 +++ b/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.css Thu Sep 24 12:25:05 2015 +0200 @@ -134,7 +134,7 @@ line-height: 18px; } -.Ldt-CurrentSegmentInfobox-EditButton:hover{ +.Ldt-CurrentSegmentInfobox-EditButton:hover, .Ldt-CurrentSegmentInfobox-CreateTagInput-Add:hover{ background-color: #e15581; border-color: #222222 #e87d9f #f0adc3 #68273c; } @@ -154,8 +154,37 @@ color: #e16e93 } +.Ldt-CurrentSegmentInfobox-FieldsHeader{ + margin: 5px; +} + +.Ldt-CurrentSegmentInfobox-TagsHeader{ + margin-top: 10px; + margin-left: 5px; +} + .Ldt-CurrentSegmentInfobox-CreateTagInput{ border: 2px solid #848484; margin: 5px 0; padding: 4px; +} + +.Ldt-CurrentSegmentInfobox-CreateTagInput-Add{ + margin: 5px; + padding: 4px; + display: inline-block; + background-color: #d93c71; + color: #ffffff; + cursor: pointer; + height: 14px; + width: 14px; + font-size: 14px; + font-style: bold; + border: 1px solid; + border-color: #eca3bc #631e34 #36101c #e16e93; + cursor: pointer; + padding: 4px; + text-align: center; + vertical-align: middle; + line-height: 14px; } \ No newline at end of file diff -r f7cc6a0670fd -r b3fe63cdb3fd server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js --- a/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js Tue Sep 22 17:07:01 2015 +0200 +++ b/server/src/remie/static/remie/metadataplayer/CurrentSegmentInfobox.js Thu Sep 24 12:25:05 2015 +0200 @@ -15,6 +15,7 @@ api_method: "PUT", api_endpoint_template: "", new_tag_button: true, + show_headers: false, }; IriSP.Widgets.CurrentSegmentInfobox.prototype.template = @@ -39,16 +40,19 @@ IriSP.Widgets.CurrentSegmentInfobox.prototype.editTemplate = '