toolbox_esten 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +0 -0
  3. data/CONTRIBUTING.md +0 -0
  4. data/Gemfile +10 -0
  5. data/Gemfile.lock +165 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +0 -0
  8. data/Rakefile +8 -0
  9. data/assets/javascripts/simpleLoader/simpleLoader.js +122 -0
  10. data/assets/javascripts/simpleLoader/simpleLoader.min.js +1 -0
  11. data/assets/javascripts/simpleMenu/simpleMenu.js +53 -0
  12. data/assets/javascripts/simpleMenu/simpleMenu.min.js +1 -0
  13. data/assets/javascripts/simpleSelection/simpleSelect.js +60 -0
  14. data/assets/javascripts/simpleTextfield/simpleTextfield.js +94 -0
  15. data/assets/javascripts/simpleTooltip/simpleTooltip.js +166 -0
  16. data/assets/javascripts/simpleTooltip/simpleTooltip.min.js +1 -0
  17. data/assets/stylesheets/_jquery_ui.scss +1 -0
  18. data/assets/stylesheets/_simpleloader.scss +2 -0
  19. data/assets/stylesheets/_simpleselection.scss +1 -0
  20. data/assets/stylesheets/_simpletextfield.scss +1 -0
  21. data/assets/stylesheets/_simpletooltip.scss +1 -0
  22. data/assets/stylesheets/_toolbox_esten.scss +18 -0
  23. data/assets/stylesheets/jquery_ui/uidialog.scss +39 -0
  24. data/assets/stylesheets/simpleLoader/keyframes.scss +325 -0
  25. data/assets/stylesheets/simpleLoader/simpleLoader.scss +367 -0
  26. data/assets/stylesheets/simpleSelection/simpleSelection.scss +15 -0
  27. data/assets/stylesheets/simpleTextfield/simpleTextfield.scss +54 -0
  28. data/assets/stylesheets/simpleTooltip/simpleTooltip.scss +21 -0
  29. data/assets/stylesheets/toolbox_esten/base.scss +27 -0
  30. data/assets/stylesheets/toolbox_esten/buttons.scss +162 -0
  31. data/assets/stylesheets/toolbox_esten/datatables.scss +113 -0
  32. data/assets/stylesheets/toolbox_esten/detail.scss +22 -0
  33. data/assets/stylesheets/toolbox_esten/flex.scss +32 -0
  34. data/assets/stylesheets/toolbox_esten/form.scss +35 -0
  35. data/assets/stylesheets/toolbox_esten/grid.scss +34 -0
  36. data/assets/stylesheets/toolbox_esten/helper.scss +42 -0
  37. data/assets/stylesheets/toolbox_esten/mixins.scss +179 -0
  38. data/assets/stylesheets/toolbox_esten/notification.scss +109 -0
  39. data/assets/stylesheets/toolbox_esten/reset.scss +38 -0
  40. data/assets/stylesheets/toolbox_esten/section.scss +53 -0
  41. data/assets/stylesheets/toolbox_esten/tables.scss +72 -0
  42. data/assets/stylesheets/toolbox_esten/tabs.scss +42 -0
  43. data/assets/stylesheets/toolbox_esten/textfield.scss +43 -0
  44. data/assets/stylesheets/toolbox_esten/top_bar.scss +80 -0
  45. data/assets/stylesheets/toolbox_esten/variables.scss +260 -0
  46. data/bower.json +26 -0
  47. data/composer.json +20 -0
  48. data/lib/toolbox_esten.rb +84 -0
  49. data/lib/toolbox_esten/engine.rb +11 -0
  50. data/lib/toolbox_esten/version.rb +3 -0
  51. data/sache.json +5 -0
  52. data/tasks/bower.rake +29 -0
  53. data/tasks/converter.rb +62 -0
  54. data/tasks/converter/char_string_scanner.rb +38 -0
  55. data/tasks/converter/logger.rb +57 -0
  56. data/tasks/converter/network.rb +100 -0
  57. data/tasks/install.rake +20 -0
  58. data/templates/.travis.yml +19 -0
  59. data/templates/project/styles.sass +2 -0
  60. data/toolbox_esten.gemspec +43 -0
  61. metadata +317 -0
@@ -0,0 +1,27 @@
1
+ //
2
+ // 1. Set default font
3
+ // 2. Set default size, box-sizing, position, and margin of global container
4
+ //
5
+ a { color: $grey_700; }
6
+ .norecord {
7
+ @include font(14px, 500);
8
+ padding: 100px 0;
9
+ }
10
+ body {
11
+ @include font(12px, 500);
12
+ font-family: $helvetica;
13
+ color: $grey_900;
14
+ }
15
+ .container {
16
+ @include size(100%, 100%);
17
+ @include box-sizing(border-box);
18
+ position: relative;
19
+ overflow: hidden;
20
+ }
21
+ .bodycontent {
22
+ @include box-sizing(border-box);
23
+ position: relative;
24
+ height: 100%;
25
+ padding: 40px 0 0;
26
+ overflow: auto;
27
+ }
@@ -0,0 +1,162 @@
1
+ .caret {
2
+ border-style: solid;
3
+ border-width: 4px;
4
+ border-color: transparent;
5
+ float: none!important;
6
+ }
7
+ @each $dir in 'up', 'down', 'left', 'right' {
8
+ .caret.#{$dir} {
9
+ border-#{position(#{$dir})}-width: 0;
10
+ border-#{opposite-position(#{$dir})}-color: $grey_600;
11
+ }
12
+ }
13
+
14
+ //Structure
15
+ .btn {
16
+ @include line-height(30px, 30px);
17
+ @include box-sizing(border-box);
18
+ @include transition(0.3s);
19
+ display: inline-block;
20
+ vertical-align: middle;
21
+ position: relative;
22
+ min-width: 30px;
23
+ outline: 0;
24
+ border: none;
25
+ cursor: pointer;
26
+ &.flat,
27
+ &.square {
28
+ @include border-radius(2px);
29
+ @include font(12px, 400);
30
+ height: 30px;
31
+ padding: 0 8px;
32
+ text-transform: uppercase;
33
+ }
34
+ &.circle {
35
+ @include border-radius(100%);
36
+ @include size(30px, 30px);
37
+ &[class^="icon-"]:before,
38
+ &[class*="icon-"]:before {
39
+ @include font(16px, 400);
40
+ float: none;
41
+ vertical-align: top;
42
+ margin: 0;
43
+ }
44
+ }
45
+ &[class^="icon-"]:before,
46
+ &[class*="icon-"]:before {
47
+ float: left;
48
+ line-height: 29px;
49
+ margin: 0 4px 0 0;
50
+ }
51
+ input[type="button"] {
52
+ @extend .vm;
53
+ @include size(100%, 100%);
54
+ @include tblr-cust((left, 0), (top, 0));
55
+ @include opacity(0);
56
+ border: none;
57
+ cursor: pointer;
58
+ }
59
+ &.btn-mini {
60
+ @include line-height(20px, 20px);
61
+ }
62
+ }
63
+
64
+
65
+ //Theme
66
+ .btn {
67
+ &.flat {
68
+ color: #FFFFFF;
69
+ background: transparent;
70
+ @each $dir in 'up', 'down', 'left', 'right' {
71
+ .caret.#{$dir} {
72
+ border-#{opposite-position(#{$dir})}-color: #FFFFFF;
73
+ }
74
+ }
75
+ &.normal {
76
+ color: $grey_500;
77
+ &:hover { background: $grey_500; }
78
+ @each $dir in 'up', 'down', 'left', 'right' {
79
+ .caret.#{$dir} {
80
+ border-#{opposite-position(#{$dir})}-color: $grey_500;
81
+ }
82
+ }
83
+ }
84
+ &.alert {
85
+ color: $deep_orange_400;
86
+ &:hover { background: $deep_orange_400; }
87
+ @each $dir in 'up', 'down', 'left', 'right' {
88
+ .caret.#{$dir} {
89
+ border-#{opposite-position(#{$dir})}-color: $deep_orange_400;
90
+ }
91
+ }
92
+ }
93
+ &.success { color: $light_green_400; }
94
+ &.warning { color: $yellow_600; }
95
+ &.info {
96
+ color: $blue_400;
97
+ &:hover { background: $blue_400; }
98
+ @each $dir in 'up', 'down', 'left', 'right' {
99
+ .caret.#{$dir} {
100
+ border-#{opposite-position(#{$dir})}-color: $blue_400;
101
+ }
102
+ }
103
+ }
104
+ &:hover {
105
+ color: #FFFFFF;
106
+ @each $dir in 'up', 'down', 'left', 'right' {
107
+ .caret.#{$dir} {
108
+ border-#{opposite-position(#{$dir})}-color: #FFFFFF;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ &.square {
114
+ @each $dir in 'up', 'down', 'left', 'right' {
115
+ .caret.#{$dir} {
116
+ border-#{opposite-position(#{$dir})}-color: #FFFFFF;
117
+ }
118
+ }
119
+ }
120
+ &.square,
121
+ &.circle {
122
+ @include box-shadow(0 1px 2px $grey_300);
123
+ &.normal {
124
+ color: $grey_600;
125
+ background: #FFFFFF;
126
+ border: solid 1px $grey_300;
127
+ &:hover { background: #FFFFFF; }
128
+ }
129
+ &.alert {
130
+ color: #FFFFFF;
131
+ background: $deep_orange_400;
132
+ border: solid 1px $deep_orange_400;
133
+ &:hover { background: $deep_orange_600; }
134
+ }
135
+ &.success {
136
+ color: #FFFFFF;
137
+ background: $light_green_400;
138
+ border: solid 1px $light_green_400;
139
+ &:hover { background: $light_green_600; }
140
+ }
141
+ &.warning {
142
+ color: #FFFFFF;
143
+ background: $yellow_600;
144
+ border: solid 1px $yellow_600;
145
+ &:hover { background: $yellow_600; }
146
+ }
147
+ &.info {
148
+ color: #FFFFFF;
149
+ background: $blue_400;
150
+ border: solid 1px $blue_400;
151
+ &:hover { background: $blue_600; }
152
+ }
153
+ &[disabled],
154
+ &.disabled {
155
+ color: $grey_400!important;
156
+ background: $grey_200!important;
157
+ border: solid 1px $grey_200!important;
158
+ cursor: not-allowed;
159
+ &:hover { background: $grey_300; }
160
+ }
161
+ }
162
+ }
@@ -0,0 +1,113 @@
1
+ .dataTables_empty {
2
+ vertical-align: middle;
3
+ text-align: center;
4
+ color: $grey_500;
5
+ }
6
+ .dataTables_wrapper {
7
+ .dataTables_paginate {
8
+ float: right;
9
+ text-align: right;
10
+ padding-top: 0.25em;
11
+ .paginate_button {
12
+ @include box-sizing(border-box);
13
+ display: inline-block;
14
+ min-width: 1.5em;
15
+ padding: 0.5em 1em;
16
+ margin-left: 2px;
17
+ text-align: center;
18
+ text-decoration: none!important;
19
+ border: solid 1px $grey_300;
20
+ color: $grey_700!important;
21
+ cursor: pointer;
22
+ *cursor: hand;
23
+ &.current,
24
+ &.current:hover {
25
+ background: $grey_300;
26
+ }
27
+ &.disabled,
28
+ &.disabled:hover,
29
+ &.disabled:active {
30
+ @include box-shadow(none);
31
+ border: solid 1px transparent;
32
+ color: #666666!important;
33
+ background: transparent;
34
+ cursor: default;
35
+ }
36
+ &:hover {
37
+ color: #FFFFFF!important;
38
+ background: $grey_400;
39
+ }
40
+ &:active {
41
+ @include box-shadow(inset 0 0 3px #111111);
42
+ background: #2B2B2B;
43
+ outline: none;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ // table.dataTable {
49
+ // thead {
50
+ // .sorting_asc,
51
+ // .sorting_desc,
52
+ // .sorting {
53
+ // position: relative;
54
+ // cursor: pointer;
55
+ // *cursor: hand;
56
+ // }
57
+ // .sorting {
58
+ // overflow: hidden;
59
+ // &:before, &:after {
60
+ // @extend .vm;
61
+ // @include size(0, 0);
62
+ // display: block;
63
+ // content: "";
64
+ // left: auto;
65
+ // right: 10px;
66
+ // border: solid 4px transparent;
67
+ // }
68
+ // &:before {
69
+ // top: 11px;
70
+ // bottom: auto;
71
+ // border-top: 0;
72
+ // border-bottom-color: $grey_500;
73
+ // }
74
+ // &:after {
75
+ // top: auto;
76
+ // bottom: 11px;
77
+ // border-bottom: 0;
78
+ // border-top-color: $grey_500;
79
+ // }
80
+ // }
81
+ // .sorting_asc,
82
+ // .sorting_desc,
83
+ // .sorting_asc_disabled,
84
+ // .sorting_desc_disabled {
85
+ // position: relative;
86
+ // &:after {
87
+ // @extend .vm;
88
+ // @include size(0, 0);
89
+ // display: block;
90
+ // content: "";
91
+ // left: auto;
92
+ // right: 10px;
93
+ // border: solid 4px transparent;
94
+ // }
95
+ // }
96
+ // .sorting_asc:after,
97
+ // .sorting_asc_disabled:after {
98
+ // top: auto;
99
+ // bottom: 11px;
100
+ // border-bottom: 0;
101
+ // }
102
+ // .sorting_desc:after,
103
+ // .sorting_desc_disabled:after {
104
+ // top: 11px;
105
+ // bottom: auto;
106
+ // border-top: 0;
107
+ // }
108
+ // .sorting_asc:after { border-top-color: $grey_500; }
109
+ // .sorting_desc:after { border-bottom-color: $grey_500; }
110
+ // .sorting_asc_disabled:after { border-top-color: $grey_300; }
111
+ // .sorting_desc_disabled:after { border-bottom-color: $grey_300; }
112
+ // }
113
+ // }
@@ -0,0 +1,22 @@
1
+ .detail {
2
+ @extend .form;
3
+ .detail-head { @extend .section-head; }
4
+ .detail-body {
5
+ @extend .form-body;
6
+ .field {
7
+ padding: 16px 0;
8
+ div.controls {
9
+ .label_name {
10
+ @include line-height(100%, 20px);
11
+ @include font(12px, 400);
12
+ text-transform: uppercase;
13
+ color: $grey_500;
14
+ }
15
+ .detail_val {
16
+ @extend .textfield;
17
+ height: auto;
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,32 @@
1
+ .flex-container {
2
+ display: flex;
3
+ /* ---------- Direction ---------- */
4
+ @each $dir in 'row', 'row-reverse', 'column', 'column-reverse' {
5
+ &.#{$dir} { flex-direction: #{$dir}; }
6
+ }
7
+ /* ---------- END Direction ---------- */
8
+
9
+ /* ---------- Wrap ---------- */
10
+ @each $wrap in 'nowrap', 'wrap', 'wrap-reverse' {
11
+ &.flex-#{$wrap} { flex-wrap: #{$wrap}; }
12
+ }
13
+ /* ---------- END Wrap ---------- */
14
+
15
+ /* ---------- Flow ---------- */
16
+ @each $flow in 'flex-start', 'flex-end', 'center', 'space-between', 'space-around' {
17
+ &.#{$flow} { justify-content: #{$flow}; }
18
+ }
19
+ /* ---------- END Flow ---------- */
20
+
21
+ /* ---------- Align Item ---------- */
22
+ @each $align in 'flex-start', 'flex-end', 'center', 'baseline', 'stretch' {
23
+ &.item-#{$align} { align-items: #{$align}; }
24
+ }
25
+ /* ---------- END Align Item ---------- */
26
+
27
+ /* ---------- Align Content ---------- */
28
+ @each $align in 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'stretch' {
29
+ &.content-#{$align} { align-content: #{$align}; }
30
+ }
31
+ /* ---------- END Align Content ---------- */
32
+ }
@@ -0,0 +1,35 @@
1
+ .form {
2
+ @extend .section;
3
+ overflow: auto;
4
+ .form-head {
5
+ @extend .section-head;
6
+ padding: 20px 40px 10px;
7
+ h1 { margin: 0 auto 8px; }
8
+ }
9
+ .form-body {
10
+ @extend .section-body;
11
+ .field {
12
+ position: relative;
13
+ margin: 0 auto;
14
+ padding: 24px 0;
15
+ div.controls {
16
+ position: relative;
17
+ line-height: 30px;
18
+ padding: 0 8px;
19
+ .label_name {
20
+ @include line-height(100%, 30px);
21
+ @include font(18px, 200);
22
+ @include transition(0.2s);
23
+ display: inline-block;
24
+ color: $grey_500;
25
+ }
26
+ .textfield {
27
+ @include font(18px, 200);
28
+ font-family: $helvetica;
29
+ &.datefield { cursor: pointer; }
30
+ }
31
+ }
32
+ &.actions { padding: 16px 0; }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,34 @@
1
+ .span1, .span2, .span3, .span4,
2
+ .span5, .span6, .span7, .span8,
3
+ .span9, .span10, .span11, .span12 {
4
+ display: block;
5
+ -webkit-box-sizing: border-box;
6
+ -moz-box-sizing: border-box;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ .span1 { width: 8.333333333333332%; }
11
+ .span2 { width: 16.666666666666664%; }
12
+ .span3 { width: 25%; }
13
+ .span4 { width: 33.33333333333333%; }
14
+ .span5 { width: 41.66666666666667%; }
15
+ .span6 { width: 50%; }
16
+ .span7 { width: 58.333333333333336%; }
17
+ .span8 { width: 66.66666666666666%; }
18
+ .span9 { width: 75%; }
19
+ .span10 { width: 83.33333333333334%; }
20
+ .span11 { width: 91.66666666666666%; }
21
+ .span12 { width: 100%; }
22
+
23
+ .offset1 { margin-left: 8.333333333333332%!important; }
24
+ .offset2 { margin-left: 16.666666666666664%!important; }
25
+ .offset3 { margin-left: 25%!important; }
26
+ .offset4 { margin-left: 33.33333333333333%!important; }
27
+ .offset5 { margin-left: 41.66666666666667%!important; }
28
+ .offset6 { margin-left: 50%!important; }
29
+ .offset7 { margin-left: 58.333333333333336%!important; }
30
+ .offset8 { margin-left: 66.66666666666666%!important; }
31
+ .offset9 { margin-left: 75%!important; }
32
+ .offset10 { margin-left: 83.33333333333334%!important; }
33
+ .offset11 { margin-left: 91.66666666666666%!important; }
34
+ .offset12 { margin-left: 100%!important; }
@@ -0,0 +1,42 @@
1
+ .transition {
2
+ -webkit-transition: 0.4s;
3
+ -moz-transition: 0.4s;
4
+ -o-transition: 0.4s;
5
+ transition: 0.4s;
6
+ }
7
+ .transition-fast {
8
+ -webkit-transition: 0.1s;
9
+ -moz-transition: 0.1s;
10
+ -o-transition: 0.1s;
11
+ transition: 0.1s;
12
+ }
13
+ .clear { clear: both; }
14
+ .hide { display: none; }
15
+ .hidden { display:none!important; }
16
+ .visible { overflow: visible!important; }
17
+ .auto { overflow: auto!important; }
18
+ .pointer { cursor: pointer; }
19
+ .vm {
20
+ @include tblr(0,0,0,0);
21
+ position: absolute;
22
+ margin: auto;
23
+ }
24
+ .nowrap { white-space: nowrap; }
25
+ .text-overflow {
26
+ overflow: hidden;
27
+ white-space: nowrap;
28
+ text-overflow: ellipsis;
29
+ }
30
+ .table-fixed { width: auto; table-layout: fixed; }
31
+ @each $dir in 'left', 'right', 'center' {
32
+ .text-#{$dir} { text-align: #{$dir}!important; }
33
+ }
34
+ @each $dir in 'left', 'right' {
35
+ .#{$dir} { float: #{$dir}; }
36
+ }
37
+ @each $valign in 'top', 'middle', 'baseline' {
38
+ .inline-#{$valign} {
39
+ display: inline-block;
40
+ vertical-align: #{$valign};
41
+ }
42
+ }