100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
UI Styling: fadein on new asset view, centred loading text
Don7ec227b4559c
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.tsindex a312afe17..68a7b558f 100644--- a/ui/component/or-asset-viewer/src/index.ts+++ b/ui/component/or-asset-viewer/src/index.ts@@ -105,7 +105,7 @@ export class OrAssetViewer extends subscribe(openremote)(translate(i18next)(LitEif (this._loading) {return html`- <div>LOADING</div>+ <div id="loading"><div>Loading</div></div>`;}diff --git a/ui/component/or-asset-viewer/src/style.ts b/ui/component/or-asset-viewer/src/style.tsindex 60ae24e6e..f7f8ce751 100644--- a/ui/component/or-asset-viewer/src/style.ts+++ b/ui/component/or-asset-viewer/src/style.ts@@ -59,6 +59,40 @@ export const style = css`grid-template-columns: var(--internal-or-asset-viewer-grid-template-columns);grid-template-rows: var(--internal-or-asset-viewer-grid-template-rows);grid-auto-rows: var(--internal-or-asset-viewer-grid-template-auto-rows);+ -webkit-animation: fadein 0.3s; /* Safari, Chrome and Opera > 12.1 */+ -moz-animation: fadein 0.3s; /* Firefox < 16 */+ -ms-animation: fadein 0.3s; /* Internet Explorer */+ -o-animation: fadein 0.3s; /* Opera < 12.1 */+ animation: fadein 0.3s;+ }++ @keyframes fadein {+ from { opacity: 0; }+ to { opacity: 1; }+ }++ /* Firefox < 16 */+ @-moz-keyframes fadein {+ from { opacity: 0; }+ to { opacity: 1; }+ }++ /* Safari, Chrome and Opera > 12.1 */+ @-webkit-keyframes fadein {+ from { opacity: 0; }+ to { opacity: 1; }+ }++ /* Internet Explorer */+ @-ms-keyframes fadein {+ from { opacity: 0; }+ to { opacity: 1; }+ }++ /* Opera < 12.1 */+ @-o-keyframes fadein {+ from { opacity: 0; }+ to { opacity: 1; }}.panel {@@ -378,11 +412,10 @@ export const style = css`}#loading {- flex: 1 0 auto;- display: inline-flex;+ display: flex;+ justify-content: center;align-items: center;text-align: center;- margin: 0 auto;+ height: 100%;}-`;\ No newline at end of file