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,179 @@
1
+ @mixin box-shadow($shadow1) {
2
+ -webkit-box-shadow: $shadow1;
3
+ -moz-box-shadow: $shadow1;
4
+ box-shadow: $shadow1;
5
+ }
6
+ @mixin box-shadows($shadow1, $shadow2) {
7
+ -webkit-box-shadow: $shadow1, $shadow2;
8
+ -moz-box-shadow: $shadow1, $shadow2;
9
+ box-shadow: $shadow1, $shadow2;
10
+ }
11
+ @mixin transition($seconds) {
12
+ -webkit-transition: $seconds;
13
+ -moz-transition: $seconds;
14
+ -o-transition: $seconds;
15
+ transition: $seconds;
16
+ }
17
+ @mixin opacity($opa) {
18
+ filter: Alpha(Opacity=#{$opa});
19
+ opacity: $opa/100;
20
+ }
21
+ @mixin transform($transforms) {
22
+ -webkit-transform: $transforms;
23
+ -ms-transform: $transforms;
24
+ transform: $transforms;
25
+ }
26
+ @mixin transform-origin($x, $y) {
27
+ -webkit-transform-origin: $x $y;
28
+ -ms-transform-origin: $x $y;
29
+ transform-origin: $x $y;
30
+ }
31
+ @mixin border-radius($radius) {
32
+ -webkit-border-radius: $radius;
33
+ -moz-border-radius: $radius;
34
+ border-radius: $radius;
35
+ }
36
+ @mixin border-radius2($topleft, $topright, $bottomright, $bottomleft) {
37
+ -webkit-border-radius: $topleft $topright $bottomright $bottomleft;
38
+ -moz-border-radius: $topleft $topright $bottomright $bottomleft;
39
+ border-radius: $topleft $topright $bottomright $bottomleft;
40
+ }
41
+ @mixin user-select($type) {
42
+ -webkit-user-select: $type;
43
+ -moz-user-select: $type;
44
+ -ms-user-select: $type;
45
+ }
46
+ @mixin box-sizing($sizing) {
47
+ -webkit-box-sizing: $sizing;
48
+ -moz-box-sizing: $sizing;
49
+ box-sizing: $sizing;
50
+ }
51
+ @mixin background-size($size) {
52
+ -webkit-background-size: unquote($size);
53
+ -moz-background-size: unquote($size);
54
+ -o-background-size: unquote($size);
55
+ background-size: unquote($size);
56
+ }
57
+ @mixin col-c($count) {
58
+ -webkit-column-count: $count;
59
+ -moz-column-count: $count;
60
+ column-count: $count;
61
+ }
62
+ @function position($direction) {
63
+ $position: $direction;
64
+
65
+ @if($direction == 'up') {
66
+ $position: 'top';
67
+ } @else if($direction == 'down') {
68
+ $position: 'bottom';
69
+ } @else if($direction == 'left') {
70
+ $position: 'left';
71
+ } @else {
72
+ $position: 'right';
73
+ }
74
+
75
+ @return $position;
76
+ }
77
+ @function opposite-position($direction) {
78
+ $opposite: $direction;
79
+
80
+ @if($direction == 'up') {
81
+ $opposite: 'bottom';
82
+ } @else if($direction == 'down') {
83
+ $opposite: 'top';
84
+ } @else if($direction == 'left') {
85
+ $opposite: 'right';
86
+ } @else {
87
+ $opposite: 'left';
88
+ }
89
+
90
+ @return $opposite;
91
+ }
92
+
93
+ @mixin linear-g($direction, $fallback, $from, $to) {
94
+ $directions: get-direction($direction);
95
+
96
+ background: $fallback;
97
+ background: -webkit-gradient(linear, unquote(nth($directions, 2)), color-stop(0%, $from), color-stop(100%, $to));
98
+ background: -webkit-linear-gradient(unquote(nth($directions, 1)), $from 0%, $to 100%);
99
+ background: -moz-linear-gradient(unquote(nth($directions, 1)), $from 0%, $to 100%);
100
+ background: -ms-linear-gradient(unquote(nth($directions, 1)), $from 0%, $to 100%);
101
+ background: -o-linear-gradient(unquote(nth($directions, 1)), $from 0%, $to 100%);
102
+ background: linear-gradient($direction, $from 0%, $to 100%);
103
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$from}', endColorstr='#{$to}',GradientType=0 );
104
+ }
105
+ @mixin multiple-linear-g($args) {
106
+ $gradient: ();
107
+ $deg: nth($args, 1) + "deg";
108
+
109
+ @each $cs in $args {
110
+ @if(type-of($cs) != 'number') {
111
+ $gradient: append($gradient, unquote($cs), comma);
112
+ }
113
+ }
114
+ background-image: -webkit-linear-gradient(unquote($deg), $gradient);
115
+ background-image: -moz-linear-gradient(unquote($deg), $gradient);
116
+ background-image: -o-linear-gradient(unquote($deg), $gradient);
117
+ background-image: linear-gradient(unquote($deg), $gradient);
118
+ }
119
+ @mixin size($w, $h) {
120
+ width: $w;
121
+ height: $h;
122
+ }
123
+ @mixin line-height($h, $lh) {
124
+ height: $h;
125
+ line-height: $lh;
126
+ }
127
+ @mixin font($size, $weight) {
128
+ font-size: $size;
129
+ font-weight: $weight;
130
+ }
131
+ @mixin tblr($t, $b, $l, $r) {
132
+ top: $t;
133
+ bottom: $b;
134
+ left: $l;
135
+ right: $r;
136
+ }
137
+ @mixin tblr-cust($args...) {
138
+ @each $pair in $args {
139
+ #{nth($pair, 1)}: #{nth($pair, 2)};
140
+ }
141
+ }
142
+ @mixin color($index, $color) {
143
+ &.color#{$index}:after {
144
+ background: #{$color};
145
+ border: solid 2px #{$color};
146
+ }
147
+ }
148
+ @mixin trans-rotate($deg) {
149
+ -webkit-transform: rotate(#{$deg});
150
+ -ms-transform: rotate(#{$deg});
151
+ transform: rotate(#{$deg});
152
+ }
153
+ @mixin text-overflow {
154
+ overflow: hidden;
155
+ white-space: nowrap;
156
+ text-overflow: ellipsis;
157
+ }
158
+ @mixin appearance($val) {
159
+ -webkit-appearance: #{$val};
160
+ -moz-appearance: #{$val};
161
+ appearance: #{$val};
162
+ }
163
+
164
+ /* -------------------- Functions -------------------- */
165
+ @function get-direction($direction) {
166
+ $old-direction: $direction;
167
+ $veryold-direction: $direction;
168
+
169
+ @if($direction == 'to bottom') {
170
+ $old-direction: 'top';
171
+ $veryold-direction: 'left top, left bottom';
172
+ } @else {
173
+ $old-direction: 'left';
174
+ $veryold-direction: 'left top, right top';
175
+ }
176
+
177
+ @return $old-direction, $veryold-direction;
178
+ }
179
+ /* -------------------- END Functions -------------------- */
@@ -0,0 +1,109 @@
1
+ .notification_alert {
2
+ @include border-radius(4px);
3
+ padding: 15px;
4
+ line-height: 16px;
5
+ margin-bottom: 20px;
6
+ border: 1px solid transparent;
7
+ h4 {
8
+ margin-top: 0;
9
+ color: inherit;
10
+ }
11
+ a { color: $blue_500; }
12
+ &.alert-success {
13
+ color: $light_green_800;
14
+ background: $light_green_200;
15
+ border-color: $light_green_400;
16
+ }
17
+ &.alert-warning {
18
+ color: $yellow_800;
19
+ background: $yellow_100;
20
+ border-color: $yellow_400;
21
+ b { color: $yellow_800!important; }
22
+ }
23
+ &.alert-danger {
24
+ color: $red_800;
25
+ background: $red_100;
26
+ border-color: $red_400;
27
+ }
28
+ &.alert-info {
29
+ color: $light_blue_600;
30
+ background: $light_blue_100;
31
+ border-color: $light_blue_200;
32
+ }
33
+ }
34
+
35
+ .error-message {
36
+ position: relative;
37
+ padding: 16px 64px;
38
+ min-height: 30px;
39
+ h2 {
40
+ span { margin-left: 4px; }
41
+ > * {
42
+ display: inline-block;
43
+ vertical-align: baseline!important;
44
+ }
45
+ &:before { vertical-align: baseline; }
46
+ }
47
+ .close {
48
+ @include font(18px, 700);
49
+ @include tblr-cust((top, 20px), (right, 20px));
50
+ position: absolute;
51
+ display: block;
52
+ }
53
+ > *:not(.clear):not(.close) {
54
+ @extend .inline-baseline;
55
+ line-height: 40px;
56
+ }
57
+ &.normal {
58
+ @include box-shadows(inset 0 3px 7px $grey_500, inset 0 -1px 3px $grey_500);
59
+ background: $grey_300;
60
+ color: $grey_800;
61
+ .close {
62
+ &:hover { color: $grey_800;}
63
+ }
64
+ }
65
+ &.success {
66
+ @include box-shadows(inset 0 3px 7px $green_500, inset 0 -1px 3px $green_500);
67
+ background: $green_300;
68
+ color: $green_800;
69
+ .close {
70
+ color: $green_800;
71
+ &:hover { color: $green_800;}
72
+ }
73
+ }
74
+ &.warning {
75
+ @include box-shadows(inset 0 3px 7px $amber_500, inset 0 -1px 3px $amber_500);
76
+ background: $amber_300;
77
+ color: $amber_900;
78
+ .close {
79
+ color: $amber_900;
80
+ &:hover { color: $amber_900;}
81
+ }
82
+ }
83
+ &.alert {
84
+ @include box-shadows(inset 0 3px 7px $red_600, inset 0 -1px 3px $red_600);
85
+ background: $red_200;
86
+ color: $red_600;
87
+ .close {
88
+ color: $red_600;
89
+ &:hover { color: $red_600;}
90
+ }
91
+ }
92
+ &.temp {
93
+ @include tblr-cust((top, 10px), (right, 0));
94
+ position: fixed;
95
+ top: 10px;
96
+ right: 0;
97
+ padding: 16px 64px 16px 16px;
98
+ // z-index: index($z-index-ele, noti_temp);
99
+ .close {
100
+ @include tblr-cust((top, 20px), (right, 20px));
101
+ top: 23px;
102
+ right: 10px;
103
+ }
104
+ &.normal { @include box-shadow(0 1px 3px $grey_500); }
105
+ &.success { @include box-shadow(0 1px 3px $green_500); }
106
+ &.warning { @include box-shadow(0 1px 3px $amber_500); }
107
+ &.alert { @include box-shadow(0 1px 3px $red_600); }
108
+ }
109
+ }
@@ -0,0 +1,38 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ }
5
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
6
+ abbr, acronym, address, big, cite, code, del, dfn,
7
+ em, img, ins, kbd, q, s, samp, small, strike, strong,
8
+ sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul,
9
+ li, fieldset, form, label, legend, table, caption, tbody,
10
+ tfoot, thead, tr, th, td, article, aside, canvas, details,
11
+ embed, figure, figcaption, footer, header, hgroup, menu,
12
+ nav, output, ruby, section, summary, time, mark, audio, video {
13
+ border: 0;
14
+ }
15
+ article, aside, details, figcaption, figure,
16
+ footer, header, hgroup, menu, nav, section {
17
+ display: block;
18
+ }
19
+ blockquote, q { quotes: none; }
20
+ blockquote:before, blockquote:after,
21
+ q:before, q:after {
22
+ content: "";
23
+ content: none;
24
+ }
25
+ select { outline: none; }
26
+ html, body { @include size(100%, 100%); }
27
+ body {
28
+ line-height: 1;
29
+ font-size: 12px;
30
+ }
31
+ a { text-decoration: none; }
32
+ table {
33
+ width: 100%;
34
+ border-collapse: separate;
35
+ border-spacing: 0;
36
+ }
37
+ ol, ul { list-style: none; }
38
+ textarea.noresize { resize: none; }
@@ -0,0 +1,53 @@
1
+ .section {
2
+ .section-head {
3
+ padding: 20px 40px;
4
+ > *:not(.clear) { @include line-height(30px, 30px); }
5
+ h1,
6
+ > h2 {
7
+ @include text-overflow();
8
+ @include box-sizing(border-box);
9
+ span { @extend .inline-top; }
10
+ &[class^="icon-"]:before,
11
+ &[class*=" icon-"]:before {
12
+ @extend .inline-top;
13
+ @include line-height(40px, 40px);
14
+ @include font(24px, 300);
15
+ margin-right: 8px;
16
+ }
17
+ }
18
+ h1 { @include font(24px, 300); }
19
+ > h2 { @include font(16px, 600); }
20
+ .controls {
21
+ > li {
22
+ @extend .inline-top;
23
+ margin: 0 4px;
24
+ .btn {
25
+ @include line-height(30px, 30px);
26
+ display: inline-block;
27
+ vertical-align: middle;
28
+ &.flat {
29
+ color: #FFFFFF;
30
+ &.normal:hover { background: #FFFFFF; }
31
+ }
32
+ &.circle {
33
+ width: 40px;
34
+ &[class^="icon-"]:before,
35
+ &[class*=" icon-"]:before {
36
+ @extend .inline-top;
37
+ }
38
+ }
39
+ &[class^="icon-"]:before,
40
+ &[class*=" icon-"]:before {
41
+ line-height: 30px;
42
+ font-size: 16px;
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ .section-body {
49
+ min-height: 50px;
50
+ padding: 10px 8px;
51
+ overflow: hidden;
52
+ }
53
+ }
@@ -0,0 +1,72 @@
1
+ /* ---------- Table ---------- */
2
+ .table {
3
+ border-collapse: collapse;
4
+ thead tr th,
5
+ tbody tr td,
6
+ tfoot tr th {
7
+ padding: 0 8px;
8
+ font-size: 12px;
9
+ line-height: 14px;
10
+ }
11
+ thead tr.controls th {
12
+ border: none;
13
+ background: #FFFFFF;
14
+ padding: 8px;
15
+ > ul > li {
16
+ display: inline-block;
17
+ vertical-align: middle;
18
+ }
19
+ }
20
+ thead tr th,
21
+ tfoot tr th {
22
+ height: 32px;
23
+ }
24
+ thead tr {
25
+ // &:last-child {
26
+ // th { border-bottom: solid 4px $grey_300; }
27
+ // }
28
+ th {
29
+ outline: 0;
30
+ background-color: $grey_100;
31
+ color: $grey_600;
32
+ }
33
+ }
34
+ tbody tr {
35
+ &:first-child {
36
+ td { border-top: solid 4px $grey_300; }
37
+ }
38
+ td {
39
+ height: 40px;
40
+ color: $grey_700;
41
+ a:not(.btn):hover { text-decoration: underline; }
42
+ &.actions {
43
+ a, span {
44
+ display: inline-block;
45
+ vertical-align: middle;
46
+ &:hover { text-decoration: none; }
47
+ &.btn {
48
+ &.circle { @include size(30px, 30px); }
49
+ &:before { line-height: 28px; }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ tfoot tr {
56
+ th {
57
+ background-color: $grey_100;
58
+ border-top: solid 4px $grey_300;
59
+ }
60
+ }
61
+ }
62
+ /* ---------- END Table ---------- */
63
+
64
+ .table-striped > tbody {
65
+ > tr:nth-child(even) > td { background: #F7F7F7; }
66
+ }
67
+ .table-bordered {
68
+ tbody tr td { border-bottom: solid 1px $grey_300; }
69
+ }
70
+ .table-hover > tbody {
71
+ > tr:hover > td { background: $grey_200; }
72
+ }