Skip to content

Commit

Permalink
Hide decision buttons until hover and show on hover. #26
Browse files Browse the repository at this point in the history
  • Loading branch information
spuliaiev-sfdc committed Jul 19, 2018
1 parent be607aa commit 910924f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 30 deletions.
17 changes: 15 additions & 2 deletions ui/web/src/main/resources/static/css/sourceList.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,33 @@ div.sourceBlock div.fileName {
}
div.decisionBlock {
position: absolute;
width: 70px;
width: auto;
right: 0;
top: 0;
height: 22px;
height: 20px;
background-color: #ededed;
margin-right: 10px;
text-align: center;
align-content: center;
}
div.decisionBlock .decisionButton{
float: right;
background-color: #add5a5;
padding: 3px;
cursor: pointer;
width: 19px;
height: 19px;
}
div.sourceBlock div.sourceBlockBody div.decisionBlock .decisionButton {
display: none;
}
div.sourceBlock:hover div.sourceBlockBody div.decisionBlock .decisionButton {
display: block;
}
div.sourceBlock div.sourceBlockBody div.decisionBlock .decisionButton.decision_selected {
display: block;
}

span.btn_LATER {
/*background-size: 16px 16px;*/
/*background-repeat: no-repeat;*/
Expand Down
29 changes: 1 addition & 28 deletions ui/web/src/main/resources/templates/main/importProgress.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,34 +139,7 @@
</div>
</div>
<div id="templates">
<div class="sourceBlock">
<div class="sourceBlockBody">
<div class="matchingProperties">
<div class="status"></div>
<div class="filePath"></div>
<div class="folderStats">
<span class="message"></span>
<span class="data">
Files <span class="badge files"></span>
Matched <span class="badge matched"></span>
Matchable <span class="badge matchable"></span>
Dups <span class="badge duplicates"></span>
</span>
</div>
<div class="fileName"></div>
<div class="fileSize"></div>
<div class="timeStamp"></div>
</div>
<div class="source_image" title="SimpleHint">
<a href="#" class="source_anch"><img class="img-thumbnail" /></a>
</div>
<div class="decisionBlock">
<span class="decisionButton btn_LATER glyphicon glyphicon-time" value="later" ></span>
<span class="decisionButton btn_APPROVE glyphicon glyphicon-star" value="approve" grade="PICTURE"></span>
<span class="decisionButton btn_DUPLICATE glyphicon glyphicon-remove" value="duplicate" grade="IMPORT"></span>
</div>
</div>
</div>
<div th:replace="support/sourceBlock" ></div>
</div>
</section>
</body>
Expand Down
30 changes: 30 additions & 0 deletions ui/web/src/main/resources/templates/support/sourceBlock.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<div xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" class="sourceBlock">
<div class="sourceBlockBody">
<div class="matchingProperties">
<div class="status"></div>
<div class="filePath"></div>
<div class="folderStats">
<span class="message"></span>
<span class="data">
Files <span class="badge files"></span>
Matched <span class="badge matched"></span>
Matchable <span class="badge matchable"></span>
Dups <span class="badge duplicates"></span>
</span>
</div>
<div class="fileName"></div>
<div class="fileSize"></div>
<div class="timeStamp"></div>
</div>
<div class="source_image" title="SimpleHint">
<a href="#" class="source_anch"><img class="img-thumbnail" /></a>
</div>
<div class="decisionBlock">
<span class="decisionButton btn_LATER glyphicon glyphicon-time" value="later" ></span>
<span class="decisionButton btn_APPROVE glyphicon glyphicon-star" value="approve" grade="PICTURE"></span>
<span class="decisionButton btn_DUPLICATE glyphicon glyphicon-remove" value="duplicate" grade="IMPORT"></span>
</div>
</div>
</div>

0 comments on commit 910924f

Please sign in to comment.