diff --git a/app/assets/stylesheets/layout.less b/app/assets/stylesheets/layout.less index 1b77ade4..ad679c8c 100644 --- a/app/assets/stylesheets/layout.less +++ b/app/assets/stylesheets/layout.less @@ -160,15 +160,15 @@ body { } .favour{ - color: white !important; - background-color: gold !important; + color: @color-dark-gray-dark !important; + background-color: white !important; border-radius: 4px; } + .disfavour{ - color: white; - background-color: darkred; + color: rgb(184, 134, 11); + background-color: rgb(255, 250, 120); border-radius: 4px; - border: none; } .abstract-text { @@ -411,3 +411,33 @@ body { .tab-content { margin-top: 10px; } + + /* Tooltip container */ +.gn-tooltip { + color: black; +} + +/* Tooltip text */ +.gn-tooltip .gn-tooltiptext { + visibility: hidden; + background-color: #555; + color: #fff; + text-align: center; + padding: 5px; + border-radius: 5px; + + /* Position the tooltip text */ + position: fixed; + z-index: 1; + margin-top: -60px; + + /* Fade in tooltip */ + opacity: 0; + transition: opacity 0.3s; +} + +/* Show the tooltip text when you mouse over the tooltip container */ +.gn-tooltip:hover .gn-tooltiptext { + visibility: visible; + opacity: 1; +} diff --git a/app/views/abstractlist.scala.html b/app/views/abstractlist.scala.html index ad743210..c35d3dce 100644 --- a/app/views/abstractlist.scala.html +++ b/app/views/abstractlist.scala.html @@ -86,10 +86,16 @@

@if(account.isDefined) {
  • - + + ★ + Add abstract to favourites +
  • - + + ★ + Remove abstract from favourites +
  • } diff --git a/app/views/dashboard/favouriteabstracts.scala.html b/app/views/dashboard/favouriteabstracts.scala.html index 5f00280f..e8199d86 100644 --- a/app/views/dashboard/favouriteabstracts.scala.html +++ b/app/views/dashboard/favouriteabstracts.scala.html @@ -20,7 +20,7 @@

    Loading data

    -

    You have no favourite abstracts yet. Click the star button shown for abstracts to add them.

    +

    You have no favourite abstracts yet. Click the star button on an abstract to add it.

    @@ -48,11 +48,11 @@