Add dashboard
This commit is contained in:
4423
assets/stylesheets/all.css
Normal file
4423
assets/stylesheets/all.css
Normal file
File diff suppressed because it is too large
Load Diff
271
assets/stylesheets/application.scss
Normal file
271
assets/stylesheets/application.scss
Normal file
@@ -0,0 +1,271 @@
|
||||
/*
|
||||
//=require_directory .
|
||||
//=require_tree ../../widgets
|
||||
*/
|
||||
// ----------------------------------------------------------------------------
|
||||
// Sass declarations
|
||||
// ----------------------------------------------------------------------------
|
||||
$background-color: #222;
|
||||
$text-color: #fff;
|
||||
|
||||
$background-danger-color-1: #e82711;
|
||||
$background-danger-color-2: #9b2d23;
|
||||
$text-danger-color: #fff;
|
||||
|
||||
$background-warning-color-1: #eeae32;
|
||||
$background-warning-color-2: #ff9618;
|
||||
$text-warning-color: #fff;
|
||||
|
||||
@-webkit-keyframes status-warning-background {
|
||||
0% { background-color: $background-warning-color-1; }
|
||||
50% { background-color: $background-warning-color-2; }
|
||||
100% { background-color: $background-warning-color-1; }
|
||||
}
|
||||
@-webkit-keyframes status-danger-background {
|
||||
0% { background-color: $background-danger-color-1; }
|
||||
50% { background-color: $background-danger-color-2; }
|
||||
100% { background-color: $background-danger-color-1; }
|
||||
}
|
||||
@mixin animation($animation-name, $duration, $function, $animation-iteration-count:""){
|
||||
-webkit-animation: $animation-name $duration $function #{$animation-iteration-count};
|
||||
-moz-animation: $animation-name $duration $function #{$animation-iteration-count};
|
||||
-ms-animation: $animation-name $duration $function #{$animation-iteration-count};
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Base styles
|
||||
// ----------------------------------------------------------------------------
|
||||
html {
|
||||
height: 100%;
|
||||
font-size: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
display: table;
|
||||
margin: 0 auto;
|
||||
background-color: $background-color;
|
||||
font-size: 20px;
|
||||
color: $text-color;
|
||||
font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
-ms-interpolation-mode: bicubic;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
img, object {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
iframe {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
h1 {
|
||||
margin-bottom: 12px;
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
font-weight: 400;
|
||||
}
|
||||
h2 {
|
||||
text-transform: uppercase;
|
||||
font-size: 76px;
|
||||
font-weight: 700;
|
||||
color: $text-color;
|
||||
}
|
||||
h3 {
|
||||
font-size: 25px;
|
||||
font-weight: 600;
|
||||
color: $text-color;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Base widget styles
|
||||
// ----------------------------------------------------------------------------
|
||||
.gridster {
|
||||
margin: 0px auto;
|
||||
}
|
||||
|
||||
.icon-background {
|
||||
pointer-events: none;
|
||||
width: 100%!important;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
opacity: 0.1;
|
||||
font-size: 275px;
|
||||
text-align: center;
|
||||
margin-top: 82px;
|
||||
}
|
||||
|
||||
.list-nostyle {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.gridster ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
// https://github.com/Shopify/dashing/issues/110
|
||||
// Prevent widgets growing outside of their designated size
|
||||
.gridster li {
|
||||
overflow: hidden;
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
.gs_w {
|
||||
width: 100%;
|
||||
display: table;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.widget {
|
||||
text-align: center;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.widget.status-warning {
|
||||
background-color: $background-warning-color-1;
|
||||
@include animation(status-warning-background, 2s, ease, infinite);
|
||||
|
||||
.icon-warning-sign {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title, .more-info {
|
||||
color: $text-warning-color;
|
||||
}
|
||||
}
|
||||
|
||||
.widget.status-danger {
|
||||
color: $text-danger-color;
|
||||
background-color: $background-danger-color-1;
|
||||
@include animation(status-danger-background, 2s, ease, infinite);
|
||||
|
||||
.icon-warning-sign {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.title, .more-info {
|
||||
color: $text-danger-color;
|
||||
}
|
||||
}
|
||||
|
||||
.more-info {
|
||||
font-size: 15px;
|
||||
position: absolute;
|
||||
bottom: 32px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.updated-at {
|
||||
font-size: 15px;
|
||||
position: absolute;
|
||||
bottom: 12px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#save-gridster {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
margin: 0px auto;
|
||||
left: 50%;
|
||||
z-index: 1000;
|
||||
background: black;
|
||||
width: 190px;
|
||||
text-align: center;
|
||||
border: 1px solid white;
|
||||
border-top: 0px;
|
||||
margin-left: -95px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
#save-gridster:hover {
|
||||
padding-top: 25px;
|
||||
}
|
||||
|
||||
#saving-instructions {
|
||||
display: none;
|
||||
padding: 10px;
|
||||
width: 500px;
|
||||
height: 122px;
|
||||
z-index: 1000;
|
||||
background: white;
|
||||
top: 100px;
|
||||
color: black;
|
||||
font-size: 15px;
|
||||
padding-bottom: 4px;
|
||||
|
||||
textarea {
|
||||
white-space: nowrap;
|
||||
width: 494px;
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
#lean_overlay {
|
||||
position: fixed;
|
||||
z-index:100;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
height:100%;
|
||||
width:100%;
|
||||
background: #000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#container {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Clearfix
|
||||
// ----------------------------------------------------------------------------
|
||||
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
||||
.clearfix:after { clear: both; }
|
||||
.clearfix { zoom: 1; }
|
||||
|
||||
14
assets/stylesheets/brands.css
Normal file
14
assets/stylesheets/brands.css
Normal file
@@ -0,0 +1,14 @@
|
||||
/*!
|
||||
* Font Awesome Free 5.11.2 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'Font Awesome 5 Brands';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-display: auto;
|
||||
src: url("fa-brands-400.eot");
|
||||
src: url("fa-brands-400.eot?#iefix") format("embedded-opentype"), url("fa-brands-400.woff2") format("woff2"), url("fa-brands-400.woff") format("woff"), url("fa-brands-400.ttf") format("truetype"), url("fa-brands-400.svg#fontawesome") format("svg"); }
|
||||
|
||||
.fab {
|
||||
font-family: 'Font Awesome 5 Brands'; }
|
||||
2
assets/stylesheets/jquery.gridster.min.css
vendored
Normal file
2
assets/stylesheets/jquery.gridster.min.css
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! gridster.js - v0.7.0 - 2017-03-27 - * https://dsmorse.github.io/gridster.js/ - Copyright (c) 2017 ducksboard; Licensed MIT */
|
||||
.gridster{position:relative}.gridster>*{-webkit-transition:height .4s,width .4s;-moz-transition:height .4s,width .4s;-o-transition:height .4s,width .4s;-ms-transition:height .4s,width .4s;transition:height .4s,width .4s}.gridster .gs-w{z-index:2;position:absolute}.gridster .preview-holder{z-index:1;position:absolute;background-color:#fff;border-color:#fff;opacity:.3}.gridster .player-revert{z-index:10!important;-webkit-transition:left .3s,top .3s!important;-moz-transition:left .3s,top .3s!important;-o-transition:left .3s,top .3s!important;transition:left .3s,top .3s!important}.gridster.collapsed{height:auto!important}.gridster.collapsed .gs-w{position:static!important}.ready .gs-w:not(.preview-holder),.ready .resize-preview-holder{-webkit-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;-moz-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;-o-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;transition:opacity .3s,left .3s,top .3s,width .3s,height .3s}.gridster .dragging,.gridster .resizing{z-index:10!important;-webkit-transition:all 0s!important;-moz-transition:all 0s!important;-o-transition:all 0s!important;transition:all 0s!important}.gs-resize-handle{position:absolute;z-index:1}.gs-resize-handle-both{width:20px;height:20px;bottom:-8px;right:-8px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=);background-position:top left;background-repeat:no-repeat;cursor:se-resize;z-index:20}.gs-resize-handle-x{top:0;bottom:13px;right:-5px;width:10px;cursor:e-resize}.gs-resize-handle-y{left:0;right:13px;bottom:-5px;height:10px;cursor:s-resize}.gs-w:hover .gs-resize-handle,.resizing .gs-resize-handle{opacity:1}.gs-resize-handle,.gs-w.dragging .gs-resize-handle{opacity:0}.gs-resize-disabled .gs-resize-handle,[data-max-sizex="1"] .gs-resize-handle-x,[data-max-sizey="1"] .gs-resize-handle-y,[data-max-sizey="1"][data-max-sizex="1"] .gs-resize-handle{display:none!important}
|
||||
16
assets/stylesheets/solid.css
Normal file
16
assets/stylesheets/solid.css
Normal file
@@ -0,0 +1,16 @@
|
||||
/*!
|
||||
* Font Awesome Free 5.11.2 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: auto;
|
||||
src: url("fa-solid-900.eot");
|
||||
src: url("fa-solid-900.eot?#iefix") format("embedded-opentype"), url("fa-solid-900.woff2") format("woff2"), url("fa-solid-900.woff") format("woff"), url("fa-solid-900.ttf") format("truetype"), url("fa-solid-900.svg#fontawesome") format("svg"); }
|
||||
|
||||
.fa,
|
||||
.fas {
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-weight: 900; }
|
||||
Reference in New Issue
Block a user