Skip to content

Commit

Permalink
show percentile below slider
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 8, 2016
1 parent 93338c9 commit 988105e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cljs/ulysses/pages/builder.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
(defn metric-slider
[metric filters]
(let [value (get-in filters [:metrics metric])]
[:div
; [:div value "+"]
[:div.relative
[:div.absolute.small.color-gray.right-below-bottom value "%"]
[range-slider
:min 0 :max 100 :value value
:on-change
Expand Down Expand Up @@ -109,7 +109,8 @@
"Recent Grant Funds"
[metric-slider
:recentGrantFunds
filters]]])
filters]]
[:br]])


(defn workspace-row [faculty]
Expand Down
15 changes: 15 additions & 0 deletions src/sass/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,19 @@ a.fancy-switch {
margin-bottom: 15px;
}

.right-below-bottom {
bottom: -15px;
right: 0;
}

.relative {
position: relative;
}

.absolute {
position: absolute;
}

.display-flex {
display: -webkit-flex;
display: flex;
Expand Down Expand Up @@ -157,3 +166,9 @@ a.fancy-switch {
}
}
}

.color {
&-gray {
color: $gray-light;
}
}

0 comments on commit 988105e

Please sign in to comment.