Commit c5d4f54a by Valera Rozuvan Committed by Alexander Kryklia

Slight changes to UI design. Part 2.

parent 545b1bea
...@@ -24,7 +24,7 @@ define(['logme', 'update_input'], function (logme, updateInput) { ...@@ -24,7 +24,7 @@ define(['logme', 'update_input'], function (logme, updateInput) {
function processDraggable(obj, index) { function processDraggable(obj, index) {
var draggableContainerEl, imgEl, inContainer, ousePressed, var draggableContainerEl, imgEl, inContainer, ousePressed,
onTarget, draggableObj; onTarget, draggableObj, marginCss;
draggableContainerEl = $( draggableContainerEl = $(
'<div ' + '<div ' +
...@@ -52,8 +52,14 @@ define(['logme', 'update_input'], function (logme, updateInput) { ...@@ -52,8 +52,14 @@ define(['logme', 'update_input'], function (logme, updateInput) {
} }
if (obj.label.length > 0) { if (obj.label.length > 0) {
marginCss = '';
if (obj.icon.length === 0) {
marginCss = 'margin-top: 38px;';
}
draggableContainerEl.append( draggableContainerEl.append(
$('<div style="clear: both; text-align: center;">' + obj.label + '</div>') $('<div style="clear: both; text-align: center; ' + marginCss + ' ">' + obj.label + '</div>')
); );
} }
......
...@@ -59,24 +59,6 @@ define(['logme'], function (logme) { ...@@ -59,24 +59,6 @@ define(['logme'], function (logme) {
); );
moveLeftEl.appendTo(parentEl); moveLeftEl.appendTo(parentEl);
/*
position: absolute;
margin-bottom: 0;
height: 44px;
width: 70px;
border: 1px solid #CCC;
background-color: #EEE;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #EEE), color-stop(100%, #DDD));
background-image: -webkit-linear-gradient(top, #EEE, #DDD);
background-image: -moz-linear-gradient(top, #EEE, #DDD);
background-image: -ms-linear-gradient(top, #EEE, #DDD);
background-image: -o-linear-gradient(top, #EEE, #DDD);
background-image: linear-gradient(top, #EEE, #DDD);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
*/
moveLeftEl.click(function () { moveLeftEl.click(function () {
if (showElLeftMargin > -102) { if (showElLeftMargin > -102) {
return; return;
...@@ -120,7 +102,6 @@ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset; ...@@ -120,7 +102,6 @@ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
'height: 102px; ' + 'height: 102px; ' +
'display: inline; ' + 'display: inline; ' +
'float: left; ' + 'float: left; ' +
// 'background: url(\'/static/images/arrow-right.png\') center center no-repeat; ' +
'" ' + '" ' +
'>' + '>' +
'<div ' + '<div ' +
......
...@@ -35,13 +35,13 @@ define(['logme'], function (logme) { ...@@ -35,13 +35,13 @@ define(['logme'], function (logme) {
state.targetElWidth = this.width; state.targetElWidth = this.width;
}); });
state.targetEl.mousemove( // state.targetEl.mousemove(
function (event) { // function (event) {
mouseMoveDiv.html( // mouseMoveDiv.html(
'[' + event.offsetX + ', ' + event.offsetY + ']' // '[' + event.offsetX + ', ' + event.offsetY + ']'
); // );
} // }
); // );
mouseMoveDiv = $( mouseMoveDiv = $(
'<div ' + '<div ' +
...@@ -51,7 +51,7 @@ define(['logme'], function (logme) { ...@@ -51,7 +51,7 @@ define(['logme'], function (logme) {
'height: 25px; ' + 'height: 25px; ' +
'text-align: center; ' + 'text-align: center; ' +
'" ' + '" ' +
'>[0, 0]</div>' '></div>'
); );
mouseMoveDiv.appendTo(targetElContainer); mouseMoveDiv.appendTo(targetElContainer);
......
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