my_dashboard 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +9 -0
- data/CHANGELOG.md +23 -0
- data/Gemfile +20 -0
- data/MIT-LICENSE +20 -0
- data/README.md +223 -0
- data/Rakefile +7 -0
- data/app/assets/javascripts/my_dashboard/application.js +17 -0
- data/app/assets/javascripts/my_dashboard/my_dashboard.coffee +0 -0
- data/app/assets/stylesheets/my_dashboard/application.css +13 -0
- data/app/controllers/my_dashboard/application_controller.rb +23 -0
- data/app/controllers/my_dashboard/dashboards_controller.rb +31 -0
- data/app/controllers/my_dashboard/events_controller.rb +28 -0
- data/app/controllers/my_dashboard/widgets_controller.rb +45 -0
- data/app/helpers/my_dashboard/application_helper.rb +4 -0
- data/app/views/layouts/my_dashboard/dashboard.html.erb +30 -0
- data/app/views/my_dashboard/widgets/clock.html +2 -0
- data/app/views/my_dashboard/widgets/comments.html +7 -0
- data/app/views/my_dashboard/widgets/graph.html +5 -0
- data/app/views/my_dashboard/widgets/iframe.html +1 -0
- data/app/views/my_dashboard/widgets/image.html +1 -0
- data/app/views/my_dashboard/widgets/list.html +18 -0
- data/app/views/my_dashboard/widgets/meter.html +7 -0
- data/app/views/my_dashboard/widgets/number.html +11 -0
- data/app/views/my_dashboard/widgets/text.html +7 -0
- data/bin/rails +8 -0
- data/config/routes.rb +15 -0
- data/lib/assets/javascripts/my_dashboard.gridster.coffee +0 -0
- data/lib/generators/my_dashboard/install_generator.rb +36 -0
- data/lib/generators/my_dashboard/job_generator.rb +15 -0
- data/lib/generators/my_dashboard/widget_generator.rb +17 -0
- data/lib/generators/templates/dashboards/sample.html.erb +28 -0
- data/lib/generators/templates/initializer.rb +58 -0
- data/lib/generators/templates/jobs/new.rb +3 -0
- data/lib/generators/templates/jobs/sample.rb +9 -0
- data/lib/generators/templates/layouts/dashboard.html.erb +30 -0
- data/lib/generators/templates/widgets/index.css +12 -0
- data/lib/generators/templates/widgets/index.js +13 -0
- data/lib/generators/templates/widgets/new.coffee +9 -0
- data/lib/generators/templates/widgets/new.html +1 -0
- data/lib/generators/templates/widgets/new.scss +10 -0
- data/lib/my_dashboard.rb +50 -0
- data/lib/my_dashboard/configuration.rb +63 -0
- data/lib/my_dashboard/engine.rb +7 -0
- data/lib/my_dashboard/railtie.rb +31 -0
- data/lib/my_dashboard/version.rb +3 -0
- data/lib/tasks/my_dashboard_tasks.rake +4 -0
- data/my_dashboard.gemspec +31 -0
- data/spec/controllers/my_dashboard/application_controller_spec.rb +21 -0
- data/spec/controllers/my_dashboard/dashboards_controller_spec.rb +46 -0
- data/spec/controllers/my_dashboard/events_controller_spec.rb +11 -0
- data/spec/controllers/my_dashboard/widgets_controller_spec.rb +72 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/my_dashboard/widgets/foo.coffee +0 -0
- data/spec/dummy/app/assets/javascripts/my_dashboard/widgets/index.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/my_dashboard/widgets/foo.scss +0 -0
- data/spec/dummy/app/assets/stylesheets/my_dashboard/widgets/index.css +12 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/sample.rb +9 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/my_dashboard/dashboard.html.erb +30 -0
- data/spec/dummy/app/views/my_dashboard/dashboards/foo.erb +0 -0
- data/spec/dummy/app/views/my_dashboard/dashboards/sample.html.erb +28 -0
- data/spec/dummy/app/views/my_dashboard/widgets/foo.html +0 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/my_dashboard.rb +58 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/lib/generators/widget_generator_spec.rb +26 -0
- data/spec/lib/my_dashboard/configuration_spec.rb +66 -0
- data/spec/lib/my_dashboard_spec.rb +55 -0
- data/spec/spec_helper.rb +52 -0
- data/spec/support/controller_spec_helpers.rb +9 -0
- data/vendor/assets/fonts/my_dashboard/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/my_dashboard/fontawesome-webfont.svg +414 -0
- data/vendor/assets/fonts/my_dashboard/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/my_dashboard/fontawesome-webfont.woff +0 -0
- data/vendor/assets/javascripts/my_dashboard/batman.jquery.js +163 -0
- data/vendor/assets/javascripts/my_dashboard/batman.js +13680 -0
- data/vendor/assets/javascripts/my_dashboard/d3-3.2.8.min.js +5 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/clock.coffee +18 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/comments.coffee +24 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/graph.coffee +37 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/iframe.coffee +9 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/image.coffee +9 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/index.js +13 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/list.coffee +6 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/meter.coffee +14 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/number.coffee +25 -0
- data/vendor/assets/javascripts/my_dashboard/default_widgets/text.coffee +1 -0
- data/vendor/assets/javascripts/my_dashboard/es5-shim.js +1021 -0
- data/vendor/assets/javascripts/my_dashboard/index.js +21 -0
- data/vendor/assets/javascripts/my_dashboard/jquery.gridster.js +3987 -0
- data/vendor/assets/javascripts/my_dashboard/jquery.js +4 -0
- data/vendor/assets/javascripts/my_dashboard/jquery.knob.js +646 -0
- data/vendor/assets/javascripts/my_dashboard/jquery.leanModal.min.js +5 -0
- data/vendor/assets/javascripts/my_dashboard/jquery.timeago.js +184 -0
- data/vendor/assets/javascripts/my_dashboard/moment.min.js +6 -0
- data/vendor/assets/javascripts/my_dashboard/my_dashboard.coffee +0 -0
- data/vendor/assets/javascripts/my_dashboard/rickshaw-1.5.1.min.js +3 -0
- data/vendor/assets/stylesheets/my_dashboard/font-awesome.scss +1338 -0
- data/vendor/assets/stylesheets/my_dashboard/index.css +15 -0
- data/vendor/assets/stylesheets/my_dashboard/jquery.gridster.css +121 -0
- data/vendor/assets/stylesheets/my_dashboard/my_dashboard.scss +302 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/clock.scss +13 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/comments.scss +33 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/graph.scss +65 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/iframe.scss +8 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/image.scss +13 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/index.css +12 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/list.scss +60 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/meter.scss +35 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/number.scss +39 -0
- data/vendor/assets/stylesheets/my_dashboard/widgets/text.scss +32 -0
- metadata +373 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require font-awesome
|
12
|
+
*= require jquery.gridster
|
13
|
+
*= require widgets
|
14
|
+
*= require_tree .
|
15
|
+
*/
|
@@ -0,0 +1,121 @@
|
|
1
|
+
/*! gridster.js - v0.5.6 - 2014-09-25
|
2
|
+
* http://gridster.net/
|
3
|
+
* Copyright (c) 2014 ducksboard; Licensed MIT */
|
4
|
+
|
5
|
+
.gridster {
|
6
|
+
position:relative;
|
7
|
+
}
|
8
|
+
|
9
|
+
.gridster > * {
|
10
|
+
margin: 0 auto;
|
11
|
+
-webkit-transition: height .4s, width .4s;
|
12
|
+
-moz-transition: height .4s, width .4s;
|
13
|
+
-o-transition: height .4s, width .4s;
|
14
|
+
-ms-transition: height .4s, width .4s;
|
15
|
+
transition: height .4s, width .4s;
|
16
|
+
}
|
17
|
+
|
18
|
+
.gridster .gs-w {
|
19
|
+
z-index: 2;
|
20
|
+
position: absolute;
|
21
|
+
}
|
22
|
+
|
23
|
+
.ready .gs-w:not(.preview-holder) {
|
24
|
+
-webkit-transition: opacity .3s, left .3s, top .3s;
|
25
|
+
-moz-transition: opacity .3s, left .3s, top .3s;
|
26
|
+
-o-transition: opacity .3s, left .3s, top .3s;
|
27
|
+
transition: opacity .3s, left .3s, top .3s;
|
28
|
+
}
|
29
|
+
|
30
|
+
.ready .gs-w:not(.preview-holder),
|
31
|
+
.ready .resize-preview-holder {
|
32
|
+
-webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
|
33
|
+
-moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
|
34
|
+
-o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
|
35
|
+
transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
|
36
|
+
}
|
37
|
+
|
38
|
+
.gridster .preview-holder {
|
39
|
+
z-index: 1;
|
40
|
+
position: absolute;
|
41
|
+
background-color: #fff;
|
42
|
+
border-color: #fff;
|
43
|
+
opacity: 0.3;
|
44
|
+
}
|
45
|
+
|
46
|
+
.gridster .player-revert {
|
47
|
+
z-index: 10!important;
|
48
|
+
-webkit-transition: left .3s, top .3s!important;
|
49
|
+
-moz-transition: left .3s, top .3s!important;
|
50
|
+
-o-transition: left .3s, top .3s!important;
|
51
|
+
transition: left .3s, top .3s!important;
|
52
|
+
}
|
53
|
+
|
54
|
+
.gridster .dragging,
|
55
|
+
.gridster .resizing {
|
56
|
+
z-index: 10!important;
|
57
|
+
-webkit-transition: all 0s !important;
|
58
|
+
-moz-transition: all 0s !important;
|
59
|
+
-o-transition: all 0s !important;
|
60
|
+
transition: all 0s !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
.gs-resize-handle {
|
65
|
+
position: absolute;
|
66
|
+
z-index: 1;
|
67
|
+
}
|
68
|
+
|
69
|
+
.gs-resize-handle-both {
|
70
|
+
width: 20px;
|
71
|
+
height: 20px;
|
72
|
+
bottom: -8px;
|
73
|
+
right: -8px;
|
74
|
+
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=');
|
75
|
+
background-position: top left;
|
76
|
+
background-repeat: no-repeat;
|
77
|
+
cursor: se-resize;
|
78
|
+
z-index: 20;
|
79
|
+
}
|
80
|
+
|
81
|
+
.gs-resize-handle-x {
|
82
|
+
top: 0;
|
83
|
+
bottom: 13px;
|
84
|
+
right: -5px;
|
85
|
+
width: 10px;
|
86
|
+
cursor: e-resize;
|
87
|
+
}
|
88
|
+
|
89
|
+
.gs-resize-handle-y {
|
90
|
+
left: 0;
|
91
|
+
right: 13px;
|
92
|
+
bottom: -5px;
|
93
|
+
height: 10px;
|
94
|
+
cursor: s-resize;
|
95
|
+
}
|
96
|
+
|
97
|
+
.gs-w:hover .gs-resize-handle,
|
98
|
+
.resizing .gs-resize-handle {
|
99
|
+
opacity: 1;
|
100
|
+
}
|
101
|
+
|
102
|
+
.gs-resize-handle,
|
103
|
+
.gs-w.dragging .gs-resize-handle {
|
104
|
+
opacity: 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
.gs-resize-disabled .gs-resize-handle {
|
108
|
+
display: none!important;
|
109
|
+
}
|
110
|
+
|
111
|
+
[data-max-sizex="1"] .gs-resize-handle-x,
|
112
|
+
[data-max-sizey="1"] .gs-resize-handle-y,
|
113
|
+
[data-max-sizey="1"][data-max-sizex="1"] .gs-resize-handle {
|
114
|
+
display: none !important;
|
115
|
+
}
|
116
|
+
|
117
|
+
/* Uncomment this if you set helper : "clone" in draggable options */
|
118
|
+
/*.gridster .player {
|
119
|
+
opacity:0;
|
120
|
+
}
|
121
|
+
*/
|
@@ -0,0 +1,302 @@
|
|
1
|
+
// ----------------------------------------------------------------------------
|
2
|
+
// Sass declarations
|
3
|
+
// ----------------------------------------------------------------------------
|
4
|
+
$background-color: #222;
|
5
|
+
$text-color: #fff;
|
6
|
+
|
7
|
+
$background-warning-color-1: #e82711;
|
8
|
+
$background-warning-color-2: #9b2d23;
|
9
|
+
$text-warning-color: #DFE0D4;
|
10
|
+
|
11
|
+
$background-danger-color-1: #eeae32;
|
12
|
+
$background-danger-color-2: #ff9618;
|
13
|
+
$text-danger-color: #fff;
|
14
|
+
|
15
|
+
@-webkit-keyframes status-warning-background {
|
16
|
+
0% { background-color: $background-warning-color-1; }
|
17
|
+
50% { background-color: $background-warning-color-2; }
|
18
|
+
100% { background-color: $background-warning-color-1; }
|
19
|
+
}
|
20
|
+
@-webkit-keyframes status-danger-background {
|
21
|
+
0% { background-color: $background-danger-color-1; }
|
22
|
+
50% { background-color: $background-danger-color-2; }
|
23
|
+
100% { background-color: $background-danger-color-1; }
|
24
|
+
}
|
25
|
+
@mixin animation($animation-name, $duration, $function, $animation-iteration-count:""){
|
26
|
+
-webkit-animation: $animation-name $duration $function #{$animation-iteration-count};
|
27
|
+
-moz-animation: $animation-name $duration $function #{$animation-iteration-count};
|
28
|
+
-ms-animation: $animation-name $duration $function #{$animation-iteration-count};
|
29
|
+
}
|
30
|
+
|
31
|
+
// ----------------------------------------------------------------------------
|
32
|
+
// Base styles
|
33
|
+
// ----------------------------------------------------------------------------
|
34
|
+
html {
|
35
|
+
font-size: 100%;
|
36
|
+
-webkit-text-size-adjust: 100%;
|
37
|
+
-ms-text-size-adjust: 100%;
|
38
|
+
}
|
39
|
+
|
40
|
+
body {
|
41
|
+
margin: 0;
|
42
|
+
background-color: $background-color;
|
43
|
+
font-size: 20px;
|
44
|
+
color: $text-color;
|
45
|
+
font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
|
46
|
+
}
|
47
|
+
|
48
|
+
b, strong {
|
49
|
+
font-weight: bold;
|
50
|
+
}
|
51
|
+
|
52
|
+
a {
|
53
|
+
text-decoration: none;
|
54
|
+
color: inherit;
|
55
|
+
}
|
56
|
+
|
57
|
+
img {
|
58
|
+
border: 0;
|
59
|
+
-ms-interpolation-mode: bicubic;
|
60
|
+
vertical-align: middle;
|
61
|
+
}
|
62
|
+
|
63
|
+
img, object {
|
64
|
+
max-width: 100%;
|
65
|
+
}
|
66
|
+
|
67
|
+
iframe {
|
68
|
+
max-width: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
table {
|
72
|
+
border-collapse: collapse;
|
73
|
+
border-spacing: 0;
|
74
|
+
width: 100%;
|
75
|
+
}
|
76
|
+
|
77
|
+
td {
|
78
|
+
vertical-align: middle;
|
79
|
+
}
|
80
|
+
|
81
|
+
ul, ol {
|
82
|
+
padding: 0;
|
83
|
+
margin: 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
h1, h2, h3, h4, h5, p {
|
87
|
+
padding: 0;
|
88
|
+
margin: 0;
|
89
|
+
}
|
90
|
+
h1 {
|
91
|
+
margin-bottom: 12px;
|
92
|
+
text-align: center;
|
93
|
+
font-size: 30px;
|
94
|
+
font-weight: 400;
|
95
|
+
}
|
96
|
+
h2 {
|
97
|
+
text-transform: uppercase;
|
98
|
+
font-size: 76px;
|
99
|
+
font-weight: 700;
|
100
|
+
color: $text-color;
|
101
|
+
}
|
102
|
+
h3 {
|
103
|
+
font-size: 25px;
|
104
|
+
font-weight: 600;
|
105
|
+
color: $text-color;
|
106
|
+
}
|
107
|
+
|
108
|
+
// ----------------------------------------------------------------------------
|
109
|
+
// Base widget styles
|
110
|
+
// ----------------------------------------------------------------------------
|
111
|
+
#container,
|
112
|
+
.gridster,
|
113
|
+
.gridster > ul {
|
114
|
+
display: flex;
|
115
|
+
}
|
116
|
+
|
117
|
+
#container {
|
118
|
+
justify-content: center;
|
119
|
+
}
|
120
|
+
|
121
|
+
.gridster > ul {
|
122
|
+
// align-items: stretch;
|
123
|
+
// align-content: space-between;
|
124
|
+
// justify-content: stretch;
|
125
|
+
// display: flex;
|
126
|
+
// flex-wrap: wrap;
|
127
|
+
align-items: stretch;
|
128
|
+
align-content: space-between;
|
129
|
+
justify-content: flex-start;
|
130
|
+
display: flex;
|
131
|
+
flex-wrap: wrap;
|
132
|
+
flex: 12;
|
133
|
+
}
|
134
|
+
|
135
|
+
.gridster > ul > .gs-w {
|
136
|
+
z-index: 2;
|
137
|
+
display: flex;
|
138
|
+
max-width: 320px;
|
139
|
+
height: auto;
|
140
|
+
width: 320px;
|
141
|
+
padding-bottom: 20px;
|
142
|
+
justify-content: space-around;
|
143
|
+
align-content: space-around;
|
144
|
+
}
|
145
|
+
|
146
|
+
.gridster > ul > li > .widget {
|
147
|
+
display: flex;
|
148
|
+
align-items: center;
|
149
|
+
flex-direction: column;
|
150
|
+
width: 95%;
|
151
|
+
justify-content: space-around;
|
152
|
+
align-content: space-around;
|
153
|
+
}
|
154
|
+
|
155
|
+
.gridster > ul > li > .widget > .more-info,
|
156
|
+
.gridster > ul > li > .widget > .updated-at {
|
157
|
+
font-size: 15px;
|
158
|
+
font-weight: bold;
|
159
|
+
font-family: Arial;
|
160
|
+
}
|
161
|
+
|
162
|
+
.widget {
|
163
|
+
background-image: url("https://www.mlabs.com.br/assets/blocos.png");
|
164
|
+
}
|
165
|
+
|
166
|
+
.gs-w > .widget-number {
|
167
|
+
background-color: #353940;
|
168
|
+
}
|
169
|
+
|
170
|
+
.gs-w > .widget-number > .value,
|
171
|
+
.gs-w > .widget-number > .change-rate,
|
172
|
+
.widget-number > h1.title,
|
173
|
+
.gridster > ul > li > .widget > .more-info,
|
174
|
+
.gridster > ul > li > .widget > .updated-at {
|
175
|
+
color: $text-warning-color;
|
176
|
+
}
|
177
|
+
|
178
|
+
.gs-w > .widget-list {
|
179
|
+
background-color: #6E60A0;
|
180
|
+
}
|
181
|
+
|
182
|
+
.widget-number > h1.title {
|
183
|
+
font-size: 20px;
|
184
|
+
text-transform: uppercase;
|
185
|
+
}
|
186
|
+
|
187
|
+
.change-rate > .fa-arrow-down {
|
188
|
+
color: #FF5335;
|
189
|
+
}
|
190
|
+
|
191
|
+
.change-rate > .fa-arrow-up {
|
192
|
+
color: #5DAE8B;
|
193
|
+
}
|
194
|
+
|
195
|
+
.icon-background {
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
.list-nostyle {
|
200
|
+
list-style: none;
|
201
|
+
}
|
202
|
+
|
203
|
+
.gridster ul {
|
204
|
+
list-style: none;
|
205
|
+
}
|
206
|
+
|
207
|
+
.gs_w {
|
208
|
+
cursor: pointer;
|
209
|
+
}
|
210
|
+
|
211
|
+
.widget {
|
212
|
+
|
213
|
+
}
|
214
|
+
|
215
|
+
.widget.status-warning {
|
216
|
+
background-color: $background-warning-color-1;
|
217
|
+
@include animation(status-warning-background, 2s, ease, infinite);
|
218
|
+
|
219
|
+
.icon-warning-sign {
|
220
|
+
display: inline-block;
|
221
|
+
}
|
222
|
+
|
223
|
+
.title, .more-info {
|
224
|
+
color: $text-warning-color;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
.widget.status-danger {
|
229
|
+
color: $text-danger-color;
|
230
|
+
background-color: $background-danger-color-1;
|
231
|
+
@include animation(status-danger-background, 2s, ease, infinite);
|
232
|
+
|
233
|
+
.icon-warning-sign {
|
234
|
+
display: inline-block;
|
235
|
+
}
|
236
|
+
|
237
|
+
.title, .more-info {
|
238
|
+
color: $text-danger-color;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
#save-gridster {
|
243
|
+
display: none;
|
244
|
+
position: fixed;
|
245
|
+
top: 0;
|
246
|
+
margin: 0px auto;
|
247
|
+
left: 50%;
|
248
|
+
z-index: 1000;
|
249
|
+
background: black;
|
250
|
+
width: 190px;
|
251
|
+
text-align: center;
|
252
|
+
border: 1px solid white;
|
253
|
+
border-top: 0px;
|
254
|
+
margin-left: -95px;
|
255
|
+
padding: 15px;
|
256
|
+
}
|
257
|
+
|
258
|
+
#save-gridster:hover {
|
259
|
+
padding-top: 25px;
|
260
|
+
}
|
261
|
+
|
262
|
+
#saving-instructions {
|
263
|
+
display: none;
|
264
|
+
padding: 10px;
|
265
|
+
width: 500px;
|
266
|
+
height: 122px;
|
267
|
+
z-index: 1000;
|
268
|
+
background: white;
|
269
|
+
top: 100px;
|
270
|
+
color: black;
|
271
|
+
font-size: 15px;
|
272
|
+
padding-bottom: 4px;
|
273
|
+
|
274
|
+
textarea {
|
275
|
+
white-space: nowrap;
|
276
|
+
width: 494px;
|
277
|
+
height: 80px;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
#lean_overlay {
|
282
|
+
position: fixed;
|
283
|
+
z-index:100;
|
284
|
+
top: 0px;
|
285
|
+
left: 0px;
|
286
|
+
height:100%;
|
287
|
+
width:100%;
|
288
|
+
background: #000;
|
289
|
+
display: none;
|
290
|
+
}
|
291
|
+
|
292
|
+
#container {
|
293
|
+
padding-top: 5px;
|
294
|
+
}
|
295
|
+
|
296
|
+
|
297
|
+
// ----------------------------------------------------------------------------
|
298
|
+
// Clearfix
|
299
|
+
// ----------------------------------------------------------------------------
|
300
|
+
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
301
|
+
.clearfix:after { clear: both; }
|
302
|
+
.clearfix { zoom: 1; }
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// ----------------------------------------------------------------------------
|
2
|
+
// Sass declarations
|
3
|
+
// ----------------------------------------------------------------------------
|
4
|
+
$background-color: #dc5945;
|
5
|
+
|
6
|
+
// ----------------------------------------------------------------------------
|
7
|
+
// Widget-clock styles
|
8
|
+
// ----------------------------------------------------------------------------
|
9
|
+
.widget-clock {
|
10
|
+
|
11
|
+
background-color: $background-color;
|
12
|
+
|
13
|
+
}
|