feat: Add tooltip, improve styling a lot
This commit is contained in:
		@@ -9,9 +9,6 @@
 | 
			
		||||
    <link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
<button class="button has-tooltip-multiline has-tooltip-bottom has-text-link" data-tooltip="This is a tooltip!">
 | 
			
		||||
    Hover me
 | 
			
		||||
</button>
 | 
			
		||||
 | 
			
		||||
<div class="navbar">
 | 
			
		||||
    <div class="navbar-brand">
 | 
			
		||||
@@ -40,17 +37,14 @@
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <label for="height" class="label" data-i18n-key="height-cm">Höhe (cm)</label>
 | 
			
		||||
                    <input class="input" type="number" id="height">
 | 
			
		||||
                </form>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="container-inputs">
 | 
			
		||||
        <div class="input-element">
 | 
			
		||||
            <label for="numFullFloors" class="label" data-i18n-key="full-floors">Vollebenen</label>
 | 
			
		||||
            <span data-tooltip="Als Vollebenen zählen alle Ebenen die größer als 0.5m² sind, inklusive des Käfigbodens.">
 | 
			
		||||
                <svg class="text-grey-dark" width="18" height="18" viewBox="0 0 18 18" fill="none"
 | 
			
		||||
                     stroke="currentColor">
 | 
			
		||||
 | 
			
		||||
                    <div class="columns">
 | 
			
		||||
                        <div class="column">
 | 
			
		||||
                            <label for="numFullFloors" class="label" data-i18n-key="full-floors">Vollebenen</label>
 | 
			
		||||
                            <span data-tooltip="Als Vollebenen zählen alle Ebenen die größer als 0.5m² sind, inklusive des Käfigbodens.">
 | 
			
		||||
                            <svg class="text-grey-dark" width="18" height="18" viewBox="0 0 18 18" fill="none"
 | 
			
		||||
                                 stroke="currentColor">
 | 
			
		||||
                    <path d="M9.00026 12.6C9.00026 12.6 9.00026 12.1224 9.00026 11.5333V8.86666C9.00026 8.57211 8.76148 8.33333 8.46693 8.33333H7.93359"
 | 
			
		||||
                          stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
 | 
			
		||||
                    <path d="M8.73346 5.26666C8.58619 5.26666 8.4668 5.38605 8.4668 5.53333C8.4668 5.68061 8.58619 5.8 8.73346 5.8C8.88074 5.8 9.00013 5.68061 9.00013 5.53333C9.00013 5.38605 8.88074 5.26666 8.73346 5.26666V5.26666"
 | 
			
		||||
@@ -59,29 +53,32 @@
 | 
			
		||||
                          d="M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z"
 | 
			
		||||
                          stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
 | 
			
		||||
                </svg>
 | 
			
		||||
            </span>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="ncontainer">
 | 
			
		||||
            <div class="input-group">
 | 
			
		||||
                <button id="decreaseFloorNum">-</button>
 | 
			
		||||
                <input type="text" id="numFullFloors" value="3" readonly>
 | 
			
		||||
                <button id="increaseFloorNum">+</button>
 | 
			
		||||
                        </span>
 | 
			
		||||
                            <button id="decreaseFloorNum">-</button>
 | 
			
		||||
                            <input type="text" id="numFullFloors" value="3" readonly>
 | 
			
		||||
                            <button id="increaseFloorNum">+</button>
 | 
			
		||||
                        </div>
 | 
			
		||||
 | 
			
		||||
                        <div class="column">
 | 
			
		||||
                            <label for="numRats" id="labelNumRats" data-i18n-key="number-of-rats">Anzahl an
 | 
			
		||||
                                Ratten</label>
 | 
			
		||||
                            <input type="range" min="3" max="15" value="4" class="slider" id="numRats">
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </form>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
    <div class="input-element">
 | 
			
		||||
        <div class="slidecontainer">
 | 
			
		||||
            <label for="numRats" id="labelNumRats"></label>
 | 
			
		||||
            <input type="range" min="3" max="15" value="4" class="slider" id="numRats">
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
<div class="card">
 | 
			
		||||
    <div class="card-header">
 | 
			
		||||
        <h2 class="title is-3" data-i18n-key="result">Ergebnis</h2>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="card-content">
 | 
			
		||||
        <div id="resultsDiv"></div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="container output-element">
 | 
			
		||||
    <strong data-i18n-key="result">Ergebnis</strong>
 | 
			
		||||
    <div id="resultsDiv"></div>
 | 
			
		||||
</div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<script src="./bundle.js"></script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user