UNPKG

lpio

Version:

The last dashboard app you'll ever need

309 lines (270 loc) 9.13 kB
<dom-module id="lp-widget-styles"> <template> <style> :host * { margin: 0; padding: 0; } .widget-inner:hover .widgetOverlayControls { zoom: 1; filter: alpha(opacity=100); opacity: 1; z-index: 100; display:block; } .widget-demo-mode { position: absolute; top:auto; left:0; right:auto; bottom: 0; height:50px; display:none; z-index: 100; background: #333; color: #fafafa; font-family: arial; padding: 8px; height: auto; } #javascriptError { display: none; position: absolute; width: auto; left: 0; right: 0; bottom: 0; background: #333; list-style: none; line-height: 1.5em; overflow: hidden; height: 60px; max-height:60px; transition: max-height 0.7s ease-in; background: rgb(229, 28, 35); z-index: 110; } #javascriptError #javascriptErrorText { font-family: "RobotoDraft", sans-serif; color: #fff; font-size: 12px; margin-top: 10px; line-height: 1.2; margin-right: 30px; overflow-y: auto; } #javascriptError .close { color: #fff; position: absolute; height: 30px; width: 30px; top: 20px; right: 10px; } #javascriptError .close iron-icon { float: right; } #javascriptError .warning { color: rgb(255, 200, 0); } #javascriptError .warning iron-icon { height: 40px; width: 40px; float: left; margin: 10px; } #widgetDragHandle { background: transparent; height: 100%; opacity: 0; position: absolute; margin: 0; padding: 0; top:0; right:0; left:0; bottom: 0; cursor: move; float: none; width: 100%; display:none; z-index: 100; } #widgetDragHandle.showing { background: #fff; color: #fff; font-weight: normal; opacity: 100; display: block; } .widget-inner .widget-settings { position: absolute; top:auto; right:0; left:auto; bottom: 0; display:none; z-index: 100; background: transparent; color: #fafafa; font-family: arial; padding: 4px; height: auto; cursor:pointer; } .widget-inner .widget-settings widget-menu { background: #333; color: #fafafa; display: none; } .widget-inner .widget-settings { cursor: pointer; } .widget-inner .widget-settings .fixed-action-btn { position: absolute; bottom: 4px !important; right: 4px !important; } .widget-inner .widget-settings paper-dropdown::shadow #ripple, .widget-inner .widget-settings paper-dropdown::shadow #background { background-color: #eee; } .widget-inner .widget-settings paper-item { font-size: 12px; border-bottom: 1px inset #ccc; } .widget-inner .widget-settings paper-item:last-child { border-bottom: none; } .widget-inner .widget-settings paper-item::shadow .button-content { color: #000; } .widget-inner .widget-settings paper-item::shadow iron-icon { } .widget-inner .widget-settings:hover { zoom: 1; filter: alpha(opacity=100); opacity: 1; z-index: 100; } .widget-title { position: absolute; top:0; left:0; right:0; width: auto; font-size: 20px; display: none; text-align: center; background: #000; color: #fafafa; font-family: arial; padding: 8px; height: auto; vertical-align: middle; } .widget-inner #widgetDragHandle > paper-button { display: block; cursor: pointer; font-size: 14px; margin-left: 10px; background: #ccc; color: #333; border-radius: 3px; width: 10em; margin: 1em auto; padding: 8px; position: relative; top: 50%; transform: translateY(-50%); } .widget-inner #widgetDragHandle paper-button .label { height: 20px; display: inline-block; padding-top: 4px; } .widget-inner #widgetDragHandle paper-button iron-icon { float: right; color: #000; } .widget-inner #widgetDragHandle a.edit-widget { display: none; /* needs work to work in modal again after codemirror change */ } .widget-inner #widgetDragHandle a:hover, .widget-inner #widgetDragHandle a:focus { color: #fff; } .widget-inner #widgetDragHandle a .close { color: #D6D6D6; opacity: 1; position: relative; top: -1px; } .widget-inner #widgetDragHandle a .close:hover, .widget-inner #widgetDragHandle a .close:focus { opacity: 1; color: #fff; } .widget-inner { position: relative; display: block; top: 0; border: 0; height: 100%; width: 100%; padding: 0px; margin: 0px; background-color: inherit; overflow: hidden; } .widget-inner .widget-content, .widget-inner .widget-content .widget-content-chart { border: 0; width: 100%; height: 100%; padding: 0px; margin: 0px; text-align: center; } .widget-inner .widget-content .widget-content-chart:first-child { vertical-align: middle; } /* Widget specific styles */ .widget-inner .widget-content .widget-content-chart .device-widget-data { display: block; position: relative; } iron-menu > paper-item.moveWidget { display:none; } iron-menu > paper-item.moveWidget.draggable { display:block; } .widget-inner .widget-content .widget-content-chart .device-widget-data ul { list-style: none; clear: left; position: relative; overflow: hidden; padding: 14px 10px; margin: 0 auto; border-top: 1px solid #EEEEEE; } .widget-inner .widget-content .widget-content-chart .device-widget-data ul.heading { margin: 10px auto; padding: 0px; border-top: none; } .widget-inner .widget-content .widget-content-chart .device-widget-data ul.heading li { color: #ccc; font-size: 10px; } .widget-inner .widget-content .widget-content-chart .device-widget-data ul li { float: left; width: 33%; } .widget-inner .widget-content .widget-content-chart .device-widget-data ul li i { font-size: 32px; } </style> </template> </dom-module>