Commit 95356953 authored by Nicolas's avatar Nicolas

contenteditables et boite d'infos

parent e23d0595
......@@ -5,6 +5,12 @@ body {
padding: 2em;
}
[contenteditable="true"]:active, [contenteditable="true"]:focus{
border:1px solid blue;
outline:none;
padding: 3px;
}
#slider {
display: none;
}
......@@ -34,7 +40,14 @@ h1 {
li li {
margin-left: 3em;
}
.axis-infos{
background: white;
border: 1px solid blue;
display: none;
padding: 5px;
position:absolute;
width: 450px;
}
.axis-title {
margin: 0.25em;
padding: 0.5em;
......@@ -42,10 +55,13 @@ li li {
}
.axis-title .options,
.axis-title .handle { display: none; }
.axis-title .handle {
/*display: none; */
display: inline-block;
}
.axis-title:hover .options,
.axis-title:hover .handle { display: inline-block; }
/*.axis-title:hover .options,
.axis-title:hover .handle { display: inline-block; }*/
/*.axis-title:focus .options,
.axis-title:focus .handle { display: inline-block; }*/
......@@ -61,6 +77,12 @@ li li {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQIW2NkYGD4D8SMQAwGcAY2AbBKDBUAVuYCBQPd34sAAAAASUVORK5CYII=) repeat;
}
.trigger_infos{
background:white;
border:0;
/*color:blue;*/
cursor:pointer;
}
li .axis-title { color: rgb(114,147,203); }
li li .axis-title { color: rgb(225,151, 76); }
......
......@@ -140,6 +140,7 @@
'change #alternative_mode' : 'editProperty',
'change #tag' : 'editProperty',
'change .focused' : 'editProperty',
'change #indications' : 'editProperty',
'relocate': function(event, index) { console.log("relocated"); console.log(this.model, index)}
},
......@@ -211,7 +212,7 @@
},
initialize: function(){
this.listenTo(this.model, 'change', this.render);
// this.listenTo(this.model, 'change', this.render);
}
});
......@@ -234,7 +235,7 @@
var firstRegion = this.getRegion('firstRegion');
firstRegion.$el.nestedSortable({
handle: 'div',
handle: '.handle',
isTree: true,
items: 'li',
toleranceElement: '> div',
......@@ -265,7 +266,7 @@
},
initialize: function() {
this.listenTo(this.model, 'sync', this.render);
//this.listenTo(this.model, 'sync', this.render);
},
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment