From dfc375adf88dfeef753fa433933ca73dcc79995f Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 24 Jun 2016 15:55:19 +0100 Subject: [PATCH] Add more feedback on :hover. --- .../web/app/views/project/editor/pdf.jade | 1 + .../public/stylesheets/app/editor/pdf.less | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/services/web/app/views/project/editor/pdf.jade b/services/web/app/views/project/editor/pdf.jade index 75ff03020d..1957cce98b 100644 --- a/services/web/app/views/project/editor/pdf.jade +++ b/services/web/app/views/project/editor/pdf.jade @@ -103,6 +103,7 @@ div.full-size.pdf(ng-controller="PdfController") ng-init="feedbackSent = false;" ) span.line-no + i.fa.fa-link(aria-hidden="true")  span(ng-show="entry.file") {{ entry.file }} span(ng-show="entry.line") , line {{ entry.line }} p.entry-message(ng-show="entry.message") {{ entry.message }} diff --git a/services/web/public/stylesheets/app/editor/pdf.less b/services/web/public/stylesheets/app/editor/pdf.less index db29870c1a..2d147c2f69 100644 --- a/services/web/public/stylesheets/app/editor/pdf.less +++ b/services/web/public/stylesheets/app/editor/pdf.less @@ -120,6 +120,10 @@ float: right; color: @gray; font-weight: 700; + + .fa { + display: none; + } } .entry-message { font-weight: 700; @@ -130,6 +134,26 @@ font-size: 0.8rem; //font-family: @font-family-monospace; } + + &:hover .line-no { + color: inherit; + .fa { + display: inline-block; + } + } + + &.alert-danger:hover { + background-color: darken(@alert-danger-bg, 5%); + } + + &.alert-warning:hover { + background-color: darken(@alert-warning-bg, 5%); + } + + &.alert-info:hover { + background-color: darken(@alert-info-bg, 5%); + } + } pre { font-size: 12px;