Skip to content

Commit

Permalink
[#1879] Adjust spacing for delete confirm dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemart committed Nov 8, 2015
1 parent 5db1633 commit bf71c0c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 38 deletions.
31 changes: 15 additions & 16 deletions akvo/rsr/static/scripts-src/project-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1581,27 +1581,26 @@ if (firstAccordionChild !== null) {
exceedTargetCheckbox.checked = true;
}

descriptionEl = document.createElement('div');
descriptionEl.classList.add('update-description');
descriptionEl.innerHTML = update.text.replace(/\n/g,"<br>");

descriptionEl = document.createElement('div');
descriptionEl.classList.add('update-description');
descriptionEl.innerHTML = update.text.replace(/\n/g,"<br>");
updateContainer.appendChild(descriptionEl);

updateContainer.appendChild(descriptionEl);
displayPhoto(update, updateContainer);

displayPhoto(update, updateContainer);
var saveEl = document.createElement('div');
saveEl.classList.add('save-button');
saveEl.classList.add('clickable');
saveEl.textContent = 'Save';

var saveEl = document.createElement('div');
saveEl.classList.add('save-button');
saveEl.classList.add('clickable');
saveEl.textContent = 'Save';
updateContainer.appendChild(saveEl);

updateContainer.appendChild(saveEl);

var cancelEl = document.createElement('div');
cancelEl.classList.add('cancel-button');
cancelEl.classList.add('clickable');
cancelEl.textContent = 'Cancel';
updateContainer.appendChild(cancelEl);
var cancelEl = document.createElement('div');
cancelEl.classList.add('cancel-button');
cancelEl.classList.add('clickable');
cancelEl.textContent = 'Cancel';
updateContainer.appendChild(cancelEl);

return updateContainer;
}
Expand Down
31 changes: 15 additions & 16 deletions akvo/rsr/static/scripts-src/project-main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1581,27 +1581,26 @@ if (firstAccordionChild !== null) {
exceedTargetCheckbox.checked = true;
}

descriptionEl = document.createElement('div');
descriptionEl.classList.add('update-description');
descriptionEl.innerHTML = update.text.replace(/\n/g,"<br>");

descriptionEl = document.createElement('div');
descriptionEl.classList.add('update-description');
descriptionEl.innerHTML = update.text.replace(/\n/g,"<br>");
updateContainer.appendChild(descriptionEl);

updateContainer.appendChild(descriptionEl);
displayPhoto(update, updateContainer);

displayPhoto(update, updateContainer);
var saveEl = document.createElement('div');
saveEl.classList.add('save-button');
saveEl.classList.add('clickable');
saveEl.textContent = 'Save';

var saveEl = document.createElement('div');
saveEl.classList.add('save-button');
saveEl.classList.add('clickable');
saveEl.textContent = 'Save';
updateContainer.appendChild(saveEl);

updateContainer.appendChild(saveEl);

var cancelEl = document.createElement('div');
cancelEl.classList.add('cancel-button');
cancelEl.classList.add('clickable');
cancelEl.textContent = 'Cancel';
updateContainer.appendChild(cancelEl);
var cancelEl = document.createElement('div');
cancelEl.classList.add('cancel-button');
cancelEl.classList.add('clickable');
cancelEl.textContent = 'Cancel';
updateContainer.appendChild(cancelEl);

return updateContainer;
}
Expand Down
6 changes: 3 additions & 3 deletions akvo/rsr/static/styles-src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2331,8 +2331,8 @@ body.translationBarActive div.skiptranslate ~ article, body.translationBarActive
.results .indicator-container .indicator-group .table tbody .delete-confirm {
display: none;
position: absolute;
right: 0px;
top: 40px;
right: 10px;
top: 55px;
height: 90px;
background-color: white;
color: #202024;
Expand Down Expand Up @@ -2449,7 +2449,7 @@ body.translationBarActive div.skiptranslate ~ article, body.translationBarActive
background-color: #D1E6D1;
border-left: none; }
.results .update-dialog-container td .update-entry-container .update-exceed-target {
margin: 2em 0 0 0;
margin: 3em 0 1em 0;
text-align: right; }
.results .update-dialog-container td .update-entry-container .update-exceed-target input.exceed-value {
opacity: 0; }
Expand Down
6 changes: 3 additions & 3 deletions akvo/rsr/static/styles-src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2993,8 +2993,8 @@ body {
.delete-confirm {
display: none;
position: absolute;
right: 0px;
top: 40px;
right: 10px;
top: 55px;
height: 90px;
background-color: white;
color: $akvoBlack;
Expand Down Expand Up @@ -3138,7 +3138,7 @@ body {
border-left: none;
}
.update-exceed-target {
margin: 2em 0 0 0;
margin: 3em 0 1em 0;
text-align: right;
input.exceed-value {
opacity: 0;
Expand Down

0 comments on commit bf71c0c

Please sign in to comment.