Skip to content

Commit

Permalink
feat(citizenScienceExamples): bird image
Browse files Browse the repository at this point in the history
  • Loading branch information
peichins committed Dec 19, 2017
1 parent 355609a commit f3b8c18
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
10 changes: 8 additions & 2 deletions src/app/annotationViewer/gridLines/_gridLines.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,14 @@ $scale-background: #f5f5f5; //#7eff5f


.dark {
& .yScale span {

.yScale, .xScale {
background-color: transparent;
color: #fff;
span {
background-color: transparent;
color: #888;
}
}


}
7 changes: 5 additions & 2 deletions src/app/citizenScience/textLabels/_citizenScienceLabels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@
font-size: 18px;
cursor: pointer;
line-height: 1em;
color: #559cd9;
text-decoration: none;


&.main-button {

&:hover {
color: #333;
color: #77befb;

.checkbox {
border-color: #333;
border-color: #77befb;
}

}
Expand Down
24 changes: 21 additions & 3 deletions src/app/citizenScience/thumbLabels/_thumbs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$thumb-height: 100;

$triangle: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40px" height="20px" version="1.1"><defs/><g><path d="M 0 20 L 20 0 L 40 20 Z" fill="#ffffff" pointer-events="none"/></g></svg>';
$triangle: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40px" height="20px" version="1.1"><defs/><g><path d="M 0 20 L 20 0 L 40 20 Z" fill="#000000" pointer-events="none"/></g></svg>';

.thumb-labels-container {
text-align: center;
Expand Down Expand Up @@ -34,6 +34,7 @@ $triangle: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
z-index: 52;
left: 0;
right: 0;
opacity: 0.9
}

}
Expand Down Expand Up @@ -65,17 +66,34 @@ $triangle: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.o
z-index: 50;
box-shadow: 5px 5px 10px 10px rgba(0, 0, 0, 0.3);
border-radius: 5px;
background: #fff;
background: rgba(0,0,0,0.9);
padding: 5px;
top: ($thumb-height + 10) + px;

.citizen-science-thumb-example {

display:flex;

.img {
flex-grow:1;
background-size: cover;
background-position: center center;
box-shadow: 0px 0px 1px 10px rgba(0,0,0,0.5) inset
}

annotation-item {
flex-grow: 1;
}

}

}

}

.label-examples-annotations {

background: #fff;


h3 {
text-align: center;
Expand Down
9 changes: 7 additions & 2 deletions src/app/citizenScience/thumbLabels/examples.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
<i class="fa fa-arrow-right arrow next" aria-hidden="true" ng-click="changeCurExample(key, 1)" ng-if="annotations.length>1"></i>

<div class="citizen-science-thumb-example">
<annotation-item annotation="$ctrl.label.examples[currentExample].annotation"></annotation-item>
</div>
<div class="img"
ng-if="$ctrl.label.examples[currentExample].image"
style="background-image: url(/public/citizen_science/labels/images/{{$ctrl.label.examples[currentExample].image}})"
>&nbsp;
</div>
<annotation-item annotation="$ctrl.label.examples[currentExample].annotation" class="dark"></annotation-item>
</div>

</div>

0 comments on commit f3b8c18

Please sign in to comment.