minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-23 21:10:15 +03:00
parent c0f9342899
commit 9e440c7635
3 changed files with 19 additions and 29 deletions

View File

@ -263,20 +263,6 @@ body {
font-weight: bolder !important;
}
.browse-widget .list>div .show-on-hover {
opacity: 0;
}
.browse-widget .list>div:hover .show-on-hover {
opacity: inherit;
}
.browse-widget .list>div .show-on-select {
opacity: 0;
}
.browse-widget .list>.selected .show-on-select {
opacity: inherit;
}
/* Dialog highlight experiment... */
.browse-widget {
border-bottom: solid 7px rgba(100, 100, 100, 0.5);

View File

@ -354,6 +354,23 @@
display: none;
}
/* Show item part on hover... */
.browse-widget .list>div .show-on-hover {
opacity: 0;
}
.browse-widget .list>div:hover .show-on-hover {
opacity: inherit;
}
/* Show item part on select... */
.browse-widget .list>div .show-on-select {
opacity: 0;
}
.browse-widget .list>.selected .show-on-select {
opacity: inherit;
}
/****************************************************** Cloud List ***/

View File

@ -560,28 +560,15 @@ var URLHistoryUIActions = actions.Actions({
},
// add item buttons...
{ itemButtons: [
// open...
['<span class="show-on-hover">&#8599;</span>',
function(p){ o.browsePath(p) }],
// move to top...
//['<span class="show-on-hover">&diams;</span>',
['&diams;',
function(p){
that.setTopURLHistory(p)
o.redraw(p)
/* XXX this is a tad faster, is the added
// complexity worth it??
var cur = this.filter('"'+p+'"', false)
var top = cur.hasClass('pinned') ?
this.filter('*', false).first()
: this.filter('*', false)
.filter(':not(.pinned)').first()
if(!top.is(cur)){
top.before(cur)
that.setTopURLHistory(p)
}
//*/
}],
// pin to top...
// XXX should this be standard functionality???