Skip to content

Commit

Permalink
fixed time placement
Browse files Browse the repository at this point in the history
  • Loading branch information
fterrier committed Feb 12, 2015
1 parent 2e93298 commit 7358fb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cljs/tramboard_clj/script/tram.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@
:aria-label (str "destination " to (when accessible (str ". this " type " is accessible by wheelchair")))}
to (when accessible (dom/i #js {:className "fa fa-wheelchair"}))))
(dom/td #js {:className "departure thin"}
(dom/div nil (:time arrival))
(dom/div #js {:className "undelayed"} (:undelayed-time arrival)))
(dom/div nil (:time arrival)
(dom/span #js {:className "undelayed"} (:undelayed-time arrival))))
(let [display-in-minutes (display-in-minutes in-minutes)]
(dom/td #js {:className (str "text-right time time" in-minutes)}
(om/build transport-icon {:type type :accessible-text "arriving now"})
Expand Down
7 changes: 6 additions & 1 deletion src/less/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,15 @@ a .link-icon a.link-icon, a:hover .link-icon, a.link-icon:hover, a:visited .link
.departure {
text-align: right;
font-size: @big-font-size;
position: relative
}

.departure .undelayed {
line-height: 0;
line-height: 2em;
display: block;
position: absolute;
right: 0px;
bottom: 0px;
}

.undelayed {
Expand Down

0 comments on commit 7358fb6

Please sign in to comment.