lots of tweaks + work on ribbon partitions...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-27 06:18:04 +03:00
parent 1c25bc223a
commit 7c493a7326
3 changed files with 40 additions and 9 deletions

View File

@ -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;

View File

@ -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($('<span>')
.addClass('mark partition')
.attr(attrs))
}],
})
var WidgetTest =

View File

@ -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