From 1d47935123b21c87adf8ddb7807dce2df6322274 Mon Sep 17 00:00:00 2001 From: Torsten Date: Thu, 23 Jun 2022 10:04:42 +0200 Subject: [PATCH] Tooltip CSS, first application in booking cancellation 'x' --- motorradig/public/css/custom.css | 52 +++++++++++++++++++ .../resources/views/tour/show.blade.php | 36 ++++++++++--- 2 files changed, 82 insertions(+), 6 deletions(-) diff --git a/motorradig/public/css/custom.css b/motorradig/public/css/custom.css index f255fb6..1967069 100644 --- a/motorradig/public/css/custom.css +++ b/motorradig/public/css/custom.css @@ -69,6 +69,58 @@ p { display: none; } +/*** Tooltip styles + Taken from https://www.w3schools.com/howto/howto_css_tooltip.asp + */ +/* Tooltip container */ +.ts_tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ + visibility: visible; +} + +/* Tooltip text */ +.ts_tooltip .ts_tooltiptext { + visibility: hidden; + width: 120px; + background-color: #555; + color: #fff; + text-align: center; + padding: 5px 0; + border-radius: 6px; + + /* Position the tooltip text */ + position: absolute; + z-index: 1; + bottom: 125%; + left: 50%; + margin-left: -60px; + + /* Fade in tooltip */ + opacity: 0; + transition: opacity 0.3s; +} + +/* Tooltip arrow */ +.ts_tooltip .ts_tooltiptext::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border-width: 5px; + border-style: solid; + border-color: #555 transparent transparent transparent; +} + +/* Show the tooltip text when you mouse over the tooltip container */ +.ts_tooltip:hover .ts_tooltiptext { + visibility: visible; + opacity: 1; +} + + /******************* Modal styles ********************/ diff --git a/motorradig/resources/views/tour/show.blade.php b/motorradig/resources/views/tour/show.blade.php index ded7225..dfebdfd 100644 --- a/motorradig/resources/views/tour/show.blade.php +++ b/motorradig/resources/views/tour/show.blade.php @@ -1,11 +1,20 @@ @extends('layouts.app') @section('content') + + +
+ + + +
-
{{ $tour->name }}
+ +
{{ $tour->name }}
+
@@ -107,7 +116,10 @@ @if(strlen($room_id))
@endif -
  • [{{$room->room_id}}] {{$room->room_name}} ==> Buchen
  • +

    [{{$room->room_id}}] + {{$room->room_name}} + ==> Buchen +

    @if ($room_id=$room->room_id) @endif @@ -144,18 +156,20 @@ @foreach($rooms as $room) @if ($room_id != $room->room_id) @if(strlen($room_id)) -
    +

    -------------------------

    @endif -
      [{{$room->room_id}}] {{$room->room_name}}
    +

    [{{$room->room_id}}] {{$room->room_name}}

    @if ($room_id=$room->room_id) @endif @endif @if(strlen($room->user_name)) -
  • {{ $room->user_name}} +
  • {{ $room->user_name}} @if(Auth::user()->role=="ADMIN") - (X) + (X) + Stornieren + @endif
  • @endif @@ -167,9 +181,19 @@
    +
    + + + +
    + + + + +