diff --git a/ui (gen4)/css/layout.less b/ui (gen4)/css/layout.less index ac8cd4d1..62c0de01 100755 --- a/ui (gen4)/css/layout.less +++ b/ui (gen4)/css/layout.less @@ -408,6 +408,8 @@ button:hover { width: 80px; height: 100%; + opacity: 0.4; + font-size: larger; background: rgba(0, 0, 0, 0.5); @@ -416,6 +418,10 @@ button:hover { z-index: 900; } +.side-buttons-left:hover, +.side-buttons-right:hover { + opacity: 0.4; +} .side-buttons-left { left: 0px; } @@ -1039,6 +1045,7 @@ stretching in width... */ /* XXX these are still experimental... */ +// XXX these need to be updated... .mark.brace-opening { width: @image-tile-size / 15; height: @image-tile-size + 10; @@ -1064,29 +1071,41 @@ stretching in width... */ margin-left: -15px; } + .mark.partition { - width: 0px; - height: @image-tile-size + 20; + width: @image-border; + height: @image-tile-size; overflow: visible; - border-right: solid 5px yellow; - - margin-top: -20px; - margin-bottom: -5px; margin-left: 0px; } +.mark.partition:before { + display: block; + position: absolute; + content: ""; + + width: @image-border; + height: 102%; + + background: yellow; + + margin-top: -@image-tile-size / 50; + margin-bottom: 0px; +} .mark.partition:after { display: block; position: absolute; - top: -8px; - left: 10px; + left: @image-border * 2; content: attr(text); color: yellow; + + margin-top: -@image-tile-size / 24; } + /****************************************************** Image info ***/ .inline-image-info { display: none; diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 13caf210..db15bf4c 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -1592,6 +1592,19 @@ var WidgetTestActions = actions.Actions({ function(){ this.showTaggedInDrawer('bookmark') }], showSelectedInDrawer: ['Test/Show selected in drawer', function(){ this.showTaggedInDrawer('selected') }], + + + makePartitionAfter: ['Test/Make Partition after image', + function(image, text){ + var attrs = {} + if(text){ + attrs.text = text + } + this.ribbons.getImage(this.data.getImage(image)) + .after($('') + .addClass('mark partition') + .attr(attrs)) + }], }) var WidgetTest = diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index b2c26650..244e9b52 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -412,7 +412,6 @@ module.ViewerActions = actions.Actions({ 'ribbon-image-separators', function(state){ this.config['ribbon-image-separators'] = state }) ], - /* setEmptyMsg: ['- Interface/Set message to be displayed when nothing is loaded.', function(msg, help){ this.ribbons