Definition with tooltips working

This commit is contained in:
Luis Fernando Molina committed 2020-12-08 13:13:40 +01:00
1 parent d22cc42712
commit 2316bf7b1f
7 files changed
+226 -154

No files matched your search

+79
View File
@@ -6,4 +6,83 @@
border-color: #1b998b;
border-radius: 8px;
background-color: #fdfdfd;
}
.docs-definitionTable {
background-color: #f3f3f3;
border-top-color: #a6e1ec;
padding: 15px;
margin: 20px 0;
border: solid 0px;
vertical-align: middle;
min-width: 100px;
width: 100%;
}
.docs-image-container {
padding: 5px 15px 5px 5px;
border: solid 0px;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.docs-font-bold-small {
font:bold normal normal 14px/1 "segoeui";
font-size:inherit;
text-rendering:auto;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
line-height: 150%
}
/* Tooltip container */
.docs-tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
/* Tooltip text */
.docs-tooltip .docs-tooltiptext {
visibility: hidden;
width: 240px;
background-color: #0295aa;
color: #fff;
font-weight: normal;
font-size: 92%;
line-height: 130%;
text-align: center;
padding: 15px;
border-radius: 6px;
/* Position the docs-tooltip text */
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -120px;
/* Fade in docs-tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.docs-tooltip .docs-tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #0295aa transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.docs-tooltip:hover .docs-tooltiptext {
visibility: visible;
opacity: 1;
}
+3 -3
View File
@@ -242,7 +242,7 @@
}
/* Tooltip text */
.tutorial-tooltip .tooltiptext {
.tutorial-tooltip .tutorial-tooltiptext {
visibility: hidden;
width: 240px;
background-color: #0295aa;
@@ -268,7 +268,7 @@
}
/* Tooltip arrow */
.tutorial-tooltip .tooltiptext::after {
.tutorial-tooltip .tutorial-tooltiptext::after {
content: "";
position: absolute;
top: 100%;
@@ -280,7 +280,7 @@
}
/* Show the tooltip text when you mouse over the tooltip container */
.tutorial-tooltip:hover .tooltiptext {
.tutorial-tooltip:hover .tutorial-tooltiptext {
visibility: visible;
opacity: 1;
}
+38
View File
@@ -0,0 +1,38 @@
<table class="docs-definitionTable">
<tr>
<td>
<div id="docsImageDiv" class="docs-image-container" />
</td>
<td><strong class="docs-font-bold-small">A network node represents a machine running Superalgos within a <div
class="docs-tooltip">Shapes<span class="docs-tooltiptext">The shapes node contains definitions of
polygons and styles to be rendered on a per-period basis over the charts.</span></div>,on which
processes run and data is stored. Do not confuse this with a Template XXXStructure which is similar to a
XXXTask Manager but it is not one. </strong></td>
</tr>
</table>
<div>
<h2 class="tutorial-font-medium">That's Me On the Right!</h2>
<table class="tutorial-definitionTable">
<tr>
<td>
<div id="tutorialImageDiv" class="tutorial-image-container" />
</td>
<td><strong class="tutorial-font-bold-small">Tutorials are defined within the system, so you may create more
of us if you wish! But we'll discuss that God-like power later on... let's focus on the basics
first!</strong></td>
</tr>
</table>
<div class="tutorial-font-small">Superalgos is inherently a visual tool. The system represents information in
hierarchical structures of interconnected nodes, represented by icons. What you see on your right is one of
these hierarchies&mdash;in particular, a <div class="tutorial-tooltip">Tutorial<span
class="tutorial-tooltiptext">The tutorial hierarchy features a free arrangement of tutorial topic and
tutorial step nodes that make up a tutorial. Each node in the hierarchy, including the parent tutorial
node, represents a HTML page that is overlaid on top of both the design space and the charting space.
</span></div> hierarchy with a label reading <i>Welcome to Superalgos!</i></div>
<div class="tutorial-font-bold-small tutorial-callout"> Hover your mouse pointer over the Tutorial node and see what
happens!</div>
<div class="tutorial-font-small">Wow! Cool right? That's a lot of buttons!</div>
</div>