[Frontend] Markup and CSS for loading tree items
#445 New wait-spinner constants; Markup fixed in wait-node.html; Styles for .loading when applied to .tree-item.wait-node; Changed from percent-of-parent- width sizing of spinner to fixed size;
This commit is contained in:
@@ -98,6 +98,9 @@ $bubbleMaxW: 300px;
|
|||||||
$reqSymbolW: 15px;
|
$reqSymbolW: 15px;
|
||||||
$reqSymbolM: $interiorMargin * 2;
|
$reqSymbolM: $interiorMargin * 2;
|
||||||
$reqSymbolFontSize: 0.7em;
|
$reqSymbolFontSize: 0.7em;
|
||||||
|
// Wait Spinner Defaults
|
||||||
|
$waitSpinnerD: 32px;
|
||||||
|
$waitSpinnerBorderW: 5px;
|
||||||
|
|
||||||
/************************** CONTROLS */
|
/************************** CONTROLS */
|
||||||
$controlDisabledOpacity: 0.3;
|
$controlDisabledOpacity: 0.3;
|
||||||
|
|||||||
@@ -46,10 +46,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wait-spinner {
|
.wait-spinner {
|
||||||
$d: 5%;
|
@include spinner($waitSpinnerBorderW, $colorKey);
|
||||||
@include spinner(0.5em, $colorKey);
|
|
||||||
height: auto; width: auto;
|
|
||||||
padding: $d; // Will size object based on parent container WIDTH
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
&.inline {
|
&.inline {
|
||||||
@@ -60,15 +57,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.treeview .wait-spinner {
|
|
||||||
// Only used in subtree.html, which I don't think this is actually being used
|
|
||||||
$d: 10px;
|
|
||||||
height: $d; width: $d;
|
|
||||||
margin: 0 !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
top: 2px; left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
// Can be applied to any block element with height and width
|
// Can be applied to any block element with height and width
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -77,8 +65,8 @@
|
|||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
&:before {
|
&:before {
|
||||||
@include spinner(5px, $colorLoadingFg);
|
@include spinner($waitSpinnerBorderW, $colorLoadingFg);
|
||||||
padding: 5%;
|
height: $waitSpinnerD; width: $waitSpinnerD;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
&:after {
|
&:after {
|
||||||
@@ -87,8 +75,19 @@
|
|||||||
display: block;
|
display: block;
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
&.tree-item:before {
|
&.tree-item.t-wait-node {
|
||||||
padding: $menuLineH / 4;
|
$d: $treeTypeIconW;
|
||||||
border-width: 2px;
|
$spinnerL: $treeVCW + $interiorMargin + 3px + $d/2;
|
||||||
|
font-style: italic;
|
||||||
|
padding-left: $spinnerL + $d/2 + $interiorMargin;
|
||||||
|
&:before {
|
||||||
|
height: $d;
|
||||||
|
width: $d;
|
||||||
|
border-width: 3px;
|
||||||
|
left: $spinnerL;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,9 +19,4 @@
|
|||||||
this source code distribution or the Licensing information page available
|
this source code distribution or the Licensing information page available
|
||||||
at runtime from the About dialog for additional information.
|
at runtime from the About dialog for additional information.
|
||||||
-->
|
-->
|
||||||
<li>
|
<li class='tree-item t-wait-node loading'>Loading...</li>
|
||||||
<span class="tree-item">
|
|
||||||
<span class="icon wait-spinner"></span>
|
|
||||||
<span class="title-label">Loading...</span>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user